@digital-blueprint/formalize-app
Version:
[GitHub Repository](https://github.com/digital-blueprint/formalize-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/formalize-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/formalize-app/) | [Formalize Bundle](https:
6,896 lines • 1.09 MB
JavaScript
/*!
* License: LGPL-2.1-or-later
* Dependencies:
*
* @webcomponents/scoped-custom-element-registry: BSD-3-Clause
* @dbp-toolkit/app-shell: LGPL-2.1-or-later
* lit-html: BSD-3-Clause
* @dbp-toolkit/language-select: LGPL-2.1-or-later
* @dbp-toolkit/auth: LGPL-2.1-or-later
* @dbp-toolkit/theme-switcher: LGPL-2.1-or-later
* universal-router: MIT
* @dbp-toolkit/matomo: LGPL-2.1-or-later
* cssfilter: MIT
* xss: MIT
* @dbp-toolkit/form-elements: LGPL-2.1-or-later
* html2pdf.js: MIT
*/
import{A as e,T as t,d as n,h as r,m as i,o as a,p as o,s,y as c}from"./shared/ref.DqB7ABXf.js";import{J as l,X as u,b as d,g as f,k as p,s as m,v as h}from"./shared/directive-helpers.C6Xz79AM.js";import{t as g}from"./shared/class-map.B2bFA_il.js";import{t as _}from"./shared/translated.Blxt0tjK.js";import{t as v}from"./shared/modal.DfjeZb2d.js";import{t as y}from"./shared/utils.BtSYiqoX.js";import{a as b,o as x}from"./shared/select2.min.DRitHUO_.js";import{n as S,r as C,t as w}from"./shared/pdf-viewer.CsTRBfhh.js";import{t as T}from"./shared/file-source.DRQEpAaB.js";import{t as E}from"./shared/resource-select.Bx5DnWv9.js";import{a as D,i as O,n as k,s as A,t as j}from"./shared/string.qUj92gVq.js";import{n as M,t as N}from"./shared/boolean.pr9Nw5yS.js";import{t as P}from"./shared/enum.BxhuTEi5.js";import{n as F,t as I}from"./shared/string.f-jSIclt.js";import{n as L,t as R}from"./shared/enum.B5iOCmyu.js";import{t as z}from"./shared/html2canvas.DeT0QhYh.js";var B=class extends p(k){constructor(){super(),this.entryPointUrl=``,this.value=``,this.multiple=!1,this._personSelectValues=[]}static get properties(){return{...super.properties,entryPointUrl:{type:String,attribute:`entry-point-url`},value:{type:String,reflect:!1},multiple:{type:Boolean}}}static get scopedElements(){return{"dbp-resource-select":E}}static get styles(){return[...super.styles]}normalizePersonId(e){return typeof e==`string`?e.startsWith(`/base/people/`)?e.replace(`/base/people/`,``):e:``}willUpdate(e){if(super.willUpdate(e),!e.has(`multiple`)&&!e.has(`value`))return;let t=this.normalizePersonValues(this.value);if(!this.multiple){this.value=t[0]??``;return}let n=Array.isArray(this.value)?this.value:null;(n===null||n.length!==t.length||n.some((e,n)=>e!==t[n]))&&(this.value=t)}normalizePersonValues(e=this.value){return[...new Set((Array.isArray(e)?e:e?[e]:[]).map(e=>this.normalizePersonId(e)).filter(Boolean))]}getPersonSelectValues(){let e=this.normalizePersonValues().map(e=>`/base/people/${e}`);return(e.length!==this._personSelectValues.length||e.some((e,t)=>e!==this._personSelectValues[t]))&&(this._personSelectValues=e),this._personSelectValues}getPersonSearchQueryParameters(e,t){return{search:t.trim(),sort:`familyName`}}formatPerson(e,t){let n=t.givenName??``;return t.familyName&&(n+=` ${t.familyName}`),n}dispatchValueChange(){this.dispatchEvent(new CustomEvent(`change`,{detail:{fieldName:this.name,name:this.name,value:this.value,values:this.normalizePersonValues()},bubbles:!0,composed:!0}))}handlePersonChange(e){e.stopPropagation();let t=Array.isArray(e.detail?.values)?e.detail.values:e.detail?.value?[e.detail.value]:[],n=this.normalizePersonValues(t),r=this.normalizePersonValues();n.length===r.length&&n.every((e,t)=>e===r[t])||(Array.isArray(e.detail?.values)&&(this._personSelectValues=e.detail.values),this.value=this.multiple?n:n[0]??``,this.dispatchValueChange())}isValueEmpty(){return this.normalizePersonValues().length===0}renderInput(){return l`
<dbp-resource-select
.auth=${this.auth??{}}
.multiple=${this.multiple}
.values=${this.getPersonSelectValues()}
?disabled=${this.disabled}
lang="${this.lang}"
resource-path="/base/people"
fetch-mode="search"
.getSearchQueryParameters=${this.getPersonSearchQueryParameters}
.formatResource=${this.formatPerson}
@change=${this.handlePersonChange}
entry-point-url="${this.entryPointUrl}"></dbp-resource-select>
`}},V=class extends p(k){constructor(){super(),this.entryPointUrl=``,this.value=``,this.resourcePath=``,this.perPage=100}static get properties(){return{...super.properties,entryPointUrl:{type:String,attribute:`entry-point-url`},resourcePath:{type:String,attribute:`resource-path`},perPage:{type:Number,attribute:`per-page`}}}getCollectionQueryParameters(e){return{}}static get scopedElements(){return{"dbp-resource-select":E}}static get styles(){return[...super.styles]}_getResourceSelectValue(){return this.value?`${this.resourcePath}/${encodeURIComponent(this.value)}`:null}renderInput(){return l`
<dbp-resource-select
.auth=${this.auth}
.value=${this._getResourceSelectValue()}
.perPage=${this.perPage}
lang="${this.lang}"
?disabled=${this.disabled}
resource-path="${this.resourcePath}"
.getCollectionQueryParameters="${this.getCollectionQueryParameters.bind(this)}"
@change="${e=>{let t=e.target.value;if(t){let e=t.split(`/`);this.value=decodeURIComponent(e[e.length-1])}else this.value=``}}"
entry-point-url="${this.entryPointUrl}"></dbp-resource-select>
`}},H=class extends p(F){constructor(){super(),this.name=``,this.entryPointUrl=``,this.multiple=!1,this.value=``,this._loadRequestId=0}static get properties(){return{...super.properties,entryPointUrl:{type:String,attribute:`entry-point-url`},name:{type:String,attribute:`name`},multiple:{type:Boolean}}}static get styles(){return[...super.styles,u`
:host([layout-type='inline']) fieldset {
display: flex;
gap: var(--dbp-enum-label-gap, 1em);
margin: 0;
}
:host([layout-type='inline']) label {
margin-bottom: 0;
white-space: nowrap;
}
`]}updated(e){super.updated(e),(e.has(`value`)||e.has(`auth`)||e.has(`entryPointUrl`)||e.has(`multiple`))&&this.loadPersonNames()}normalizeValues(){let e=Array.isArray(this.value)?this.value:this.value?[this.value]:[];return(this.multiple?e:e.slice(0,1)).filter(Boolean)}getPersonUrl(e){return new URL(`/base/people/${encodeURIComponent(e)}`,this.entryPointUrl).href}async fetchPersonName(e){let t=this.auth?.token;if(!t)throw Error(`Authentication token is missing`);let n=await fetch(this.getPersonUrl(e),{headers:{Accept:`application/ld+json`,Authorization:`Bearer ${t}`}});if(!n.ok)throw Error(n.statusText);let r=await n.json();return[r.givenName,r.familyName].filter(Boolean).join(` `).trim()||e}async loadPersonNames(){let e=this.normalizeValues(),t=++this._loadRequestId;if(e.length===0){this.name=``;return}if(!this.entryPointUrl||!this.auth?.token){this.name=e.join(`
`);return}let n=await Promise.all(e.map(async e=>{try{return await this.fetchPersonName(e)}catch(t){return console.error(t),e}}));t===this._loadRequestId&&(this.name=n.join(`
`))}renderValue(){return l`
<div style="white-space: pre-line">${this.name}</div>
`}},ee=class extends p(F){constructor(){super(),this.label=`A resource field`,this.name=``,this.entryPointUrl=``,this.resourcePath=``,this._abortController=null}updated(e){super.updated(e),(e.has(`value`)||e.has(`auth`)||e.has(`entryPointUrl`)||e.has(`lang`))&&this.fetchResourceName(this.value)}static get properties(){return{...super.properties,entryPointUrl:{type:String,attribute:`entry-point-url`},resourcePath:{type:String,attribute:`resource-path`},name:{type:String,attribute:`name`}}}static get styles(){return[...super.styles,u`
:host([layout-type='inline']) fieldset {
display: flex;
gap: var(--dbp-enum-label-gap, 1em);
margin: 0;
}
:host([layout-type='inline']) label {
margin-bottom: 0;
white-space: nowrap;
}
`]}renderValue(){return l`
<div style="white-space: pre-line">${this.name}</div>
`}async fetchResourceName(e){this._abortController&&=(this._abortController.abort(),null);let t=this.auth?.token;if(!e||!this.entryPointUrl||!t)return;let n=y(y(this.entryPointUrl,this.resourcePath),encodeURIComponent(e));this._abortController=new AbortController;let r=this._abortController.signal;try{let i=await(await fetch(n,{method:`GET`,signal:r,headers:{"Content-Type":`application/json`,"Accept-Language":this.lang,Authorization:`Bearer ${t}`}})).json();this.name=i.name?i.name:e}catch(t){if(t.name===`AbortError`)return;this.name=e}}},te=/* @__PURE__ */ e((/* @__PURE__ */ t(((e,t)=>{
/*!
* html2pdf.js v0.14.0
* Copyright (c) 2026 Erik Koopmans
* Released under the MIT License.
*/
(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(z()):typeof define==`function`&&define.amd?define(`html2pdf`,[`html2canvas`],r):typeof e==`object`?e.html2pdf=r(z()):n.html2pdf=r(n.html2canvas)})(self,function(e){return(function(){var t={"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
\*********************************************************************/
n.r(t),n.d(t,{default:function(){return r}});function r(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}}),"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
\*******************************************************************/
n.r(t),n.d(t,{default:function(){return r}});function r(e){if(Array.isArray(e))return e}}),"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***!
\*********************************************************************/
n.r(t),n.d(t,{default:function(){return i}});function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,`next`,e)}function c(e){r(o,i,a,s,c,`throw`,e)}s(void 0)})}}}),"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
\*******************************************************************/
n.r(t),n.d(t,{default:function(){return i}});var r=n(
/*! ./toPropertyKey.js */
`./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js`);function i(e,t,n){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}),"./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":(function(e,t,n){
/*!*************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
\*************************************************************************/
n.r(t),n.d(t,{default:function(){return r}});function r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}}),"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
\********************************************************************/
n.r(t),n.d(t,{default:function(){return r}});function r(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}}),"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
\******************************************************************/
n.r(t),n.d(t,{default:function(){return s}});var r=n(
/*! ./arrayWithHoles.js */
`./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js`),i=n(
/*! ./iterableToArrayLimit.js */
`./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js`),a=n(
/*! ./unsupportedIterableToArray.js */
`./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js`),o=n(
/*! ./nonIterableRest.js */
`./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js`);function s(e,t){return(0,r.default)(e)||(0,i.default)(e,t)||(0,a.default)(e,t)||(0,o.default)()}}),"./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
\****************************************************************/
n.r(t),n.d(t,{default:function(){return i}});var r=n(
/*! ./typeof.js */
`./node_modules/@babel/runtime/helpers/esm/typeof.js`);function i(e,t){if((0,r.default)(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||`default`);if((0,r.default)(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}}),"./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
\******************************************************************/
n.r(t),n.d(t,{default:function(){return a}});var r=n(
/*! ./typeof.js */
`./node_modules/@babel/runtime/helpers/esm/typeof.js`),i=n(
/*! ./toPrimitive.js */
`./node_modules/@babel/runtime/helpers/esm/toPrimitive.js`);function a(e){var t=(0,i.default)(e,`string`);return(0,r.default)(t)==`symbol`?t:t+``}}),"./node_modules/@babel/runtime/helpers/esm/typeof.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
\***********************************************************/
n.r(t),n.d(t,{default:function(){return r}});function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}}),"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":(function(e,t,n){
/*!*******************************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
\*******************************************************************************/
n.r(t),n.d(t,{default:function(){return i}});var r=n(
/*! ./arrayLikeToArray.js */
`./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js`);function i(e,t){if(e){if(typeof e==`string`)return(0,r.default)(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.default)(e,t):void 0}}}),"./node_modules/canvg/lib/index.es.js":(function(e,t,n){
/*!********************************************!*\
!*** ./node_modules/canvg/lib/index.es.js ***!
\********************************************/
n.r(t),n.d(t,{AElement:function(){return Ue},AnimateColorElement:function(){return Le},AnimateElement:function(){return Ie},AnimateTransformElement:function(){return Re},BoundingBox:function(){return ge},CB1:function(){return N},CB2:function(){return P},CB3:function(){return F},CB4:function(){return I},Canvg:function(){return Ct},CircleElement:function(){return Te},ClipPathElement:function(){return ot},DefsElement:function(){return Ae},DescElement:function(){return pt},Document:function(){return bt},Element:function(){return Y},EllipseElement:function(){return Q},FeColorMatrixElement:function(){return rt},FeCompositeElement:function(){return ut},FeDropShadowElement:function(){return ct},FeGaussianBlurElement:function(){return dt},FeMorphologyElement:function(){return lt},FilterElement:function(){return st},Font:function(){return he},FontElement:function(){return ze},FontFaceElement:function(){return Be},GElement:function(){return je},GlyphElement:function(){return ye},GradientElement:function(){return Me},ImageElement:function(){return Je},LineElement:function(){return Ee},LinearGradientElement:function(){return Ne},MarkerElement:function(){return ke},MaskElement:function(){return it},Matrix:function(){return K},MissingGlyphElement:function(){return Ve},Mouse:function(){return ee},PSEUDO_ZERO:function(){return k},Parser:function(){return re},PathElement:function(){return ve},PathParser:function(){return Z},PatternElement:function(){return Oe},Point:function(){return H},PolygonElement:function(){return De},PolylineElement:function(){return $},Property:function(){return B},QB1:function(){return L},QB2:function(){return R},QB3:function(){return z},RadialGradientElement:function(){return Pe},RectElement:function(){return we},RenderedElement:function(){return _e},Rotate:function(){return ae},SVGElement:function(){return Ce},SVGFontLoader:function(){return Xe},Scale:function(){return oe},Screen:function(){return W},Skew:function(){return se},SkewX:function(){return q},SkewY:function(){return J},StopElement:function(){return Fe},StyleElement:function(){return Ze},SymbolElement:function(){return Ye},TRefElement:function(){return He},TSpanElement:function(){return xe},TextElement:function(){return be},TextPathElement:function(){return Ke},TitleElement:function(){return ft},Transform:function(){return ue},Translate:function(){return ie},UnknownElement:function(){return de},UseElement:function(){return Qe},ViewPort:function(){return V},compressSpaces:function(){return f},default:function(){return Ct},getSelectorSpecificity:function(){return O},normalizeAttributeName:function(){return _},normalizeColor:function(){return y},parseExternalUrl:function(){return v},presets:function(){return d},toNumbers:function(){return h},trimLeft:function(){return p},trimRight:function(){return m},vectorMagnitude:function(){return A},vectorsAngle:function(){return M},vectorsRatio:function(){return j}}),n(
/*! core-js/modules/es.promise.js */
`./node_modules/core-js/modules/es.promise.js`);var r=n(
/*! @babel/runtime/helpers/asyncToGenerator */
`./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js`)
/*! core-js/modules/es.string.match.js */
/*! core-js/modules/es.string.replace.js */
/*! core-js/modules/es.string.starts-with.js */
/*! core-js/modules/es.array.iterator.js */
;n(`./node_modules/core-js/modules/es.string.match.js`),n(`./node_modules/core-js/modules/es.string.replace.js`),n(`./node_modules/core-js/modules/es.string.starts-with.js`),n(`./node_modules/core-js/modules/es.array.iterator.js`),n(
/*! core-js/modules/web.dom-collections.iterator.js */
`./node_modules/core-js/modules/web.dom-collections.iterator.js`);var i=n(
/*! @babel/runtime/helpers/defineProperty */
`./node_modules/@babel/runtime/helpers/esm/defineProperty.js`)
/*! core-js/modules/es.array.reduce.js */
/*! core-js/modules/es.string.ends-with.js */
;n(`./node_modules/core-js/modules/es.array.reduce.js`),n(`./node_modules/core-js/modules/es.string.ends-with.js`),n(
/*! core-js/modules/es.string.split.js */
`./node_modules/core-js/modules/es.string.split.js`);var a=n(
/*! raf */
`./node_modules/raf/index.js`);n(
/*! core-js/modules/es.string.trim.js */
`./node_modules/core-js/modules/es.string.trim.js`);var o=n(
/*! rgbcolor */
`./node_modules/rgbcolor/index.js`)
/*! core-js/modules/es.array.index-of.js */
/*! core-js/modules/es.string.includes.js */
;n(`./node_modules/core-js/modules/es.array.index-of.js`),n(`./node_modules/core-js/modules/es.string.includes.js`),n(
/*! core-js/modules/es.array.reverse.js */
`./node_modules/core-js/modules/es.array.reverse.js`);var s=n(
/*! svg-pathdata */
`./node_modules/svg-pathdata/lib/SVGPathData.module.js`);n(
/*! core-js/modules/es.regexp.to-string.js */
`./node_modules/core-js/modules/es.regexp.to-string.js`);var c=n(
/*! stackblur-canvas */
`./node_modules/stackblur-canvas/dist/stackblur-es.js`);function l(){var{DOMParser:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return(0,r.default)(function*(){var t=yield(yield fetch(e)).blob();return yield createImageBitmap(t)})()}};return(typeof DOMParser<`u`||e===void 0)&&Reflect.deleteProperty(t,`DOMParser`),t}function u(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var d=/*#__PURE__*/ Object.freeze({__proto__:null,offscreen:l,node:u});function f(e){return e.replace(/(?!\u3000)\s+/gm,` `)}function p(e){return e.replace(/^[\n \t]+/,``)}function m(e){return e.replace(/[\n \t]+$/,``)}function h(e){return((e||``).match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var g=/^[A-Z-]+$/;function _(e){return g.test(e)?e.toLowerCase():e}function v(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function y(e){if(!e.startsWith(`rgb`))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e)}var b=/(\[[^\]]+\])/g,x=/(#[^\s+>~.[:]+)/g,S=/(\.[^\s+>~.[:]+)/g,C=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,w=/(:[\w-]+\([^)]*\))/gi,T=/(:[^\s+>~.[:]+)/g,E=/([^\s+>~.[:]+)/g;function D(e,t){var n=t.exec(e);return n?[e.replace(t,` `),n.length]:[e,0]}function O(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,` $1 `).replace(/{[\s\S]*/gm,` `),r=0;return[n,r]=D(n,b),t[1]+=r,[n,r]=D(n,x),t[0]+=r,[n,r]=D(n,S),t[1]+=r,[n,r]=D(n,C),t[2]+=r,[n,r]=D(n,w),t[1]+=r,[n,r]=D(n,T),t[1]+=r,n=n.replace(/[*\s+>~]/g,` `).replace(/[#.]/g,` `),[n,r]=D(n,E),t[2]+=r,t.join(``)}var k=1e-8;function A(e){return Math.sqrt(e[0]**2+e[1]**2)}function j(e,t){return(e[0]*t[0]+e[1]*t[1])/(A(e)*A(t))}function M(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(j(e,t))}function N(e){return e*e*e}function P(e){return 3*e*e*(1-e)}function F(e){return 3*e*(1-e)*(1-e)}function I(e){return(1-e)*(1-e)*(1-e)}function L(e){return e*e}function R(e){return 2*e*(1-e)}function z(e){return(1-e)*(1-e)}class B{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new B(e,`EMPTY`,``)}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:` `,{document:t,name:n}=this;return f(this.getString()).trim().split(e).map(e=>new B(t,n,e))}hasValue(e){var{value:t}=this;return t!==null&&t!==``&&(e||t!==0)&&t!==void 0}isString(e){var{value:t}=this,n=typeof t==`string`;return!n||!e?n:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith(`px`):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return e===void 0||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return e===void 0?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return e===void 0||this.hasValue()?this.value===void 0?``:String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor?t:(this.isNormalizedColor=!0,t=y(t),this.value=t,t)}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,``)}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!this.hasValue())return 0;var[n,r]=typeof e==`boolean`?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize(`x`);case this.isString(/vh$/):return this.getNumber()/100*i.computeSize(`y`);case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var a=this.getNumber();return t&&a<1?a*i.computeSize(n):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&=t[1],t||=e,this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient==`function`)return n.createGradient(this.document.ctx,e,t);if(typeof n.createPattern==`function`){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute(`patternTransform`);n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute(`patternTransform`,!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?B.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,i=0;i<n&&(t[i]===`,`&&r++,r!==3);i++);if(e.hasValue()&&this.isString()&&r!==3){var a=new o(t);a.ok&&(a.alpha=e.getNumber(),t=a.toRGBA())}return new B(this.document,this.name,t)}}B.textBaselineMapping={baseline:`alphabetic`,"before-edge":`top`,"text-before-edge":`top`,middle:`middle`,central:`middle`,"after-edge":`bottom`,"text-after-edge":`bottom`,ideographic:`ideographic`,alphabetic:`alphabetic`,hanging:`hanging`,mathematical:`alphabetic`};class V{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e==`number`?e:e===`x`?this.width:e===`y`?this.height:Math.sqrt(this.width**2+this.height**2)/Math.sqrt(2)}}class H{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=t,r=t]=h(e);return new H(n,r)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=t,r=n]=h(e);return new H(n,r)}static parsePath(e){for(var t=h(e),n=t.length,r=[],i=0;i<n;i+=2)r.push(new H(t[i],t[i+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}class ee{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=``),t.forEach((e,t)=>{for(var{run:r}=e,i=n[t];i;)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(a,o)&&(r[i]=e)})}}checkBoundingBox(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInBox(a,o)&&(r[i]=e)})}}mapXY(e,t){for(var{window:n,ctx:r}=this.screen,i=new H(e,t),a=r.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onclick`,x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onmousemove`,x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var te=typeof window<`u`?window:null,U=typeof fetch<`u`?fetch.bind(void 0):null;class W{constructor(e){var{fetch:t=U,window:n=te}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new V,this.mouse=new ee(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle=`rgba(0,0,0,0)`,e.lineCap=`butt`,e.lineJoin=`miter`,e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:a,height:o,desiredHeight:s,minX:c=0,minY:l=0,refX:u,refY:d,clip:p=!1,clipX:m=0,clipY:h=0}=e,[g,_]=f(r).replace(/^defer\s/,``).split(` `),v=g||`xMidYMid`,y=_||`meet`,b=i/a,x=o/s,S=Math.min(b,x),C=Math.max(b,x),w=a,T=s;y===`meet`&&(w*=S,T*=S),y===`slice`&&(w*=C,T*=C);var E=new B(t,`refX`,u),D=new B(t,`refY`,d),O=E.hasValue()&&D.hasValue();if(O&&n.translate(-S*E.getPixels(`x`),-S*D.getPixels(`y`)),p){var k=S*m,A=S*h;n.beginPath(),n.moveTo(k,A),n.lineTo(i,A),n.lineTo(i,o),n.lineTo(k,o),n.closePath(),n.clip()}if(!O){var j=y===`meet`&&S===x,M=y===`slice`&&C===x,N=y===`meet`&&S===b,P=y===`slice`&&C===b;v.startsWith(`xMid`)&&(j||M)&&n.translate(i/2-w/2,0),v.endsWith(`YMid`)&&(N||P)&&n.translate(0,o/2-T/2),v.startsWith(`xMax`)&&(j||M)&&n.translate(i-w,0),v.endsWith(`YMax`)&&(N||P)&&n.translate(0,o-T)}switch(!0){case v===`none`:n.scale(b,x);break;case y===`meet`:n.scale(S,S);break;case y===`slice`:n.scale(C,C)}n.translate(-c,-l)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:c,scaleHeight:l,offsetX:u,offsetY:d}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:p}=this,m=1e3/f;if(this.frameDuration=m,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,i,o,c,l,u,d),t){var h=Date.now(),g=h,_=0,v=()=>{h=Date.now(),_=h-g,_>=m&&(g=h-_%m,this.shouldUpdate(r,s)&&(this.render(e,i,o,c,l,u,d),p.runEvents())),this.intervalId=a(v)};n||p.start(),this.intervalId=a(v)}}stop(){this.intervalId&&=(a.cancel(this.intervalId),null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((e,t)=>t.update(n)||e,!1))return!0}return!!(typeof t==`function`&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,r,i,a,o){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:c,viewPort:l,ctx:u,isFirstRender:d}=this,f=u.canvas;l.clear(),f.width&&f.height?l.setCurrent(f.width,f.height):l.setCurrent(s,c);var p=e.getStyle(`width`),m=e.getStyle(`height`);!t&&(d||typeof r!=`number`&&typeof i!=`number`)&&(p.hasValue()&&(f.width=p.getPixels(`x`),f.style&&(f.style.width=`${f.width}px`)),m.hasValue()&&(f.height=m.getPixels(`y`),f.style&&(f.style.height=`${f.height}px`)));var g=f.clientWidth||f.width,_=f.clientHeight||f.height;if(t&&p.hasValue()&&m.hasValue()&&(g=p.getPixels(`x`),_=m.getPixels(`y`)),l.setCurrent(g,_),typeof a==`number`&&e.getAttribute(`x`,!0).setValue(a),typeof o==`number`&&e.getAttribute(`y`,!0).setValue(o),typeof r==`number`||typeof i==`number`){var v=h(e.getAttribute(`viewBox`).getString()),y=0,b=0;if(typeof r==`number`){var x=e.getStyle(`width`);x.hasValue()?y=x.getPixels(`x`)/r:isNaN(v[2])||(y=v[2]/r)}if(typeof i==`number`){var S=e.getStyle(`height`);S.hasValue()?b=S.getPixels(`y`)/i:isNaN(v[3])||(b=v[3]/i)}y||=b,b||=y,e.getAttribute(`width`,!0).setValue(r),e.getAttribute(`height`,!0).setValue(i);var C=e.getStyle(`transform`,!0,!0);C.setValue(`${C.getString()} scale(${1/y}, ${1/b})`)}n||u.clearRect(0,0,g,_),e.render(u),d&&(this.isFirstRender=!1)}}W.defaultWindow=te,W.defaultFetch=U;var{defaultFetch:G}=W,ne=typeof DOMParser<`u`?DOMParser:null;class re{constructor(){var{fetch:e=G,DOMParser:t=ne}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return(0,r.default)(function*(){return e.startsWith(`<`)?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,`image/svg+xml`))}catch{return this.checkDocument(t.parseFromString(e,`text/xml`))}}checkDocument(e){var t=e.getElementsByTagName(`parsererror`)[0];if(t)throw Error(t.textContent);return e}load(e){var t=this;return(0,r.default)(function*(){var n=yield(yield t.fetch(e)).text();return t.parseFromString(n)})()}}class ie{constructor(e,t){this.type=`translate`,this.point=null,this.point=H.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class ae{constructor(e,t,n){this.type=`rotate`,this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=h(t);this.angle=new B(e,`angle`,r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(a.getRadians()),e.translate(-o,-s)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(-1*a.getRadians()),e.translate(-o,-s)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class oe{constructor(e,t,n){this.type=`scale`,this.scale=null,this.originX=null,this.originY=null;var r=H.parseScale(t);(r.x===0||r.y===0)&&(r.x=k,r.y=k),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(t,n||t),e.translate(-a,-o)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(1/t,1/n||t),e.translate(-a,-o)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class K{constructor(e,t,n){this.type=`matrix`,this.matrix=[],this.originX=null,this.originY=null,this.matrix=h(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels(`x`),a=n.getPixels(`y`);e.translate(i,a),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-a)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],a=r[2],o=r[4],s=r[1],c=r[3],l=r[5],u=0,d=0,f=1,p=1/(i*(c*f-l*d)-a*(s*f-l*u)+o*(s*d-c*u)),m=t.getPixels(`x`),h=n.getPixels(`y`);e.translate(m,h),e.transform(p*(c*f-l*d),p*(l*u-s*f),p*(o*d-a*f),p*(i*f-o*u),p*(a*l-o*c),p*(o*s-i*l)),e.translate(-m,-h)}applyToPoint(e){e.applyTransform(this.matrix)}}class se extends K{constructor(e,t,n){super(e,t,n),this.type=`skew`,this.angle=null,this.angle=new B(e,`angle`,t)}}class q extends se{constructor(e,t,n){super(e,t,n),this.type=`skewX`,this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class J extends se{constructor(e,t,n){super(e,t,n),this.type=`skewY`,this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function ce(e){return f(e).trim().replace(/\)([a-zA-Z])/g,`) $1`).replace(/\)(\s?,\s?)/g,`) `).split(/\s(?=[a-z])/)}function le(e){var[t,n]=e.split(`(`);return[t.trim(),n.trim().replace(`)`,``)]}class ue{constructor(e,t,n){this.document=e,this.transforms=[],ce(t).forEach(e=>{if(e!==`none`){var[t,r]=le(e),i=ue.transformTypes[t];i!==void 0&&this.transforms.push(new i(this.document,r,n))}})}static fromElement(e,t){var n=t.getStyle(`transform`,!1,!0),[r,i=r]=t.getStyle(`transform-origin`,!1,!0).split(),a=[r,i];return n.hasValue()?new ue(e,n.getString(),a):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length-1;n>=0;n--)t[n].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}ue.transformTypes={translate:ie,rotate:ae,scale:oe,matrix:K,skewX:q,skewY:J};class Y{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue=``,this.parent=null,this.children=[],t&&t.nodeType===1){Array.from(t.attributes).forEach(t=>{var n=_(t.nodeName);this.attributes[n]=new B(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute(`style`).hasValue()&&this.getAttribute(`style`).getString().split(`;`).map(e=>e.trim()).forEach(t=>{if(t){var[n,r]=t.split(`:`).map(e=>e.trim());this.styles[n]=new B(e,n,r)}});var{definitions:r}=e,i=this.getAttribute(`id`);i.hasValue()&&(r[i.getString()]||(r[i.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(t.nodeType===1)this.addChild(t);else if(n&&(t.nodeType===3||t.nodeType===4)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new B(this.document,e,``);return this.attributes[e]=r,r}return n||B.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e===`href`||e.endsWith(`:href`))return this.attributes[e];return B.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:a}=this;if(a){var o=a.getStyle(e);if(o!=null&&o.hasValue())return o}}if(t){var s=new B(this.document,e,``);return this.styles[e]=s,s}return r||B.empty(this.document)}render(e){if(this.getStyle(`display`).getString()!==`none`&&this.getStyle(`visibility`).getString()!==`hidden`){if(e.save(),this.getStyle(`mask`).hasValue()){var t=this.getStyle(`mask`).getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle(`filter`).getValue(`none`)!==`none`){var n=this.getStyle(`filter`).getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=ue.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle(`clip-path`,!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof Y?e:this.document.createElement(e);t.parent=this,Y.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var{node:t}=this;if(typeof t.matches==`function`)return t.matches(e);var n=t.getAttribute?.call(t,`class`);return!n||n===``?!1:n.split(` `).some(t=>`.${t}`===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith(`@`)&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var a in r){var o=this.stylesSpecificity[a];o===void 0&&(o=`000`),i>=o&&(this.styles[a]=r[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,t){return t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(``),[...t,[n,i]]},[])}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){return this.parent?.children.indexOf(this)===0}}Y.ignoreChildTypes=[`title`];class de extends Y{constructor(e,t,n){super(e,t,n)}}function fe(e){var t=e.trim();return/^('|")/.test(t)?t:`"${t}"`}function pe(e){return typeof process>`u`?e:e.trim().split(`,`).map(fe).join(`,`)}function X(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`italic`:case`oblique`:case`inherit`:case`initial`:case`unset`:return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:``}}function me(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`bold`:case`lighter`:case`bolder`:case`inherit`:case`initial`:case`unset`:return t;default:return/^[\d.]+$/.test(t)?t:``}}class he{constructor(e,t,n,r,i,a){var o=a?typeof a==`string`?he.parse(a):a:{};this.fontFamily=i||o.fontFamily,this.fontSize=r||o.fontSize,this.fontStyle=e||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=t||o.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=``,r=``,i=``,a=``,o=``,s=f(e).trim().split(` `),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach(e=>{switch(!0){case!c.fontStyle&&he.styles.includes(e):e!==`inherit`&&(n=e),c.fontStyle=!0;break;case!c.fontVariant&&he.variants.includes(e):e!==`inherit`&&(r=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&he.weights.includes(e):e!==`inherit`&&(i=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:e!==`inherit`&&([a]=e.split(`/`)),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:e!==`inherit`&&(o+=e)}}),new he(n,r,i,a,o,t)}toString(){return[X(this.fontStyle),this.fontVariant,me(this.fontWeight),this.fontSize,pe(this.fontFamily)].join(` `).trim()}}he.styles=`normal|italic|oblique|inherit`,he.variants=`normal|small-caps|inherit`,he.weights=`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit`;class ge{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){e!==void 0&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),t!==void 0&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return(1-e)**3*t+3*(1-e)**2*e*n+3*(1-e)*e**2*r+e**3*i}bezierCurveAdd(e,t,n,r,i){var a=6*t-12*n+6*r,o=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(o===0){if(a===0)return;var c=-s/a;0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,i)):this.addY(this.sumCubic(c,t,n,r,i)));return}var l=a**2-4*s*o;if(!(l<0)){var u=(-a+Math.sqrt(l))/(2*o);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)));var d=(-a-Math.sqrt(l))/(2*o);0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,n,r,i)):this.addY(this.sumCubic(d,t,n,r,i)))}}addBezierCurve(e,t,n,r,i,a,o,s){this.addPoint(e,t),this.addPoint(o,s),this.bezierCurveAdd(!0,e,n,i,o),this.bezierCurveAdd(!1,t,r,a,s)}addQuadraticCurve(e,t,n,r,i,a){var o=e+2/3*(n-e),s=t+2/3*(r-t),c=o+1/3*(i-e),l=s+1/3*(a-t);this.addBezierCurve(e,t,o,c,s,l,i,a)}isPointInBox(e,t){var{x1:n,y1:r,x2:i,y2:a}=this;return n<=e&&e<=i&&r<=t&&t<=a}}class Z extends s.SVGPathData{constructor(e){super(e.replace(/([+\-.])\s+/gm,`$1`).replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,``)),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new H(0,0),this.control=new H(0,0),this.current=new H(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`x`,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`y`,n=new H(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==s.SVGPathData.CURVE_TO&&e!==s.SVGPathData.SMOOTH_CURVE_TO&&e!==s.SVGPathData.QUAD_TO&&e!==s.SVGPathData.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this;return new H(2*t-r,2*n-i)}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n]){for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}}return e}}class _e extends Y{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle(`opacity`,!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t){var n=this.getStyle(`fill`),r=this.getStyle(`fill-opacity`),i=this.getStyle(`stroke`),a=this.getStyle(`stroke-opacity`);if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,r);o&&(e.fillStyle=o)}else if(n.hasValue()){n.getString()===`currentColor`&&n.setValue(this.getStyle(`color`).getColor());var s=n.getColor();s!==`inherit`&&(e.fillStyle=s===`none`?`rgba(0,0,0,0)`:s)}if(r.hasValue()&&(e.fillStyle=new B(this.document,`fill`,e.fillStyle).addOpacity(r).getColor()),i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(e.strokeStyle=c)}else if(i.hasValue()){i.getString()===`currentColor`&&i.setValue(this.getStyle(`color`).getColor());var l=i.getString();l!==`inherit`&&(e.strokeStyle=l===`none`?`rgba(0,0,0,0)`:l)}a.hasValue()&&(e.strokeStyle=new B(this.document,`stroke`,e.strokeStyle).addOpacity(a).getString());var u=this.getStyle(`stroke-width`);u.hasValue()&&(e.lineWidth=u.getPixels()||k);var d=this.getStyle(`stroke-linecap`),f=this.getStyle(`stroke-linejoin`),p=this.getStyle(`stroke-miterlimit`),m=this.getStyle(`stroke-dasharray`),g=this.getStyle(`stroke-dashoffset`);if(d.hasValue()&&(e.lineCap=d.getString()),f.hasValue()&&(e.lineJoin=f.getString()),p.hasValue()&&(e.miterLimit=p.getNumber()),m.hasValue()&&m.getString()!==`none`){var _=h(m.getString());e.setLineDash===void 0?e.webkitLineDash===void 0?e.mozDash!==void 0&&(_.length!==1||_[0]!==0)&&(e.mozDash=_):e.webkitLineDash=_:e.setLineDash(_);var v=g.getPixels();e.lineDashOffset===void 0?e.webkitLineDashOffset===void 0?e.mozDashOffset!==void 0&&(e.mozDashOffset=v):e.webkitLineDashOffset=v:e.lineDashOffset=v}}if(this.modifiedEmSizeStack=!1,e.font!==void 0){var y=this.getStyle(`font`),b=this.getStyle(`font-style`),x=this.getStyle(`font-variant`),S=this.getStyle(`font-weight`),C=this.getStyle(`font-size`),w=this.getStyle(`font-family`),T=new he(b.getString(),x.getString(),S.getString(),C.hasValue()?`${C.getPixels(!0)}px`:``,w.getString(),he.parse(y.getString(),e.font));b.setValue(T.fontStyle),x.setValue(T.fontVariant),S.setValue(T.fontWeight),C.setValue(T.fontSize),w.setValue(T.fontFamily),e.font=T.toString(),C.isPixels()&&(this.document.emSize=C.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class ve extends _e{constructor(e,t,n){super(e,t,n),this.type=`path`,this.pathParser=null,this.pathParser=new Z(this.getAttribute(`d`).getString())}path(e){var{pathParser:t}=this,n=new ge;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Z.MOVE_TO:this.pathM(e,n);break;case Z.LINE_TO:this.pathL(e,n);break;case Z.HORIZ_LINE_TO:this.pathH(e,n);break;case Z.VERT_LINE_TO:this.pathV(e,n);break;case Z.CURVE_TO:this.pathC(e,n);break;case Z.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Z.QUAD_TO:this.pathQ(e,n);break;case Z.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Z.ARC:this.pathA(e,n);break;case Z.CLOSE_PATH:this.pathZ(e,n)}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles();return t.map((e,t)=>[e,n[t]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle(`fill-rule`);e.fillStyle!==``&&(t.getString(`inherit`)===`inherit`?e.fill():e.fill(t.getString())),e.strokeStyle!==``&&(this.getAttribute(`vector-effect`).getString()===`non-scaling-stroke`?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle(`marker-start`),a=this.getStyle(`marker-mid`),o=this.getStyle(`marker-end`);if(i.isUrlDefinition()){var s=i.getDefinition(),[c,l]=n[0];s.render(e,c,l)}if(a.isUrlDefinition())for(var u=a.getDefinition(),d=1;d<r;d++){var[f,p]=n[d];u.render(e,f,p)}if(o.isUrlDefinition()){var m=o.getDefinition(),[h,g]=n[r];m.render(e,h,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=ve.pathM(n),{x:i,y:a}=r;n.addMarker(r),t.addPoint(i,a),e&&e.moveTo(i,a)}static pathL(e){var{current:t}=e;return{current:t,point:e.getAsCurrentPoint()}}pathL(e,t){var{pathParser:n}=this,{current:r,point:i}=ve.pathL(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathH(e){var{current:t,command:n}=e,r=new H((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:i}=ve.pathH(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathV(e){var{current:t,command:n}=e,r=new H(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:i}=ve.pathV(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathC(e){var{current:t}=e;return{current:t,point:e.getPoint(`x1`,`y1`),controlPoint:e.getAsControlPoint(`x2`,`y2`),currentPoint:e.getAsCurrentPoint()}}pathC(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:a,currentPoint:o}=ve.pathC(n);n.addMarker(o,a,i),t.addBezierCurve(r.x,r.y,i.x,i.y,a.x,a.y,o.x,o.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}static pathS(e){var{current:t}=e;return{current:t,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint(`x2`,`y2`),currentPoint:e.getAsCurrentPoint()}}pathS(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:a,currentPoint:o}=ve.pathS(n);n.addMarker(o,a,i),t.addBezierCurve(r.x,r.y,i.x,i.y,a.x,a.y,o.x,o.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}static pathQ(e){var{current:t}=e;return{current:t,controlPoint:e.getAsControlPoint(`x1`,`y1`),currentPoint:e.getAsCurrentPoint()}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:a}=ve.pathQ(n);n.addMarker(a,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:a}=ve.pathT(n);n.addMarker(a,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:i,xRot:a,lArcFlag:o,sweepFlag:s}=n,c=Math.PI/180*a,l=e.getAsCurrentPoint(),u=new H(Math.cos(c)*(t.x-l.x)/2+Math.sin(c)*(t.y-l.y)/2,-Math.sin(c)*(t.x-l.x)/2+Math.cos(c)*(t.y-l.y)/2),d=u.x**2/r**2+u.y**2/i**2;d>1&&(r*=Math.sqrt(d),i*=Math.sqrt(d));var f=(o===s?-1:1)*Math.sqrt((r**2*i**2-r**2*u.y**2-i**2*u.x**2)/(r**2*u.y**2+i**2*u.x**2));isNaN(f)&&(f=0);var p=new H(f*r*u.y/i,f*-i*u.x/r),m=new H((t.x+l.x)/2+Math.cos(c)*p.x-Math.sin(c)*p.y,(t.y+l.y)/2+Math.sin(c)*p.x+Math.cos(c)*p.y),h=M([1,0],[(u.x-p.x)/r,(u.y-p.y)/i]),g=[(u.x-p.x)/r,(u.y-p.y)/i],_=[(-u.x-p.x)/r,(-u.y-p.y)/i],v=M(g,_);return j(g,_)<=-1&&(v=Math.PI),j(g,_)>=1&&(v=0),{currentPoint:l,rX:r,rY:i,sweepFlag:s,xAxisRotation:c,centp:m,a1:h,ad:v}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:a,sweepFlag:o,xAxisRotation:s,centp:c,a1:l,ad:u}=ve.pathA(n),d=1-o?1:-1,f=l+u/2*d,p=new H(c.x+i*Math.cos(f),c.y+a*Math.sin(f));if(n.addMarkerAngle(p,f-d*Math.PI/2),n.addMarkerAngle(r,f-d*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(l)&&!isNaN(u)){var m=i>a?i:a,h=i>a?1:i/a,g=i>a?a/i:1;e.translate(c.x,c.y),e.rotate(s),e.scale(h,g),e.arc(0,0,m,l,l+u,!!(1-o)),e.scale(1/h,1/g),e.rotate(-s),e.translate(-c.x,-c.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){ve.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class ye extends ve{constructor(e,t,n){super(e,t,n),this.type=`glyph`,this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber(),this.unicode=this.getAttribute(`unicode`).getString(),this.arabicForm=this.getAttribute(`arabic-form`).getString()}}class be extends _e{constructor(e,t,n){super(e,t,new.target===be||n),this.type=`text`,this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];super.setContext(e,t);var n=this.getStyle(`dominant-baseline`).getTextBaseline()||this.getStyle(`alignment-baseline`).getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=1/0,this.maxX=-1/0}getBoundingBox(e){if(this.type!==`text`)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=he.parse(e.ctx.font).fontSize;return t.getStyle(`font-size`).getNumber(n)}getTElementBoundingBox(e){var t=this.getFontSize();return new ge(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var a=t.length,o=t[n-1],s=t[n+1],c=`isolated`;if((n===0||o===` `)&&n<a-1&&s!==` `&&(c=`terminal`),n>0&&o!==` `&&n<a-1&&s!==` `&&(c=`medial`),n>0&&o!==` `&&(n===a-1||s===` `)&&(c=`initial`),e.glyphs[r]!==void 0){var l=e.glyphs[r];i=l instanceof ye?l:l[c]}}else i=e.glyphs[r];return i||=e.missingGlyph,i}getText(){return``}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,a=f(t.textContent||``);return r===0&&(a=p(a)),r===i&&(a=m(a)),a}renderChildren(e){if(this.type!==`text`){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle(`font-family`).getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,o=he.parse(t.ctx.font),s=n.getStyle(`font-size`).getNumber(o.fontSize),c=n.getStyle(`font-style`).getString(o.fontStyle),l=s/a,u=i.isRTL?r.split(``).reverse().join(``):r,d=h(n.getAttribute(`dx`).getString()),f=u.length,p=0;p<f;p++){var m=this.getGlyph(i,u,p);e.translate(this.x,this.y),e.scale(l,-l);var g=e.lineWidth;e.lineWidth=e.lineWidth*a/s,c===`italic`&&e.transform(1,0,.4,1,0,0),m.render(e),c===`italic`&&e.transform(1,0,-.4,1,0,0),e.lineWidth=g,e.scale(1/l,-1/l),e.translate(-this.x,-this.y),this.x+=s*(m.horizAdvX||i.horizAdvX)/a,d[p]!==void 0&&!isNaN(d[p])&&(this.x+=d[p])}return}var{x:_,y:v}=this;e.fillStyle&&e.fillText(r,_,v),e.strokeStyle&&e.strokeText(r,_,v)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle(`text-anchor`).getString(`start`),n=0;n=t===`start`?e.x-this.minX:t===`end`?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=n;this.minX=1/0,this.maxX=-1/0,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if(typeof i.measureText!=`function`)return i;e.save(),i.setContext(e,!0);var a=i.getAttribute(`x`),o=i.getAttribute(`y`),s=i.getAttribute(`dx`),c=i.getAttribute(`dy`),l=i.getStyle(`font-family`).getDefinition(),u=!!l&&l.isRTL;r===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute(`x`)),o.hasValue()||o.setValue(i.getInheritedAttribute(`y`)),s.hasValue()||s.setValue(i.getInheritedAttribute(`dx`)),c.hasValue()||c.setValue(i.getInheritedAttribute(`dy`)));var d=i.measureText(e);return u&&(t.x-=d),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels(`x`),s.hasValue()&&(i.x+=s.getPixels(`x`))):(s.hasValue()&&(t.x+=s.getPixels(`x`)),i.x=t.x),t.x=i.x,u||(t.x+=d),o.hasValue()?(i.y=o.getPixels(`y`),c.hasValue()&&(i.y+=c.getPixels(`y`))):(c.hasValue()&&(t.y+=c.getPixels(`y`)),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if(typeof i.getBoundingBox!=`function`)return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((n,r)=>{var o=t.getChildBoundingBox(e,t,i,r);a.addBoundingBox(o)}),a):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((n,r)=>{t.renderChild(e,t,i,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle(`font-family`).getDefinition();if(r){for(var i=this.getFontSize(),a=r.isRTL?t.split(``).reverse().join(``):t,o=h(n.getAttribute(`dx`).getString()),s=a.length,c=0,l=0;l<s;l++){var u=this.getGlyph(r,a,l);c+=(u.horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,o[l]!==void 0&&!isNaN(o[l])&&(c+=o[l])}return c}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(t);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){for(var t=this;t instanceof be&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue(`0`);t=t.parent}return null}}class xe extends be{constructor(e,t,n){super(e,t,new.target===xe||n),this.type=`tspan`,this.text=this.children.length>0?``:this.getTextFromNode()}getText(){return this.text}}class Se extends xe{constructor(){super(...arguments),this.type=`textNode`}}class Ce extends _e{constructor(){super(...arguments),this.type=`svg`,this.root=!1}setContext(e){var{document:t}=this,{screen:n,window:r}=t,i=e.canvas;if(n.setDefaults(e),i.style&&e.font!==void 0&&r&&r.getComputedStyle!==void 0){e.font=r.getComputedStyle(i).getPropertyValue(`font`);var a=new B(t,`fontSize`,he.parse(e.font).fontSize);a.hasValue()&&(t.rootEmSize=a.getPixels(`y`),t.emSize=t.rootEmSize)}this.getAttribute(`x`).hasValue()||this.getAttribute(`x`,!0).setValue(0),this.getAttribute(`y`).hasValue()||this.getAttribute(`y`,!0).setValue(0);var{width:o,height:s}=n.viewPort;this.getStyle(`width`).hasValue()||this.getStyle(`width`,!0).setValue(`100%`),this.getStyle(`height`).hasValue()||this.getStyle(`height`,!0).setValue(`100%`),this.getStyle(`color`).hasValue()||this.getStyle(`color`,!0).setValue(`black`);var c=this.getAttribute(`refX`),l=this.getAttribute(`refY`),u=this.getAttribute(`viewBox`),d=u.hasValue()?h(u.getString()):null,f=!this.root&&this.getStyle(`overflow`).getValue(`hidden`)!==`visible`,p=0,m=0,g=0,_=0;d&&(p=d[0],m=d[1]),this.root||(o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`),this.type===`marker`&&(g=p,_=m,p=0,m=0)),n.viewPort.setCurrent(o,s),this.node&&(!this.parent||this.node.parentNode?.nodeName===`foreignObject`)&&this.getStyle(`transform`,!1,!0).hasValue()&&!this.getStyle(`transform-origin`,!1,!0).hasValue()&&this.getStyle(`transform-origin`,!0,!0).setValue(`50% 50%`),super.setContext(e),e.translate(this.getAttribute(`x`).getPixels(`x`),this.getAttribute(`y`).getPixels(`y`)),d&&(o=d[2],s=d[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:s,minX:p,minY:m,refX:c.getValue(),refY:l.getValue(),clip:f,clipX:g,clipY:_}),d&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,s))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=this.getAttribute(`width`,!0),i=this.getAttribute(`height`,!0),a=this.getAttribute(`viewBox`),o=this.getAttribute(`style`),s=r.getNumber(0),c=i.getNumber(0);if(n){if(typeof n==`string`)this.getAttribute(`preserveAspectRatio`,!0).setValue(n);else{var l=this.getAttribute(`preserveAspectRatio`);l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,`$1`))}}if(r.setValue(e),i.setValue(t),a.hasValue()||a.setValue(`0 0 ${s||e} ${c||t}`),o.hasValue()){var u=this.getStyle(`width`),d=this.getStyle(`height`);u.hasValue()&&u.setValue(`${e}px`),d.hasValue()&&d.setValue(`${t}px`)}}}class we extends ve{constructor(){super(...arguments),this.type=`rect`}path(e){var t=this.getAttribute(`x`).getPixels(`x`),n=this.getAttribute(`y`).getPixels(`y`),r=this.getStyle(`width`,!1,!0).getPixels(`x`),i=this.getStyle(`height`,!1,!0).getPixels(`y`),a=this.getAttribute(`rx`),o=this.getAttribute(`ry`),s=a.getPixels(`x`),c=o.getPixels(`y`);if(a.hasValue()&&!o.hasValue()&&(c=s),o.hasValue()&&!a.hasValue()&&(s=c),s=Math.min(s,r/2),c=Math.min(c,i/2),e){var l=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+l*s,n,t+r,n+c-l*c,t+r,n+c),e.lineTo(t+r,n+i-c),e.bezierCurveTo(t+r,n+i-c+l*c,t+r-s+l*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-l*s,n+i,t,n+i-c+l*c,t,n+i-c),e.lineTo(t,n+c),e.bezierCurveTo(t,n+c-l*c,t+s-l*s,n,t+s,n),e.closePath())}return new ge(t,n,t+r,n+i)}getMarkers(){return null}}class Te extends ve{constructor(){super(...arguments),this.type=`circle`}path(e){var t=this.getAttribute(`cx`).getPixels(`x`),n=this.getAttribute(`cy`).getPixels(`y`),r=this.getAttribute(`r`).getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,Math.PI*2,!1),e.closePath()),new ge(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class Q extends ve{constructor(){super(...arguments),this.type=`ellipse`}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute(`rx`).getPixels(`x`),r=this.getAttribute(`ry`).getPixels(`y`),i=this.getAttribute(`cx`).getPixels(`x`),a=this.getAttribute(`cy`).getPixels(`y`);return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,a),e.bezierCurveTo(i+n,a+t*r,i+t*n,a+r,i,a+r),e.bezierCurveTo(i-t*n,a+r,i-n,a+t*r,i-n,a),e.bezierCurveTo(i-n,a-t*r,i-t*n,a-r,i,a-r),e.bezierCurveTo(i+t*n,a-r,i+n,a-t*r,i+n,a),e.closePath()),new ge(i-n,a-r,i+n,a+r)}getMarkers(){return null}}class Ee extends ve{constructor(){super(...arguments),this.type=`line`}getPoints(){return[new H(this.getAttribute(`x1`).getPixels(`x`),this.getAttribute(`y1`).getPixels(`y`)),new H(this.getAttribute(`x2`).getPixels(`x`),this.getAttribute(`y2`).getPixels(`y`))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new ge(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class $ extends ve{constructor(e,t,n){super(e,t,n),this.type=`polyline`,this.points=[],this.points=H.parsePath(this.getAttribute(`points`).getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new ge(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class De extends ${constructor(){super(...arguments),this.type=`polygon`}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class Oe extends Y{constructor(){super(...arguments),this.type=`pattern`}createPattern(e,t,n){var r=this.getStyle(`width`).getPixels(`x`,!0),i=this.getStyle(`height`).getPixels(`y`,!0),a=new Ce(this.document,null);a.attributes.viewBox=new B(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),a.attributes.width=new B(this.document,`width`,`${r}px`),a.attributes.height=new B(this.document,`height`,`${i}px`),a.attributes.transform=new B(this.document,`transform`,this.getAttribute(`patternTransform`).getValue()),a.children=this.children;var o=this.document.createCanvas(r,i),s=o.getContext(`2d`),c=this.getAttribute(`x`),l=this.getAttribute(`y`);c.hasValue()&&l.hasValue()&&s.translate(c.getPixels(`x`,!0),l.getPixels(`y`,!0)),n.hasValue()?this.styles[`fill-opacity`]=n:Reflect.deleteProperty(this.styles,`fill-opacity`);for(var u=-1;u<=1;u++)for(var d=-1;d<=1;d++)s.save(),a.attributes.x=new B(this.document,`x`,u*o.width),a.attributes.y=new B(this.document,`y`,d*o.height),a.render(s),s.restore();return e.createPattern(o,`repeat`)}}class ke extends Y{constructor(){super(...arguments),this.type=`marker`}render(e,t,n){if(t){var{x:r,y:i}=t,a=this.getAttribute(`orient`).getString(`auto`),o=this.getAttribute(`markerUnits`).getString(`strokeWidth`);e.translate(r,i),a===`auto`&&e.rotate(n),o===`strokeWidth`&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new Ce(this.document,null);s.type=this.type,s.attributes.viewBox=new B(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),s.attributes.refX=new B(this.document,`refX`,this.getAttribute(`refX`).getValue()),s.attributes.refY=new B(this.document,`refY`,this.getAttribute(`refY`).getValue()),s.attributes.width=new B(this.document,`width`,this.getAttribute(`markerWidth`).getValue()),s.attributes.height=new B(this.document,`height`,this.getAttribute(`markerHeight`).getValue()),s.attributes.overflow=new B(this.document,`overflow`,this.getAttribute(`overflow`).getValue()),s.attributes.fill=new B(this.document,`fill`,this.getAttribute(`fill`).getColor(`black`)),s.attributes.stroke=new B(this.document,`stroke`,this.getAttribute(`stroke`).getValue(`none`)),s.children=this.children,s.render(e),e.restore(),o===`strokeWidth`&&e.scale(1/e.lineWidth,1/e.lineWidth),a===`auto`&&e.rotate(-n),e.translate(-r,-i)}}}class Ae extends Y{constructor(){super(...arguments),this.type=`defs`}render(){}}class je extends _e{constructor(){super(...arguments),this.type=`g`}getBoundingBox(e){var t=new ge;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class Me extends Y{constructor(e,t,n){super(e,t,n),this.attributesToInherit=[`gradientUnits`],this.stops=[];var{stops:r,children:i}=this;i.forEach(e=>{e.type===`stop`&&r.push(e)})}getGradientUnits(){return this.getAttribute(`gradientUnits`).getString(`objectBoundingBox`)}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(e=>{a.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute(`gradientTransform`).hasValue()){var{document:o}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:c}=o.screen,[l]=c.viewPorts,u=new we(o,null);u.attributes.x=new B(o,`x`,-s/3),u.attributes.y=new B(o,`y`,-s/3),u.attributes.width=new B(o,`width`,s),u.attributes.height=new B(o,`height`,s);var d=new je(o,null);d.attributes.transform=new B(o,`transform`,this.getAttribute(`gradientTransform`).getValue()),d.children=[u];var f=new Ce(o,null);f.attributes.x=new B(o,`x`,0),f.attributes.y=new B(o,`y`,0),f.attributes.width=new B(o,`width`,l.width),f.attributes.height=new B(o,`height`,l.height),f.children=[d];var p=o.createCanvas(l.width,l.height),m=p.getContext(`2d`);return m.fillStyle=a,f.render(m),m.createPattern(p,`no-repeat`)}return a}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new B(this.document,`color`,t).addOpacity(e).getColor():t}}class Ne extends Me{constructor(e,t,n){super(e,t,n),this.type=`linearGradient`,this.attributesToInherit.push(`x1`,`y1`,`x2`,`y2`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=n?t.getBoundingBox(e):null;if(n&&!r)return null;!this.getAttribute(`x1`).hasValue()&&!this.getAttribute(`y1`).hasValue()&&!this.getAttribute(`x2`).hasValue()&&!this.getAttribute(`y2`).hasValue()&&(this.getAttribute(`x1`,!0).setValue(0),this.getAttribute(`y1`,!0).setValue(0),this.getAttribute(`x2`,!0).setValue(1),this.getAttribute(`y2`,!0).setValue(0));var i=n?r.x+r.width*this.getAttribute(`x1`).getNumber():this.getAttribute(`x1`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`y1`).getNumber():this.getAttribute(`y1`).getPixels(`y`),o=n?r.x+r.width*this.getAttribute(`x2`).getNumber():this.getAttribute(`x2`).getPixels(`x`),s=n?r.y+r.height*this.getAttribute(`y2`).getNumber():this.getAttribute(`y2`).getPixels(`y`);return i===o&&a===s?null:e.createLinearGradient(i,a,o,s)}}class Pe extends Me{constructor(e,t,n){super(e,t,n),this.type=`radialGradient`,this.attributesToInherit.push(`cx`,`cy`,`r`,`fx`,`fy`,`fr`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute(`cx`).hasValue()||this.getAttribute(`cx`,!0).setValue(`50%`),this.getAttribute(`cy`).hasValue()||this.getAttribute(`cy`,!0).setValue(`50%`),this.getAttribute(`r`).hasValue()||this.getAttribute(`r`,!0).setValue(`50%`);var i=n?r.x+r.width*this.getAttribute(`cx`).getNumber():this.getAttribute(`cx`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`cy`).getNumber():this.getAttribute(`cy`).getPixels(`y`),o=i,s=a;this.getAttribute(`fx`).hasValue()&&(o=n?r.x+r.width*this.getAttribute(`fx`).getNumber():this.getAttribute(`fx`).getPixels(`x`)),this.getAttribute(`fy`).hasValue()&&(s=n?r.y+r.height*this.getAttribute(`fy`).getNumber():this.getAttribute(`fy`).getPixels(`y`));var c=n?(r.width+r.height)/2*this.getAttribute(`r`).getNumber():this.getAttribute(`r`).getPixels(),l=this.getAttribute(`fr`).getPixels();return e.createRadialGradient(o,s,l,i,a,c)}}class Fe extends Y{constructor(e,t,n){super(e,t,n),this.type=`stop`;var r=Math.max(0,Math.min(1,this.getAttribute(`offset`).getNumber())),i=this.getStyle(`stop-opacity`),a=this.getStyle(`stop-color`,!0);a.getString()===``&&a.setValue(`#000`),i.hasValue()&&(a=a.addOpacity(i)),this.offset=r,this.color=a.getColor()}}class Ie extends Y{constructor(e,t,n){super(e,t,n),this.type=`animate`,this.duration=0,this.initialValue=null,this.initialUnits=``,this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute(`begin`).getMilliseconds(),this.maxDuration=this.begin+this.getAttribute(`dur`).getMilliseconds(),this.from=this.getAttribute(`from`),this.to=this.getAttribute(`to`),this.values=new B(e,`values`,null);var r=this.getAttribute(`values`);r.hasValue()&&this.values.setValue(r.getString().split(`;`))}getProperty(){var e=this.getAttribute(`attributeType`).getString(),t=this.getAttribute(`attributeName`).getString();return e===`CSS`?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;return e===`%`&&(i*=100),`${i}${e}`}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute(`fill`).getString(`remove`);if(this.getAttribute(`repeatCount`).getString()===`indefinite`||this.getAttribute(`repeatDur`).getString()===`indefinite`)this.duration=0;else if(r===`freeze`&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(r===`remove`&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute(`type`);o.hasValue()&&(a=`${o.getString()}(${a})`),n.setValue(a),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),a=Math.ceil(r);n.from=new B(e,`from`,parseFloat(t.getValue()[i])),n.to=new B(e,`to`,parseFloat(t.getValue()[a])),n.progress=(r-i)/(a-i)}else n.from=this.from,n.to=this.to;return n}}class Le extends Ie{constructor(){super(...arguments),this.type=`animateColor`}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new o(t.getColor()),i=new o(n.getColor());if(r.ok&&i.ok){var a=r.r+(i.r-r.r)*e,s=r.g+(i.g-r.g)*e,c=r.b+(i.b-r.b)*e;return`rgb(${Math.floor(a)}, ${Math.floor(s)}, ${Math.floor(c)})`}return this.getAttribute(`from`).getColor()}}class Re extends Ie{constructor(){super(...arguments),this.type=`animateTransform`}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=h(t.getString()),i=h(n.getString());return r.map((t,n)=>t+(i[n]-t)*e).join(` `)}}class ze extends Y{constructor(e,t,n){super(e,t,n),this.type=`font`,this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber();var{definitions:r}=e,{children:i}=this;for(var a of i)switch(a.type){case`font-face`:this.fontFace=a;var o=a.getStyle(`font-family`);o.hasValue()&&(r[o.getString()]=this);break;case`missing-glyph`:this.missingGlyph=a;break;case`glyph`:var s=a;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,this.glyphs[s.unicode]===void 0&&(this.glyphs[s.unicode]=Object.create(null)),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s}}render(){}}class Be extends Y{constructor(e,t,n){super(e,t,n),this.type=`font-face`,this.ascent=this.getAttribute(`ascent`).getNumber(),this.descent=this.getAttribute(`descent`).getNumber(),this.unitsPerEm=this.getAttribute(`units-per-em`).getNumber()}}class Ve extends ve{constructor(){super(...arguments),this.type=`missing-glyph`,this.horizAdvX=0}}class He extends be{constructor(){super(...arguments),this.type=`tref`}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return``}}class Ue extends be{constructor(e,t,n){super(e,t,n),this.type=`a`;var{childNodes:r}=t,i=r[0],a=r.length>0&&Array.from(r).every(e=>e.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):``}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,a=new B(t,`fontSize`,he.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new ge(n,r-a.getPixels(`y`),n+this.measureText(e),r))}else if(this.children.length>0){var o=new je(this.document,null);o.children=this.children,o.parent=this,o.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor=`pointer`}}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?We(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class Ke extends be{constructor(e,t,n){super(e,t,n),this.type=`textPath`,this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=/* @__PURE__ */ new Map([[``,0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(t=>{var{type:n,points:r}=t;switch(n){case Z.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case Z.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case Z.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Z.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Z.ARC:var[i,a,o,s,c,l,u,d]=r,f=o>s?o:s,p=o>s?1:o/s,m=o>s?s/o:1;e&&(e.translate(i,a),e.rotate(u),e.scale(p,m),e.arc(0,0,f,c,c+l,!!(1-d)),e.scale(1/p,1/m),e.rotate(-u),e.translate(-i,-a));break;case Z.CLOSE_PATH:e&&e.closePath()}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle(`text-decoration`).getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;t===`underline`&&e.beginPath(),r.forEach((r,i)=>{var{p0:a,p1:o,rotation:s,text:c}=r;e.save(),e.translate(a.x,a.y),e.rotate(s),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t===`underline`&&(i===0&&e.moveTo(a.x,a.y+n/8),e.lineTo(o.x,o.y+n/5))}),t===`underline`&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,a,o,s,c){var l=a,u=this.measureText(e,s);s===` `&&t===`justify`&&n<r&&(u+=(r-n)/i),c>-1&&(l+=this.getLetterSpacingAt(c));var d=this.textHeight/20,f=this.getEquidistantPointOnPath(l,d,0),p=this.getEquidistantPointOnPath(l+u,d,0),m={p0:f,p1:p},h=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(o){var g=Math.cos(Math.PI/2+h)*o,_=Math.cos(-h)*o;m.p0=Ge(Ge({},f),{},{x:f.x+g,y:f.y+_}),m.p1=Ge(Ge({},p),{},{x:p.x+g,y:p.y+_})}return l+=u,{offset:l,segment:m,rotation:h}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(``),r=t.split(` `).length-1,i=this.parent.getAttribute(`dx`).split().map(e=>e.getPixels(`x`)),a=this.parent.getAttribute(`dy`).getPixels(`y`),o=this.parent.getStyle(`text-anchor`).getString(`start`),s=this.getStyle(`letter-spacing`),c=this.parent.getStyle(`letter-spacing`),l=0;!s.hasValue()||s.getValue()===`inherit`?l=c.getPixels():s.hasValue()&&s.getValue()!==`initial`&&s.getValue()!==`unset`&&(l=s.getPixels());var u=[],d=t.length;this.letterSpacingCache=u;for(var f=0;f<d;f++)u.push(i[f]===void 0?l:i[f]);var p=u.reduce((e,t,n)=>n===0?0:e+t||0,0),m=this.measureText(e),h=Math.max(m+p,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),_=this.getStyle(`startOffset`).getNumber(0)*g,v=0;(o===`middle`||o===`center`)&&(v=-h/2),(o===`end`||o===`right`)&&(v=-h),v+=_,n.forEach((t,i)=>{var{offset:s,segment:c,rotation:l}=this.findSegmentToFitChar(e,o,h,g,r,v,a,t,i);v=s,c.p0&&c.p1&&this.glyphInfo.push({text:n[i],p0:c.p0,p1:c.p1,rotation:l})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:r}=n,i=r?r.x:0,a=r?r.y:0,o=n.next(),s=o.type,c=[];switch(o.type){case Z.MOVE_TO:this.pathM(n,c);break;case Z.LINE_TO:s=this.pathL(n,c);break;case Z.HORIZ_LINE_TO:s=this.pathH(n,c);break;case Z.VERT_LINE_TO:s=this.pathV(n,c);break;case Z.CURVE_TO:this.pathC(n,c);break;case Z.SMOOTH_CURVE_TO:s=this.pathS(n,c);break;case Z.QUAD_TO:this.pathQ(n,c);break;case Z.SMOOTH_QUAD_TO:s=this.pathT(n,c);break;case Z.ARC:c=this.pathA(n);break;case Z.CLOSE_PATH:ve.pathZ(n)}o.type===Z.CLOSE_PATH?t.push({type:Z.CLOSE_PATH,points:[],pathLength:0}):t.push({type:s,points:c,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,c)})}return t}pathM(e,t){var{x:n,y:r}=ve.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=ve.pathL(e).point;return t.push(n,r),Z.LINE_TO}pathH(e,t){var{x:n,y:r}=ve.pathH(e).point;return t.push(n,r),Z.LINE_TO}pathV(e,t){var{x:n,y:r}=ve.pathV(e).point;return t.push(n,r),Z.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=ve.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=ve.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),Z.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=ve.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=ve.pathT(e);return t.push(n.x,n.y,r.x,r.y),Z.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:a,a1:o,ad:s}=ve.pathA(e);return r===0&&s>0&&(s-=2*Math.PI),r===1&&s<0&&(s+=2*Math.PI),[a.x,a.y,t,n,o,s,i,r]}calcLength(e,t,n,r){var i=0,a=null,o=null,s=0;switch(n){case Z.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case Z.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Z.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Z.ARC:i=0;var c=r[4],l=r[5],u=r[4]+l,d=Math.PI/180;if(Math.abs(c-u)<d&&(d=Math.abs(c-u)),a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),l<0)for(s=c-d;s>u;s-=d)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=c+d;s<u;s+=d)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),i}return 0}getPointOnLine(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,s=(i-n)/(r-t+k),c=Math.sqrt(e*e/(1+s*s));r<t&&(c*=-1);var l=s*c,u=null;if(r===t)u={x:a,y:o+l};else if((o-n)/(a-t+k)===s)u={x:a+c,y:o+l};else{var d=0,f=0,p=this.getLineLength(t,n,r,i);if(p<k)return null;var m=(a-t)*(r-t)+(o-n)*(i-n);m/=p*p,d=t+m*(r-t),f=n+m*(i-n);var h=this.getLineLength(a,o,d,f),g=Math.sqrt(e*e-h*h);c=Math.sqrt(g*g/(1+s*s)),r<t&&(c*=-1),l=s*c,u={x:d+c,y:f+l}}return u}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||n+a.pathLength+5e-5<e)){n+=a.pathLength;continue}var o=e-n,s=0;switch(a.type){case Z.LINE_TO:r=this.getPointOnLine(o,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Z.ARC:var c=a.points[4],l=a.points[5],u=a.points[4]+l;if(s=c+o/a.pathLength*l,l<0&&s<u||l>=0&&s>u)break;r=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case Z.CURVE_TO:s=o/a.pathLength,s>1&&(s=1),r=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Z.QUAD_TO:s=o/a.pathLength,s>1&&(s=1),r=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(r)return r;break}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,a,o,s,c){return{x:s*N(e)+a*P(e)+r*F(e)+t*I(e),y:c*N(e)+o*P(e)+i*F(e)+n*I(e)}}getPointOnQuadraticBezier(e,t,n,r,i,a,o){return{x:a*L(e)+r*R(e)+t*z(e),y:o*L(e)+i*R(e)+n*z(e)}}getPointOnEllipticalArc(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*o-c.y*s),y:t+(c.x*s+c.y*o)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var a=0,o=0;o<=n;o+=r){var s=this.getPointOnPath(o),c=this.getPointOnPath(o+r);s&&c&&(a+=this.getLineLength(s.x,s.y,c.x,c.y),a>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var qe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Je extends _e{constructor(e,t,n){super(e,t,n),this.type=`image`,this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(`.svg`)||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return(0,r.default)(function*(){try{t.image=yield t.document.createImage(e)}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}loadSvg(e){var t=this;return(0,r.default)(function*(){var n=qe.exec(e);if(n){var r=n[5];t.image=n[4]===`base64`?atob(r):decodeURIComponent(r)}else try{t.image=yield(yield t.document.fetch(e)).text()}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute(`x`).getPixels(`x`),a=this.getAttribute(`y`).getPixels(`y`),o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`);if(r&&n&&o&&s){if(e.save(),e.translate(i,a),this.isSvg){var c=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});c.document.documentElement.parent=this,c.render()}else{var l=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:o,desiredWidth:l.width,height:s,desiredHeight:l.height}),this.loaded&&(l.complete===void 0||l.complete)&&e.drawImage(l,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute(`x`).getPixels(`x`),t=this.getAttribute(`y`).getPixels(`y`),n=this.getStyle(`width`).getPixels(`x`),r=this.getStyle(`height`).getPixels(`y`);return new ge(e,t,e+n,t+r)}}class Ye extends _e{constructor(){super(...arguments),this.type=`symbol`}render(e){}}class Xe{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return(0,r.default)(function*(){try{var{document:r}=n,i=(yield r.canvg.parser.load(t)).getElementsByTagName(`font`);Array.from(i).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(e){console.error(`Error while loading font "${t}":`,e)}n.loaded=!0})()}}class Ze extends Y{constructor(e,t,n){super(e,t,n),this.type=`style`,f(Array.from(t.childNodes).map(e=>e.textContent).join(``).replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,``).replace(/@import.*;/g,``)).split(`}`).forEach(t=>{var n=t.trim();if(n){var r=n.split(`{`),i=r[0].split(`,`),a=r[1].split(`;`);i.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(a.forEach(t=>{var n=t.indexOf(`:`),i=t.substr(0,n).trim(),a=t.substr(n+1,t.length-n).trim();i&&a&&(r[i]=new B(e,i,a))}),e.styles[n]=r,e.stylesSpecificity[n]=O(n),n===`@font-face`){var i=r[`font-family`].getString().replace(/"|'/g,``);r.src.getString().split(`,`).forEach(t=>{if(t.indexOf(`format("svg")`)>0){var n=v(t);n&&new Xe(e).load(i,n)}})}}})}})}}Ze.parseExternalUrl=v;class Qe extends _e{constructor(){super(...arguments),this.type=`use`}setContext(e){super.setContext(e);var t=this.getAttribute(`x`),n=this.getAttribute(`y`);t.hasValue()&&e.translate(t.getPixels(`x`),0),n.hasValue()&&e.translate(0,n.getPixels(`y`))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if(n.type===`symbol`&&(r=new Ce(t,null),r.attributes.viewBox=new B(t,`viewBox`,n.getAttribute(`viewBox`).getString()),r.attributes.preserveAspectRatio=new B(t,`preserveAspectRatio`,n.getAttribute(`preserveAspectRatio`).getString()),r.attributes.overflow=new B(t,`overflow`,n.getAttribute(`overflow`).getString()),r.children=n.children,n.styles.opacity=new B(t,`opacity`,this.calculateOpacity())),r.type===`svg`){var i=this.getStyle(`width`,!1,!0),a=this.getStyle(`height`,!1,!0);i.hasValue()&&(r.attributes.width=new B(t,`width`,i.getString())),a.hasValue()&&(r.attributes.height=new B(t,`height`,a.getString()))}var o=r.parent;r.parent=this,r.render(e),r.parent=o}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return ue.fromElement(e,t)}get element(){return this.cachedElement||=this.getHrefAttribute().getDefinition(),this.cachedElement}}function $e(e,t,n,r,i,a){return e[n*r*4+t*4+a]}function et(e,t,n,r,i,a,o){e[n*r*4+t*4+a]=o}function tt(e,t,n){return e[t]*n}function nt(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class rt extends Y{constructor(e,t,n){super(e,t,n),this.type=`feColorMatrix`;var r=h(this.getAttribute(`values`).getString());switch(this.getAttribute(`type`).getString(`matrix`)){case`saturate`:var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case`hueRotate`:var a=r[0]*Math.PI/180;r=[nt(a,.213,.787,-.213),nt(a,.715,-.715,-.715),nt(a,.072,-.072,.928),0,0,nt(a,.213,-.213,.143),nt(a,.715,.285,.14),nt(a,.072,-.072,-.283),0,0,nt(a,.213,-.213,-.787),nt(a,.715,-.715,.715),nt(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case`luminanceToAlpha`:r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute(`includeOpacity`).hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:a,matrix:o}=this,s=e.getImageData(0,0,r,i),c=0;c<i;c++)for(var l=0;l<r;l++){var u=$e(s.data,l,c,r,i,0),d=$e(s.data,l,c,r,i,1),f=$e(s.data,l,c,r,i,2),p=$e(s.data,l,c,r,i,3),m=tt(o,0,u)+tt(o,1,d)+tt(o,2,f)+tt(o,3,p)+tt(o,4,1),h=tt(o,5,u)+tt(o,6,d)+tt(o,7,f)+tt(o,8,p)+tt(o,9,1),g=tt(o,10,u)+tt(o,11,d)+tt(o,12,f)+tt(o,13,p)+tt(o,14,1),_=tt(o,15,u)+tt(o,16,d)+tt(o,17,f)+tt(o,18,p)+tt(o,19,1);a&&(m=0,h=0,g=0,_*=p/255),et(s.data,l,c,r,i,0,m),et(s.data,l,c,r,i,1,h),et(s.data,l,c,r,i,2,g),et(s.data,l,c,r,i,3,_)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}class it extends Y{constructor(){super(...arguments),this.type=`mask`}apply(e,t){var{document:n}=this,r=this.getAttribute(`x`).getPixels(`x`),i=this.getAttribute(`y`).getPixels(`y`),a=this.getStyle(`width`).getPixels(`x`),o=this.getStyle(`height`).getPixels(`y`);if(!a&&!o){var s=new ge;this.children.forEach(t=>{s.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(s.x1),i=Math.floor(s.y1),a=Math.floor(s.width),o=Math.floor(s.height)}var c=this.removeStyles(t,it.ignoreStyles),l=n.createCanvas(r+a,i+o),u=l.getContext(`2d`);n.screen.setDefaults(u),this.renderChildren(u),new rt(n,{nodeType:1,childNodes:[],attributes:[{nodeName:`type`,value:`luminanceToAlpha`},{nodeName:`includeOpacity`,value:`true`}]}).apply(u,0,0,r+a,i+o);var d=n.createCanvas(r+a,i+o),f=d.getContext(`2d`);n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation=`destination-in`,f.fillStyle=u.createPattern(l,`no-repeat`),f.fillRect(0,0,r+a,i+o),e.fillStyle=f.createPattern(d,`no-repeat`),e.fillRect(0,0,r+a,i+o),this.restoreStyles(t,c)}render(e){}}it.ignoreStyles=[`mask`,`transform`,`clip-path`];var at=()=>{};class ot extends Y{constructor(){super(...arguments),this.type=`clipPath`}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=at,n.closePath=at),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(r.path!==void 0){var a=r.elementTransform===void 0?null:r.elementTransform();a||=ue.fromElement(t,r),a&&a.apply(e),r.path(e),n&&(n.closePath=i),a&&a.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}}class st extends Y{constructor(){super(...arguments),this.type=`filter`}apply(e,t){var{document:n,children:r}=this,i=t.getBoundingBox(e);if(i){var a=0,o=0;r.forEach(e=>{var t=e.extraFilterDistance||0;a=Math.max(a,t),o=Math.max(o,t)});var s=Math.floor(i.width),c=Math.floor(i.height),l=s+2*a,u=c+2*o;if(!(l<1||u<1)){var d=Math.floor(i.x),f=Math.floor(i.y),p=this.removeStyles(t,st.ignoreStyles),m=n.createCanvas(l,u),h=m.getContext(`2d`);n.screen.setDefaults(h),h.translate(-d+a,-f+o),t.render(h),r.forEach(e=>{typeof e.apply==`function`&&e.apply(h,0,0,l,u)}),e.drawImage(m,0,0,l,u,d-a,f-o,l,u),this.restoreStyles(t,p)}}}render(e){}}st.ignoreStyles=[`filter`,`transform`,`clip-path`];class ct extends Y{constructor(e,t,n){super(e,t,n),this.type=`feDropShadow`,this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}}class lt extends Y{constructor(){super(...arguments),this.type=`feMorphology`}apply(e,t,n,r,i){}}class ut extends Y{constructor(){super(...arguments),this.type=`feComposite`}apply(e,t,n,r,i){}}class dt extends Y{constructor(e,t,n){super(e,t,n),this.type=`feGaussianBlur`,this.blurRadius=Math.floor(this.getAttribute(`stdDeviation`).getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:a,blurRadius:o}=this,s=a.window?a.window.document.body:null,l=e.canvas;l.id=a.getUniqueId(),s&&(l.style.display=`none`,s.appendChild(l)),(0,c.canvasRGBA)(l,t,n,r,i,o),s&&s.removeChild(l)}}class ft extends Y{constructor(){super(...arguments),this.type=`title`}}class pt extends Y{constructor(){super(...arguments),this.type=`desc`}}var mt={svg:Ce,rect:we,circle:Te,ellipse:Q,line:Ee,polyline:$,polygon:De,path:ve,pattern:Oe,marker:ke,defs:Ae,linearGradient:Ne,radialGradient:Pe,stop:Fe,animate:Ie,animateColor:Le,animateTransform:Re,font:ze,"font-face":Be,"missing-glyph":Ve,glyph:ye,text:be,tspan:xe,tref:He,a:Ue,textPath:Ke,image:Je,g:je,symbol:Ye,style:Ze,use:Qe,mask:it,clipPath:ot,filter:st,feDropShadow:ct,feMorphology:lt,feComposite:ut,feColorMatrix:rt,feGaussianBlur:dt,title:ft,desc:pt};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ht(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _t(e,t){var n=document.createElement(`canvas`);return n.width=e,n.height=t,n}function vt(e){return yt.apply(this,arguments)}function yt(){return yt=(0,r.default)(function*(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=document.createElement(`img`);return t&&(n.crossOrigin=`Anonymous`),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,a)=>{r(a)},n.src=e})}),yt.apply(this,arguments)}class bt{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=bt.createCanvas,createImage:i=bt.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t==`boolean`?(n,r)=>e(n,typeof r==`boolean`?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return`canvg${++this.uniqueId}`}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,``),n=bt.elementTypes[t];return n===void 0?new de(this,e):new n(this,e)}createTextNode(e){return new Se(this,e)}setViewBox(e){this.screen.setViewBox(gt({document:this},e))}}bt.createCanvas=_t,bt.createImage=vt,bt.elementTypes=mt;function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xt(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class Ct{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new re(n),this.screen=new W(e,n),this.options=n;var r=new bt(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(e,t){var n=arguments;return(0,r.default)(function*(){var r=n.length>2&&n[2]!==void 0?n[2]:{},i=yield new re(r).parse(t);return new Ct(e,i,r)})()}static fromString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=new re(n).parseFromString(t);return new Ct(e,r,n)}fork(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ct.from(e,t,St(St({},this.options),n))}forkString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ct.fromString(e,t,St(St({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return(0,r.default)(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(St({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,St(St({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];this.documentElement.resize(e,t,n)}}}),"./node_modules/core-js/internals/a-callable.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/a-callable.js ***!
\******************************************************/
var r=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),i=n(
/*! ../internals/try-to-string */
`./node_modules/core-js/internals/try-to-string.js`),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a function`)}}),"./node_modules/core-js/internals/a-constructor.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/a-constructor.js ***!
\*********************************************************/
var r=n(
/*! ../internals/is-constructor */
`./node_modules/core-js/internals/is-constructor.js`),i=n(
/*! ../internals/try-to-string */
`./node_modules/core-js/internals/try-to-string.js`),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not a constructor`)}}),"./node_modules/core-js/internals/a-possible-prototype.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
\****************************************************************/
var r=n(
/*! ../internals/is-possible-prototype */
`./node_modules/core-js/internals/is-possible-prototype.js`),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(`Can't set `+i(e)+` as a prototype`)}}),"./node_modules/core-js/internals/a-set.js":(function(e,t,n){
/*!*************************************************!*\
!*** ./node_modules/core-js/internals/a-set.js ***!
\*************************************************/
var r=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).has;e.exports=function(e){return r(e),e}}),"./node_modules/core-js/internals/add-to-unscopables.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/add-to-unscopables.js ***!
\**************************************************************/
var r=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),i=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),a=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f,o=r(`unscopables`),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),"./node_modules/core-js/internals/advance-string-index.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/advance-string-index.js ***!
\****************************************************************/
var r=n(
/*! ../internals/string-multibyte */
`./node_modules/core-js/internals/string-multibyte.js`).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),"./node_modules/core-js/internals/an-instance.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/an-instance.js ***!
\*******************************************************/
var r=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i(`Incorrect invocation`)}}),"./node_modules/core-js/internals/an-object.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/an-object.js ***!
\*****************************************************/
var r=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+` is not an object`)}}),"./node_modules/core-js/internals/array-buffer-non-extensible.js":(function(e,t,n){
/*!***********************************************************************!*\
!*** ./node_modules/core-js/internals/array-buffer-non-extensible.js ***!
\***********************************************************************/
/*! ../internals/fails */
e.exports=n(`./node_modules/core-js/internals/fails.js`)(function(){if(typeof ArrayBuffer==`function`){var e=/* @__PURE__ */ new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})}),"./node_modules/core-js/internals/array-for-each.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/array-for-each.js ***!
\**********************************************************/
var r=n(
/*! ../internals/array-iteration */
`./node_modules/core-js/internals/array-iteration.js`).forEach;
/*! ../internals/array-method-is-strict */
e.exports=n(`./node_modules/core-js/internals/array-method-is-strict.js`)(`forEach`)?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),"./node_modules/core-js/internals/array-from.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/array-from.js ***!
\******************************************************/
var r=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),o=n(
/*! ../internals/call-with-safe-iteration-closing */
`./node_modules/core-js/internals/call-with-safe-iteration-closing.js`),s=n(
/*! ../internals/is-array-iterator-method */
`./node_modules/core-js/internals/is-array-iterator-method.js`),c=n(
/*! ../internals/is-constructor */
`./node_modules/core-js/internals/is-constructor.js`),l=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),u=n(
/*! ../internals/create-property */
`./node_modules/core-js/internals/create-property.js`),d=n(
/*! ../internals/get-iterator */
`./node_modules/core-js/internals/get-iterator.js`),f=n(
/*! ../internals/get-iterator-method */
`./node_modules/core-js/internals/get-iterator-method.js`),p=Array;e.exports=function(e){var t=a(e),n=c(this),m=arguments.length,h=m>1?arguments[1]:void 0,g=h!==void 0;g&&(h=r(h,m>2?arguments[2]:void 0));var _=f(t),v=0,y,b,x,S,C,w;if(_&&!(this===p&&s(_)))for(b=n?new this:[],S=d(t,_),C=S.next;!(x=i(C,S)).done;v++)w=g?o(S,h,[x.value,v],!0):x.value,u(b,v,w);else for(y=l(t),b=n?new this(y):p(y);y>v;v++)w=g?h(t[v],v):t[v],u(b,v,w);return b.length=v,b}}),"./node_modules/core-js/internals/array-includes.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/array-includes.js ***!
\**********************************************************/
var r=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),i=n(
/*! ../internals/to-absolute-index */
`./node_modules/core-js/internals/to-absolute-index.js`),a=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),o=function(e){return function(t,n,o){var s=r(t),c=a(s);if(c===0)return!e&&-1;var l=i(o,c),u;if(e&&n!==n){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),"./node_modules/core-js/internals/array-iteration.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/array-iteration.js ***!
\***********************************************************/
var r=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/indexed-object */
`./node_modules/core-js/internals/indexed-object.js`),o=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),s=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),c=n(
/*! ../internals/array-species-create */
`./node_modules/core-js/internals/array-species-create.js`),l=i([].push),u=function(e){var t=e===1,n=e===2,i=e===3,u=e===4,d=e===6,f=e===7,p=e===5||d;return function(m,h,g,_){for(var v=o(m),y=a(v),b=s(y),x=r(h,g),S=0,C=_||c,w=t?C(m,b):n||f?C(m,0):void 0,T,E;b>S;S++)if((p||S in y)&&(T=y[S],E=x(T,S,v),e)){if(t)w[S]=E;else if(E)switch(e){case 3:return!0;case 5:return T;case 6:return S;case 2:l(w,T)}else switch(e){case 4:return!1;case 7:l(w,T)}}return d?-1:i||u?u:w}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),"./node_modules/core-js/internals/array-method-has-species-support.js":(function(e,t,n){
/*!****************************************************************************!*\
!*** ./node_modules/core-js/internals/array-method-has-species-support.js ***!
\****************************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),a=n(
/*! ../internals/environment-v8-version */
`./node_modules/core-js/internals/environment-v8-version.js`),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),"./node_modules/core-js/internals/array-method-is-strict.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
\******************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}}),"./node_modules/core-js/internals/array-reduce.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/array-reduce.js ***!
\********************************************************/
var r=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),i=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),a=n(
/*! ../internals/indexed-object */
`./node_modules/core-js/internals/indexed-object.js`),o=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),s=TypeError,c=`Reduce of empty array with no initial value`,l=function(e){return function(t,n,l,u){var d=i(t),f=a(d),p=o(d);if(r(n),p===0&&l<2)throw new s(c);var m=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,e?m<0:p<=m)throw new s(c)}for(;e?m>=0:p>m;m+=h)m in f&&(u=n(u,f[m],m,d));return u}};e.exports={left:l(!1),right:l(!0)}}),"./node_modules/core-js/internals/array-slice.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/array-slice.js ***!
\*******************************************************/
/*! ../internals/function-uncurry-this */
e.exports=n(`./node_modules/core-js/internals/function-uncurry-this.js`)([].slice)}),"./node_modules/core-js/internals/array-species-constructor.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/array-species-constructor.js ***!
\*********************************************************************/
var r=n(
/*! ../internals/is-array */
`./node_modules/core-js/internals/is-array.js`),i=n(
/*! ../internals/is-constructor */
`./node_modules/core-js/internals/is-constructor.js`),a=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),o=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`species`),s=Array
/*! ../internals/well-known-symbol */
;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===s||r(t.prototype))?t=void 0:a(t)&&(t=t[o],t===null&&(t=void 0))),t===void 0?s:t}}),"./node_modules/core-js/internals/array-species-create.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/array-species-create.js ***!
\****************************************************************/
var r=n(
/*! ../internals/array-species-constructor */
`./node_modules/core-js/internals/array-species-constructor.js`);e.exports=function(e,t){return new(r(e))(t===0?0:t)}}),"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":(function(e,t,n){
/*!****************************************************************************!*\
!*** ./node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
\****************************************************************************/
var r=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),i=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,`throw`,t)}}}),"./node_modules/core-js/internals/check-correctness-of-iteration.js":(function(e,t,n){
/*!**************************************************************************!*\
!*** ./node_modules/core-js/internals/check-correctness-of-iteration.js ***!
\**************************************************************************/
/*! ../internals/well-known-symbol */
var r=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){try{if(!t&&!i)return!1}catch{return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),"./node_modules/core-js/internals/classof-raw.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/classof-raw.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=r({}.toString),a=r(``.slice);e.exports=function(e){return a(i(e),8,-1)}}),"./node_modules/core-js/internals/classof.js":(function(e,t,n){
/*!***************************************************!*\
!*** ./node_modules/core-js/internals/classof.js ***!
\***************************************************/
var r=n(
/*! ../internals/to-string-tag-support */
`./node_modules/core-js/internals/to-string-tag-support.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),o=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`toStringTag`),s=Object,c=a(function(){
/*! ../internals/well-known-symbol */
return arguments}())===`Arguments`,l=function(e,t){try{return e[t]}catch{}};e.exports=r?a:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=l(t=s(e),o))==`string`?n:c?a(t):(r=a(t))===`Object`&&i(t.callee)?`Arguments`:r}}),"./node_modules/core-js/internals/collection-strong.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/collection-strong.js ***!
\*************************************************************/
var r=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),i=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),a=n(
/*! ../internals/define-built-ins */
`./node_modules/core-js/internals/define-built-ins.js`),o=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),s=n(
/*! ../internals/an-instance */
`./node_modules/core-js/internals/an-instance.js`),c=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),l=n(
/*! ../internals/iterate */
`./node_modules/core-js/internals/iterate.js`),u=n(
/*! ../internals/iterator-define */
`./node_modules/core-js/internals/iterator-define.js`),d=n(
/*! ../internals/create-iter-result-object */
`./node_modules/core-js/internals/create-iter-result-object.js`),f=n(
/*! ../internals/set-species */
`./node_modules/core-js/internals/set-species.js`),p=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),m=n(
/*! ../internals/internal-metadata */
`./node_modules/core-js/internals/internal-metadata.js`).fastKey,h=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),g=h.set,_=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e(function(e,i){s(e,f),g(e,{type:t,index:r(null),first:null,last:null,size:0}),p||(e.size=0),c(i)||l(i,e[u],{that:e,AS_ENTRIES:n})}),f=d.prototype,h=_(t),v=function(e,t,n){var r=h(e),i=y(e,t),a,o;return i?i.value=n:(r.last=i={index:o=m(t,!0),key:t,value:n,previous:a=r.last,next:null,removed:!1},r.first||=i,a&&(a.next=i),p?r.size++:e.size++,o!==`F`&&(r.index[o]=i)),e},y=function(e,t){var n=h(e),r=m(t),i;if(r!==`F`)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===t)return i};return a(f,{clear:function(){for(var e=this,t=h(e),n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;t.first=t.last=null,t.index=r(null),p?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t=h(this),n=o(e,arguments.length>1?arguments[1]:void 0),r;r=r?r.next:t.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!y(this,e)}}),a(f,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,e===0?0:e,t)}}:{add:function(e){return v(this,e=e===0?0:e,e)}}),p&&i(f,`size`,{configurable:!0,get:function(){return h(this).size}}),d},setStrong:function(e,t,n){var r=t+` Iterator`,i=_(t),a=_(r);u(e,t,function(e,t){g(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return!e.target||!(e.last=n=n?n.next:e.state.first)?(e.target=null,d(void 0,!0)):d(t===`keys`?n.key:t===`values`?n.value:[n.key,n.value],!1)},n?`entries`:`values`,!n,!0),f(t)}}}),"./node_modules/core-js/internals/collection.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/collection.js ***!
\******************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),o=n(
/*! ../internals/is-forced */
`./node_modules/core-js/internals/is-forced.js`),s=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),c=n(
/*! ../internals/internal-metadata */
`./node_modules/core-js/internals/internal-metadata.js`),l=n(
/*! ../internals/iterate */
`./node_modules/core-js/internals/iterate.js`),u=n(
/*! ../internals/an-instance */
`./node_modules/core-js/internals/an-instance.js`),d=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),f=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),p=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),m=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),h=n(
/*! ../internals/check-correctness-of-iteration */
`./node_modules/core-js/internals/check-correctness-of-iteration.js`),g=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),_=n(
/*! ../internals/inherit-if-required */
`./node_modules/core-js/internals/inherit-if-required.js`);e.exports=function(e,t,n){var v=e.indexOf(`Map`)!==-1,y=e.indexOf(`Weak`)!==-1,b=v?`set`:`add`,x=i[e],S=x&&x.prototype,C=x,w={},T=function(e){var t=a(S[e]);s(S,e,e===`add`?function(e){return t(this,e===0?0:e),this}:e===`delete`?function(e){return y&&!p(e)?!1:t(this,e===0?0:e)}:e===`get`?function(e){return y&&!p(e)?void 0:t(this,e===0?0:e)}:e===`has`?function(e){return y&&!p(e)?!1:t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(o(e,!d(x)||!(y||S.forEach&&!m(function(){new x().entries().next()}))))C=n.getConstructor(t,e,v,b),c.enable();else if(o(e,!0)){var E=new C,D=E[b](y?{}:-0,1)!==E,O=m(function(){E.has(1)}),k=h(function(e){new x(e)}),A=!y&&m(function(){for(var e=new x,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(C=t(function(e,t){u(e,S);var n=_(new x,e,C);return f(t)||l(t,n[b],{that:n,AS_ENTRIES:v}),n}),C.prototype=S,S.constructor=C),(O||A)&&(T(`delete`),T(`has`),v&&T(`get`)),(A||D)&&T(b),y&&S.clear&&delete S.clear}return w[e]=C,r({global:!0,constructor:!0,forced:C!==x},w),g(C,e),y||n.setStrong(C,e,v),C}}),"./node_modules/core-js/internals/copy-constructor-properties.js":(function(e,t,n){
/*!***********************************************************************!*\
!*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
\***********************************************************************/
var r=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),i=n(
/*! ../internals/own-keys */
`./node_modules/core-js/internals/own-keys.js`),a=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`),o=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`);e.exports=function(e,t,n){for(var s=i(t),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];!r(e,d)&&!(n&&r(n,d))&&c(e,d,l(t,d))}}}),"./node_modules/core-js/internals/correct-is-regexp-logic.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/correct-is-regexp-logic.js ***!
\*******************************************************************/
/*! ../internals/well-known-symbol */
var r=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`match`);e.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[r]=!1,`/./`[e](t)}catch{}}return!1}}),"./node_modules/core-js/internals/correct-prototype-getter.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
\********************************************************************/
/*! ../internals/fails */
e.exports=!n(`./node_modules/core-js/internals/fails.js`)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),"./node_modules/core-js/internals/create-html.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/create-html.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),a=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),o=/"/g,s=r(``.replace);e.exports=function(e,t,n,r){var c=a(i(e)),l=`<`+t;return n!==``&&(l+=` `+n+`="`+s(a(r),o,`"`)+`"`),l+`>`+c+`</`+t+`>`}}),"./node_modules/core-js/internals/create-iter-result-object.js":(function(e){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/create-iter-result-object.js ***!
\*********************************************************************/
e.exports=function(e,t){return{value:e,done:t}}}),"./node_modules/core-js/internals/create-non-enumerable-property.js":(function(e,t,n){
/*!**************************************************************************!*\
!*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
\**************************************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`),a=n(
/*! ../internals/create-property-descriptor */
`./node_modules/core-js/internals/create-property-descriptor.js`);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),"./node_modules/core-js/internals/create-property-descriptor.js":(function(e){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
\**********************************************************************/
e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),"./node_modules/core-js/internals/create-property.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/create-property.js ***!
\***********************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`),a=n(
/*! ../internals/create-property-descriptor */
`./node_modules/core-js/internals/create-property-descriptor.js`);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}}),"./node_modules/core-js/internals/define-built-in-accessor.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/define-built-in-accessor.js ***!
\********************************************************************/
var r=n(
/*! ../internals/make-built-in */
`./node_modules/core-js/internals/make-built-in.js`),i=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}}),"./node_modules/core-js/internals/define-built-in.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/define-built-in.js ***!
\***********************************************************/
var r=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),i=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`),a=n(
/*! ../internals/make-built-in */
`./node_modules/core-js/internals/make-built-in.js`),o=n(
/*! ../internals/define-global-property */
`./node_modules/core-js/internals/define-global-property.js`);e.exports=function(e,t,n,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),"./node_modules/core-js/internals/define-built-ins.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/define-built-ins.js ***!
\************************************************************/
var r=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}}),"./node_modules/core-js/internals/define-global-property.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/define-global-property.js ***!
\******************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}}),"./node_modules/core-js/internals/descriptors.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/descriptors.js ***!
\*******************************************************/
/*! ../internals/fails */
e.exports=!n(`./node_modules/core-js/internals/fails.js`)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),"./node_modules/core-js/internals/document-create-element.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/document-create-element.js ***!
\*******************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),"./node_modules/core-js/internals/does-not-exceed-safe-integer.js":(function(e){
/*!************************************************************************!*\
!*** ./node_modules/core-js/internals/does-not-exceed-safe-integer.js ***!
\************************************************************************/
var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t(`Maximum allowed index exceeded`);return e}}),"./node_modules/core-js/internals/dom-iterables.js":(function(e){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/dom-iterables.js ***!
\*********************************************************/
e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),"./node_modules/core-js/internals/dom-token-list-prototype.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/dom-token-list-prototype.js ***!
\********************************************************************/
/*! ../internals/document-create-element */
var r=n(`./node_modules/core-js/internals/document-create-element.js`)(`span`).classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i}),"./node_modules/core-js/internals/enum-bug-keys.js":(function(e){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
\*********************************************************/
e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),"./node_modules/core-js/internals/environment-is-ios-pebble.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/environment-is-ios-pebble.js ***!
\*********************************************************************/
var r=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`);e.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<`u`}),"./node_modules/core-js/internals/environment-is-ios.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/environment-is-ios.js ***!
\**************************************************************/
var r=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)}),"./node_modules/core-js/internals/environment-is-node.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/internals/environment-is-node.js ***!
\***************************************************************/
/*! ../internals/environment */
e.exports=n(`./node_modules/core-js/internals/environment.js`)===`NODE`}),"./node_modules/core-js/internals/environment-is-webos-webkit.js":(function(e,t,n){
/*!***********************************************************************!*\
!*** ./node_modules/core-js/internals/environment-is-webos-webkit.js ***!
\***********************************************************************/
var r=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`);e.exports=/web0s(?!.*chrome)/i.test(r)}),"./node_modules/core-js/internals/environment-user-agent.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/environment-user-agent.js ***!
\******************************************************************/
/*! ../internals/global-this */
var r=n(`./node_modules/core-js/internals/global-this.js`).navigator,i=r&&r.userAgent;e.exports=i?String(i):``}),"./node_modules/core-js/internals/environment-v8-version.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/environment-v8-version.js ***!
\******************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&i&&(l=i.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=i.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),e.exports=u}),"./node_modules/core-js/internals/environment.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/environment.js ***!
\*******************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`),a=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),o=function(e){return i.slice(0,e.length)===e};e.exports=(function(){return o(`Bun/`)?`BUN`:o(`Cloudflare-Workers`)?`CLOUDFLARE`:o(`Deno/`)?`DENO`:o(`Node.js/`)?`NODE`:r.Bun&&typeof Bun.version==`string`?`BUN`:r.Deno&&typeof Deno.version==`object`?`DENO`:a(r.process)===`process`?`NODE`:r.window&&r.document?`BROWSER`:`REST`})()}),"./node_modules/core-js/internals/export.js":(function(e,t,n){
/*!**************************************************!*\
!*** ./node_modules/core-js/internals/export.js ***!
\**************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`).f,a=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),o=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),s=n(
/*! ../internals/define-global-property */
`./node_modules/core-js/internals/define-global-property.js`),c=n(
/*! ../internals/copy-constructor-properties */
`./node_modules/core-js/internals/copy-constructor-properties.js`),l=n(
/*! ../internals/is-forced */
`./node_modules/core-js/internals/is-forced.js`);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):r[n]&&r[n].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),"./node_modules/core-js/internals/fails.js":(function(e){
/*!*************************************************!*\
!*** ./node_modules/core-js/internals/fails.js ***!
\*************************************************/
e.exports=function(e){try{return!!e()}catch{return!0}}}),"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":(function(e,t,n){
/*!******************************************************************************!*\
!*** ./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js ***!
\******************************************************************************/
n(
/*! ../modules/es.regexp.exec */
`./node_modules/core-js/modules/es.regexp.exec.js`);var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),a=n(
/*! ../internals/regexp-exec */
`./node_modules/core-js/internals/regexp-exec.js`),o=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),s=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),c=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),l=s(`species`),u=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),p=!o(function(){var t={};return t[f]=function(){return 7},``[e](t)!==7}),m=p&&!o(function(){var t=!1,n=/a/;if(e===`split`){var r={};r[l]=function(){return n},n={constructor:r,flags:``},n[f]=/./[f]}return n.exec=function(){return t=!0,null},n[f](``),!t});if(!p||!m||n){var h=/./[f],g=t(f,``[e],function(e,t,n,i,o){var s=t.exec;return s===a||s===u.exec?p&&!o?{done:!0,value:r(h,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,g[0]),i(u,f,g[1])}d&&c(u[f],`sham`,!0)}}),"./node_modules/core-js/internals/freezing.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/internals/freezing.js ***!
\****************************************************/
/*! ../internals/fails */
e.exports=!n(`./node_modules/core-js/internals/fails.js`)(function(){return Object.isExtensible(Object.preventExtensions({}))})}),"./node_modules/core-js/internals/function-apply.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/function-apply.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-bind-native */
`./node_modules/core-js/internals/function-bind-native.js`),i=Function.prototype,a=i.apply,o=i.call;e.exports=typeof Reflect==`object`&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})}),"./node_modules/core-js/internals/function-bind-context.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/function-bind-context.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/function-uncurry-this-clause */
`./node_modules/core-js/internals/function-uncurry-this-clause.js`),i=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),a=n(
/*! ../internals/function-bind-native */
`./node_modules/core-js/internals/function-bind-native.js`),o=r(r.bind);e.exports=function(e,t){return i(e),t===void 0?e:a?o(e,t):function(){return e.apply(t,arguments)}}}),"./node_modules/core-js/internals/function-bind-native.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/function-bind-native.js ***!
\****************************************************************/
/*! ../internals/fails */
e.exports=!n(`./node_modules/core-js/internals/fails.js`)(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})}),"./node_modules/core-js/internals/function-call.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/function-call.js ***!
\*********************************************************/
var r=n(
/*! ../internals/function-bind-native */
`./node_modules/core-js/internals/function-bind-native.js`),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}}),"./node_modules/core-js/internals/function-name.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/function-name.js ***!
\*********************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,`name`);e.exports={EXISTS:s,PROPER:s&&(function(){}).name===`something`,CONFIGURABLE:s&&(!r||r&&o(a,`name`).configurable)}}),"./node_modules/core-js/internals/function-uncurry-this-accessor.js":(function(e,t,n){
/*!**************************************************************************!*\
!*** ./node_modules/core-js/internals/function-uncurry-this-accessor.js ***!
\**************************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}}}),"./node_modules/core-js/internals/function-uncurry-this-clause.js":(function(e,t,n){
/*!************************************************************************!*\
!*** ./node_modules/core-js/internals/function-uncurry-this-clause.js ***!
\************************************************************************/
var r=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`);e.exports=function(e){if(r(e)===`Function`)return i(e)}}),"./node_modules/core-js/internals/function-uncurry-this.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/function-uncurry-this.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/function-bind-native */
`./node_modules/core-js/internals/function-bind-native.js`),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}}),"./node_modules/core-js/internals/get-built-in.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/get-built-in.js ***!
\********************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}}),"./node_modules/core-js/internals/get-iterator-direct.js":(function(e){
/*!***************************************************************!*\
!*** ./node_modules/core-js/internals/get-iterator-direct.js ***!
\***************************************************************/
e.exports=function(e){return{iterator:e,next:e.next,done:!1}}}),"./node_modules/core-js/internals/get-iterator-method.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/internals/get-iterator-method.js ***!
\***************************************************************/
var r=n(
/*! ../internals/classof */
`./node_modules/core-js/internals/classof.js`),i=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),a=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),o=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),s=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`iterator`)
/*! ../internals/well-known-symbol */
;e.exports=function(e){if(!a(e))return i(e,s)||i(e,`@@iterator`)||o[r(e)]}}),"./node_modules/core-js/internals/get-iterator.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/get-iterator.js ***!
\********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),a=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),o=n(
/*! ../internals/try-to-string */
`./node_modules/core-js/internals/try-to-string.js`),s=n(
/*! ../internals/get-iterator-method */
`./node_modules/core-js/internals/get-iterator-method.js`),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new c(o(e)+` is not iterable`)}}),"./node_modules/core-js/internals/get-method.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/get-method.js ***!
\******************************************************/
var r=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),i=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}}),"./node_modules/core-js/internals/get-set-record.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/get-set-record.js ***!
\**********************************************************/
var r=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),i=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),a=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),o=n(
/*! ../internals/to-integer-or-infinity */
`./node_modules/core-js/internals/to-integer-or-infinity.js`),s=n(
/*! ../internals/get-iterator-direct */
`./node_modules/core-js/internals/get-iterator-direct.js`),c=`Invalid size`,l=RangeError,u=TypeError,d=Math.max,f=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(c);var n=o(t);if(n<0)throw new l(c);return new f(e,n)}}),"./node_modules/core-js/internals/get-substitution.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/get-substitution.js ***!
\************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),a=Math.floor,o=r(``.charAt),s=r(``.replace),c=r(``.slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,m=r.length,h=u;return d!==void 0&&(d=i(d),h=l),s(f,h,function(i,s){var l;switch(o(s,0)){case`$`:return`$`;case`&`:return e;case"`":return c(t,0,n);case`'`:return c(t,p);case`<`:l=d[c(s,1,-1)];break;default:var u=+s;if(u===0)return i;if(u>m){var f=a(u/10);return f===0?i:f<=m?r[f-1]===void 0?o(s,1):r[f-1]+o(s,1):i}l=r[u-1]}return l===void 0?``:l})}}),"./node_modules/core-js/internals/global-this.js":(function(e){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/global-this.js ***!
\*******************************************************/
var t=function(e){return e&&e.Math===Math&&e};e.exports=t(typeof globalThis==`object`&&globalThis)||t(typeof window==`object`&&window)||t(typeof self==`object`&&self)||t(typeof global==`object`&&global)||t(typeof this==`object`&&this)||(function(){return this})()||Function(`return this`)()}),"./node_modules/core-js/internals/has-own-property.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/has-own-property.js ***!
\************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}}),"./node_modules/core-js/internals/hidden-keys.js":(function(e){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/hidden-keys.js ***!
\*******************************************************/
e.exports={}}),"./node_modules/core-js/internals/host-report-errors.js":(function(e){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/host-report-errors.js ***!
\**************************************************************/
e.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}}),"./node_modules/core-js/internals/html.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/core-js/internals/html.js ***!
\************************************************/
/*! ../internals/get-built-in */
e.exports=n(`./node_modules/core-js/internals/get-built-in.js`)(`document`,`documentElement`)}),"./node_modules/core-js/internals/ie8-dom-define.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
\**********************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/document-create-element */
`./node_modules/core-js/internals/document-create-element.js`);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),"a",{get:function(){return 7}}).a!==7})}),"./node_modules/core-js/internals/indexed-object.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/indexed-object.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),o=Object,s=r(``.split);e.exports=i(function(){return!o(`z`).propertyIsEnumerable(0)})?function(e){return a(e)===`String`?s(e,``):o(e)}:o}),"./node_modules/core-js/internals/inherit-if-required.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/internals/inherit-if-required.js ***!
\***************************************************************/
var r=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=n(
/*! ../internals/object-set-prototype-of */
`./node_modules/core-js/internals/object-set-prototype-of.js`);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}}),"./node_modules/core-js/internals/inspect-source.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/inspect-source.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/shared-store */
`./node_modules/core-js/internals/shared-store.js`),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource}),"./node_modules/core-js/internals/internal-metadata.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/internal-metadata.js ***!
\*************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/hidden-keys */
`./node_modules/core-js/internals/hidden-keys.js`),o=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),s=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),c=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f,l=n(
/*! ../internals/object-get-own-property-names */
`./node_modules/core-js/internals/object-get-own-property-names.js`),u=n(
/*! ../internals/object-get-own-property-names-external */
`./node_modules/core-js/internals/object-get-own-property-names-external.js`),d=n(
/*! ../internals/object-is-extensible */
`./node_modules/core-js/internals/object-is-extensible.js`),f=n(
/*! ../internals/uid */
`./node_modules/core-js/internals/uid.js`),p=n(
/*! ../internals/freezing */
`./node_modules/core-js/internals/freezing.js`),m=!1,h=f(`meta`),g=0,_=function(e){c(e,h,{value:{objectID:`O`+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},m=!0;var e=l.f,t=i([].splice),n={};n[h]=1,e(n).length&&(l.f=function(n){for(var r=e(n),i=0,a=r.length;i<a;i++)if(r[i]===h){t(r,i,1);break}return r},r({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!o(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!s(e,h)){if(!d(e))return`F`;if(!t)return`E`;_(e)}return e[h].objectID},getWeakData:function(e,t){if(!s(e,h)){if(!d(e))return!0;if(!t)return!1;_(e)}return e[h].weakData},onFreeze:function(e){return p&&m&&d(e)&&!s(e,h)&&_(e),e}};a[h]=!0}),"./node_modules/core-js/internals/internal-state.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/internal-state.js ***!
\**********************************************************/
var r=n(
/*! ../internals/weak-map-basic-detection */
`./node_modules/core-js/internals/weak-map-basic-detection.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),o=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),s=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),c=n(
/*! ../internals/shared-store */
`./node_modules/core-js/internals/shared-store.js`),l=n(
/*! ../internals/shared-key */
`./node_modules/core-js/internals/shared-key.js`),u=n(
/*! ../internals/hidden-keys */
`./node_modules/core-js/internals/hidden-keys.js`),d=`Object already initialized`,f=i.TypeError,p=i.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!a(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(r||c.state){var y=c.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var b=l(`state`);u[b]=!0,m=function(e,t){if(s(e,b))throw new f(d);return t.facade=e,o(e,b,t),t},h=function(e){return s(e,b)?e[b]:{}},g=function(e){return s(e,b)}}e.exports={set:m,get:h,has:g,enforce:_,getterFor:v}}),"./node_modules/core-js/internals/is-array-iterator-method.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/is-array-iterator-method.js ***!
\********************************************************************/
var r=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),i=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),"./node_modules/core-js/internals/is-array.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/internals/is-array.js ***!
\****************************************************/
var r=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`);e.exports=Array.isArray||function(e){return r(e)===`Array`}}),"./node_modules/core-js/internals/is-callable.js":(function(e){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/is-callable.js ***!
\*******************************************************/
var t=typeof document==`object`&&document.all;e.exports=t===void 0&&t!==void 0?function(e){return typeof e==`function`||e===t}:function(e){return typeof e==`function`}}),"./node_modules/core-js/internals/is-constructor.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/is-constructor.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/classof */
`./node_modules/core-js/internals/classof.js`),s=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),c=n(
/*! ../internals/inspect-source */
`./node_modules/core-js/internals/inspect-source.js`),l=function(){},u=s(`Reflect`,`construct`),d=/^\s*(?:class|function)\b/,f=r(d.exec),p=!d.test(l),m=function(e){if(!a(e))return!1;try{return u(l,[],e),!0}catch{return!1}},h=function(e){if(!a(e))return!1;switch(o(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return p||!!f(d,c(e))}catch{return!0}};h.sham=!0,e.exports=!u||i(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?h:m}),"./node_modules/core-js/internals/is-forced.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/is-forced.js ***!
\*****************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n===u?!0:n===l?!1:i(t)?r(t):!!t},s=o.normalize=function(e){return String(e).replace(a,`.`).toLowerCase()},c=o.data={},l=o.NATIVE=`N`,u=o.POLYFILL=`P`;e.exports=o}),"./node_modules/core-js/internals/is-iterable.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/is-iterable.js ***!
\*******************************************************/
var r=n(
/*! ../internals/classof */
`./node_modules/core-js/internals/classof.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),o=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),s=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),c=o(`iterator`),l=Object;e.exports=function(e){if(a(e))return!1;var t=l(e);return t[c]!==void 0||`@@iterator`in t||i(s,r(t))}}),"./node_modules/core-js/internals/is-null-or-undefined.js":(function(e){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/is-null-or-undefined.js ***!
\****************************************************************/
e.exports=function(e){return e==null}}),"./node_modules/core-js/internals/is-object.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/is-object.js ***!
\*****************************************************/
var r=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`);e.exports=function(e){return typeof e==`object`?e!==null:r(e)}}),"./node_modules/core-js/internals/is-possible-prototype.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/is-possible-prototype.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`);e.exports=function(e){return r(e)||e===null}}),"./node_modules/core-js/internals/is-pure.js":(function(e){
/*!***************************************************!*\
!*** ./node_modules/core-js/internals/is-pure.js ***!
\***************************************************/
e.exports=!1}),"./node_modules/core-js/internals/is-raw-json.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/is-raw-json.js ***!
\*******************************************************/
var r=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),i=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&t.type===`RawJSON`}}),"./node_modules/core-js/internals/is-regexp.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/is-regexp.js ***!
\*****************************************************/
var r=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),i=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),a=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`match`)
/*! ../internals/well-known-symbol */
;e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)===`RegExp`:!!t)}}),"./node_modules/core-js/internals/is-symbol.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/is-symbol.js ***!
\*****************************************************/
var r=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),o=n(
/*! ../internals/use-symbol-as-uid */
`./node_modules/core-js/internals/use-symbol-as-uid.js`),s=Object;e.exports=o?function(e){return typeof e==`symbol`}:function(e){var t=r(`Symbol`);return i(t)&&a(t.prototype,s(e))}}),"./node_modules/core-js/internals/iterate-simple.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/iterate-simple.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`);e.exports=function(e,t,n){for(var i=n?e:e.iterator,a=e.next,o,s;!(o=r(a,i)).done;)if(s=t(o.value),s!==void 0)return s}}),"./node_modules/core-js/internals/iterate.js":(function(e,t,n){
/*!***************************************************!*\
!*** ./node_modules/core-js/internals/iterate.js ***!
\***************************************************/
var r=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),o=n(
/*! ../internals/try-to-string */
`./node_modules/core-js/internals/try-to-string.js`),s=n(
/*! ../internals/is-array-iterator-method */
`./node_modules/core-js/internals/is-array-iterator-method.js`),c=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),l=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),u=n(
/*! ../internals/get-iterator */
`./node_modules/core-js/internals/get-iterator.js`),d=n(
/*! ../internals/get-iterator-method */
`./node_modules/core-js/internals/get-iterator-method.js`),f=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,n){var g=n&&n.that,_=!!(n&&n.AS_ENTRIES),v=!!(n&&n.IS_RECORD),y=!!(n&&n.IS_ITERATOR),b=!!(n&&n.INTERRUPTED),x=r(t,g),S,C,w,T,E,D,O,k=function(e){return S&&f(S,`normal`),new m(!0,e)},A=function(e){return _?(a(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=d(e),!C)throw new p(o(e)+` is not iterable`);if(s(C)){for(w=0,T=c(e);T>w;w++)if(E=A(e[w]),E&&l(h,E))return E;return new m(!1)}S=u(e,C)}for(D=v?e.next:S.next;!(O=i(D,S)).done;){try{E=A(O.value)}catch(e){f(S,`throw`,e)}if(typeof E==`object`&&E&&l(h,E))return E}return new m(!1)}}),"./node_modules/core-js/internals/iterator-close-all.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/iterator-close-all.js ***!
\**************************************************************/
var r=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(e[i]!==void 0)try{n=r(e[i].iterator,t,n)}catch(e){t=`throw`,n=e}if(t===`throw`)throw n;return n}}),"./node_modules/core-js/internals/iterator-close.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/iterator-close.js ***!
\**********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),a=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`);e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,`return`),!o){if(t===`throw`)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw n;if(s)throw o;return i(o),n}}),"./node_modules/core-js/internals/iterator-create-constructor.js":(function(e,t,n){
/*!***********************************************************************!*\
!*** ./node_modules/core-js/internals/iterator-create-constructor.js ***!
\***********************************************************************/
var r=n(
/*! ../internals/iterators-core */
`./node_modules/core-js/internals/iterators-core.js`).IteratorPrototype,i=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),a=n(
/*! ../internals/create-property-descriptor */
`./node_modules/core-js/internals/create-property-descriptor.js`),o=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),s=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),c=function(){return this};e.exports=function(e,t,n,l){var u=t+` Iterator`;return e.prototype=i(r,{next:a(+!l,n)}),o(e,u,!1,!0),s[u]=c,e}}),"./node_modules/core-js/internals/iterator-create-proxy.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/iterator-create-proxy.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),a=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),o=n(
/*! ../internals/define-built-ins */
`./node_modules/core-js/internals/define-built-ins.js`),s=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),c=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),l=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),u=n(
/*! ../internals/iterators-core */
`./node_modules/core-js/internals/iterators-core.js`).IteratorPrototype,d=n(
/*! ../internals/create-iter-result-object */
`./node_modules/core-js/internals/create-iter-result-object.js`),f=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`),p=n(
/*! ../internals/iterator-close-all */
`./node_modules/core-js/internals/iterator-close-all.js`),m=s(`toStringTag`),h=`IteratorHelper`,g=`WrapForValidIterator`,_=`normal`,v=`throw`,y=c.set,b=function(e){var t=c.getterFor(e?g:h);return o(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var a=l(i,`return`);return a?r(a,i):d(void 0,!0)}if(n.inner)try{f(n.inner.iterator,_)}catch(e){return f(i,v,e)}if(n.openIters)try{p(n.openIters,_)}catch(e){return f(i,v,e)}return i&&f(i,_),d(void 0,!0)}})},x=b(!0),S=b(!1);a(S,m,`Iterator Helper`),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?g:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,y(this,i)};return r.prototype=t?x:S,r}}),"./node_modules/core-js/internals/iterator-define.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/iterator-define.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),o=n(
/*! ../internals/function-name */
`./node_modules/core-js/internals/function-name.js`),s=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),c=n(
/*! ../internals/iterator-create-constructor */
`./node_modules/core-js/internals/iterator-create-constructor.js`),l=n(
/*! ../internals/object-get-prototype-of */
`./node_modules/core-js/internals/object-get-prototype-of.js`),u=n(
/*! ../internals/object-set-prototype-of */
`./node_modules/core-js/internals/object-set-prototype-of.js`),d=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),f=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),p=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),m=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),h=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),g=n(
/*! ../internals/iterators-core */
`./node_modules/core-js/internals/iterators-core.js`),_=o.PROPER,v=o.CONFIGURABLE,y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=m(`iterator`),S=`keys`,C=`values`,w=`entries`,T=function(){return this};e.exports=function(e,t,n,o,m,g,E){c(n,t,o);var D=function(e){if(e===m&&M)return M;if(!b&&e&&e in A)return A[e];switch(e){case S:return function(){return new n(this,e)};case C:return function(){return new n(this,e)};case w:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[x]||A[`@@iterator`]||m&&A[m],M=!b&&j||D(m),N=t===`Array`&&A.entries||j,P,F,I;if(N&&(P=l(N.call(new e)),P!==Object.prototype&&P.next&&(!a&&l(P)!==y&&(u?u(P,y):s(P[x])||p(P,x,T)),d(P,O,!0,!0),a&&(h[O]=T))),_&&m===C&&j&&j.name!==C&&(!a&&v?f(A,`name`,C):(k=!0,M=function(){return i(j,this)})),m){if(F={values:D(C),keys:g?M:D(S),entries:D(w)},E)for(I in F)(b||k||!(I in A))&&p(A,I,F[I]);else r({target:t,proto:!0,forced:b||k},F)}return(!a||E)&&A[x]!==M&&p(A,x,M,{name:m}),h[t]=M,F}}),"./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js":(function(e){
/*!**************************************************************************************!*\
!*** ./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js ***!
\**************************************************************************************/
e.exports=function(e,t){var n=typeof Iterator==`function`&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch{return!0}}}),"./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js":(function(e,t,n){
/*!******************************************************************************************!*\
!*** ./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js ***!
\******************************************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,a=i&&i[e],o=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return a}}),"./node_modules/core-js/internals/iterators-core.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/iterators-core.js ***!
\**********************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),o=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),s=n(
/*! ../internals/object-get-prototype-of */
`./node_modules/core-js/internals/object-get-prototype-of.js`),c=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),l=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),u=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),d=l(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=s(s(h)),m!==Object.prototype&&(p=m)):f=!0),!a(p)||r(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=o(p)),i(p[d])||c(p,d,function(){return this}),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}}),"./node_modules/core-js/internals/iterators.js":(function(e){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/iterators.js ***!
\*****************************************************/
e.exports={}}),"./node_modules/core-js/internals/length-of-array-like.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/length-of-array-like.js ***!
\****************************************************************/
var r=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`);e.exports=function(e){return r(e.length)}}),"./node_modules/core-js/internals/make-built-in.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/make-built-in.js ***!
\*********************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),s=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),c=n(
/*! ../internals/function-name */
`./node_modules/core-js/internals/function-name.js`).CONFIGURABLE,l=n(
/*! ../internals/inspect-source */
`./node_modules/core-js/internals/inspect-source.js`),u=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),d=u.enforce,f=u.get,p=String,m=Object.defineProperty,h=r(``.slice),g=r(``.replace),_=r([].join),v=s&&!i(function(){return m(function(){},`length`,{value:8}).length!==8}),y=String(String).split(`String`),b=e.exports=function(e,t,n){h(p(t),0,7)===`Symbol(`&&(t=`[`+g(p(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!o(e,`name`)||c&&e.name!==t)&&(s?m(e,`name`,{value:t,configurable:!0}):e.name=t),v&&n&&o(n,`arity`)&&e.length!==n.arity&&m(e,`length`,{value:n.arity});try{n&&o(n,`constructor`)&&n.constructor?s&&m(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=d(e);return o(r,`source`)||(r.source=_(y,typeof t==`string`?t:``)),e};Function.prototype.toString=b(function(){return a(this)&&f(this).source||l(this)},`toString`)}),"./node_modules/core-js/internals/math-trunc.js":(function(e){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/math-trunc.js ***!
\******************************************************/
var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}}),"./node_modules/core-js/internals/microtask.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/microtask.js ***!
\*****************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/safe-get-built-in */
`./node_modules/core-js/internals/safe-get-built-in.js`),a=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),o=n(
/*! ../internals/task */
`./node_modules/core-js/internals/task.js`).set,s=n(
/*! ../internals/queue */
`./node_modules/core-js/internals/queue.js`),c=n(
/*! ../internals/environment-is-ios */
`./node_modules/core-js/internals/environment-is-ios.js`),l=n(
/*! ../internals/environment-is-ios-pebble */
`./node_modules/core-js/internals/environment-is-ios-pebble.js`),u=n(
/*! ../internals/environment-is-webos-webkit */
`./node_modules/core-js/internals/environment-is-webos-webkit.js`),d=n(
/*! ../internals/environment-is-node */
`./node_modules/core-js/internals/environment-is-node.js`),f=r.MutationObserver||r.WebKitMutationObserver,p=r.document,m=r.process,h=r.Promise,g=i(`queueMicrotask`),_,v,y,b,x;if(!g){var S=new s,C=function(){var e,t;for(d&&(e=m.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&_(),e}e&&e.enter()};!c&&!d&&!u&&f&&p?(v=!0,y=p.createTextNode(``),new f(C).observe(y,{characterData:!0}),_=function(){y.data=v=!v}):!l&&h&&h.resolve?(b=h.resolve(void 0),b.constructor=h,x=a(b.then,b),_=function(){x(C)}):d?_=function(){m.nextTick(C)}:(o=a(o,r),_=function(){o(C)}),g=function(e){S.head||_(),S.add(e)}}e.exports=g}),"./node_modules/core-js/internals/native-raw-json.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/native-raw-json.js ***!
\***********************************************************/
/*! ../internals/fails */
e.exports=!n(`./node_modules/core-js/internals/fails.js`)(function(){var e=`9007199254740993`,t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}),"./node_modules/core-js/internals/new-promise-capability.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/new-promise-capability.js ***!
\******************************************************************/
var r=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(t!==void 0||n!==void 0)throw new i(`Bad Promise constructor`);t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}}),"./node_modules/core-js/internals/not-a-regexp.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/not-a-regexp.js ***!
\********************************************************/
var r=n(
/*! ../internals/is-regexp */
`./node_modules/core-js/internals/is-regexp.js`),i=TypeError;e.exports=function(e){if(r(e))throw new i(`The method doesn't accept regular expressions`);return e}}),"./node_modules/core-js/internals/object-assign.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/object-assign.js ***!
\*********************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),o=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),s=n(
/*! ../internals/object-keys */
`./node_modules/core-js/internals/object-keys.js`),c=n(
/*! ../internals/object-get-own-property-symbols */
`./node_modules/core-js/internals/object-get-own-property-symbols.js`),l=n(
/*! ../internals/object-property-is-enumerable */
`./node_modules/core-js/internals/object-property-is-enumerable.js`),u=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),d=n(
/*! ../internals/indexed-object */
`./node_modules/core-js/internals/indexed-object.js`),f=Object.assign,p=Object.defineProperty,m=i([].concat);e.exports=!f||o(function(){if(r&&f({b:1},f(p({},`a`,{enumerable:!0,get:function(){p(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[n]=7,i.split(``).forEach(function(e){t[e]=e}),f({},e)[n]!==7||s(f({},t)).join(``)!==i})?function(e,t){for(var n=u(e),i=arguments.length,o=1,f=c.f,p=l.f;i>o;)for(var h=d(arguments[o++]),g=f?m(s(h),f(h)):s(h),_=g.length,v=0,y;_>v;)y=g[v++],(!r||a(p,h,y))&&(n[y]=h[y]);return n}:f}),"./node_modules/core-js/internals/object-create.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/object-create.js ***!
\*********************************************************/
var r=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),i=n(
/*! ../internals/object-define-properties */
`./node_modules/core-js/internals/object-define-properties.js`),a=n(
/*! ../internals/enum-bug-keys */
`./node_modules/core-js/internals/enum-bug-keys.js`),o=n(
/*! ../internals/hidden-keys */
`./node_modules/core-js/internals/hidden-keys.js`),s=n(
/*! ../internals/html */
`./node_modules/core-js/internals/html.js`),c=n(
/*! ../internals/document-create-element */
`./node_modules/core-js/internals/document-create-element.js`),l=n(
/*! ../internals/shared-key */
`./node_modules/core-js/internals/shared-key.js`),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=new ActiveXObject(`htmlfile`)}catch{}b=typeof document<`u`?document.domain&&y?_(y):v():_(y);for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i.f(n,t)}}),"./node_modules/core-js/internals/object-define-properties.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/object-define-properties.js ***!
\********************************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/v8-prototype-define-bug */
`./node_modules/core-js/internals/v8-prototype-define-bug.js`),a=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),c=n(
/*! ../internals/object-keys */
`./node_modules/core-js/internals/object-keys.js`);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n=s(t),r=c(t),i=r.length,l=0,u;i>l;)a.f(e,u=r[l++],n[u]);return e}}),"./node_modules/core-js/internals/object-define-property.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/object-define-property.js ***!
\******************************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/ie8-dom-define */
`./node_modules/core-js/internals/ie8-dom-define.js`),a=n(
/*! ../internals/v8-prototype-define-bug */
`./node_modules/core-js/internals/v8-prototype-define-bug.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/to-property-key */
`./node_modules/core-js/internals/to-property-key.js`),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=`enumerable`,f=`configurable`,p=`writable`;t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),typeof e==`function`&&t===`prototype`&&`value`in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return l(e,t,n)}catch{}if(`get`in n||`set`in n)throw new c(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),"./node_modules/core-js/internals/object-get-own-property-descriptor.js":(function(e,t,n){
/*!******************************************************************************!*\
!*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
\******************************************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/object-property-is-enumerable */
`./node_modules/core-js/internals/object-property-is-enumerable.js`),o=n(
/*! ../internals/create-property-descriptor */
`./node_modules/core-js/internals/create-property-descriptor.js`),s=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),c=n(
/*! ../internals/to-property-key */
`./node_modules/core-js/internals/to-property-key.js`),l=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),u=n(
/*! ../internals/ie8-dom-define */
`./node_modules/core-js/internals/ie8-dom-define.js`),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch{}if(l(e,t))return o(!i(a.f,e,t),e[t])}}),"./node_modules/core-js/internals/object-get-own-property-names-external.js":(function(e,t,n){
/*!**********************************************************************************!*\
!*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***!
\**********************************************************************************/
var r=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),i=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),a=n(
/*! ../internals/object-get-own-property-names */
`./node_modules/core-js/internals/object-get-own-property-names.js`).f,o=n(
/*! ../internals/array-slice */
`./node_modules/core-js/internals/array-slice.js`),s=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return a(e)}catch{return o(s)}};e.exports.f=function(e){return s&&r(e)===`Window`?c(e):a(i(e))}}),"./node_modules/core-js/internals/object-get-own-property-names.js":(function(e,t,n){
/*!*************************************************************************!*\
!*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
\*************************************************************************/
var r=n(
/*! ../internals/object-keys-internal */
`./node_modules/core-js/internals/object-keys-internal.js`),i=n(`./node_modules/core-js/internals/enum-bug-keys.js`).concat(`length`,`prototype`)
/*! ../internals/enum-bug-keys */
;t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),"./node_modules/core-js/internals/object-get-own-property-symbols.js":(function(e,t){
/*!***************************************************************************!*\
!*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
\***************************************************************************/
t.f=Object.getOwnPropertySymbols}),"./node_modules/core-js/internals/object-get-prototype-of.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
\*******************************************************************/
var r=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),o=n(
/*! ../internals/shared-key */
`./node_modules/core-js/internals/shared-key.js`),s=n(
/*! ../internals/correct-prototype-getter */
`./node_modules/core-js/internals/correct-prototype-getter.js`),c=o(`IE_PROTO`),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}}),"./node_modules/core-js/internals/object-is-extensible.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/object-is-extensible.js ***!
\****************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),o=n(
/*! ../internals/array-buffer-non-extensible */
`./node_modules/core-js/internals/array-buffer-non-extensible.js`),s=Object.isExtensible;e.exports=r(function(){s(1)})||o?function(e){return!i(e)||o&&a(e)===`ArrayBuffer`?!1:!s||s(e)}:s}),"./node_modules/core-js/internals/object-is-prototype-of.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/object-is-prototype-of.js ***!
\******************************************************************/
/*! ../internals/function-uncurry-this */
e.exports=n(`./node_modules/core-js/internals/function-uncurry-this.js`)({}.isPrototypeOf)}),"./node_modules/core-js/internals/object-keys-internal.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/object-keys-internal.js ***!
\****************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),o=n(
/*! ../internals/array-includes */
`./node_modules/core-js/internals/array-includes.js`).indexOf,s=n(
/*! ../internals/hidden-keys */
`./node_modules/core-js/internals/hidden-keys.js`),c=r([].push);e.exports=function(e,t){var n=a(e),r=0,l=[],u;for(u in n)!i(s,u)&&i(n,u)&&c(l,u);for(;t.length>r;)i(n,u=t[r++])&&(~o(l,u)||c(l,u));return l}}),"./node_modules/core-js/internals/object-keys.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/object-keys.js ***!
\*******************************************************/
var r=n(
/*! ../internals/object-keys-internal */
`./node_modules/core-js/internals/object-keys-internal.js`),i=n(
/*! ../internals/enum-bug-keys */
`./node_modules/core-js/internals/enum-bug-keys.js`);e.exports=Object.keys||function(e){return r(e,i)}}),"./node_modules/core-js/internals/object-property-is-enumerable.js":(function(e,t){
/*!*************************************************************************!*\
!*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
\*************************************************************************/
var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n}),"./node_modules/core-js/internals/object-set-prototype-of.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
\*******************************************************************/
var r=n(
/*! ../internals/function-uncurry-this-accessor */
`./node_modules/core-js/internals/function-uncurry-this-accessor.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),o=n(
/*! ../internals/a-possible-prototype */
`./node_modules/core-js/internals/a-possible-prototype.js`);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=r(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return a(t),o(r),i(t)&&(e?n(t,r):t.__proto__=r),t}}():void 0)}),"./node_modules/core-js/internals/object-to-string.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/object-to-string.js ***!
\************************************************************/
var r=n(
/*! ../internals/to-string-tag-support */
`./node_modules/core-js/internals/to-string-tag-support.js`),i=n(
/*! ../internals/classof */
`./node_modules/core-js/internals/classof.js`);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),"./node_modules/core-js/internals/ordinary-to-primitive.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),o=TypeError;e.exports=function(e,t){var n,s;if(t===`string`&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||t!==`string`&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o(`Can't convert object to primitive value`)}}),"./node_modules/core-js/internals/own-keys.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/internals/own-keys.js ***!
\****************************************************/
var r=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/object-get-own-property-names */
`./node_modules/core-js/internals/object-get-own-property-names.js`),o=n(
/*! ../internals/object-get-own-property-symbols */
`./node_modules/core-js/internals/object-get-own-property-symbols.js`),s=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),c=i([].concat);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}}),"./node_modules/core-js/internals/parse-json-string.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/parse-json-string.js ***!
\*************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=SyntaxError,o=parseInt,s=String.fromCharCode,c=r(``.charAt),l=r(``.slice),u=r(/./.exec),d={'\\"':`"`,"\\\\":`\\`,"\\/":`/`,"\\b":`\b`,"\\f":`\f`,"\\n":`
`,"\\r":`\r`,"\\t":` `},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r=``;t<e.length;){var m=c(e,t);if(m===`\\`){var h=l(e,t,t+2);if(i(d,h))r+=d[h],t+=2;else if(h===`\\u`){t+=2;var g=l(e,t,t+4);if(!u(f,g))throw new a(`Bad Unicode escape at: `+t);r+=s(o(g,16)),t+=4}else throw new a(`Unknown escape sequence: "`+h+`"`)}else if(m===`"`){n=!1,t++;break}else{if(u(p,m))throw new a(`Bad control character in string literal at: `+t);r+=m,t++}}if(n)throw new a(`Unterminated string at: `+t);return{value:r,end:t}}}),"./node_modules/core-js/internals/path.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/core-js/internals/path.js ***!
\************************************************/
/*! ../internals/global-this */
e.exports=n(`./node_modules/core-js/internals/global-this.js`)}),"./node_modules/core-js/internals/perform.js":(function(e){
/*!***************************************************!*\
!*** ./node_modules/core-js/internals/perform.js ***!
\***************************************************/
e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}}),"./node_modules/core-js/internals/promise-constructor-detection.js":(function(e,t,n){
/*!*************************************************************************!*\
!*** ./node_modules/core-js/internals/promise-constructor-detection.js ***!
\*************************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/promise-native-constructor */
`./node_modules/core-js/internals/promise-native-constructor.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/is-forced */
`./node_modules/core-js/internals/is-forced.js`),s=n(
/*! ../internals/inspect-source */
`./node_modules/core-js/internals/inspect-source.js`),c=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),l=n(
/*! ../internals/environment */
`./node_modules/core-js/internals/environment.js`),u=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),d=n(
/*! ../internals/environment-v8-version */
`./node_modules/core-js/internals/environment-v8-version.js`),f=i&&i.prototype,p=c(`species`),m=!1,h=a(r.PromiseRejectionEvent);e.exports={CONSTRUCTOR:o(`Promise`,function(){var e=s(i),t=e!==String(i);if(!t&&d===66||u&&!(f.catch&&f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})},a=n.constructor={};if(a[p]=r,m=n.then(function(){})instanceof r,!m)return!0}return!t&&(l===`BROWSER`||l===`DENO`)&&!h}),REJECTION_EVENT:h,SUBCLASSING:m}}),"./node_modules/core-js/internals/promise-native-constructor.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/internals/promise-native-constructor.js ***!
\**********************************************************************/
/*! ../internals/global-this */
e.exports=n(`./node_modules/core-js/internals/global-this.js`).Promise}),"./node_modules/core-js/internals/promise-resolve.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/promise-resolve.js ***!
\***********************************************************/
var r=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=n(
/*! ../internals/new-promise-capability */
`./node_modules/core-js/internals/new-promise-capability.js`);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}}),"./node_modules/core-js/internals/promise-statics-incorrect-iteration.js":(function(e,t,n){
/*!*******************************************************************************!*\
!*** ./node_modules/core-js/internals/promise-statics-incorrect-iteration.js ***!
\*******************************************************************************/
var r=n(
/*! ../internals/promise-native-constructor */
`./node_modules/core-js/internals/promise-native-constructor.js`),i=n(
/*! ../internals/check-correctness-of-iteration */
`./node_modules/core-js/internals/check-correctness-of-iteration.js`);
/*! ../internals/promise-constructor-detection */
e.exports=n(`./node_modules/core-js/internals/promise-constructor-detection.js`).CONSTRUCTOR||!i(function(e){r.all(e).then(void 0,function(){})})}),"./node_modules/core-js/internals/queue.js":(function(e){
/*!*************************************************!*\
!*** ./node_modules/core-js/internals/queue.js ***!
\*************************************************/
var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},e.exports=t}),"./node_modules/core-js/internals/regexp-exec-abstract.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-exec-abstract.js ***!
\****************************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),s=n(
/*! ../internals/regexp-exec */
`./node_modules/core-js/internals/regexp-exec.js`),c=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var l=r(n,e,t);return l!==null&&i(l),l}if(o(e)===`RegExp`)return r(s,e,t);throw new c(`RegExp#exec called on incompatible receiver`)}}),"./node_modules/core-js/internals/regexp-exec.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/regexp-exec.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),o=n(
/*! ../internals/regexp-flags */
`./node_modules/core-js/internals/regexp-flags.js`),s=n(
/*! ../internals/regexp-sticky-helpers */
`./node_modules/core-js/internals/regexp-sticky-helpers.js`),c=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),l=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),u=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`).get,d=n(
/*! ../internals/regexp-unsupported-dot-all */
`./node_modules/core-js/internals/regexp-unsupported-dot-all.js`),f=n(
/*! ../internals/regexp-unsupported-ncg */
`./node_modules/core-js/internals/regexp-unsupported-ncg.js`),p=c(`native-string-replace`,String.prototype.replace),m=RegExp.prototype.exec,h=m,g=i(``.charAt),_=i(``.indexOf),v=i(``.replace),y=i(``.slice),b=(function(){var e=/a/,t=/b*/g;return r(m,e,`a`),r(m,t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),x=s.BROKEN_CARET,S=/()??/.exec(``)[1]!==void 0;(b||S||x||d||f)&&(h=function(e){var t=this,n=u(t),i=a(e),s=n.raw,c,d,f,C,w,T,E;if(s)return s.lastIndex=t.lastIndex,c=r(h,s,i),t.lastIndex=s.lastIndex,c;var D=n.groups,O=x&&t.sticky,k=r(o,t),A=t.source,j=0,M=i;if(O&&(k=v(k,`y`,``),_(k,`g`)===-1&&(k+=`g`),M=y(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&g(i,t.lastIndex-1)!==`
`)&&(A=`(?: `+A+`)`,M=` `+M,j++),d=RegExp(`^(?:`+A+`)`,k)),S&&(d=RegExp(`^`+A+`$(?!\\s)`,k)),b&&(f=t.lastIndex),C=r(m,O?d:t,M),O?C?(C.input=y(C.input,j),C[0]=y(C[0],j),C.index=t.lastIndex,t.lastIndex+=C[0].length):t.lastIndex=0:b&&C&&(t.lastIndex=t.global?C.index+C[0].length:f),S&&C&&C.length>1&&r(p,C[0],d,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&D)for(C.groups=T=l(null),w=0;w<D.length;w++)E=D[w],T[E[0]]=C[E[1]];return C}),e.exports=h}),"./node_modules/core-js/internals/regexp-flags-detection.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-flags-detection.js ***!
\******************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=r.RegExp;e.exports={correct:!i(function(){var e=!0;try{a(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(a.prototype,`flags`).get.call(t)!==r||n!==r})}}),"./node_modules/core-js/internals/regexp-flags.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/regexp-flags.js ***!
\********************************************************/
var r=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`);e.exports=function(){var e=r(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}}),"./node_modules/core-js/internals/regexp-get-flags.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-get-flags.js ***!
\************************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),o=n(
/*! ../internals/regexp-flags-detection */
`./node_modules/core-js/internals/regexp-flags-detection.js`),s=n(
/*! ../internals/regexp-flags */
`./node_modules/core-js/internals/regexp-flags.js`),c=RegExp.prototype;e.exports=o.correct?function(e){return e.flags}:function(e){return!o.correct&&a(c,e)&&!i(e,`flags`)?r(s,e):e.flags}}),"./node_modules/core-js/internals/regexp-sticky-helpers.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-sticky-helpers.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(`./node_modules/core-js/internals/global-this.js`).RegExp,a=r(function(){
/*! ../internals/global-this */
var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),o=a||r(function(){return!i(`a`,`y`).sticky});e.exports={BROKEN_CARET:a||r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:o,UNSUPPORTED_Y:a}}),"./node_modules/core-js/internals/regexp-unsupported-dot-all.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-unsupported-dot-all.js ***!
\**********************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(`./node_modules/core-js/internals/global-this.js`).RegExp
/*! ../internals/global-this */
;e.exports=r(function(){var e=i(`.`,`s`);return!(e.dotAll&&e.test(`
`)&&e.flags===`s`)})}),"./node_modules/core-js/internals/regexp-unsupported-ncg.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/regexp-unsupported-ncg.js ***!
\******************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),i=n(`./node_modules/core-js/internals/global-this.js`).RegExp
/*! ../internals/global-this */
;e.exports=r(function(){var e=i(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})}),"./node_modules/core-js/internals/require-object-coercible.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/require-object-coercible.js ***!
\********************************************************************/
var r=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),i=TypeError;e.exports=function(e){if(r(e))throw new i(`Can't call method on `+e);return e}}),"./node_modules/core-js/internals/safe-get-built-in.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/safe-get-built-in.js ***!
\*************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=a(r,e);return t&&t.value}}),"./node_modules/core-js/internals/schedulers-fix.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/schedulers-fix.js ***!
\**********************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/function-apply */
`./node_modules/core-js/internals/function-apply.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/environment */
`./node_modules/core-js/internals/environment.js`),s=n(
/*! ../internals/environment-user-agent */
`./node_modules/core-js/internals/environment-user-agent.js`),c=n(
/*! ../internals/array-slice */
`./node_modules/core-js/internals/array-slice.js`),l=n(
/*! ../internals/validate-arguments-length */
`./node_modules/core-js/internals/validate-arguments-length.js`),u=r.Function,d=/MSIE .\./.test(s)||o===`BUN`&&(function(){var e=r.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})();e.exports=function(e,t){var n=t?2:1;return d?function(r,o){var s=l(arguments.length,1)>n,d=a(r)?r:u(r),f=s?c(arguments,n):[],p=s?function(){i(d,this,f)}:d;return t?e(p,o):e(p)}:e}}),"./node_modules/core-js/internals/set-clone.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/set-clone.js ***!
\*****************************************************/
var r=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),i=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),a=r.Set,o=r.add;e.exports=function(e){var t=new a;return i(e,function(e){o(t,e)}),t}}),"./node_modules/core-js/internals/set-difference.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/internals/set-difference.js ***!
\**********************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),a=n(
/*! ../internals/set-clone */
`./node_modules/core-js/internals/set-clone.js`),o=n(
/*! ../internals/set-size */
`./node_modules/core-js/internals/set-size.js`),s=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),c=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),l=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=a(t);return o(t)<=n.size?c(t,function(e){n.includes(e)&&d(i,e)}):l(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}}),"./node_modules/core-js/internals/set-helpers.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/set-helpers.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=Set.prototype;e.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}}),"./node_modules/core-js/internals/set-intersection.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/set-intersection.js ***!
\************************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),a=n(
/*! ../internals/set-size */
`./node_modules/core-js/internals/set-size.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),s=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),c=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),l=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=o(e),i=new l;return a(t)>n.size?c(n.getIterator(),function(e){d(t,e)&&u(i,e)}):s(t,function(e){n.includes(e)&&u(i,e)}),i}}),"./node_modules/core-js/internals/set-is-disjoint-from.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/internals/set-is-disjoint-from.js ***!
\****************************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).has,a=n(
/*! ../internals/set-size */
`./node_modules/core-js/internals/set-size.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),s=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),c=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),l=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<=n.size)return s(t,function(e){if(n.includes(e))return!1},!0)!==!1;var u=n.getIterator();return c(u,function(e){if(i(t,e))return l(u,`normal`,!1)})!==!1}}),"./node_modules/core-js/internals/set-is-subset-of.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/set-is-subset-of.js ***!
\************************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-size */
`./node_modules/core-js/internals/set-size.js`),a=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`);e.exports=function(e){var t=r(this),n=o(e);return i(t)>n.size?!1:a(t,function(e){if(!n.includes(e))return!1},!0)!==!1}}),"./node_modules/core-js/internals/set-is-superset-of.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/set-is-superset-of.js ***!
\**************************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).has,a=n(
/*! ../internals/set-size */
`./node_modules/core-js/internals/set-size.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),s=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),c=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`);e.exports=function(e){var t=r(this),n=o(e);if(a(t)<n.size)return!1;var l=n.getIterator();return s(l,function(e){if(!i(t,e))return c(l,`normal`,!1)})!==!1}}),"./node_modules/core-js/internals/set-iterate.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/set-iterate.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),a=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),o=a.Set,s=a.proto,c=r(s.forEach),l=r(s.keys),u=l(new o).next;e.exports=function(e,t,n){return n?i({iterator:l(e),next:u},t):c(e,t)}}),"./node_modules/core-js/internals/set-size.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/internals/set-size.js ***!
\****************************************************/
/*! ../internals/function-uncurry-this-accessor */
/*! ../internals/set-helpers */
e.exports=n(`./node_modules/core-js/internals/function-uncurry-this-accessor.js`)(n(`./node_modules/core-js/internals/set-helpers.js`).proto,`size`,`get`)||function(e){return e.size}}),"./node_modules/core-js/internals/set-species.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/set-species.js ***!
\*******************************************************/
var r=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),i=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),a=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),o=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),s=a(`species`);e.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}}),"./node_modules/core-js/internals/set-symmetric-difference.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/set-symmetric-difference.js ***!
\********************************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),a=n(
/*! ../internals/set-clone */
`./node_modules/core-js/internals/set-clone.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),s=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`),c=i.add,l=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),i=a(t);return s(n,function(e){l(t,e)?u(i,e):c(i,e)}),i}}),"./node_modules/core-js/internals/set-to-string-tag.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
\*************************************************************/
var r=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f,i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`toStringTag`)
/*! ../internals/well-known-symbol */
;e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}}),"./node_modules/core-js/internals/set-union.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/set-union.js ***!
\*****************************************************/
var r=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),i=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).add,a=n(
/*! ../internals/set-clone */
`./node_modules/core-js/internals/set-clone.js`),o=n(
/*! ../internals/get-set-record */
`./node_modules/core-js/internals/get-set-record.js`),s=n(
/*! ../internals/iterate-simple */
`./node_modules/core-js/internals/iterate-simple.js`);e.exports=function(e){var t=r(this),n=o(e).getIterator(),c=a(t);return s(n,function(e){i(c,e)}),c}}),"./node_modules/core-js/internals/shared-key.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/shared-key.js ***!
\******************************************************/
var r=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),i=n(
/*! ../internals/uid */
`./node_modules/core-js/internals/uid.js`),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),"./node_modules/core-js/internals/shared-store.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/shared-store.js ***!
\********************************************************/
var r=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(
/*! ../internals/define-global-property */
`./node_modules/core-js/internals/define-global-property.js`),o=`__core-js_shared__`,s=e.exports=i[o]||a(o,{});(s.versions||=[]).push({version:`3.47.0`,mode:r?`pure`:`global`,copyright:`© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)`,license:`https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE`,source:`https://github.com/zloirock/core-js`})}),"./node_modules/core-js/internals/shared.js":(function(e,t,n){
/*!**************************************************!*\
!*** ./node_modules/core-js/internals/shared.js ***!
\**************************************************/
var r=n(
/*! ../internals/shared-store */
`./node_modules/core-js/internals/shared-store.js`);e.exports=function(e,t){return r[e]||(r[e]=t||{})}}),"./node_modules/core-js/internals/species-constructor.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/internals/species-constructor.js ***!
\***************************************************************/
var r=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),i=n(
/*! ../internals/a-constructor */
`./node_modules/core-js/internals/a-constructor.js`),a=n(
/*! ../internals/is-null-or-undefined */
`./node_modules/core-js/internals/is-null-or-undefined.js`),o=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`species`)
/*! ../internals/well-known-symbol */
;e.exports=function(e,t){var n=r(e).constructor,s;return n===void 0||a(s=r(n)[o])?t:i(s)}}),"./node_modules/core-js/internals/string-html-forced.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/string-html-forced.js ***!
\**************************************************************/
var r=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`);e.exports=function(e){return r(function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3})}}),"./node_modules/core-js/internals/string-multibyte.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/internals/string-multibyte.js ***!
\************************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/to-integer-or-infinity */
`./node_modules/core-js/internals/to-integer-or-infinity.js`),a=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),o=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),s=r(``.charAt),c=r(``.charCodeAt),l=r(``.slice),u=function(e){return function(t,n){var r=a(o(t)),u=i(n),d=r.length,f,p;return u<0||u>=d?e?``:void 0:(f=c(r,u),f<55296||f>56319||u+1===d||(p=c(r,u+1))<56320||p>57343?e?s(r,u):f:e?l(r,u,u+2):(f-55296<<10)+(p-56320)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}}),"./node_modules/core-js/internals/string-trim-forced.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/string-trim-forced.js ***!
\**************************************************************/
var r=n(
/*! ../internals/function-name */
`./node_modules/core-js/internals/function-name.js`).PROPER,i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/whitespaces */
`./node_modules/core-js/internals/whitespaces.js`),o=`
`;e.exports=function(e){return i(function(){return!!a[e]()||o[e]()!==o||r&&a[e].name!==e})}}),"./node_modules/core-js/internals/string-trim.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/string-trim.js ***!
\*******************************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),a=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),o=n(
/*! ../internals/whitespaces */
`./node_modules/core-js/internals/whitespaces.js`),s=r(``.replace),c=RegExp(`^[`+o+`]+`),l=RegExp(`(^|[^`+o+`])[`+o+`]+$`),u=function(e){return function(t){var n=a(i(t));return e&1&&(n=s(n,c,``)),e&2&&(n=s(n,l,`$1`)),n}};e.exports={start:u(1),end:u(2),trim:u(3)}}),"./node_modules/core-js/internals/symbol-constructor-detection.js":(function(e,t,n){
/*!************************************************************************!*\
!*** ./node_modules/core-js/internals/symbol-constructor-detection.js ***!
\************************************************************************/
var r=n(
/*! ../internals/environment-v8-version */
`./node_modules/core-js/internals/environment-v8-version.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(`./node_modules/core-js/internals/global-this.js`).String
/*! ../internals/global-this */
;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol(`symbol detection`);return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})}),"./node_modules/core-js/internals/symbol-define-to-primitive.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/internals/symbol-define-to-primitive.js ***!
\**********************************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),a=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),o=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`);e.exports=function(){var e=i(`Symbol`),t=e&&e.prototype,n=t&&t.valueOf,s=a(`toPrimitive`);t&&!t[s]&&o(t,s,function(e){return r(n,this)},{arity:1})}}),"./node_modules/core-js/internals/symbol-registry-detection.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/symbol-registry-detection.js ***!
\*********************************************************************/
/*! ../internals/symbol-constructor-detection */
e.exports=n(`./node_modules/core-js/internals/symbol-constructor-detection.js`)&&!!Symbol.for&&!!Symbol.keyFor}),"./node_modules/core-js/internals/task.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/core-js/internals/task.js ***!
\************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/function-apply */
`./node_modules/core-js/internals/function-apply.js`),a=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),o=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),s=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),c=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),l=n(
/*! ../internals/html */
`./node_modules/core-js/internals/html.js`),u=n(
/*! ../internals/array-slice */
`./node_modules/core-js/internals/array-slice.js`),d=n(
/*! ../internals/document-create-element */
`./node_modules/core-js/internals/document-create-element.js`),f=n(
/*! ../internals/validate-arguments-length */
`./node_modules/core-js/internals/validate-arguments-length.js`),p=n(
/*! ../internals/environment-is-ios */
`./node_modules/core-js/internals/environment-is-ios.js`),m=n(
/*! ../internals/environment-is-node */
`./node_modules/core-js/internals/environment-is-node.js`),h=r.setImmediate,g=r.clearImmediate,_=r.process,v=r.Dispatch,y=r.Function,b=r.MessageChannel,x=r.String,S=0,C={},w=`onreadystatechange`,T,E,D,O;c(function(){T=r.location});var k=function(e){if(s(C,e)){var t=C[e];delete C[e],t()}},A=function(e){return function(){k(e)}},j=function(e){k(e.data)},M=function(e){r.postMessage(x(e),T.protocol+`//`+T.host)};(!h||!g)&&(h=function(e){f(arguments.length,1);var t=o(e)?e:y(e),n=u(arguments,1);return C[++S]=function(){i(t,void 0,n)},E(S),S},g=function(e){delete C[e]},m?E=function(e){_.nextTick(A(e))}:v&&v.now?E=function(e){v.now(A(e))}:b&&!p?(D=new b,O=D.port2,D.port1.onmessage=j,E=a(O.postMessage,O)):r.addEventListener&&o(r.postMessage)&&!r.importScripts&&T&&T.protocol!==`file:`&&!c(M)?(E=M,r.addEventListener(`message`,j,!1)):E=w in d(`script`)?function(e){l.appendChild(d(`script`))[w]=function(){l.removeChild(this),k(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:h,clear:g}}),"./node_modules/core-js/internals/this-number-value.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/this-number-value.js ***!
\*************************************************************/
/*! ../internals/function-uncurry-this */
e.exports=n(`./node_modules/core-js/internals/function-uncurry-this.js`)(1.1.valueOf)}),"./node_modules/core-js/internals/to-absolute-index.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/to-absolute-index.js ***!
\*************************************************************/
var r=n(
/*! ../internals/to-integer-or-infinity */
`./node_modules/core-js/internals/to-integer-or-infinity.js`),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),"./node_modules/core-js/internals/to-indexed-object.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/to-indexed-object.js ***!
\*************************************************************/
var r=n(
/*! ../internals/indexed-object */
`./node_modules/core-js/internals/indexed-object.js`),i=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`);e.exports=function(e){return r(i(e))}}),"./node_modules/core-js/internals/to-integer-or-infinity.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/internals/to-integer-or-infinity.js ***!
\******************************************************************/
var r=n(
/*! ../internals/math-trunc */
`./node_modules/core-js/internals/math-trunc.js`);e.exports=function(e){var t=+e;return t!==t||t===0?0:r(t)}}),"./node_modules/core-js/internals/to-length.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/to-length.js ***!
\*****************************************************/
var r=n(
/*! ../internals/to-integer-or-infinity */
`./node_modules/core-js/internals/to-integer-or-infinity.js`),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}}),"./node_modules/core-js/internals/to-object.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/to-object.js ***!
\*****************************************************/
var r=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),i=Object;e.exports=function(e){return i(r(e))}}),"./node_modules/core-js/internals/to-primitive.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/to-primitive.js ***!
\********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),a=n(
/*! ../internals/is-symbol */
`./node_modules/core-js/internals/is-symbol.js`),o=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),s=n(
/*! ../internals/ordinary-to-primitive */
`./node_modules/core-js/internals/ordinary-to-primitive.js`),c=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),l=TypeError,u=c(`toPrimitive`);e.exports=function(e,t){if(!i(e)||a(e))return e;var n=o(e,u),c;if(n){if(t===void 0&&(t=`default`),c=r(n,e,t),!i(c)||a(c))return c;throw new l(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),s(e,t)}}),"./node_modules/core-js/internals/to-property-key.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/internals/to-property-key.js ***!
\***********************************************************/
var r=n(
/*! ../internals/to-primitive */
`./node_modules/core-js/internals/to-primitive.js`),i=n(
/*! ../internals/is-symbol */
`./node_modules/core-js/internals/is-symbol.js`);e.exports=function(e){var t=r(e,`string`);return i(t)?t:t+``}}),"./node_modules/core-js/internals/to-set-like.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/to-set-like.js ***!
\*******************************************************/
var r=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=n(
/*! ../internals/is-iterable */
`./node_modules/core-js/internals/is-iterable.js`),o=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),s=r(`Set`),c=function(e){return o(e)&&typeof e.size==`number`&&i(e.has)&&i(e.keys)};e.exports=function(e){return c(e)?e:a(e)?new s(e):e}}),"./node_modules/core-js/internals/to-string-tag-support.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
\*****************************************************************/
/*! ../internals/well-known-symbol */
var r=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),"./node_modules/core-js/internals/to-string.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/core-js/internals/to-string.js ***!
\*****************************************************/
var r=n(
/*! ../internals/classof */
`./node_modules/core-js/internals/classof.js`),i=String;e.exports=function(e){if(r(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return i(e)}}),"./node_modules/core-js/internals/try-to-string.js":(function(e){
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/try-to-string.js ***!
\*********************************************************/
var t=String;e.exports=function(e){try{return t(e)}catch{return`Object`}}}),"./node_modules/core-js/internals/uid.js":(function(e,t,n){
/*!***********************************************!*\
!*** ./node_modules/core-js/internals/uid.js ***!
\***********************************************/
var r=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),i=0,a=Math.random(),o=r(1.1.toString);e.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+o(++i+a,36)}}),"./node_modules/core-js/internals/use-symbol-as-uid.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
\*************************************************************/
/*! ../internals/symbol-constructor-detection */
e.exports=n(`./node_modules/core-js/internals/symbol-constructor-detection.js`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`}),"./node_modules/core-js/internals/v8-prototype-define-bug.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/v8-prototype-define-bug.js ***!
\*******************************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`);e.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),"./node_modules/core-js/internals/validate-arguments-length.js":(function(e){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/validate-arguments-length.js ***!
\*********************************************************************/
var t=TypeError;e.exports=function(e,n){if(e<n)throw new t(`Not enough arguments`);return e}}),"./node_modules/core-js/internals/weak-map-basic-detection.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/weak-map-basic-detection.js ***!
\********************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))}),"./node_modules/core-js/internals/well-known-symbol-define.js":(function(e,t,n){
/*!********************************************************************!*\
!*** ./node_modules/core-js/internals/well-known-symbol-define.js ***!
\********************************************************************/
var r=n(
/*! ../internals/path */
`./node_modules/core-js/internals/path.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(
/*! ../internals/well-known-symbol-wrapped */
`./node_modules/core-js/internals/well-known-symbol-wrapped.js`),o=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f;e.exports=function(e){var t=r.Symbol||={};i(t,e)||o(t,e,{value:a.f(e)})}}),"./node_modules/core-js/internals/well-known-symbol-wrapped.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***!
\*********************************************************************/
/*! ../internals/well-known-symbol */
t.f=n(`./node_modules/core-js/internals/well-known-symbol.js`)}),"./node_modules/core-js/internals/well-known-symbol.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/well-known-symbol.js ***!
\*************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),a=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),o=n(
/*! ../internals/uid */
`./node_modules/core-js/internals/uid.js`),s=n(
/*! ../internals/symbol-constructor-detection */
`./node_modules/core-js/internals/symbol-constructor-detection.js`),c=n(
/*! ../internals/use-symbol-as-uid */
`./node_modules/core-js/internals/use-symbol-as-uid.js`),l=r.Symbol,u=i(`wks`),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d(`Symbol.`+e)),u[e]}}),"./node_modules/core-js/internals/whitespaces.js":(function(e){
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/whitespaces.js ***!
\*******************************************************/
e.exports=`
\v\f\r \xA0 \u2028\u2029`}),"./node_modules/core-js/modules/es.array.concat.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.concat.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),a=n(
/*! ../internals/is-array */
`./node_modules/core-js/internals/is-array.js`),o=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),s=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),c=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),l=n(
/*! ../internals/does-not-exceed-safe-integer */
`./node_modules/core-js/internals/does-not-exceed-safe-integer.js`),u=n(
/*! ../internals/create-property */
`./node_modules/core-js/internals/create-property.js`),d=n(
/*! ../internals/array-species-create */
`./node_modules/core-js/internals/array-species-create.js`),f=n(
/*! ../internals/array-method-has-species-support */
`./node_modules/core-js/internals/array-method-has-species-support.js`),p=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),m=n(
/*! ../internals/environment-v8-version */
`./node_modules/core-js/internals/environment-v8-version.js`),h=p(`isConcatSpreadable`),g=m>=51||!i(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),_=function(e){if(!o(e))return!1;var t=e[h];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,arity:1,forced:!g||!f(`concat`)},{concat:function(e){for(var t=s(this),n=d(t,0),r=0,i=-1,a,o=arguments.length,f,p;i<o;i++)if(p=i===-1?t:arguments[i],_(p))for(f=c(p),l(r+f),a=0;a<f;a++,r++)a in p&&u(n,r,p[a]);else l(r+1),u(n,r++,p);return n.length=r,n}})}),"./node_modules/core-js/modules/es.array.from.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/es.array.from.js ***!
\*******************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/array-from */
`./node_modules/core-js/internals/array-from.js`);
/*! ../internals/check-correctness-of-iteration */
r({target:`Array`,stat:!0,forced:!n(`./node_modules/core-js/internals/check-correctness-of-iteration.js`)(function(e){Array.from(e)})},{from:i})}),"./node_modules/core-js/modules/es.array.index-of.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.index-of.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this-clause */
`./node_modules/core-js/internals/function-uncurry-this-clause.js`),a=n(
/*! ../internals/array-includes */
`./node_modules/core-js/internals/array-includes.js`).indexOf,o=n(
/*! ../internals/array-method-is-strict */
`./node_modules/core-js/internals/array-method-is-strict.js`),s=i([].indexOf),c=!!s&&1/s([1],1,-0)<0;r({target:`Array`,proto:!0,forced:c||!o(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:a(this,e,t)}})}),"./node_modules/core-js/modules/es.array.iterator.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.iterator.js ***!
\***********************************************************/
var r=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),i=n(
/*! ../internals/add-to-unscopables */
`./node_modules/core-js/internals/add-to-unscopables.js`),a=n(
/*! ../internals/iterators */
`./node_modules/core-js/internals/iterators.js`),o=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),s=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f,c=n(
/*! ../internals/iterator-define */
`./node_modules/core-js/internals/iterator-define.js`),l=n(
/*! ../internals/create-iter-result-object */
`./node_modules/core-js/internals/create-iter-result-object.js`),u=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),d=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),f=`Array Iterator`,p=o.set,m=o.getterFor(f);e.exports=c(Array,`Array`,function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})},function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case`keys`:return l(n,!1);case`values`:return l(t[n],!1)}return l([n,t[n]],!1)},`values`);var h=a.Arguments=a.Array;if(i(`keys`),i(`values`),i(`entries`),!u&&d&&h.name!==`values`)try{s(h,`name`,{value:`values`})}catch{}}),"./node_modules/core-js/modules/es.array.join.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/es.array.join.js ***!
\*******************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/indexed-object */
`./node_modules/core-js/internals/indexed-object.js`),o=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),s=n(
/*! ../internals/array-method-is-strict */
`./node_modules/core-js/internals/array-method-is-strict.js`),c=i([].join);r({target:`Array`,proto:!0,forced:a!==Object||!s(`join`,`,`)},{join:function(e){return c(o(this),e===void 0?`,`:e)}})}),"./node_modules/core-js/modules/es.array.map.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/es.array.map.js ***!
\******************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/array-iteration */
`./node_modules/core-js/internals/array-iteration.js`).map;
/*! ../internals/array-method-has-species-support */
r({target:`Array`,proto:!0,forced:!n(`./node_modules/core-js/internals/array-method-has-species-support.js`)(`map`)},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),"./node_modules/core-js/modules/es.array.reduce.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.reduce.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/array-reduce */
`./node_modules/core-js/internals/array-reduce.js`).left,a=n(
/*! ../internals/array-method-is-strict */
`./node_modules/core-js/internals/array-method-is-strict.js`),o=n(
/*! ../internals/environment-v8-version */
`./node_modules/core-js/internals/environment-v8-version.js`);
/*! ../internals/environment-is-node */
r({target:`Array`,proto:!0,forced:!n(`./node_modules/core-js/internals/environment-is-node.js`)&&o>79&&o<83||!a(`reduce`)},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})}),"./node_modules/core-js/modules/es.array.reverse.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.reverse.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/is-array */
`./node_modules/core-js/internals/is-array.js`),o=i([].reverse),s=[1,2];r({target:`Array`,proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})}),"./node_modules/core-js/modules/es.array.slice.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.slice.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/is-array */
`./node_modules/core-js/internals/is-array.js`),a=n(
/*! ../internals/is-constructor */
`./node_modules/core-js/internals/is-constructor.js`),o=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),s=n(
/*! ../internals/to-absolute-index */
`./node_modules/core-js/internals/to-absolute-index.js`),c=n(
/*! ../internals/length-of-array-like */
`./node_modules/core-js/internals/length-of-array-like.js`),l=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),u=n(
/*! ../internals/create-property */
`./node_modules/core-js/internals/create-property.js`),d=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),f=n(
/*! ../internals/array-method-has-species-support */
`./node_modules/core-js/internals/array-method-has-species-support.js`),p=n(
/*! ../internals/array-slice */
`./node_modules/core-js/internals/array-slice.js`),m=f(`slice`),h=d(`species`),g=Array,_=Math.max;r({target:`Array`,proto:!0,forced:!m},{slice:function(e,t){var n=l(this),r=c(n),d=s(e,r),f=s(t===void 0?r:t,r),m,v,y;if(i(n)&&(m=n.constructor,a(m)&&(m===g||i(m.prototype))?m=void 0:o(m)&&(m=m[h],m===null&&(m=void 0)),m===g||m===void 0))return p(n,d,f);for(v=new(m===void 0?g:m)(_(f-d,0)),y=0;d<f;d++,y++)d in n&&u(v,y,n[d]);return v.length=y,v}})}),"./node_modules/core-js/modules/es.function.name.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.function.name.js ***!
\**********************************************************/
var r=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),i=n(
/*! ../internals/function-name */
`./node_modules/core-js/internals/function-name.js`).EXISTS,a=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),o=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),s=Function.prototype,c=a(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(l.exec);r&&!i&&o(s,`name`,{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch{return``}}})}),"./node_modules/core-js/modules/es.iterator.constructor.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/modules/es.iterator.constructor.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(
/*! ../internals/an-instance */
`./node_modules/core-js/internals/an-instance.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),c=n(
/*! ../internals/object-get-prototype-of */
`./node_modules/core-js/internals/object-get-prototype-of.js`),l=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),u=n(
/*! ../internals/create-property */
`./node_modules/core-js/internals/create-property.js`),d=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),f=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),p=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),m=n(
/*! ../internals/iterators-core */
`./node_modules/core-js/internals/iterators-core.js`).IteratorPrototype,h=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),g=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),_=`constructor`,v=`Iterator`,y=p(`toStringTag`),b=TypeError,x=i[v],S=g||!s(x)||x.prototype!==m||!d(function(){x({})}),C=function(){if(a(this,m),c(this)===m)throw new b(`Abstract class Iterator not directly constructable`)},w=function(e,t){h?l(m,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===m)throw new b(`You can't redefine this property`);f(this,e)?this[e]=t:u(this,e,t)}}):m[e]=t};f(m,y)||w(y,v),(S||!f(m,_)||m[_]===Object)&&w(_,C),C.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:C})}),"./node_modules/core-js/modules/es.iterator.for-each.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/core-js/modules/es.iterator.for-each.js ***!
\**************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/iterate */
`./node_modules/core-js/internals/iterate.js`),o=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),s=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),c=n(
/*! ../internals/get-iterator-direct */
`./node_modules/core-js/internals/get-iterator-direct.js`),l=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`),u=n(`./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js`)(`forEach`,TypeError)
/*! ../internals/iterator-helper-without-closing-on-early-error */
;r({target:`Iterator`,proto:!0,real:!0,forced:u},{forEach:function(e){s(this);try{o(e)}catch(e){l(this,`throw`,e)}if(u)return i(u,this,e);var t=c(this),n=0;a(t,function(t){e(t,n++)},{IS_RECORD:!0})}})}),"./node_modules/core-js/modules/es.iterator.map.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.iterator.map.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/get-iterator-direct */
`./node_modules/core-js/internals/get-iterator-direct.js`),c=n(
/*! ../internals/iterator-create-proxy */
`./node_modules/core-js/internals/iterator-create-proxy.js`),l=n(
/*! ../internals/call-with-safe-iteration-closing */
`./node_modules/core-js/internals/call-with-safe-iteration-closing.js`),u=n(
/*! ../internals/iterator-close */
`./node_modules/core-js/internals/iterator-close.js`),d=n(
/*! ../internals/iterator-helper-throws-on-invalid-iterator */
`./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js`),f=n(
/*! ../internals/iterator-helper-without-closing-on-early-error */
`./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js`),p=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),m=!p&&!d(`map`,function(){}),h=!p&&!m&&f(`map`,TypeError),g=p||m||h,_=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});r({target:`Iterator`,proto:!0,real:!0,forced:g},{map:function(e){o(this);try{a(e)}catch(e){u(this,`throw`,e)}return h?i(h,this,e):new _(s(this),{mapper:e})}})}),"./node_modules/core-js/modules/es.json.stringify.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.json.stringify.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),a=n(
/*! ../internals/function-apply */
`./node_modules/core-js/internals/function-apply.js`),o=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),s=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),c=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),l=n(
/*! ../internals/is-array */
`./node_modules/core-js/internals/is-array.js`),u=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),d=n(
/*! ../internals/is-raw-json */
`./node_modules/core-js/internals/is-raw-json.js`),f=n(
/*! ../internals/is-symbol */
`./node_modules/core-js/internals/is-symbol.js`),p=n(
/*! ../internals/classof-raw */
`./node_modules/core-js/internals/classof-raw.js`),m=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),h=n(
/*! ../internals/array-slice */
`./node_modules/core-js/internals/array-slice.js`),g=n(
/*! ../internals/parse-json-string */
`./node_modules/core-js/internals/parse-json-string.js`),_=n(
/*! ../internals/uid */
`./node_modules/core-js/internals/uid.js`),v=n(
/*! ../internals/symbol-constructor-detection */
`./node_modules/core-js/internals/symbol-constructor-detection.js`),y=n(
/*! ../internals/native-raw-json */
`./node_modules/core-js/internals/native-raw-json.js`),b=String,x=i(`JSON`,`stringify`),S=s(/./.exec),C=s(``.charAt),w=s(``.charCodeAt),T=s(``.replace),E=s(``.slice),D=s([].push),O=s(1.1.toString),k=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,M=_(),N=M.length,P=!v||c(function(){var e=i(`Symbol`)(`stringify detection`);return x([e])!==`[null]`||x({a:e})!==`{}`||x(Object(e))!==`{}`}),F=c(function(){return x(`\udf06\ud834`)!==`"\\udf06\\ud834"`||x(`\udead`)!==`"\\udead"`}),I=P?function(e,t){var n=h(arguments),r=R(t);if(u(r)||e!==void 0&&!f(e))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,b(e),t)),!f(t))return t},a(x,null,n)}:x,L=function(e,t,n){var r=C(n,t-1),i=C(n,t+1);return S(A,e)&&!S(j,i)||S(j,e)&&!S(A,r)?`\\u`+O(w(e,0),16):e},R=function(e){if(u(e))return e;if(l(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?D(n,i):(typeof i==`number`||p(i)===`Number`||p(i)===`String`)&&D(n,m(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(l(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};x&&r({target:`JSON`,stat:!0,arity:3,forced:P||F||!y},{stringify:function(e,t,n){var r=R(t),i=[],a=I(e,function(e,t){var n=u(r)?o(r,this,b(e),t):t;return!y&&d(n)?M+(D(i,n.rawJSON)-1):n},n);if(typeof a!=`string`||(F&&(a=T(a,k,L)),y))return a;for(var s=``,c=a.length,l=0;l<c;l++){var f=C(a,l);if(f===`"`){var p=g(a,++l).end-1,m=E(a,l,p);s+=E(m,0,N)===M?i[E(m,N)]:`"`+m+`"`,l=p}else s+=f}return s}})}),"./node_modules/core-js/modules/es.number.constructor.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es.number.constructor.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),a=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),o=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),s=n(
/*! ../internals/path */
`./node_modules/core-js/internals/path.js`),c=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),l=n(
/*! ../internals/is-forced */
`./node_modules/core-js/internals/is-forced.js`),u=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),d=n(
/*! ../internals/inherit-if-required */
`./node_modules/core-js/internals/inherit-if-required.js`),f=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),p=n(
/*! ../internals/is-symbol */
`./node_modules/core-js/internals/is-symbol.js`),m=n(
/*! ../internals/to-primitive */
`./node_modules/core-js/internals/to-primitive.js`),h=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),g=n(
/*! ../internals/object-get-own-property-names */
`./node_modules/core-js/internals/object-get-own-property-names.js`).f,_=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`).f,v=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`).f,y=n(
/*! ../internals/this-number-value */
`./node_modules/core-js/internals/this-number-value.js`),b=n(
/*! ../internals/string-trim */
`./node_modules/core-js/internals/string-trim.js`).trim,x=`Number`,S=o[x],C=s[x],w=S.prototype,T=o.TypeError,E=c(``.slice),D=c(``.charCodeAt),O=function(e){var t=m(e,`number`);return typeof t==`bigint`?t:k(t)},k=function(e){var t=m(e,`number`),n,r,i,a,o,s,c,l;if(p(t))throw new T(`Cannot convert a Symbol value to a number`);if(typeof t==`string`&&t.length>2){if(t=b(t),n=D(t,0),n===43||n===45){if(r=D(t,2),r===88||r===120)return NaN}else if(n===48){switch(D(t,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+t}for(o=E(t,2),s=o.length,c=0;c<s;c++)if(l=D(o,c),l<48||l>a)return NaN;return parseInt(o,i)}}return+t},A=l(x,!S(` 0o1`)||!S(`0b1`)||S(`+0x1`)),j=function(e){return f(w,e)&&h(function(){y(e)})},M=function(e){var t=arguments.length<1?0:S(O(e));return j(this)?d(Object(t),this,M):t};M.prototype=w,A&&!i&&(w.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:M});var N=function(e,t){for(var n=a?g(t):`MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range`.split(`,`),r=0,i;n.length>r;r++)u(t,i=n[r])&&!u(e,i)&&v(e,i,_(t,i))};i&&C&&N(s[x],C),(A||i)&&N(s[x],S)}),"./node_modules/core-js/modules/es.object.assign.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.object.assign.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/object-assign */
`./node_modules/core-js/internals/object-assign.js`);r({target:`Object`,stat:!0,arity:2,forced:Object.assign!==i},{assign:i})}),"./node_modules/core-js/modules/es.object.get-own-property-symbols.js":(function(e,t,n){
/*!****************************************************************************!*\
!*** ./node_modules/core-js/modules/es.object.get-own-property-symbols.js ***!
\****************************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/symbol-constructor-detection */
`./node_modules/core-js/internals/symbol-constructor-detection.js`),a=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),o=n(
/*! ../internals/object-get-own-property-symbols */
`./node_modules/core-js/internals/object-get-own-property-symbols.js`),s=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`);r({target:`Object`,stat:!0,forced:!i||a(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})}),"./node_modules/core-js/modules/es.object.keys.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.object.keys.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/to-object */
`./node_modules/core-js/internals/to-object.js`),a=n(
/*! ../internals/object-keys */
`./node_modules/core-js/internals/object-keys.js`);
/*! ../internals/fails */
r({target:`Object`,stat:!0,forced:n(`./node_modules/core-js/internals/fails.js`)(function(){a(1)})},{keys:function(e){return a(i(e))}})}),"./node_modules/core-js/modules/es.object.to-string.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/modules/es.object.to-string.js ***!
\*************************************************************/
var r=n(
/*! ../internals/to-string-tag-support */
`./node_modules/core-js/internals/to-string-tag-support.js`),i=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),a=n(
/*! ../internals/object-to-string */
`./node_modules/core-js/internals/object-to-string.js`);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),"./node_modules/core-js/modules/es.promise.all.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.all.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),o=n(
/*! ../internals/new-promise-capability */
`./node_modules/core-js/internals/new-promise-capability.js`),s=n(
/*! ../internals/perform */
`./node_modules/core-js/internals/perform.js`),c=n(
/*! ../internals/iterate */
`./node_modules/core-js/internals/iterate.js`);
/*! ../internals/promise-statics-incorrect-iteration */
r({target:`Promise`,stat:!0,forced:n(`./node_modules/core-js/internals/promise-statics-incorrect-iteration.js`)},{all:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,u=s(function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,function(e){var a=s++,c=!1;u++,i(n,t,e).then(function(e){c||(c=!0,o[a]=e,--u||r(o))},l)}),--u||r(o)});return u.error&&l(u.value),n.promise}})}),"./node_modules/core-js/modules/es.promise.catch.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.catch.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),a=n(
/*! ../internals/promise-constructor-detection */
`./node_modules/core-js/internals/promise-constructor-detection.js`).CONSTRUCTOR,o=n(
/*! ../internals/promise-native-constructor */
`./node_modules/core-js/internals/promise-native-constructor.js`),s=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),c=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),l=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),u=o&&o.prototype;if(r({target:`Promise`,proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(o)){var d=s(`Promise`).prototype.catch;u.catch!==d&&l(u,`catch`,d,{unsafe:!0})}}),"./node_modules/core-js/modules/es.promise.constructor.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.constructor.js ***!
\****************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),a=n(
/*! ../internals/environment-is-node */
`./node_modules/core-js/internals/environment-is-node.js`),o=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),s=n(
/*! ../internals/path */
`./node_modules/core-js/internals/path.js`),c=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),l=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),u=n(
/*! ../internals/object-set-prototype-of */
`./node_modules/core-js/internals/object-set-prototype-of.js`),d=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),f=n(
/*! ../internals/set-species */
`./node_modules/core-js/internals/set-species.js`),p=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),m=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),h=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),g=n(
/*! ../internals/an-instance */
`./node_modules/core-js/internals/an-instance.js`),_=n(
/*! ../internals/species-constructor */
`./node_modules/core-js/internals/species-constructor.js`),v=n(
/*! ../internals/task */
`./node_modules/core-js/internals/task.js`).set,y=n(
/*! ../internals/microtask */
`./node_modules/core-js/internals/microtask.js`),b=n(
/*! ../internals/host-report-errors */
`./node_modules/core-js/internals/host-report-errors.js`),x=n(
/*! ../internals/perform */
`./node_modules/core-js/internals/perform.js`),S=n(
/*! ../internals/queue */
`./node_modules/core-js/internals/queue.js`),C=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),w=n(
/*! ../internals/promise-native-constructor */
`./node_modules/core-js/internals/promise-native-constructor.js`),T=n(
/*! ../internals/promise-constructor-detection */
`./node_modules/core-js/internals/promise-constructor-detection.js`),E=n(
/*! ../internals/new-promise-capability */
`./node_modules/core-js/internals/new-promise-capability.js`),D=`Promise`,O=T.CONSTRUCTOR,k=T.REJECTION_EVENT,A=T.SUBCLASSING,j=C.getterFor(D),M=C.set,N=w&&w.prototype,P=w,F=N,I=o.TypeError,L=o.document,R=o.process,z=E.f,B=z,V=!!(L&&L.createEvent&&o.dispatchEvent),H=`unhandledrejection`,ee=`rejectionhandled`,te=0,U=1,W=2,G=1,ne=2,re,ie,ae,oe,K=function(e){var t;return h(e)&&m(t=e.then)?t:!1},se=function(e,t){var n=t.value,r=t.state===U,i=r?e.ok:e.fail,a=e.resolve,o=e.reject,s=e.domain,l,u,d;try{i?(r||(t.rejection===ne&&ue(t),t.rejection=G),i===!0?l=n:(s&&s.enter(),l=i(n),s&&(s.exit(),d=!0)),l===e.promise?o(new I(`Promise-chain cycle`)):(u=K(l))?c(u,l,a,o):a(l)):o(n)}catch(e){s&&!d&&s.exit(),o(e)}},q=function(e,t){e.notified||(e.notified=!0,y(function(){for(var n=e.reactions,r;r=n.get();)se(r,e);e.notified=!1,t&&!e.rejection&&ce(e)}))},J=function(e,t,n){var r,i;V?(r=L.createEvent(`Event`),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),o.dispatchEvent(r)):r={promise:t,reason:n},!k&&(i=o[`on`+e])?i(r):e===H&&b(`Unhandled promise rejection`,n)},ce=function(e){c(v,o,function(){var t=e.facade,n=e.value,r=le(e),i;if(r&&(i=x(function(){a?R.emit(`unhandledRejection`,n,t):J(H,t,n)}),e.rejection=a||le(e)?ne:G,i.error))throw i.value})},le=function(e){return e.rejection!==G&&!e.parent},ue=function(e){c(v,o,function(){var t=e.facade;a?R.emit(`rejectionHandled`,t):J(ee,t,e.value)})},Y=function(e,t,n){return function(r){e(t,r,n)}},de=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=W,q(e,!0))},fe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new I(`Promise can't be resolved itself`);var r=K(t);r?y(function(){var n={done:!1};try{c(r,t,Y(fe,n,e),Y(de,n,e))}catch(t){de(n,t,e)}}):(e.value=t,e.state=U,q(e,!1))}catch(t){de({done:!1},t,e)}}};if(O&&(P=function(e){g(this,F),p(e),c(re,this);var t=j(this);try{e(Y(fe,t),Y(de,t))}catch(e){de(t,e)}},F=P.prototype,re=function(e){M(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:te,value:null})},re.prototype=l(F,`then`,function(e,t){var n=j(this),r=z(_(this,P));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=a?R.domain:void 0,n.state===te?n.reactions.add(r):y(function(){se(r,n)}),r.promise}),ie=function(){var e=new re,t=j(e);this.promise=e,this.resolve=Y(fe,t),this.reject=Y(de,t)},E.f=z=function(e){return e===P||e===ae?new ie(e):B(e)},!i&&m(w)&&N!==Object.prototype)){oe=N.then,A||l(N,`then`,function(e,t){var n=this;return new P(function(e,t){c(oe,n,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch{}u&&u(N,F)}r({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:P}),ae=s.Promise,d(P,D,!1,!0),f(D)}),"./node_modules/core-js/modules/es.promise.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.js ***!
\****************************************************/
/*! ../modules/es.promise.constructor */
/*! ../modules/es.promise.all */
/*! ../modules/es.promise.catch */
/*! ../modules/es.promise.race */
/*! ../modules/es.promise.reject */
n(`./node_modules/core-js/modules/es.promise.constructor.js`),n(`./node_modules/core-js/modules/es.promise.all.js`),n(`./node_modules/core-js/modules/es.promise.catch.js`),n(`./node_modules/core-js/modules/es.promise.race.js`),n(`./node_modules/core-js/modules/es.promise.reject.js`),n(
/*! ../modules/es.promise.resolve */
`./node_modules/core-js/modules/es.promise.resolve.js`)}),"./node_modules/core-js/modules/es.promise.race.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.race.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),o=n(
/*! ../internals/new-promise-capability */
`./node_modules/core-js/internals/new-promise-capability.js`),s=n(
/*! ../internals/perform */
`./node_modules/core-js/internals/perform.js`),c=n(
/*! ../internals/iterate */
`./node_modules/core-js/internals/iterate.js`);
/*! ../internals/promise-statics-incorrect-iteration */
r({target:`Promise`,stat:!0,forced:n(`./node_modules/core-js/internals/promise-statics-incorrect-iteration.js`)},{race:function(e){var t=this,n=o.f(t),r=n.reject,l=s(function(){var o=a(t.resolve);c(e,function(e){i(o,t,e).then(n.resolve,r)})});return l.error&&r(l.value),n.promise}})}),"./node_modules/core-js/modules/es.promise.reject.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.reject.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/new-promise-capability */
`./node_modules/core-js/internals/new-promise-capability.js`),a=n(
/*! ../internals/promise-constructor-detection */
`./node_modules/core-js/internals/promise-constructor-detection.js`).CONSTRUCTOR;r({target:`Promise`,stat:!0,forced:a},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})}),"./node_modules/core-js/modules/es.promise.resolve.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.promise.resolve.js ***!
\************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),a=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),o=n(
/*! ../internals/promise-native-constructor */
`./node_modules/core-js/internals/promise-native-constructor.js`),s=n(
/*! ../internals/promise-constructor-detection */
`./node_modules/core-js/internals/promise-constructor-detection.js`).CONSTRUCTOR,c=n(
/*! ../internals/promise-resolve */
`./node_modules/core-js/internals/promise-resolve.js`),l=i(`Promise`),u=a&&!s;r({target:`Promise`,stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?o:this,e)}})}),"./node_modules/core-js/modules/es.regexp.exec.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.regexp.exec.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/regexp-exec */
`./node_modules/core-js/internals/regexp-exec.js`);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),"./node_modules/core-js/modules/es.regexp.test.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.regexp.test.js ***!
\********************************************************/
n(
/*! ../modules/es.regexp.exec */
`./node_modules/core-js/modules/es.regexp.exec.js`);var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},t.test(`abc`)===!0&&e}(),l=/./.test;r({target:`RegExp`,proto:!0,forced:!c},{test:function(e){var t=o(this),n=s(e),r=t.exec;if(!a(r))return i(l,t,n);var c=i(r,t,n);return c!==null&&(o(c),!0)}})}),"./node_modules/core-js/modules/es.regexp.to-string.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
\*************************************************************/
var r=n(
/*! ../internals/function-name */
`./node_modules/core-js/internals/function-name.js`).PROPER,i=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),a=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),o=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),s=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),c=n(
/*! ../internals/regexp-get-flags */
`./node_modules/core-js/internals/regexp-get-flags.js`),l=`toString`,u=RegExp.prototype,d=u[l],f=s(function(){return d.call({source:`a`,flags:`b`})!==`/a/b`}),p=r&&d.name!==l;(f||p)&&i(u,l,function(){var e=a(this),t=o(e.source),n=o(c(e));return`/`+t+`/`+n},{unsafe:!0})}),"./node_modules/core-js/modules/es.set.constructor.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.set.constructor.js ***!
\************************************************************/
/*! ../internals/collection */
/*! ../internals/collection-strong */
n(`./node_modules/core-js/internals/collection.js`)(`Set`,function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(`./node_modules/core-js/internals/collection-strong.js`))}),"./node_modules/core-js/modules/es.set.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/core-js/modules/es.set.js ***!
\************************************************/
n(
/*! ../modules/es.set.constructor */
`./node_modules/core-js/modules/es.set.constructor.js`)}),"./node_modules/core-js/modules/es.string.ends-with.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.ends-with.js ***!
\*************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this-clause */
`./node_modules/core-js/internals/function-uncurry-this-clause.js`),a=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`).f,o=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`),s=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),c=n(
/*! ../internals/not-a-regexp */
`./node_modules/core-js/internals/not-a-regexp.js`),l=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),u=n(
/*! ../internals/correct-is-regexp-logic */
`./node_modules/core-js/internals/correct-is-regexp-logic.js`),d=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),f=i(``.slice),p=Math.min,m=u(`endsWith`);r({target:`String`,proto:!0,forced:!(!d&&!m&&function(){var e=a(String.prototype,`endsWith`);return e&&!e.writable}())&&!m},{endsWith:function(e){var t=s(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:p(o(n),r),a=s(e);return f(t,i-a.length,i)===a}})}),"./node_modules/core-js/modules/es.string.includes.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.includes.js ***!
\************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/not-a-regexp */
`./node_modules/core-js/internals/not-a-regexp.js`),o=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),s=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),c=n(
/*! ../internals/correct-is-regexp-logic */
`./node_modules/core-js/internals/correct-is-regexp-logic.js`),l=i(``.indexOf);r({target:`String`,proto:!0,forced:!c(`includes`)},{includes:function(e){return!!~l(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})}),"./node_modules/core-js/modules/es.string.iterator.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.iterator.js ***!
\************************************************************/
var r=n(
/*! ../internals/string-multibyte */
`./node_modules/core-js/internals/string-multibyte.js`).charAt,i=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),a=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),o=n(
/*! ../internals/iterator-define */
`./node_modules/core-js/internals/iterator-define.js`),s=n(
/*! ../internals/create-iter-result-object */
`./node_modules/core-js/internals/create-iter-result-object.js`),c=`String Iterator`,l=a.set,u=a.getterFor(c);o(String,`String`,function(e){l(this,{type:c,string:i(e),index:0})},function(){var e=u(this),t=e.string,n=e.index,i;return n>=t.length?s(void 0,!0):(i=r(t,n),e.index+=i.length,s(i,!1))})}),"./node_modules/core-js/modules/es.string.link.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.link.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/create-html */
`./node_modules/core-js/internals/create-html.js`);
/*! ../internals/string-html-forced */
r({target:`String`,proto:!0,forced:n(`./node_modules/core-js/internals/string-html-forced.js`)(`link`)},{link:function(e){return i(this,`a`,`href`,e)}})}),"./node_modules/core-js/modules/es.string.match.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.match.js ***!
\*********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/fix-regexp-well-known-symbol-logic */
`./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),c=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`),l=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),u=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),d=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),f=n(
/*! ../internals/advance-string-index */
`./node_modules/core-js/internals/advance-string-index.js`),p=n(
/*! ../internals/regexp-get-flags */
`./node_modules/core-js/internals/regexp-get-flags.js`),m=n(
/*! ../internals/regexp-exec-abstract */
`./node_modules/core-js/internals/regexp-exec-abstract.js`),h=i(``.indexOf);a(`match`,function(e,t,n){return[function(t){var n=u(this),i=s(t)?d(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;var s=l(p(r));if(h(s,`g`)===-1)return m(r,i);var u=h(s,`u`)!==-1;r.lastIndex=0;for(var d=[],g=0,_;(_=m(r,i))!==null;){var v=l(_[0]);d[g]=v,v===``&&(r.lastIndex=f(i,c(r.lastIndex),u)),g++}return g===0?null:d}]})}),"./node_modules/core-js/modules/es.string.replace.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.replace.js ***!
\***********************************************************/
var r=n(
/*! ../internals/function-apply */
`./node_modules/core-js/internals/function-apply.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),o=n(
/*! ../internals/fix-regexp-well-known-symbol-logic */
`./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js`),s=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),c=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),l=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),u=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),d=n(
/*! ../internals/to-integer-or-infinity */
`./node_modules/core-js/internals/to-integer-or-infinity.js`),f=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`),p=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),m=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),h=n(
/*! ../internals/advance-string-index */
`./node_modules/core-js/internals/advance-string-index.js`),g=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),_=n(
/*! ../internals/get-substitution */
`./node_modules/core-js/internals/get-substitution.js`),v=n(
/*! ../internals/regexp-get-flags */
`./node_modules/core-js/internals/regexp-get-flags.js`),y=n(
/*! ../internals/regexp-exec-abstract */
`./node_modules/core-js/internals/regexp-exec-abstract.js`),b=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`replace`),x=Math.max,S=Math.min,C=a([].concat),w=a([].push),T=a(``.indexOf),E=a(``.slice),D=function(e){
/*! ../internals/well-known-symbol */
return e===void 0?e:String(e)},O=(function(){return`a`.replace(/./,`$0`)===`$0`})(),k=(function(){return/./[b]?/./[b](`a`,`$0`)===``:!1})();o(`replace`,function(e,t,n){var a=k?`$`:`$0`;return[function(e,n){var r=m(this),a=u(e)?g(e,b):void 0;return a?i(a,e,r,n):i(t,p(r),e,n)},function(e,i){var o=c(this),s=p(e);if(typeof i==`string`&&T(i,a)===-1&&T(i,`$<`)===-1){var u=n(t,o,s,i);if(u.done)return u.value}var m=l(i);m||(i=p(i));var g=p(v(o)),b=T(g,`g`)!==-1,O;b&&(O=T(g,`u`)!==-1,o.lastIndex=0);for(var k=[],A;A=y(o,s),!(A===null||(w(k,A),!b));)p(A[0])===``&&(o.lastIndex=h(s,f(o.lastIndex),O));for(var j=``,M=0,N=0;N<k.length;N++){A=k[N];for(var P=p(A[0]),F=x(S(d(A.index),s.length),0),I=[],L,R=1;R<A.length;R++)w(I,D(A[R]));var z=A.groups;if(m){var B=C([P],I,F,s);z!==void 0&&w(B,z),L=p(r(i,void 0,B))}else L=_(P,s,F,I,z,i);F>=M&&(j+=E(s,M,F)+L,M=F+P.length)}return j+E(s,M)}]},!!s(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`})||!O||k)}),"./node_modules/core-js/modules/es.string.split.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.split.js ***!
\*********************************************************/
var r=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/fix-regexp-well-known-symbol-logic */
`./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js`),o=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),s=n(
/*! ../internals/is-object */
`./node_modules/core-js/internals/is-object.js`),c=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),l=n(
/*! ../internals/species-constructor */
`./node_modules/core-js/internals/species-constructor.js`),u=n(
/*! ../internals/advance-string-index */
`./node_modules/core-js/internals/advance-string-index.js`),d=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`),f=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),p=n(
/*! ../internals/get-method */
`./node_modules/core-js/internals/get-method.js`),m=n(
/*! ../internals/regexp-exec-abstract */
`./node_modules/core-js/internals/regexp-exec-abstract.js`),h=n(
/*! ../internals/regexp-sticky-helpers */
`./node_modules/core-js/internals/regexp-sticky-helpers.js`),g=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),_=h.UNSUPPORTED_Y,v=4294967295,y=Math.min,b=i([].push),x=i(``.slice),S=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),C=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;a(`split`,function(e,t,n){var i=`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:r(t,this,e,n)}:t;return[function(t,n){var a=c(this),o=s(t)?p(t,e):void 0;return o?r(o,t,a,n):r(i,f(a),t,n)},function(e,r){var a=o(this),s=f(e);if(!C){var c=n(i,a,s,r,i!==t);if(c.done)return c.value}var p=l(a,RegExp),h=a.unicode,g=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(_?`g`:`y`),S=new p(_?`^(?:`+a.source+`)`:a,g),w=r===void 0?v:r>>>0;if(w===0)return[];if(s.length===0)return m(S,s)===null?[s]:[];for(var T=0,E=0,D=[];E<s.length;){S.lastIndex=_?0:E;var O=m(S,_?x(s,E):s),k;if(O===null||(k=y(d(S.lastIndex+(_?E:0)),s.length))===T)E=u(s,E,h);else{if(b(D,x(s,T,E)),D.length===w)return D;for(var A=1;A<=O.length-1;A++)if(b(D,O[A]),D.length===w)return D;E=T=k}}return b(D,x(s,T)),D}]},C||!S,_)}),"./node_modules/core-js/modules/es.string.starts-with.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.starts-with.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this-clause */
`./node_modules/core-js/internals/function-uncurry-this-clause.js`),a=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`).f,o=n(
/*! ../internals/to-length */
`./node_modules/core-js/internals/to-length.js`),s=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),c=n(
/*! ../internals/not-a-regexp */
`./node_modules/core-js/internals/not-a-regexp.js`),l=n(
/*! ../internals/require-object-coercible */
`./node_modules/core-js/internals/require-object-coercible.js`),u=n(
/*! ../internals/correct-is-regexp-logic */
`./node_modules/core-js/internals/correct-is-regexp-logic.js`),d=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),f=i(``.slice),p=Math.min,m=u(`startsWith`);r({target:`String`,proto:!0,forced:!(!d&&!m&&function(){var e=a(String.prototype,`startsWith`);return e&&!e.writable}())&&!m},{startsWith:function(e){var t=s(l(this));c(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return f(t,n,n+r.length)===r}})}),"./node_modules/core-js/modules/es.string.trim.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.trim.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/string-trim */
`./node_modules/core-js/internals/string-trim.js`).trim;
/*! ../internals/string-trim-forced */
r({target:`String`,proto:!0,forced:n(`./node_modules/core-js/internals/string-trim-forced.js`)(`trim`)},{trim:function(){return i(this)}})}),"./node_modules/core-js/modules/es.symbol.constructor.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.constructor.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),o=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),s=n(
/*! ../internals/is-pure */
`./node_modules/core-js/internals/is-pure.js`),c=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),l=n(
/*! ../internals/symbol-constructor-detection */
`./node_modules/core-js/internals/symbol-constructor-detection.js`),u=n(
/*! ../internals/fails */
`./node_modules/core-js/internals/fails.js`),d=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),f=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),p=n(
/*! ../internals/an-object */
`./node_modules/core-js/internals/an-object.js`),m=n(
/*! ../internals/to-indexed-object */
`./node_modules/core-js/internals/to-indexed-object.js`),h=n(
/*! ../internals/to-property-key */
`./node_modules/core-js/internals/to-property-key.js`),g=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),_=n(
/*! ../internals/create-property-descriptor */
`./node_modules/core-js/internals/create-property-descriptor.js`),v=n(
/*! ../internals/object-create */
`./node_modules/core-js/internals/object-create.js`),y=n(
/*! ../internals/object-keys */
`./node_modules/core-js/internals/object-keys.js`),b=n(
/*! ../internals/object-get-own-property-names */
`./node_modules/core-js/internals/object-get-own-property-names.js`),x=n(
/*! ../internals/object-get-own-property-names-external */
`./node_modules/core-js/internals/object-get-own-property-names-external.js`),S=n(
/*! ../internals/object-get-own-property-symbols */
`./node_modules/core-js/internals/object-get-own-property-symbols.js`),C=n(
/*! ../internals/object-get-own-property-descriptor */
`./node_modules/core-js/internals/object-get-own-property-descriptor.js`),w=n(
/*! ../internals/object-define-property */
`./node_modules/core-js/internals/object-define-property.js`),T=n(
/*! ../internals/object-define-properties */
`./node_modules/core-js/internals/object-define-properties.js`),E=n(
/*! ../internals/object-property-is-enumerable */
`./node_modules/core-js/internals/object-property-is-enumerable.js`),D=n(
/*! ../internals/define-built-in */
`./node_modules/core-js/internals/define-built-in.js`),O=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),k=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),A=n(
/*! ../internals/shared-key */
`./node_modules/core-js/internals/shared-key.js`),j=n(
/*! ../internals/hidden-keys */
`./node_modules/core-js/internals/hidden-keys.js`),M=n(
/*! ../internals/uid */
`./node_modules/core-js/internals/uid.js`),N=n(
/*! ../internals/well-known-symbol */
`./node_modules/core-js/internals/well-known-symbol.js`),P=n(
/*! ../internals/well-known-symbol-wrapped */
`./node_modules/core-js/internals/well-known-symbol-wrapped.js`),F=n(
/*! ../internals/well-known-symbol-define */
`./node_modules/core-js/internals/well-known-symbol-define.js`),I=n(
/*! ../internals/symbol-define-to-primitive */
`./node_modules/core-js/internals/symbol-define-to-primitive.js`),L=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),R=n(
/*! ../internals/internal-state */
`./node_modules/core-js/internals/internal-state.js`),z=n(
/*! ../internals/array-iteration */
`./node_modules/core-js/internals/array-iteration.js`).forEach,B=A(`hidden`),V=`Symbol`,H=`prototype`,ee=R.set,te=R.getterFor(V),U=Object[H],W=i.Symbol,G=W&&W[H],ne=i.RangeError,re=i.TypeError,ie=i.QObject,ae=C.f,oe=w.f,K=x.f,se=E.f,q=o([].push),J=k(`symbols`),ce=k(`op-symbols`),le=k(`wks`),ue=!ie||!ie[H]||!ie[H].findChild,Y=function(e,t,n){var r=ae(U,t);r&&delete U[t],oe(e,t,n),r&&e!==U&&oe(U,t,r)},de=c&&u(function(){return v(oe({},`a`,{get:function(){return oe(this,`a`,{value:7}).a}})).a!==7})?Y:oe,fe=function(e,t){var n=J[e]=v(G);return ee(n,{type:V,tag:e,description:t}),c||(n.description=t),n},pe=function(e,t,n){e===U&&pe(ce,t,n),p(e);var r=h(t);return p(n),d(J,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=v(n,{enumerable:_(0,!1)})):(d(e,B)||oe(e,B,_(1,v(null))),e[B][r]=!0),de(e,r,n)):oe(e,r,n)},X=function(e,t){p(e);var n=m(t);return z(y(n).concat(_e(n)),function(t){(!c||a(he,n,t))&&pe(e,t,n[t])}),e},me=function(e,t){return t===void 0?v(e):X(v(e),t)},he=function(e){var t=h(e),n=a(se,this,t);return this===U&&d(J,t)&&!d(ce,t)?!1:n||!d(this,t)||!d(J,t)||d(this,B)&&this[B][t]?n:!0},ge=function(e,t){var n=m(e),r=h(t);if(n!==U||!d(J,r)||d(ce,r)){var i=ae(n,r);return i&&d(J,r)&&!(d(n,B)&&n[B][r])&&(i.enumerable=!0),i}},Z=function(e){var t=K(m(e)),n=[];return z(t,function(e){!d(J,e)&&!d(j,e)&&q(n,e)}),n},_e=function(e){var t=e===U,n=K(t?ce:m(e)),r=[];return z(n,function(e){d(J,e)&&(!t||d(U,e))&&q(r,J[e])}),r};l||(W=function(){if(f(G,this))throw new re(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:g(arguments[0]),t=M(e),n=function(e){var r=this===void 0?i:this;r===U&&a(n,ce,e),d(r,B)&&d(r[B],t)&&(r[B][t]=!1);var o=_(1,e);try{de(r,t,o)}catch(e){if(!(e instanceof ne))throw e;Y(r,t,o)}};return c&&ue&&de(U,t,{configurable:!0,set:n}),fe(t,e)},G=W[H],D(G,`toString`,function(){return te(this).tag}),D(W,`withoutSetter`,function(e){return fe(M(e),e)}),E.f=he,w.f=pe,T.f=X,C.f=ge,b.f=x.f=Z,S.f=_e,P.f=function(e){return fe(N(e),e)},c&&(O(G,`description`,{configurable:!0,get:function(){return te(this).description}}),s||D(U,`propertyIsEnumerable`,he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),z(y(le),function(e){F(e)}),r({target:V,stat:!0,forced:!l},{useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),r({target:`Object`,stat:!0,forced:!l,sham:!c},{create:me,defineProperty:pe,defineProperties:X,getOwnPropertyDescriptor:ge}),r({target:`Object`,stat:!0,forced:!l},{getOwnPropertyNames:Z}),I(),L(W,V),j[B]=!0}),"./node_modules/core-js/modules/es.symbol.description.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.description.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/descriptors */
`./node_modules/core-js/internals/descriptors.js`),a=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),o=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),s=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),c=n(
/*! ../internals/is-callable */
`./node_modules/core-js/internals/is-callable.js`),l=n(
/*! ../internals/object-is-prototype-of */
`./node_modules/core-js/internals/object-is-prototype-of.js`),u=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),d=n(
/*! ../internals/define-built-in-accessor */
`./node_modules/core-js/internals/define-built-in-accessor.js`),f=n(
/*! ../internals/copy-constructor-properties */
`./node_modules/core-js/internals/copy-constructor-properties.js`),p=a.Symbol,m=p&&p.prototype;if(i&&c(p)&&(!(`description`in m)||p().description!==void 0)){var h={},g=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:u(arguments[0]),t=l(m,this)?new p(e):e===void 0?p():p(e);return e===``&&(h[t]=!0),t};f(g,p),g.prototype=m,m.constructor=g;var _=String(p(`description detection`))===`Symbol(description detection)`,v=o(m.valueOf),y=o(m.toString),b=/^Symbol\((.*)\)[^)]+$/,x=o(``.replace),S=o(``.slice);d(m,`description`,{configurable:!0,get:function(){var e=v(this);if(s(h,e))return``;var t=y(e),n=_?S(t,7,-1):x(t,b,`$1`);return n===``?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}}),"./node_modules/core-js/modules/es.symbol.for.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.for.js ***!
\*******************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/get-built-in */
`./node_modules/core-js/internals/get-built-in.js`),a=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),o=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),s=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),c=n(
/*! ../internals/symbol-registry-detection */
`./node_modules/core-js/internals/symbol-registry-detection.js`),l=s(`string-to-symbol-registry`),u=s(`symbol-to-string-registry`);r({target:`Symbol`,stat:!0,forced:!c},{for:function(e){var t=o(e);if(a(l,t))return l[t];var n=i(`Symbol`)(t);return l[t]=n,u[n]=t,n}})}),"./node_modules/core-js/modules/es.symbol.iterator.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.iterator.js ***!
\************************************************************/
/*! ../internals/well-known-symbol-define */
n(`./node_modules/core-js/internals/well-known-symbol-define.js`)(`iterator`)}),"./node_modules/core-js/modules/es.symbol.js":(function(e,t,n){
/*!***************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.js ***!
\***************************************************/
/*! ../modules/es.symbol.constructor */
/*! ../modules/es.symbol.for */
/*! ../modules/es.symbol.key-for */
/*! ../modules/es.json.stringify */
n(`./node_modules/core-js/modules/es.symbol.constructor.js`),n(`./node_modules/core-js/modules/es.symbol.for.js`),n(`./node_modules/core-js/modules/es.symbol.key-for.js`),n(`./node_modules/core-js/modules/es.json.stringify.js`),n(
/*! ../modules/es.object.get-own-property-symbols */
`./node_modules/core-js/modules/es.object.get-own-property-symbols.js`)}),"./node_modules/core-js/modules/es.symbol.key-for.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/es.symbol.key-for.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/has-own-property */
`./node_modules/core-js/internals/has-own-property.js`),a=n(
/*! ../internals/is-symbol */
`./node_modules/core-js/internals/is-symbol.js`),o=n(
/*! ../internals/try-to-string */
`./node_modules/core-js/internals/try-to-string.js`),s=n(
/*! ../internals/shared */
`./node_modules/core-js/internals/shared.js`),c=n(
/*! ../internals/symbol-registry-detection */
`./node_modules/core-js/internals/symbol-registry-detection.js`),l=s(`symbol-to-string-registry`);r({target:`Symbol`,stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw TypeError(o(e)+` is not a symbol`);if(i(l,e))return l[e]}})}),"./node_modules/core-js/modules/esnext.iterator.constructor.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.iterator.constructor.js ***!
\*********************************************************************/
n(
/*! ../modules/es.iterator.constructor */
`./node_modules/core-js/modules/es.iterator.constructor.js`)}),"./node_modules/core-js/modules/esnext.iterator.for-each.js":(function(e,t,n){
/*!******************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.iterator.for-each.js ***!
\******************************************************************/
n(
/*! ../modules/es.iterator.for-each */
`./node_modules/core-js/modules/es.iterator.for-each.js`)}),"./node_modules/core-js/modules/esnext.iterator.map.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.iterator.map.js ***!
\*************************************************************/
n(
/*! ../modules/es.iterator.map */
`./node_modules/core-js/modules/es.iterator.map.js`)}),"./node_modules/core-js/modules/esnext.set.add-all.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.add-all.js ***!
\************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),a=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).add;r({target:`Set`,proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)a(e,arguments[t]);return e}})}),"./node_modules/core-js/modules/esnext.set.delete-all.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.delete-all.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),a=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`).remove;r({target:`Set`,proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e=i(this),t=!0,n,r=0,o=arguments.length;r<o;r++)n=a(e,arguments[r]),t&&=n;return!!t}})}),"./node_modules/core-js/modules/esnext.set.difference.js":(function(e,t,n){
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.difference.js ***!
\***************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-difference */
`./node_modules/core-js/internals/set-difference.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{difference:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.every.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.every.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{every:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0);return o(t,function(e){if(!n(e,e,t))return!1},!0)!==!1}})}),"./node_modules/core-js/modules/esnext.set.filter.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.filter.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),s=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),c=o.Set,l=o.add;r({target:`Set`,proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new c;return s(t,function(e){n(e,e,t)&&l(r,e)}),r}})}),"./node_modules/core-js/modules/esnext.set.find.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.find.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=o(t,function(e){if(n(e,e,t))return{value:e}},!0);return r&&r.value}})}),"./node_modules/core-js/modules/esnext.set.intersection.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.intersection.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-intersection */
`./node_modules/core-js/internals/set-intersection.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{intersection:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.is-disjoint-from.js":(function(e,t,n){
/*!*********************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.is-disjoint-from.js ***!
\*********************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-is-disjoint-from */
`./node_modules/core-js/internals/set-is-disjoint-from.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.is-subset-of.js":(function(e,t,n){
/*!*****************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.is-subset-of.js ***!
\*****************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-is-subset-of */
`./node_modules/core-js/internals/set-is-subset-of.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.is-superset-of.js":(function(e,t,n){
/*!*******************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.is-superset-of.js ***!
\*******************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-is-superset-of */
`./node_modules/core-js/internals/set-is-superset-of.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.join.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.join.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-uncurry-this */
`./node_modules/core-js/internals/function-uncurry-this.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),s=n(
/*! ../internals/to-string */
`./node_modules/core-js/internals/to-string.js`),c=i([].join),l=i([].push);r({target:`Set`,proto:!0,real:!0,forced:!0},{join:function(e){var t=a(this),n=e===void 0?`,`:s(e),r=[];return o(t,function(e){l(r,e)}),c(r,n)}})}),"./node_modules/core-js/modules/esnext.set.map.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.map.js ***!
\********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-helpers */
`./node_modules/core-js/internals/set-helpers.js`),s=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),c=o.Set,l=o.add;r({target:`Set`,proto:!0,real:!0,forced:!0},{map:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new c;return s(t,function(e){l(r,n(e,e,t))}),r}})}),"./node_modules/core-js/modules/esnext.set.reduce.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.reduce.js ***!
\***********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/a-callable */
`./node_modules/core-js/internals/a-callable.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`),s=TypeError;r({target:`Set`,proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,r=n?void 0:arguments[1];if(i(e),o(t,function(i){n?(n=!1,r=i):r=e(r,i,i,t)}),n)throw new s(`Reduce of empty set with no initial value`);return r}})}),"./node_modules/core-js/modules/esnext.set.some.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.some.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-bind-context */
`./node_modules/core-js/internals/function-bind-context.js`),a=n(
/*! ../internals/a-set */
`./node_modules/core-js/internals/a-set.js`),o=n(
/*! ../internals/set-iterate */
`./node_modules/core-js/internals/set-iterate.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0);return o(t,function(e){if(n(e,e,t))return!0},!0)===!0}})}),"./node_modules/core-js/modules/esnext.set.symmetric-difference.js":(function(e,t,n){
/*!*************************************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.symmetric-difference.js ***!
\*************************************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-symmetric-difference */
`./node_modules/core-js/internals/set-symmetric-difference.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/esnext.set.union.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/esnext.set.union.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/function-call */
`./node_modules/core-js/internals/function-call.js`),a=n(
/*! ../internals/to-set-like */
`./node_modules/core-js/internals/to-set-like.js`),o=n(
/*! ../internals/set-union */
`./node_modules/core-js/internals/set-union.js`);r({target:`Set`,proto:!0,real:!0,forced:!0},{union:function(e){return i(o,this,a(e))}})}),"./node_modules/core-js/modules/web.dom-collections.for-each.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***!
\**********************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/dom-iterables */
`./node_modules/core-js/internals/dom-iterables.js`),a=n(
/*! ../internals/dom-token-list-prototype */
`./node_modules/core-js/internals/dom-token-list-prototype.js`),o=n(
/*! ../internals/array-for-each */
`./node_modules/core-js/internals/array-for-each.js`),s=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),c=function(e){if(e&&e.forEach!==o)try{s(e,`forEach`,o)}catch{e.forEach=o}};for(var l in i)i[l]&&c(r[l]&&r[l].prototype);c(a)}),"./node_modules/core-js/modules/web.dom-collections.iterator.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***!
\**********************************************************************/
var r=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),i=n(
/*! ../internals/dom-iterables */
`./node_modules/core-js/internals/dom-iterables.js`),a=n(
/*! ../internals/dom-token-list-prototype */
`./node_modules/core-js/internals/dom-token-list-prototype.js`),o=n(
/*! ../modules/es.array.iterator */
`./node_modules/core-js/modules/es.array.iterator.js`),s=n(
/*! ../internals/create-non-enumerable-property */
`./node_modules/core-js/internals/create-non-enumerable-property.js`),c=n(
/*! ../internals/set-to-string-tag */
`./node_modules/core-js/internals/set-to-string-tag.js`),l=n(`./node_modules/core-js/internals/well-known-symbol.js`)(`iterator`),u=o.values,d=function(e,t){
/*! ../internals/well-known-symbol */
if(e){if(e[l]!==u)try{s(e,l,u)}catch{e[l]=u}if(c(e,t,!0),i[t]){for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch{e[n]=o[n]}}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(a,`DOMTokenList`)}),"./node_modules/core-js/modules/web.set-interval.js":(function(e,t,n){
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/web.set-interval.js ***!
\**********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(`./node_modules/core-js/internals/schedulers-fix.js`)(i.setInterval,!0)
/*! ../internals/schedulers-fix */
;r({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})}),"./node_modules/core-js/modules/web.set-timeout.js":(function(e,t,n){
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/web.set-timeout.js ***!
\*********************************************************/
var r=n(
/*! ../internals/export */
`./node_modules/core-js/internals/export.js`),i=n(
/*! ../internals/global-this */
`./node_modules/core-js/internals/global-this.js`),a=n(`./node_modules/core-js/internals/schedulers-fix.js`)(i.setTimeout,!0)
/*! ../internals/schedulers-fix */
;r({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})}),"./node_modules/core-js/modules/web.timers.js":(function(e,t,n){
/*!****************************************************!*\
!*** ./node_modules/core-js/modules/web.timers.js ***!
\****************************************************/
/*! ../modules/web.set-interval */
n(`./node_modules/core-js/modules/web.set-interval.js`),n(
/*! ../modules/web.set-timeout */
`./node_modules/core-js/modules/web.set-timeout.js`)}),"./node_modules/dompurify/dist/purify.es.mjs":(function(e,t,n){
/*!***************************************************!*\
!*** ./node_modules/dompurify/dist/purify.es.mjs ***!
\***************************************************/
n.r(t),n.d(t,{default:function(){return Y}});
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
let{entries:r,setPrototypeOf:i,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object,{freeze:c,seal:l,create:u}=Object,{apply:d,construct:f}=typeof Reflect<`u`&&Reflect;c||=function(e){return e},l||=function(e){return e},d||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},f||=function(e){return new e(...[...arguments].slice(1))};let p=D(Array.prototype.forEach),m=D(Array.prototype.lastIndexOf),h=D(Array.prototype.pop),g=D(Array.prototype.push),_=D(Array.prototype.splice),v=D(String.prototype.toLowerCase),y=D(String.prototype.toString),b=D(String.prototype.match),x=D(String.prototype.replace),S=D(String.prototype.indexOf),C=D(String.prototype.trim),w=D(Object.prototype.hasOwnProperty),T=D(RegExp.prototype.test),E=O(TypeError);function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return d(e,t,n)}}function O(e){return function(){return f(e,[...arguments])}}function k(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(a(t)||(t[r]=e),i=e)}e[i]=!0}return e}function A(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function j(e){let t=u(null);for(let[n,i]of r(e))w(e,n)&&(t[n]=Array.isArray(i)?A(i):i&&typeof i==`object`&&i.constructor===Object?j(i):i);return t}function M(e,t){for(;e!==null;){let n=s(e,t);if(n){if(n.get)return D(n.get);if(typeof n.value==`function`)return D(n.value)}e=o(e)}function n(){return null}return n}let N=c(/* @__PURE__ */ `a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),P=c(/* @__PURE__ */ `svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),F=c([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),I=c([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),L=c(/* @__PURE__ */ `math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),R=c([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),z=c([`#text`]),B=c(/* @__PURE__ */ `accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),V=c(/* @__PURE__ */ `accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),H=c(/* @__PURE__ */ `accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),ee=c([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),te=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=l(/<%[\w\W]*|[\w\W]*%>/gm),W=l(/\$\{[\w\W]*/gm),G=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),ne=l(/^aria-[\-\w]+$/),re=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ie=l(/^(?:\w+script|data):/i),ae=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=l(/^html$/i),K=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var se=/*#__PURE__*/ Object.freeze({__proto__:null,ARIA_ATTR:ne,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:K,DATA_ATTR:G,DOCTYPE_NAME:oe,ERB_EXPR:U,IS_ALLOWED_URI:re,IS_SCRIPT_OR_DATA:ie,MUSTACHE_EXPR:te,TMPLIT_EXPR:W});let q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},J=function(){return typeof window>`u`?null:window},ce=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},le=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J(),t=e=>ue(e);if(t.version=`3.3.1`,t.removed=[],!e||!e.document||e.document.nodeType!==q.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:d,NodeFilter:f,NamedNodeMap:D=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:O,DOMParser:A,trustedTypes:te}=e,U=d.prototype,W=M(U,`cloneNode`),G=M(U,`remove`),ne=M(U,`nextSibling`),ie=M(U,`childNodes`),ae=M(U,`parentNode`);if(typeof s==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let K,Y=``,{implementation:de,createNodeIterator:fe,createDocumentFragment:pe,getElementsByTagName:X}=n,{importNode:me}=i,he=le();t.isSupported=typeof r==`function`&&typeof ae==`function`&&de&&de.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ge,ERB_EXPR:Z,TMPLIT_EXPR:_e,DATA_ATTR:ve,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Se}=se,{IS_ALLOWED_URI:Ce}=se,we=null,Te=k({},[...N,...P,...F,...L,...z]),Q=null,Ee=k({},[...B,...V,...H,...ee]),$=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Oe=null,ke=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ae=!0,je=!0,Me=!1,Ne=!0,Pe=!1,Fe=!0,Ie=!1,Le=!1,Re=!1,ze=!1,Be=!1,Ve=!1,He=!0,Ue=!1,We=!0,Ge=!1,Ke={},qe=null,Je=k({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ye=null,Xe=k({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ze=null,Qe=k({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),$e=`http://www.w3.org/1998/Math/MathML`,et=`http://www.w3.org/2000/svg`,tt=`http://www.w3.org/1999/xhtml`,nt=tt,rt=!1,it=null,at=k({},[$e,et,tt],y),ot=k({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),st=k({},[`annotation-xml`]),ct=k({},[`title`,`style`,`font`,`a`,`script`]),lt=null,ut=[`application/xhtml+xml`,`text/html`],dt=null,ft=null,pt=n.createElement(`form`),mt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ft&&ft===e)){if((!e||typeof e!=`object`)&&(e={}),e=j(e),lt=ut.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,dt=lt===`application/xhtml+xml`?y:v,we=w(e,`ALLOWED_TAGS`)?k({},e.ALLOWED_TAGS,dt):Te,Q=w(e,`ALLOWED_ATTR`)?k({},e.ALLOWED_ATTR,dt):Ee,it=w(e,`ALLOWED_NAMESPACES`)?k({},e.ALLOWED_NAMESPACES,y):at,Ze=w(e,`ADD_URI_SAFE_ATTR`)?k(j(Qe),e.ADD_URI_SAFE_ATTR,dt):Qe,Ye=w(e,`ADD_DATA_URI_TAGS`)?k(j(Xe),e.ADD_DATA_URI_TAGS,dt):Xe,qe=w(e,`FORBID_CONTENTS`)?k({},e.FORBID_CONTENTS,dt):Je,De=w(e,`FORBID_TAGS`)?k({},e.FORBID_TAGS,dt):j({}),Oe=w(e,`FORBID_ATTR`)?k({},e.FORBID_ATTR,dt):j({}),Ke=w(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ae=e.ALLOW_ARIA_ATTR!==!1,je=e.ALLOW_DATA_ATTR!==!1,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=e.SAFE_FOR_TEMPLATES||!1,Fe=e.SAFE_FOR_XML!==!1,Ie=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,He=e.SANITIZE_DOM!==!1,Ue=e.SANITIZE_NAMED_PROPS||!1,We=e.KEEP_CONTENT!==!1,Ge=e.IN_PLACE||!1,Ce=e.ALLOWED_URI_REGEXP||re,nt=e.NAMESPACE||tt,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,st=e.HTML_INTEGRATION_POINTS||st,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(je=!1),Be&&(ze=!0),Ke&&(we=k({},z),Q=[],Ke.html===!0&&(k(we,N),k(Q,B)),Ke.svg===!0&&(k(we,P),k(Q,V),k(Q,ee)),Ke.svgFilters===!0&&(k(we,F),k(Q,V),k(Q,ee)),Ke.mathMl===!0&&(k(we,L),k(Q,H),k(Q,ee))),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ke.tagCheck=e.ADD_TAGS:(we===Te&&(we=j(we)),k(we,e.ADD_TAGS,dt))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ke.attributeCheck=e.ADD_ATTR:(Q===Ee&&(Q=j(Q)),k(Q,e.ADD_ATTR,dt))),e.ADD_URI_SAFE_ATTR&&k(Ze,e.ADD_URI_SAFE_ATTR,dt),e.FORBID_CONTENTS&&(qe===Je&&(qe=j(qe)),k(qe,e.FORBID_CONTENTS,dt)),e.ADD_FORBID_CONTENTS&&(qe===Je&&(qe=j(qe)),k(qe,e.ADD_FORBID_CONTENTS,dt)),We&&(we[`#text`]=!0),Ie&&k(we,[`html`,`head`,`body`]),we.table&&(k(we,[`tbody`]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw E(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw E(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);K=e.TRUSTED_TYPES_POLICY,Y=K.createHTML(``)}else K===void 0&&(K=ce(te,a)),K!==null&&typeof Y==`string`&&(Y=K.createHTML(``));c&&c(e),ft=e}},gt=k({},[...P,...F,...I]),_t=k({},[...L,...R]),vt=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:nt,tagName:`template`});let n=v(e.tagName),r=v(t.tagName);return it[e.namespaceURI]?e.namespaceURI===et?t.namespaceURI===tt?n===`svg`:t.namespaceURI===$e?n===`svg`&&(r===`annotation-xml`||ot[r]):!!gt[n]:e.namespaceURI===$e?t.namespaceURI===tt?n===`math`:t.namespaceURI===et?n===`math`&&st[r]:!!_t[n]:e.namespaceURI===tt?t.namespaceURI===et&&!st[r]||t.namespaceURI===$e&&!ot[r]?!1:!_t[n]&&(ct[n]||!gt[n]):!!(lt===`application/xhtml+xml`&&it[e.namespaceURI]):!1},yt=function(e){g(t.removed,{element:e});try{ae(e).removeChild(e)}catch{G(e)}},bt=function(e,n){try{g(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{g(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`){if(ze||Be)try{yt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},xt=function(e){let t=null,r=null;if(Re)e=`<remove></remove>`+e;else{let t=b(e,/^[\r\n\t ]+/);r=t&&t[0]}lt===`application/xhtml+xml`&&nt===tt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=K?K.createHTML(e):e;if(nt===tt)try{t=new A().parseFromString(i,lt)}catch{}if(!t||!t.documentElement){t=de.createDocument(nt,`template`,null);try{t.documentElement.innerHTML=rt?Y:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),nt===tt?X.call(t,Ie?`html`:`body`)[0]:Ie?t.documentElement:a},St=function(e){return fe.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ct=function(e){return e instanceof O&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof D)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},wt=function(e){return typeof l==`function`&&e instanceof l};function Tt(e,n,r){p(e,e=>{e.call(t,n,r,ft)})}let Et=function(e){let n=null;if(Tt(he.beforeSanitizeElements,e,null),Ct(e))return yt(e),!0;let r=dt(e.nodeName);if(Tt(he.uponSanitizeElement,e,{tagName:r,allowedTags:we}),Fe&&e.hasChildNodes()&&!wt(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent)||e.nodeType===q.progressingInstruction||Fe&&e.nodeType===q.comment&&T(/<[/\w]/g,e.data))return yt(e),!0;if(!(ke.tagCheck instanceof Function&&ke.tagCheck(r))&&(!we[r]||De[r])){if(!De[r]&&Ot(r)&&($.tagNameCheck instanceof RegExp&&T($.tagNameCheck,r)||$.tagNameCheck instanceof Function&&$.tagNameCheck(r)))return!1;if(We&&!qe[r]){let t=ae(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=W(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}}return yt(e),!0}return e instanceof d&&!vt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&T(/<\/no(script|embed|frames)/i,e.innerHTML)?(yt(e),!0):(Pe&&e.nodeType===q.text&&(n=e.textContent,p([ge,Z,_e],e=>{n=x(n,e,` `)}),e.textContent!==n&&(g(t.removed,{element:e.cloneNode()}),e.textContent=n)),Tt(he.afterSanitizeElements,e,null),!1)},Dt=function(e,t,r){if(He&&(t===`id`||t===`name`)&&(r in n||r in pt))return!1;if(!(je&&!Oe[t]&&T(ve,t))&&!(Ae&&T(ye,t))&&!(ke.attributeCheck instanceof Function&&ke.attributeCheck(t,e))){if(!Q[t]||Oe[t]){if(!(Ot(e)&&($.tagNameCheck instanceof RegExp&&T($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&T($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t,e))||t===`is`&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&T($.tagNameCheck,r)||$.tagNameCheck instanceof Function&&$.tagNameCheck(r))))return!1}else if(!Ze[t]&&!T(Ce,x(r,xe,``))&&(t!==`src`&&t!==`xlink:href`&&t!==`href`||e===`script`||S(r,`data:`)!==0||!Ye[e])&&(!Me||T(be,x(r,xe,``)))&&r)return!1}return!0},Ot=function(e){return e!==`annotation-xml`&&b(e,Se)},kt=function(e){Tt(he.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ct(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=dt(a),l=s,u=a===`value`?l:C(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Tt(he.uponSanitizeAttribute,e,r),u=r.attrValue,Ue&&(c===`id`||c===`name`)&&(bt(a,e),u=`user-content-`+u),Fe&&T(/((--!?|])>)|<\/(style|title|textarea)/i,u)){bt(a,e);continue}if(c===`attributename`&&b(u,`href`)){bt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){bt(a,e);continue}if(!Ne&&T(/\/>/i,u)){bt(a,e);continue}Pe&&p([ge,Z,_e],e=>{u=x(u,e,` `)});let d=dt(e.nodeName);if(!Dt(d,c,u)){bt(a,e);continue}if(K&&typeof te==`object`&&typeof te.getAttributeType==`function`&&!o)switch(te.getAttributeType(d,c)){case`TrustedHTML`:u=K.createHTML(u);break;case`TrustedScriptURL`:u=K.createScriptURL(u)}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ct(e)?yt(e):h(t.removed)}catch{bt(a,e)}}Tt(he.afterSanitizeAttributes,e,null)},At=function e(t){let n=null,r=St(t);for(Tt(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Tt(he.uponSanitizeShadowNode,n,null),Et(n),kt(n),n.content instanceof o&&e(n.content);Tt(he.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,a=null,s=null,c=null;if(rt=!e,rt&&(e=`<!-->`),typeof e!=`string`&&!wt(e)){if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw E(`dirty is not a string, aborting`)}else throw E(`toString is not a function`)}if(!t.isSupported)return e;if(Le||ht(n),t.removed=[],typeof e==`string`&&(Ge=!1),Ge){if(e.nodeName){let t=dt(e.nodeName);if(!we[t]||De[t])throw E(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof l)r=xt(`<!---->`),a=r.ownerDocument.importNode(e,!0),a.nodeType===q.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?r=a:r.appendChild(a);else{if(!ze&&!Pe&&!Ie&&e.indexOf(`<`)===-1)return K&&Ve?K.createHTML(e):e;if(r=xt(e),!r)return ze?null:Ve?Y:``}r&&Re&&yt(r.firstChild);let u=St(Ge?e:r);for(;s=u.nextNode();)Et(s),kt(s),s.content instanceof o&&At(s.content);if(Ge)return e;if(ze){if(Be)for(c=pe.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Q.shadowroot||Q.shadowrootmode)&&(c=me.call(i,c,!0)),c}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&we[`!doctype`]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&T(oe,r.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+r.ownerDocument.doctype.name+`>
`+d),Pe&&p([ge,Z,_e],e=>{d=x(d,e,` `)}),K&&Ve?K.createHTML(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ht(e),Le=!0},t.clearConfig=function(){ft=null,Le=!1},t.isValidAttribute=function(e,t,n){ft||ht({});let r=dt(e),i=dt(t);return Dt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&g(he[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=m(he[e],t);return n===-1?void 0:_(he[e],n,1)[0]}return h(he[e])},t.removeHooks=function(e){he[e]=[]},t.removeAllHooks=function(){he=le()},t}var Y=ue()}),"./node_modules/fast-png/lib-esm/PngDecoder.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/fast-png/lib-esm/PngDecoder.js ***!
\*****************************************************/
n.r(t),n.d(t,{default:function(){return d}});var r=n(
/*! iobuffer */
`./node_modules/iobuffer/lib-esm/IOBuffer.js`),i=n(
/*! pako */
`./node_modules/pako/dist/pako.esm.mjs`),a=n(
/*! ./helpers/crc */
`./node_modules/fast-png/lib-esm/helpers/crc.js`),o=n(
/*! ./helpers/decodeInterlaceAdam7 */
`./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js`),s=n(
/*! ./helpers/decodeInterlaceNull */
`./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js`),c=n(
/*! ./helpers/signature */
`./node_modules/fast-png/lib-esm/helpers/signature.js`),l=n(
/*! ./helpers/text */
`./node_modules/fast-png/lib-esm/helpers/text.js`),u=n(
/*! ./internalTypes */
`./node_modules/fast-png/lib-esm/internalTypes.js`);class d extends r.IOBuffer{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);let{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new i.Inflate,this._png={width:-1,height:-1,channels:-1,data:/* @__PURE__ */ new Uint8Array,depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=/* @__PURE__ */ new Uint16Array,this._compressionMethod=u.CompressionMethod.UNKNOWN,this._filterMethod=u.FilterMethod.UNKNOWN,this._interlaceMethod=u.InterlaceMethod.UNKNOWN,this._colorType=u.ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for((0,c.checkSignature)(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for((0,c.checkSignature)(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){let n=this.offset;switch(t){case`IHDR`:this.decodeIHDR();break;case`PLTE`:this.decodePLTE(e);break;case`IDAT`:this.decodeIDAT(e);break;case`IEND`:this._end=!0;break;case`tRNS`:this.decodetRNS(e);break;case`iCCP`:this.decodeiCCP(e);break;case l.textChunkName:(0,l.decodetEXt)(this._png.text,this,e);break;case`pHYs`:this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,a.checkCrc)(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){let n=this.offset;switch(t!==`fdAT`&&t!==`IDAT`&&this._writingDataChunks&&this.pushDataToFrame(),t){case`acTL`:this.decodeACTL();break;case`fcTL`:this.decodeFCTL();break;case`fdAT`:this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,a.checkCrc)(this,e+4,t):this.skip(4)}decodeIHDR(){let e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=f(this.readUint8());let t=this.readUint8();this._colorType=t;let n;switch(t){case u.ColorType.GREYSCALE:n=1;break;case u.ColorType.TRUECOLOUR:n=3;break;case u.ColorType.INDEXED_COLOUR:n=1;break;case u.ColorType.GREYSCALE_ALPHA:n=2;break;case u.ColorType.TRUECOLOUR_ALPHA:n=4;break;case u.ColorType.UNKNOWN:default:throw Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==u.CompressionMethod.DEFLATE)throw Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:/* @__PURE__ */ new Uint8Array};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);let t=e/3;this._hasPalette=!0;let n=[];this._palette=n;for(let e=0;e<t;e++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case u.ColorType.GREYSCALE:case u.ColorType.TRUECOLOUR:if(e%2!=0)throw RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case u.ColorType.INDEXED_COLOUR:{if(e>this._palette.length)throw Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){let e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case u.ColorType.UNKNOWN:case u.ColorType.GREYSCALE_ALPHA:case u.ColorType.TRUECOLOUR_ALPHA:default:throw Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){let t=(0,l.readKeyword)(this),n=this.readUint8();if(n!==u.CompressionMethod.DEFLATE)throw Error(`Unsupported iCCP compression method: ${n}`);let r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:(0,i.inflate)(r)}}decodepHYs(){let e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){let t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=(0,s.decodeInterlaceNull)({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{let r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case u.DisposeOpType.NONE:break;case u.DisposeOpType.BACKGROUND:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){let i=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[i+e]=0}break;case u.DisposeOpType.PREVIOUS:n.data.set(t.data);break;default:throw Error(`Unknown disposeOp`)}}addFrameDataToCanvas(e,t){let n=1<<this._png.depth,r=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case u.BlendOpType.SOURCE:for(let n=0;n<t.height;n++)for(let i=0;i<t.width;i++){let{index:a,frameIndex:o}=r(n,i);for(let n=0;n<this._png.channels;n++)e.data[a+n]=t.data[o+n]}break;case u.BlendOpType.OVER:for(let i=0;i<t.height;i++)for(let a=0;a<t.width;a++){let{index:o,frameIndex:s}=r(i,a);for(let r=0;r<this._png.channels;r++){let i=t.data[s+this._png.channels-1]/n,a=r%(this._png.channels-1)==0?1:t.data[s+r],c=Math.floor(i*a+(1-i)*e.data[o+r]);e.data[o+r]+=c}}break;default:throw Error(`Unknown blendOp`)}}decodeImage(){if(this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);let e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==u.FilterMethod.ADAPTIVE)throw Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===u.InterlaceMethod.NO_INTERLACE)this._png.data=(0,s.decodeInterlaceNull)({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===u.InterlaceMethod.ADAM7)this._png.data=(0,o.decodeInterlaceAdam7)({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:u.DisposeOpType.NONE,blendOp:u.BlendOpType.SOURCE,data:e}),this._inflator=new i.Inflate,this._writingDataChunks=!1}}function f(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw Error(`invalid bit depth: ${e}`);return e}}),"./node_modules/fast-png/lib-esm/PngEncoder.js":(function(e,t,n){
/*!*****************************************************!*\
!*** ./node_modules/fast-png/lib-esm/PngEncoder.js ***!
\*****************************************************/
n.r(t),n.d(t,{default:function(){return u}});var r=n(
/*! iobuffer */
`./node_modules/iobuffer/lib-esm/IOBuffer.js`),i=n(
/*! pako */
`./node_modules/pako/dist/pako.esm.mjs`),a=n(
/*! ./helpers/crc */
`./node_modules/fast-png/lib-esm/helpers/crc.js`),o=n(
/*! ./helpers/signature */
`./node_modules/fast-png/lib-esm/helpers/signature.js`),s=n(
/*! ./helpers/text */
`./node_modules/fast-png/lib-esm/helpers/text.js`),c=n(
/*! ./internalTypes */
`./node_modules/fast-png/lib-esm/internalTypes.js`);let l={level:3};class u extends r.IOBuffer{_png;_zlibOptions;_colorType;_interlaceMethod;constructor(e,t={}){super(),this._colorType=c.ColorType.UNKNOWN,this._zlibOptions={...l,...t.zlib},this._png=this._checkData(e),this._interlaceMethod=(t.interlace===`Adam7`?c.InterlaceMethod.ADAM7:c.InterlaceMethod.NO_INTERLACE)??c.InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if((0,o.writeSignature)(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(let[e,t]of Object.entries(this._png.text))(0,s.encodetEXt)(this,e,t);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars(`IHDR`),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(c.CompressionMethod.DEFLATE),this.writeByte(c.FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),(0,a.writeCrc)(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars(`IEND`),(0,a.writeCrc)(this,4)}encodePLTE(){let e=this._png.palette?.length*3;this.writeUint32(e),this.writeChars(`PLTE`);for(let e of this._png.palette)this.writeByte(e[0]),this.writeByte(e[1]),this.writeByte(e[2]);(0,a.writeCrc)(this,4+e)}encodeTRNS(){let e=this._png.palette.filter(e=>e.at(-1)!==255);this.writeUint32(e.length),this.writeChars(`tRNS`);for(let t of e)this.writeByte(t.at(-1));(0,a.writeCrc)(this,4+e.length)}encodeIDAT(e){this.writeUint32(e.length),this.writeChars(`IDAT`),this.writeBytes(e),(0,a.writeCrc)(this,e.length+4)}encodeData(){let{width:e,height:t,channels:n,depth:a,data:o}=this._png,s=a<=8?Math.ceil(e*a/8)*n:Math.ceil(e*a/8*n/2),l=new r.IOBuffer().setBigEndian(),u=0;if(this._interlaceMethod===c.InterlaceMethod.NO_INTERLACE)for(let e=0;e<t;e++)l.writeByte(0),u=a===16?h(o,l,s,u):p(o,l,s,u);else this._interlaceMethod===c.InterlaceMethod.ADAM7&&(u=m(this._png,o,l,u));let d=l.toArray(),f=(0,i.deflate)(d,this._zlibOptions);this.encodeIDAT(f)}_checkData(e){let{colorType:t,channels:n,depth:r}=f(e,e.palette),i={width:d(e.width,`width`),height:d(e.height,`height`),channels:n,data:e.data,depth:r,text:e.text,palette:e.palette};this._colorType=t;let a=r<8?Math.ceil(i.width*r/8)*i.height*n:i.width*i.height*n;if(i.data.length!==a)throw RangeError(`wrong data size. Found ${i.data.length}, expected ${a}`);return i}}function d(e,t){if(Number.isInteger(e)&&e>0)return e;throw TypeError(`${t} must be a positive integer`)}function f(e,t){let{channels:n=4,depth:r=8}=e;if(n!==4&&n!==3&&n!==2&&n!==1)throw RangeError(`unsupported number of channels: ${n}`);let i={channels:n,depth:r,colorType:c.ColorType.UNKNOWN};switch(n){case 4:i.colorType=c.ColorType.TRUECOLOUR_ALPHA;break;case 3:i.colorType=c.ColorType.TRUECOLOUR;break;case 1:i.colorType=t?c.ColorType.INDEXED_COLOUR:c.ColorType.GREYSCALE;break;case 2:i.colorType=c.ColorType.GREYSCALE_ALPHA;break;default:throw Error(`unsupported number of channels`)}return i}function p(e,t,n,r){for(let i=0;i<n;i++)t.writeByte(e[r++]);return r}function m(e,t,n,r){let i=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:a,height:o,channels:s,depth:c}=e,l=0;l=c===16?s*c/8/2:s*c/8;for(let e=0;e<7;e++){let r=i[e],s=Math.floor((a-r.x+r.xStep-1)/r.xStep),u=Math.floor((o-r.y+r.yStep-1)/r.yStep);if(s<=0||u<=0)continue;let d=s*l;for(let e=0;e<u;e++){let i=r.y+e*r.yStep,u=c<=8?new Uint8Array(d):new Uint16Array(d),f=0;for(let e=0;e<s;e++){let n=r.x+e*r.xStep;if(n<a&&i<o){let e=(i*a+n)*l;for(let n=0;n<l;n++)u[f++]=t[e+n]}}if(n.writeByte(0),c===8)n.writeBytes(u);else if(c===16)for(let e of u)n.writeByte(e>>8&255),n.writeByte(e&255)}}return r}function h(e,t,n,r){for(let i=0;i<n;i++)t.writeUint16(e[r++]);return r}}),"./node_modules/fast-png/lib-esm/convertIndexedToRgb.js":(function(e,t,n){
/*!**************************************************************!*\
!*** ./node_modules/fast-png/lib-esm/convertIndexedToRgb.js ***!
\**************************************************************/
n.r(t),n.d(t,{convertIndexedToRgb:function(){return r}});function r(e){let t=e.palette,n=e.depth;if(!t)throw Error(`Color palette is undefined.`);i(e);let r=e.width*e.height,a=r*t[0].length,o=new Uint8Array(a),s=0,c=0,l=new Uint8Array(r),u=255;switch(n){case 1:u=128;break;case 2:u=192;break;case 4:u=240;break;case 8:u=255;break;default:throw Error(`Incorrect depth value`)}for(let t of e.data){let r=u,i=8;for(;r&&(i-=n,l[s++]=(t&r)>>i,r>>=n,s%e.width!==0););}if(e.palette)for(let t of l){let n=e.palette.at(t);if(!n)throw Error(`Incorrect index of palette color`);o.set(n,c),c+=n.length}return o}function i(e){let t=e.depth<8?Math.ceil(e.width*e.depth/8)*e.height*e.channels:e.width*e.height*e.channels;if(e.data.length!==t)throw RangeError(`wrong data size. Found ${e.data.length}, expected ${t}`)}}),"./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js":(function(e,t,n){
/*!****************************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js ***!
\****************************************************************/
n.r(t),n.d(t,{applyUnfilter:function(){return i}});var r=n(
/*! ./unfilter */
`./node_modules/fast-png/lib-esm/helpers/unfilter.js`);function i(e,t,n,i,a,o){switch(e){case 0:(0,r.unfilterNone)(t,n,a);break;case 1:(0,r.unfilterSub)(t,n,a,o);break;case 2:(0,r.unfilterUp)(t,n,i,a);break;case 3:(0,r.unfilterAverage)(t,n,i,a,o);break;case 4:(0,r.unfilterPaeth)(t,n,i,a,o);break;default:throw Error(`Unsupported filter: ${e}`)}}}),"./node_modules/fast-png/lib-esm/helpers/crc.js":(function(e,t,n){
/*!******************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/crc.js ***!
\******************************************************/
n.r(t),n.d(t,{checkCrc:function(){return s},writeCrc:function(){return c}});let r=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t>>>=1;r[e]=t}let i=4294967295;function a(e,t,n){let i=e;for(let e=0;e<n;e++)i=r[(i^t[e])&255]^i>>>8;return i}function o(e,t){return(a(i,e,t)^i)>>>0}function s(e,t,n){let r=e.readUint32(),i=o(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function c(e,t){e.writeUint32(o(new Uint8Array(e.buffer,e.byteOffset+e.offset-t,t),t))}}),"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js":(function(e,t,n){
/*!***********************************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js ***!
\***********************************************************************/
n.r(t),n.d(t,{decodeInterlaceAdam7:function(){return o}});var r=n(
/*! ./applyUnfilter */
`./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js`);let i=new Uint16Array([255]),a=new Uint8Array(i.buffer)[0]===255;function o(e){let{data:t,width:n,height:i,channels:o,depth:c}=e,l=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],u=Math.ceil(c/8)*o,d=new Uint8Array(i*n*u),f=0;for(let e=0;e<7;e++){let a=l[e],o=Math.ceil((n-a.x)/a.xStep),s=Math.ceil((i-a.y)/a.yStep);if(o<=0||s<=0)continue;let c=o*u,p=new Uint8Array(c);for(let e=0;e<s;e++){let s=t[f++],l=t.subarray(f,f+c);f+=c;let m=new Uint8Array(c);(0,r.applyUnfilter)(s,l,m,p,c,u),p.set(m);for(let t=0;t<o;t++){let r=a.x+t*a.xStep,o=a.y+e*a.yStep;if(!(r>=n||o>=i))for(let e=0;e<u;e++)d[(o*n+r)*u+e]=m[t*u+e]}}}if(c===16){let e=new Uint16Array(d.buffer);if(a)for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}return d}function s(e){return(e&255)<<8|e>>8&255}}),"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js":(function(e,t,n){
/*!**********************************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js ***!
\**********************************************************************/
n.r(t),n.d(t,{decodeInterlaceNull:function(){return s}});var r=n(
/*! ./unfilter */
`./node_modules/fast-png/lib-esm/helpers/unfilter.js`);let i=new Uint16Array([255]),a=new Uint8Array(i.buffer)[0]===255,o=/* @__PURE__ */ new Uint8Array;function s(e){let{data:t,width:n,height:i,channels:s,depth:l}=e,u=Math.ceil(l/8)*s,d=Math.ceil(l/8*s*n),f=new Uint8Array(i*d),p=o,m=0,h,g;for(let e=0;e<i;e++){switch(h=t.subarray(m+1,m+1+d),g=f.subarray(e*d,(e+1)*d),t[m]){case 0:(0,r.unfilterNone)(h,g,d);break;case 1:(0,r.unfilterSub)(h,g,d,u);break;case 2:(0,r.unfilterUp)(h,g,p,d);break;case 3:(0,r.unfilterAverage)(h,g,p,d,u);break;case 4:(0,r.unfilterPaeth)(h,g,p,d,u);break;default:throw Error(`Unsupported filter: ${t[m]}`)}p=g,m+=d+1}if(l===16){let e=new Uint16Array(f.buffer);if(a)for(let t=0;t<e.length;t++)e[t]=c(e[t]);return e}return f}function c(e){return(e&255)<<8|e>>8&255}}),"./node_modules/fast-png/lib-esm/helpers/signature.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/signature.js ***!
\************************************************************/
n.r(t),n.d(t,{checkSignature:function(){return a},hasPngSignature:function(){return o},writeSignature:function(){return i}});let r=Uint8Array.of(137,80,78,71,13,10,26,10);function i(e){e.writeBytes(r)}function a(e){if(!o(e.readBytes(r.length)))throw Error(`wrong PNG signature`)}function o(e){if(e.length<r.length)return!1;for(let t=0;t<r.length;t++)if(e[t]!==r[t])return!1;return!0}}),"./node_modules/fast-png/lib-esm/helpers/text.js":(function(e,t,n){
/*!*******************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/text.js ***!
\*******************************************************/
n.r(t),n.d(t,{decodetEXt:function(){return l},encodetEXt:function(){return u},readKeyword:function(){return d},readLatin1:function(){return f},textChunkName:function(){return i}});var r=n(
/*! ./crc */
`./node_modules/fast-png/lib-esm/helpers/crc.js`);let i=`tEXt`,a=new TextDecoder(`latin1`);function o(e){if(c(e),e.length===0||e.length>79)throw Error(`keyword length must be between 1 and 79`)}let s=/^[\u0000-\u00FF]*$/;function c(e){if(!s.test(e))throw Error(`invalid latin1 text`)}function l(e,t,n){let r=d(t);e[r]=f(t,n-r.length-1)}function u(e,t,n){o(t),c(n);let a=t.length+1+n.length;e.writeUint32(a),e.writeChars(i),e.writeChars(t),e.writeByte(0),e.writeChars(n),(0,r.writeCrc)(e,a+4)}function d(e){for(e.mark();e.readByte()!==0;);let t=e.offset;e.reset();let n=a.decode(e.readBytes(t-e.offset-1));return e.skip(1),o(n),n}function f(e,t){return a.decode(e.readBytes(t))}}),"./node_modules/fast-png/lib-esm/helpers/unfilter.js":(function(e,t,n){
/*!***********************************************************!*\
!*** ./node_modules/fast-png/lib-esm/helpers/unfilter.js ***!
\***********************************************************/
n.r(t),n.d(t,{unfilterAverage:function(){return o},unfilterNone:function(){return r},unfilterPaeth:function(){return s},unfilterSub:function(){return i},unfilterUp:function(){return a}});function r(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function i(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function a(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function o(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(n[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-i]+n[a]>>1)&255}}function s(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+n[a]&255;for(;a<r;a++)t[a]=e[a]+c(t[a-i],n[a],n[a-i])&255}}function c(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}}),"./node_modules/fast-png/lib-esm/index.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/fast-png/lib-esm/index.js ***!
\************************************************/
n.r(t),n.d(t,{ResolutionUnitSpecifier:function(){return o.ResolutionUnitSpecifier},convertIndexedToRgb:function(){return s.convertIndexedToRgb},decode:function(){return c},decodeApng:function(){return u},encode:function(){return l},hasPngSignature:function(){return a.hasPngSignature}});var r=n(
/*! ./PngDecoder */
`./node_modules/fast-png/lib-esm/PngDecoder.js`),i=n(
/*! ./PngEncoder */
`./node_modules/fast-png/lib-esm/PngEncoder.js`),a=n(
/*! ./helpers/signature */
`./node_modules/fast-png/lib-esm/helpers/signature.js`),o=n(
/*! ./types */
`./node_modules/fast-png/lib-esm/types.js`),s=n(
/*! ./convertIndexedToRgb */
`./node_modules/fast-png/lib-esm/convertIndexedToRgb.js`);function c(e,t){return new r.default(e,t).decode()}function l(e,t){return new i.default(e,t).encode()}function u(e,t){return new r.default(e,t).decodeApng()}}),"./node_modules/fast-png/lib-esm/internalTypes.js":(function(e,t,n){
/*!********************************************************!*\
!*** ./node_modules/fast-png/lib-esm/internalTypes.js ***!
\********************************************************/
n.r(t),n.d(t,{BlendOpType:function(){return c},ColorType:function(){return r},CompressionMethod:function(){return i},DisposeOpType:function(){return s},FilterMethod:function(){return a},InterlaceMethod:function(){return o}});let r={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},i={UNKNOWN:-1,DEFLATE:0},a={UNKNOWN:-1,ADAPTIVE:0},o={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},s={NONE:0,BACKGROUND:1,PREVIOUS:2},c={SOURCE:0,OVER:1}}),"./node_modules/fast-png/lib-esm/types.js":(function(e,t,n){
/*!************************************************!*\
!*** ./node_modules/fast-png/lib-esm/types.js ***!
\************************************************/
n.r(t),n.d(t,{ResolutionUnitSpecifier:function(){return r}});var r;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.METRE=1]=`METRE`})(r||={})}),"./node_modules/fflate/esm/browser.js":(function(e,t,n){
/*!********************************************!*\
!*** ./node_modules/fflate/esm/browser.js ***!
\********************************************/
n.r(t),n.d(t,{AsyncCompress:function(){return Pe},AsyncDecompress:function(){return Xe},AsyncDeflate:function(){return $},AsyncGunzip:function(){return Re},AsyncGzip:function(){return Pe},AsyncInflate:function(){return Ae},AsyncUnzipInflate:function(){return Ct},AsyncUnzlib:function(){return Ke},AsyncZipDeflate:function(){return _t},AsyncZlib:function(){return He},Compress:function(){return Ne},DecodeUTF8:function(){return it},Decompress:function(){return Ye},Deflate:function(){return Ee},EncodeUTF8:function(){return at},FlateErrorCode:function(){return N},Gunzip:function(){return Le},Gzip:function(){return Ne},Inflate:function(){return ke},Unzip:function(){return wt},UnzipInflate:function(){return St},UnzipPassThrough:function(){return xt},Unzlib:function(){return Ge},Zip:function(){return vt},ZipDeflate:function(){return gt},ZipPassThrough:function(){return ht},Zlib:function(){return Ve},compress:function(){return Fe},compressSync:function(){return Ie},decompress:function(){return Ze},decompressSync:function(){return Qe},deflate:function(){return De},deflateSync:function(){return Oe},gunzip:function(){return ze},gunzipSync:function(){return Be},gzip:function(){return Fe},gzipSync:function(){return Ie},inflate:function(){return je},inflateSync:function(){return Me},strFromU8:function(){return st},strToU8:function(){return ot},unzip:function(){return Et},unzipSync:function(){return Dt},unzlib:function(){return qe},unzlibSync:function(){return Je},zip:function(){return yt},zipSync:function(){return bt},zlib:function(){return Ue},zlibSync:function(){return We}});var r={},i=(function(e,t,n,i,a){var o=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+`;addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})`],{type:`text/javascript`}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=Error(n[0]);r.code=n[1],r.stack=n[2],a(r,null)}else a(null,t)},o.postMessage(n,i),o}),a=Uint8Array,o=Uint16Array,s=Int32Array,c=new a([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]),l=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new s(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},f=d(c,2),p=f.b,m=f.r;p[28]=258,m[258]=28;for(var h=d(l,0),g=h.b,_=h.r,v=new o(32768),y=0;y<32768;++y){var b=(y&43690)>>1|(y&21845)<<1;b=(b&52428)>>2|(b&13107)<<2,b=(b&61680)>>4|(b&3855)<<4,v[y]=((b&65280)>>8|(b&255)<<8)>>1}for(var x=(function(e,t,n){for(var r=e.length,i=0,a=new o(t);i<r;++i)e[i]&&++a[e[i]-1];var s=new o(t);for(i=1;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;var c;if(n){c=new o(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],f=s[e[i]-1]++<<d,p=f|(1<<d)-1;f<=p;++f)c[v[f]>>l]=u}else for(c=new o(r),i=0;i<r;++i)e[i]&&(c[i]=v[s[e[i]-1]++]>>15-e[i]);return c}),S=new a(288),y=0;y<144;++y)S[y]=8;for(var y=144;y<256;++y)S[y]=9;for(var y=256;y<280;++y)S[y]=7;for(var y=280;y<288;++y)S[y]=8;for(var C=new a(32),y=0;y<32;++y)C[y]=5;var w=/*#__PURE__*/ x(S,9,0),T=/*#__PURE__*/ x(S,9,1),E=/*#__PURE__*/ x(C,5,0),D=/*#__PURE__*/ x(C,5,1),O=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},k=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},A=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},j=function(e){return(e+7)/8|0},M=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new a(e.subarray(t,n))},N={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},P=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],F=function(e,t,n){var r=Error(t||P[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,F),!n)throw r;return r},I=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new a(0);var s=!n,d=s||t.i!=2,f=t.i;s&&(n=new a(i*3));var m=function(e){var t=n.length;if(e>t){var r=new a(Math.max(t*2,e));r.set(n),n=r}},h=t.f||0,_=t.p||0,v=t.b||0,y=t.l,b=t.d,S=t.m,C=t.n,w=i*8;do{if(!y){h=k(e,_,1);var E=k(e,_+1,3);if(_+=3,!E){var N=j(_)+4,P=e[N-4]|e[N-3]<<8,I=N+P;if(I>i){f&&F(0);break}d&&m(v+P),n.set(e.subarray(N,I),v),t.b=v+=P,t.p=_=I*8,t.f=h;continue}if(E==1)y=T,b=D,S=9,C=5;else if(E==2){var L=k(e,_,31)+257,R=k(e,_+10,15)+4,z=L+k(e,_+5,31)+1;_+=14;for(var B=new a(z),V=new a(19),H=0;H<R;++H)V[u[H]]=k(e,_+H*3,7);_+=R*3;for(var ee=O(V),te=(1<<ee)-1,U=x(V,ee,1),H=0;H<z;){var W=U[k(e,_,te)];_+=W&15;var N=W>>4;if(N<16)B[H++]=N;else{var G=0,ne=0;for(N==16?(ne=3+k(e,_,3),_+=2,G=B[H-1]):N==17?(ne=3+k(e,_,7),_+=3):N==18&&(ne=11+k(e,_,127),_+=7);ne--;)B[H++]=G}}var re=B.subarray(0,L),ie=B.subarray(L);S=O(re),C=O(ie),y=x(re,S,1),b=x(ie,C,1)}else F(1);if(_>w){f&&F(0);break}}d&&m(v+131072);for(var ae=(1<<S)-1,oe=(1<<C)-1,K=_;;K=_){var G=y[A(e,_)&ae],se=G>>4;if(_+=G&15,_>w){f&&F(0);break}if(G||F(2),se<256)n[v++]=se;else if(se==256){K=_,y=null;break}else{var q=se-254;if(se>264){var H=se-257,J=c[H];q=k(e,_,(1<<J)-1)+p[H],_+=J}var ce=b[A(e,_)&oe],le=ce>>4;ce||F(3),_+=ce&15;var ie=g[le];if(le>3){var J=l[le];ie+=A(e,_)&(1<<J)-1,_+=J}if(_>w){f&&F(0);break}d&&m(v+131072);var ue=v+q;if(v<ie){var Y=o-ie,de=Math.min(ie,ue);for(Y+v<0&&F(3);v<de;++v)n[v]=r[Y+v]}for(;v<ue;++v)n[v]=n[v-ie]}}t.l=y,t.p=K,t.b=v,t.f=h,y&&(h=1,t.m=S,t.d=b,t.n=C)}while(!h);return v!=n.length&&s?M(n,0,v):n.subarray(0,v)},L=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},R=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},z=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return{t:W,l:0};if(i==1){var c=new a(n[0].s+1);return c[n[0].s]=1,{t:c,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var l=n[0],u=n[1],d=0,f=1,p=2;for(n[0]={s:-1,f:l.f+u.f,l,r:u};f!=i-1;)l=n[n[d].f<n[p].f?d++:p++],u=n[d!=f&&n[d].f<n[p].f?d++:p++],n[f++]={s:-1,f:l.f+u.f,l,r:u};for(var m=s[0].s,r=1;r<i;++r)s[r].s>m&&(m=s[r].s);var h=new o(m+1),g=B(n[f-1],h,0);if(g>t){var r=0,_=0,v=g-t,y=1<<v;for(s.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var b=s[r].s;if(h[b]>t)_+=y-(1<<g-h[b]),h[b]=t;else break}for(_>>=v;_>0;){var x=s[r].s;h[x]<t?_-=1<<t-h[x]++-1:++r}for(;r>=0&&_;--r){var S=s[r].s;h[S]==t&&(--h[S],++_)}g=t}return{t:new a(h),l:g}},B=function(e,t,n){return e.s==-1?Math.max(B(e.l,t,n+1),B(e.r,t,n+1)):t[e.s]=n},V=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new o(++t),r=0,i=e[0],a=1,s=function(e){n[r++]=e},c=1;c<=t;++c)if(e[c]==i&&c!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[c]}return{c:n.subarray(0,r),n:t}},H=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},ee=function(e,t,n){var r=n.length,i=j(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},te=function(e,t,n,r,i,a,s,d,f,p,m){L(t,m++,n),++i[256];for(var h=z(i,15),g=h.t,_=h.l,v=z(a,15),y=v.t,b=v.l,T=V(g),D=T.c,O=T.n,k=V(y),A=k.c,j=k.n,M=new o(19),N=0;N<D.length;++N)++M[D[N]&31];for(var N=0;N<A.length;++N)++M[A[N]&31];for(var P=z(M,7),F=P.t,I=P.l,B=19;B>4&&!F[u[B-1]];--B);var te=p+5<<3,U=H(i,S)+H(a,C)+s,W=H(i,g)+H(a,y)+s+14+3*B+H(M,F)+2*M[16]+3*M[17]+7*M[18];if(f>=0&&te<=U&&te<=W)return ee(t,m,e.subarray(f,f+p));var G,ne,re,ie;if(L(t,m,1+(W<U)),m+=2,W<U){G=x(g,_,0),ne=g,re=x(y,b,0),ie=y;var ae=x(F,I,0);L(t,m,O-257),L(t,m+5,j-1),L(t,m+10,B-4),m+=14;for(var N=0;N<B;++N)L(t,m+3*N,F[u[N]]);m+=3*B;for(var oe=[D,A],K=0;K<2;++K)for(var se=oe[K],N=0;N<se.length;++N){var q=se[N]&31;L(t,m,ae[q]),m+=F[q],q>15&&(L(t,m,se[N]>>5&127),m+=se[N]>>12)}}else G=w,ne=S,re=E,ie=C;for(var N=0;N<d;++N){var J=r[N];if(J>255){var q=J>>18&31;R(t,m,G[q+257]),m+=ne[q+257],q>7&&(L(t,m,J>>23&31),m+=c[q]);var ce=J&31;R(t,m,re[ce]),m+=ie[ce],ce>3&&(R(t,m,J>>5&8191),m+=l[ce])}else R(t,m,G[J]),m+=ne[J]}return R(t,m,G[256]),m+ne[256]},U=/*#__PURE__*/ new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),W=/*#__PURE__*/ new a(0),G=function(e,t,n,r,i,u){var d=u.z||e.length,f=new a(r+d+5*(1+Math.ceil(d/7e3))+i),p=f.subarray(r,f.length-i),h=u.l,g=(u.r||0)&7;if(t){g&&(p[0]=u.r>>3);for(var v=U[t-1],y=v>>13,b=v&8191,x=(1<<n)-1,S=u.p||new o(32768),C=u.h||new o(x+1),w=Math.ceil(n/3),T=2*w,E=function(t){return(e[t]^e[t+1]<<w^e[t+2]<<T)&x},D=new s(25e3),O=new o(288),k=new o(32),A=0,N=0,P=u.i||0,F=0,I=u.w||0,L=0;P+2<d;++P){var R=E(P),z=P&32767,B=C[R];if(S[z]=B,C[R]=z,I<=P){var V=d-P;if((A>7e3||F>24576)&&(V>423||!h)){g=te(e,p,0,D,O,k,N,F,L,P-L,g),F=A=N=0,L=P;for(var H=0;H<286;++H)O[H]=0;for(var H=0;H<30;++H)k[H]=0}var W=2,G=0,ne=b,re=z-B&32767;if(V>2&&R==E(P-re))for(var ie=Math.min(y,V)-1,ae=Math.min(32767,P),oe=Math.min(258,V);re<=ae&&--ne&&z!=B;){if(e[P+W]==e[P+W-re]){for(var K=0;K<oe&&e[P+K]==e[P+K-re];++K);if(K>W){if(W=K,G=re,K>ie)break;for(var se=Math.min(re,K-2),q=0,H=0;H<se;++H){var J=P-re+H&32767,ce=J-S[J]&32767;ce>q&&(q=ce,B=J)}}}z=B,B=S[z],re+=z-B&32767}if(G){D[F++]=268435456|m[W]<<18|_[G];var le=m[W]&31,ue=_[G]&31;N+=c[le]+l[ue],++O[257+le],++k[ue],I=P+W,++A}else D[F++]=e[P],++O[e[P]]}}for(P=Math.max(P,I);P<d;++P)D[F++]=e[P],++O[e[P]];g=te(e,p,h,D,O,k,N,F,L,P-L,g),h||(u.r=g&7|p[g/8|0]<<3,g-=7,u.h=C,u.p=S,u.i=P,u.w=I)}else{for(var P=u.w||0;P<d+h;P+=65535){var Y=P+65535;Y>=d&&(p[g/8|0]=h,Y=d),g=ee(p,g+1,e.subarray(P,Y))}u.i=d}return M(f,0,r+j(g)+i)},ne=/*#__PURE__*/ (function(){for(var e=/* @__PURE__ */ new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e})(),re=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=ne[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},ie=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},ae=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new a(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return G(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},oe=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},K=function(e,t,n){for(var r=e(),i=e.toString(),a=i.slice(i.indexOf(`[`)+1,i.lastIndexOf(`]`)).replace(/\s+/g,``).split(`,`),o=0;o<r.length;++o){var s=r[o],c=a[o];if(typeof s==`function`){t+=`;`+c+`=`;var l=s.toString();if(s.prototype){if(l.indexOf(`[native code]`)!=-1){var u=l.indexOf(` `,8)+1;t+=l.slice(u,l.indexOf(`(`,u))}else for(var d in t+=l,s.prototype)t+=`;`+c+`.prototype.`+d+`=`+s.prototype[d].toString()}else t+=l}else n[c]=s}return t},se=[],q=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},J=function(e,t,n,r){if(!se[n]){for(var a=``,o={},s=e.length-1,c=0;c<s;++c)a=K(e[c],a,o);se[n]={c:K(e[s],a,o),e:o}}var l=oe({},se[n].e);return i(se[n].c+`;onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=`+t.toString()+`}`,n,l,q(l),r)},ce=function(){return[a,o,s,c,l,u,p,g,T,D,v,P,x,O,k,A,j,M,F,I,Me,pe,X]},le=function(){return[a,o,s,c,l,u,m,_,w,S,E,C,v,U,W,x,L,R,z,B,V,H,ee,te,j,M,G,ae,Oe,pe]},ue=function(){return[be,Ce,ye,re,ne]},Y=function(){return[xe,Se]},de=function(){return[we,ye,ie]},fe=function(){return[Te]},pe=function(e){return postMessage(e,[e.buffer])},X=function(e){return e&&{out:e.size&&new a(e.size),dictionary:e.dictionary}},me=function(e,t,n,r,i,a){var o=J(n,r,i,function(e,t){o.terminate(),a(e,t)});return o.postMessage([e,t],t.consume?[e.buffer]:[]),function(){o.terminate()}},he=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data.length?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush()}},ge=function(e,t,n,r,i,a,o){var s,c=J(e,r,i,function(e,n){e?(c.terminate(),t.ondata.call(t,e)):Array.isArray(n)?n.length==1?(t.queuedSize-=n[0],t.ondrain&&t.ondrain(n[0])):(n[1]&&c.terminate(),t.ondata.call(t,e,n[0],n[1])):o(n)});c.postMessage(n),t.queuedSize=0,t.push=function(e,n){t.ondata||F(5),s&&t.ondata(F(4,0,1),null,!!n),t.queuedSize+=e.length,c.postMessage([e,s=n],[e.buffer])},t.terminate=function(){c.terminate()},a&&(t.flush=function(){c.postMessage([])})},Z=function(e,t){return e[t]|e[t+1]<<8},_e=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},ve=function(e,t){return _e(e,t)+_e(e,t+4)*4294967296},ye=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},be=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&ye(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},xe=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&F(6,`invalid gzip data`);var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},Se=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Ce=function(e){return 10+(e.filename?e.filename.length+1:0)},we=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=ie();i.p(t.dictionary),ye(e,2,i.d())}},Te=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&F(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&F(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function Q(e,t){return typeof e==`function`&&(t=e,e={}),this.ondata=t,e}var Ee=/* @__PURE__ */ function(){function e(e,t){if(typeof e==`function`&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new a(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(ae(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||F(5),this.s.l&&F(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var r=new a(n&-32768);r.set(this.b.subarray(0,this.s.z)),this.b=r}var i=this.b.length-this.s.z;this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||F(5),this.s.l&&F(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),$=/* @__PURE__ */ function(){function e(e,t){ge([le,function(){return[he,Ee]}],this,Q.call(this,e,t),function(e){onmessage=he(new Ee(e.data))},6,1)}return e}();function De(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[le],function(e){return pe(Oe(e.data[0],e.data[1]))},0,n)}function Oe(e,t){return ae(e,t||{},0,0)}var ke=/* @__PURE__ */ function(){function e(e,t){typeof e==`function`&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new a(32768),this.p=new a(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||F(5),this.d&&F(4),!this.p.length)this.p=e;else if(e.length){var t=new a(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=I(this.p,this.s,this.o);this.ondata(M(n,t,this.s.b),this.d),this.o=M(n,this.s.b-32768),this.s.b=this.o.length,this.p=M(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Ae=/* @__PURE__ */ function(){function e(e,t){ge([ce,function(){return[he,ke]}],this,Q.call(this,e,t),function(e){onmessage=he(new ke(e.data))},7,0)}return e}();function je(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[ce],function(e){return pe(Me(e.data[0],X(e.data[1])))},1,n)}function Me(e,t){return I(e,{i:2},t&&t.out,t&&t.dictionary)}var Ne=/* @__PURE__ */ function(){function e(e,t){this.c=re(),this.l=0,this.v=1,Ee.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,Ee.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=ae(e,this.o,this.v&&Ce(this.o),t&&8,this.s);this.v&&=(be(n,this.o),0),t&&(ye(n,n.length-8,this.c.d()),ye(n,n.length-4,this.l)),this.ondata(n,t)},e.prototype.flush=function(){Ee.prototype.flush.call(this)},e}(),Pe=/* @__PURE__ */ function(){function e(e,t){ge([le,ue,function(){return[he,Ee,Ne]}],this,Q.call(this,e,t),function(e){onmessage=he(new Ne(e.data))},8,1)}return e}();function Fe(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[le,ue,function(){return[Ie]}],function(e){return pe(Ie(e.data[0],e.data[1]))},2,n)}function Ie(e,t){t||={};var n=re(),r=e.length;n.p(e);var i=ae(e,t,Ce(t),8),a=i.length;return be(i,t),ye(i,a-8,n.d()),ye(i,a-4,r),i}var Le=/* @__PURE__ */ function(){function e(e,t){this.v=1,this.r=0,ke.call(this,e,t)}return e.prototype.push=function(e,t){if(ke.prototype.e.call(this,e),this.r+=e.length,this.v){var n=this.p.subarray(this.v-1),r=n.length>3?xe(n):4;if(r>n.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-n.length);this.p=n.subarray(r),this.v=0}ke.prototype.c.call(this,t),this.s.f&&!this.s.l&&!t&&(this.v=j(this.s.p)+9,this.s={i:0},this.o=new a(0),this.push(new a(0),t))},e}(),Re=/* @__PURE__ */ function(){function e(e,t){var n=this;ge([ce,Y,function(){return[he,ke,Le]}],this,Q.call(this,e,t),function(e){var t=new Le(e.data);t.onmember=function(e){return postMessage(e)},onmessage=he(t)},9,0,function(e){return n.onmember&&n.onmember(e)})}return e}();function ze(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[ce,Y,function(){return[Be]}],function(e){return pe(Be(e.data[0],e.data[1]))},3,n)}function Be(e,t){var n=xe(e);return n+8>e.length&&F(6,`invalid gzip data`),I(e.subarray(n,-8),{i:2},t&&t.out||new a(Se(e)),t&&t.dictionary)}var Ve=/* @__PURE__ */ function(){function e(e,t){this.c=ie(),this.v=1,Ee.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),Ee.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=ae(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&=(we(n,this.o),0),t&&ye(n,n.length-4,this.c.d()),this.ondata(n,t)},e.prototype.flush=function(){Ee.prototype.flush.call(this)},e}(),He=/* @__PURE__ */ function(){function e(e,t){ge([le,de,function(){return[he,Ee,Ve]}],this,Q.call(this,e,t),function(e){onmessage=he(new Ve(e.data))},10,1)}return e}();function Ue(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[le,de,function(){return[We]}],function(e){return pe(We(e.data[0],e.data[1]))},4,n)}function We(e,t){t||={};var n=ie();n.p(e);var r=ae(e,t,t.dictionary?6:2,4);return we(r,t),ye(r,r.length-4,n.d()),r}var Ge=/* @__PURE__ */ function(){function e(e,t){ke.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(ke.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(Te(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&F(6,`invalid zlib data`),this.p=this.p.subarray(0,-4)),ke.prototype.c.call(this,t)},e}(),Ke=/* @__PURE__ */ function(){function e(e,t){ge([ce,fe,function(){return[he,ke,Ge]}],this,Q.call(this,e,t),function(e){onmessage=he(new Ge(e.data))},11,0)}return e}();function qe(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),me(e,t,[ce,fe,function(){return[Je]}],function(e){return pe(Je(e.data[0],X(e.data[1])))},5,n)}function Je(e,t){return I(e.subarray(Te(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Ye=/* @__PURE__ */ function(){function e(e,t){this.o=Q.call(this,e,t)||{},this.G=Le,this.I=ke,this.Z=Ge}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n){e.ondata(t,n)}},e.prototype.push=function(e,t){if(this.ondata||F(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new a(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}(),Xe=/* @__PURE__ */ function(){function e(e,t){Ye.call(this,e,t),this.queuedSize=0,this.G=Re,this.I=Ae,this.Z=Ke}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n,r){e.ondata(t,n,r)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,Ye.prototype.push.call(this,e,t)},e}();function Ze(e,t,n){return n||(n=t,t={}),typeof n!=`function`&&F(7),e[0]==31&&e[1]==139&&e[2]==8?ze(e,t,n):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?je(e,t,n):qe(e,t,n)}function Qe(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Be(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Me(e,t):Je(e,t)}var $e=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,c=r;Array.isArray(o)&&(c=oe(r,o[1]),o=o[0]),o instanceof a?n[s]=[o,c]:(n[s+=`/`]=[new a(0),c],$e(o,s,n,r))}},et=typeof TextEncoder<`u`&&/*#__PURE__*/ new TextEncoder,tt=typeof TextDecoder<`u`&&/*#__PURE__*/ new TextDecoder,nt=0;try{tt.decode(W,{stream:!0}),nt=1}catch{}var rt=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:M(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}},it=/* @__PURE__ */ function(){function e(e){this.ondata=e,nt?this.t=new TextDecoder:this.p=W}return e.prototype.push=function(e,t){if(this.ondata||F(5),t=!!t,this.t){this.ondata(this.t.decode(e,{stream:!0}),t),t&&(this.t.decode().length&&F(8),this.t=null);return}this.p||F(4);var n=new a(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var r=rt(n),i=r.s,o=r.r;t?(o.length&&F(8),this.p=null):this.p=o,this.ondata(i,t)},e}(),at=/* @__PURE__ */ function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||F(5),this.d&&F(4),this.ondata(ot(e),this.d=t||!1)},e}();function ot(e,t){if(t){for(var n=new a(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(et)return et.encode(e);for(var i=e.length,o=new a(e.length+(e.length>>1)),s=0,c=function(e){o[s++]=e},r=0;r<i;++r){if(s+5>o.length){var l=new a(s+8+(i-r<<1));l.set(o),o=l}var u=e.charCodeAt(r);u<128||t?c(u):u<2048?(c(192|u>>6),c(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|e.charCodeAt(++r)&1023,c(240|u>>18),c(128|u>>12&63),c(128|u>>6&63),c(128|u&63)):(c(224|u>>12),c(128|u>>6&63),c(128|u&63))}return M(o,0,s)}function st(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(tt)return tt.decode(e);var i=rt(e),a=i.s,n=i.r;return n.length&&F(8),a}var ct=function(e){return e==1?3:e<6?2:+(e==9)},lt=function(e,t){return t+30+Z(e,t+26)+Z(e,t+28)},ut=function(e,t,n){var r=Z(e,t+28),i=st(e.subarray(t+46,t+46+r),!(Z(e,t+8)&2048)),a=t+46+r,o=_e(e,t+20),s=n&&o==4294967295?dt(e,a):[o,_e(e,t+24),_e(e,t+42)],c=s[0],l=s[1],u=s[2];return[Z(e,t+10),c,l,i,a+Z(e,t+30)+Z(e,t+32),u]},dt=function(e,t){for(;Z(e,t)!=1;t+=4+Z(e,t+2));return[ve(e,t+12),ve(e,t+4),ve(e,t+20)]},ft=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&F(9),t+=r+4}return t},pt=function(e,t,n,r,i,a,o,s){var c=r.length,l=n.extra,u=s&&s.length,d=ft(l);ye(e,t,o==null?67324752:33639248),t+=4,o!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(a<0&&8),e[t++]=i&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var f=new Date(n.mtime==null?Date.now():n.mtime),p=f.getFullYear()-1980;if((p<0||p>119)&&F(10),ye(e,t,p<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,a!=-1&&(ye(e,t,n.crc),ye(e,t+4,a<0?-a-2:a),ye(e,t+8,n.size)),ye(e,t+12,c),ye(e,t+14,d),t+=16,o!=null&&(ye(e,t,u),ye(e,t+6,n.attrs),ye(e,t+10,o),t+=14),e.set(r,t),t+=c,d)for(var m in l){var h=l[m],g=h.length;ye(e,t,+m),ye(e,t+2,g),e.set(h,t+4),t+=4+g}return u&&(e.set(s,t),t+=u),t},mt=function(e,t,n,r,i){ye(e,t,101010256),ye(e,t+8,n),ye(e,t+10,n),ye(e,t+12,r),ye(e,t+16,i)},ht=/* @__PURE__ */ function(){function e(e){this.filename=e,this.c=re(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||F(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),gt=/* @__PURE__ */ function(){function e(e,t){var n=this;t||={},ht.call(this,e),this.d=new Ee(t,function(e,t){n.ondata(null,e,t)}),this.compression=8,this.flag=ct(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){ht.prototype.push.call(this,e,t)},e}(),_t=/* @__PURE__ */ function(){function e(e,t){var n=this;t||={},ht.call(this,e),this.d=new $(t,function(e,t,r){n.ondata(e,t,r)}),this.compression=8,this.flag=ct(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){ht.prototype.push.call(this,e,t)},e}(),vt=/* @__PURE__ */ function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||F(5),this.d&2)this.ondata(F(4+(this.d&1)*8,0,1),null,!1);else{var n=ot(e.filename),r=n.length,i=e.comment,o=i&&ot(i),s=r!=e.filename.length||o&&i.length!=o.length,c=r+ft(e.extra)+30;r>65535&&this.ondata(F(11,0,1),null,!1);var l=new a(c);pt(l,0,e,n,s,-1);var u=[l],d=function(){for(var e=0,n=u;e<n.length;e++){var r=n[e];t.ondata(null,r,!1)}u=[]},f=this.d;this.d=0;var p=this.u.length,m=oe(e,{f:n,u:s,o,t:function(){e.terminate&&e.terminate()},r:function(){if(d(),f){var e=t.u[p+1];e?e.r():t.d=1}f=1}}),h=0;e.ondata=function(n,r,i){if(n)t.ondata(n,r,i),t.terminate();else if(h+=r.length,u.push(r),i){var o=new a(16);ye(o,0,134695760),ye(o,4,e.crc),ye(o,8,h),ye(o,12,e.size),u.push(o),m.c=h,m.b=c+h+16,m.crc=e.crc,m.size=e.size,f&&m.r(),f=1}else f&&d()},this.u.push(m)}},e.prototype.end=function(){var e=this;if(this.d&2){this.ondata(F(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){e.d&1&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3},e.prototype.e=function(){for(var e=0,t=0,n=0,r=0,i=this.u;r<i.length;r++){var o=i[r];n+=46+o.f.length+ft(o.extra)+(o.o?o.o.length:0)}for(var s=new a(n+22),c=0,l=this.u;c<l.length;c++){var o=l[c];pt(s,e,o,o.f,o.u,-o.c-2,t,o.o),e+=46+o.f.length+ft(o.extra)+(o.o?o.o.length:0),t+=o.b}mt(s,e,this.u.length,n,t),this.ondata(null,s,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++)t[e].t();this.d=2},e}();function yt(e,t,n){n||(n=t,t={}),typeof n!=`function`&&F(7);var r={};$e(e,``,r,t);var i=Object.keys(r),o=i.length,s=0,c=0,l=o,u=Array(o),d=[],f=function(){for(var e=0;e<d.length;++e)d[e]()},p=function(e,t){Tt(function(){n(e,t)})};Tt(function(){p=n});var m=function(){var e=new a(c+22),t=s,n=c-s;c=0;for(var r=0;r<l;++r){var i=u[r];try{var o=i.c.length;pt(e,c,i,i.f,i.u,o);var d=30+i.f.length+ft(i.extra),f=c+d;e.set(i.c,f),pt(e,s,i,i.f,i.u,o,c,i.m),s+=16+d+(i.m?i.m.length:0),c=f+o}catch(e){return p(e,null)}}mt(e,s,u.length,n,t),p(null,e)};o||m();for(var h=function(e){var t=i[e],n=r[t],a=n[0],l=n[1],h=re(),g=a.length;h.p(a);var _=ot(t),v=_.length,y=l.comment,b=y&&ot(y),x=b&&b.length,S=ft(l.extra),C=l.level==0?0:8,w=function(n,r){if(n)f(),p(n,null);else{var i=r.length;u[e]=oe(l,{size:g,crc:h.d(),c:r,f:_,m:b,u:v!=t.length||b&&y.length!=x,compression:C}),s+=30+v+S+i,c+=76+2*(v+S)+(x||0)+i,--o||m()}};if(v>65535&&w(F(11,0,1),null),!C)w(null,a);else if(g<16e4)try{w(null,Oe(a,l))}catch(e){w(e,null)}else d.push(De(a,l,w))},g=0;g<l;++g)h(g);return f}function bt(e,t){t||={};var n={},r=[];$e(e,``,n,t);var i=0,o=0;for(var s in n){var c=n[s],l=c[0],u=c[1],d=u.level==0?0:8,f=ot(s),p=f.length,m=u.comment,h=m&&ot(m),g=h&&h.length,_=ft(u.extra);p>65535&&F(11);var v=d?Oe(l,u):l,y=v.length,b=re();b.p(l),r.push(oe(u,{size:l.length,crc:b.d(),c:v,f,m:h,u:p!=s.length||h&&m.length!=g,o:i,compression:d})),i+=30+p+_+y,o+=76+2*(p+_)+(g||0)+y}for(var x=new a(o+22),S=i,C=o-i,w=0;w<r.length;++w){var f=r[w];pt(x,f.o,f,f.f,f.u,f.c.length);var T=30+f.f.length+ft(f.extra);x.set(f.c,f.o+T),pt(x,i,f,f.f,f.u,f.c.length,f.o,f.m),i+=16+T+(f.m?f.m.length:0)}return mt(x,i,r.length,C,S),x}var xt=/* @__PURE__ */ function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}(),St=/* @__PURE__ */ function(){function e(){var e=this;this.i=new ke(function(t,n){e.ondata(null,t,n)})}return e.prototype.push=function(e,t){try{this.i.push(e,t)}catch(e){this.ondata(e,null,t)}},e.compression=8,e}(),Ct=/* @__PURE__ */ function(){function e(e,t){var n=this;t<32e4?this.i=new ke(function(e,t){n.ondata(null,e,t)}):(this.i=new Ae(function(e,t,r){n.ondata(e,t,r)}),this.terminate=this.i.terminate)}return e.prototype.push=function(e,t){this.i.terminate&&(e=M(e,0)),this.i.push(e,t)},e.compression=8,e}(),wt=/* @__PURE__ */ function(){function e(e){this.onfile=e,this.k=[],this.o={0:xt},this.p=W}return e.prototype.push=function(e,t){var n=this;if(this.onfile||F(5),this.p||F(4),this.c>0){var r=Math.min(this.c,e.length),i=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(i,!this.c):this.k[0].push(i),e=e.subarray(r),e.length)return this.push(e,t)}else{var o=0,s=0,c=void 0,l=void 0;this.p.length?e.length?(l=new a(this.p.length+e.length),l.set(this.p),l.set(e,this.p.length)):l=this.p:l=e;for(var u=l.length,d=this.c,f=d&&this.d,p=function(){var e,t=_e(l,s);if(t==67324752){o=1,c=s,m.d=null,m.c=0;var r=Z(l,s+6),i=Z(l,s+8),a=r&2048,f=r&8,p=Z(l,s+26),h=Z(l,s+28);if(u>s+30+p+h){var g=[];m.k.unshift(g),o=2;var _=_e(l,s+18),v=_e(l,s+22),y=st(l.subarray(s+30,s+=30+p),!a);_==4294967295?(e=f?[-2]:dt(l,s),_=e[0],v=e[1]):f&&(_=-1),s+=h,m.c=_;var b,x={name:y,compression:i,start:function(){if(x.ondata||F(5),!_)x.ondata(null,W,!0);else{var e=n.o[i];e||x.ondata(F(14,`unknown compression type `+i,1),null,!1),b=_<0?new e(y):new e(y,_,v),b.ondata=function(e,t,n){x.ondata(e,t,n)};for(var t=0,r=g;t<r.length;t++){var a=r[t];b.push(a,!1)}n.k[0]==g&&n.c?n.d=b:b.push(W,!0)}},terminate:function(){b&&b.terminate&&b.terminate()}};_>=0&&(x.size=_,x.originalSize=v),m.onfile(x)}return`break`}if(d){if(t==134695760)return c=s+=12+(d==-2&&8),o=3,m.c=0,`break`;if(t==33639248)return c=s-=4,o=3,m.c=0,`break`}},m=this;s<u-4&&p()!==`break`;++s);if(this.p=W,d<0){var h=o?l.subarray(0,c-12-(d==-2&&8)-(_e(l,c-16)==134695760&&4)):l.subarray(0,s);f?f.push(h,!!o):this.k[+(o==2)].push(h)}if(o&2)return this.push(l.subarray(s),t);this.p=l.subarray(s)}t&&(this.c&&F(13),this.p=null)},e.prototype.register=function(e){this.o[e.compression]=e},e}(),Tt=typeof queueMicrotask==`function`?queueMicrotask:typeof setTimeout==`function`?setTimeout:function(e){e()};function Et(e,t,n){n||(n=t,t={}),typeof n!=`function`&&F(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Tt(function(){n(e,t)})};Tt(function(){s=n});for(var c=e.length-22;_e(e,c)!=101010256;--c)if(!c||e.length-c>65558)return s(F(13,0,1),null),i;var l=Z(e,c+8);if(l){var u=l,d=_e(e,c+16),f=d==4294967295||u==65535;if(f){var p=_e(e,c-12);f=_e(e,p)==101075792,f&&(u=l=_e(e,p+32),d=_e(e,p+48))}for(var m=t&&t.filter,h=function(t){var n=ut(e,d,f),c=n[0],u=n[1],p=n[2],h=n[3],g=n[4],_=n[5],v=lt(e,_);d=g;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[h]=t),--l||s(null,o))};if(!m||m({name:h,size:u,originalSize:p,compression:c})){if(!c)y(null,M(e,v,v+u));else if(c==8){var b=e.subarray(v,v+u);if(p<524288||u>.8*p)try{y(null,Me(b,{out:new a(p)}))}catch(e){y(e,null)}else r.push(je(b,{size:p},y))}else y(F(14,`unknown compression type `+c,1),null)}else y(null,null)},g=0;g<u;++g)h(g)}else s(null,{});return i}function Dt(e,t){for(var n={},r=e.length-22;_e(e,r)!=101010256;--r)(!r||e.length-r>65558)&&F(13);var i=Z(e,r+8);if(!i)return{};var o=_e(e,r+16),s=o==4294967295||i==65535;if(s){var c=_e(e,r-12);s=_e(e,c)==101075792,s&&(i=_e(e,c+32),o=_e(e,c+48))}for(var l=t&&t.filter,u=0;u<i;++u){var d=ut(e,o,s),f=d[0],p=d[1],m=d[2],h=d[3],g=d[4],_=d[5],v=lt(e,_);o=g,(!l||l({name:h,size:p,originalSize:m,compression:f}))&&(f?f==8?n[h]=Me(e.subarray(v,v+p),{out:new a(m)}):F(14,`unknown compression type `+f):n[h]=M(e,v,v+p))}return n}}),"./node_modules/iobuffer/lib-esm/IOBuffer.js":(function(e,t,n){
/*!***************************************************!*\
!*** ./node_modules/iobuffer/lib-esm/IOBuffer.js ***!
\***************************************************/
n.r(t),n.d(t,{IOBuffer:function(){return o}});var r=n(
/*! ./text */
`./node_modules/iobuffer/lib-esm/text.js`);let i=(()=>{let e=/* @__PURE__ */ new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),a={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class o{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=8192,t={}){let n=!1;typeof e==`number`?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);let r=t.offset?t.offset>>>0:0,i=e.byteLength-r,a=r;(ArrayBuffer.isView(e)||e instanceof o)&&(e.byteLength!==e.buffer.byteLength&&(a=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=n?i:0,this.buffer=e,this.length=i,this.byteLength=i,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,i),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let e=this._marks.pop();if(e===void 0)throw Error(`Mark stack empty`);return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){let t=(this.offset+e)*2,n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,`uint8`)}readArray(e,t){let n=a[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,o=this.buffer.slice(r,r+n);if(this.littleEndian===i&&t!==`uint8`&&t!==`int8`){let e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();let i=new a[t](e.buffer);return this.offset+=n,i.reverse(),i}let s=new a[t](o);return this.offset+=n,s}readInt16(){let e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){let e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){let e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){let e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){let e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){let e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){let e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){let e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t=``;for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return(0,r.decode)(this.readBytes(e))}decodeText(e=1,t=`utf8`){return(0,r.decode)(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes((0,r.encode)(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}}),"./node_modules/iobuffer/lib-esm/text.js":(function(e,t,n){
/*!***********************************************!*\
!*** ./node_modules/iobuffer/lib-esm/text.js ***!
\***********************************************/
n.r(t),n.d(t,{decode:function(){return r},encode:function(){return a}});function r(e,t=`utf8`){return new TextDecoder(t).decode(e)}let i=new TextEncoder;function a(e){return i.encode(e)}}),"./node_modules/jspdf/dist/jspdf.es.min.js":(function(e,t,n){
/*!*************************************************!*\
!*** ./node_modules/jspdf/dist/jspdf.es.min.js ***!
\*************************************************/
n.r(t),n.d(t,{AcroForm:function(){return Oe},AcroFormAppearance:function(){return $},AcroFormButton:function(){return xe},AcroFormCheckBox:function(){return Te},AcroFormChoiceField:function(){return _e},AcroFormComboBox:function(){return ye},AcroFormEditBox:function(){return be},AcroFormListBox:function(){return ve},AcroFormPasswordField:function(){return Ee},AcroFormPushButton:function(){return Se},AcroFormRadioButton:function(){return Ce},AcroFormTextField:function(){return Q},GState:function(){return I},ShadingPattern:function(){return R},TilingPattern:function(){return z},default:function(){return B},jsPDF:function(){return B}});var r=n(
/*! @babel/runtime/helpers/typeof */
`./node_modules/@babel/runtime/helpers/esm/typeof.js`),i=n(
/*! fflate */
`./node_modules/fflate/esm/browser.js`),a=n(
/*! @babel/runtime/helpers/slicedToArray */
`./node_modules/@babel/runtime/helpers/esm/slicedToArray.js`),o=n(
/*! fast-png */
`./node_modules/fast-png/lib-esm/index.js`),s=function(){
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 4.0.0 Built on 2025-12-18T10:27:09.425Z
* CommitID 00000000
*
* Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2025 yWorks GmbH, http://www.yworks.com
* 2015-2025 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/
return typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this}();function c(){s.console&&typeof s.console.log==`function`&&s.console.log.apply(s.console,arguments)}var l={log:c,warn:function(e){s.console&&(typeof s.console.warn==`function`?s.console.warn.apply(s.console,arguments):c.call(null,arguments))},error:function(e){s.console&&(typeof s.console.error==`function`?s.console.error.apply(s.console,arguments):c(e))}};function u(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){p(r.response,t,n)},r.onerror=function(){l.error(`could not download file`)},r.send()}function d(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function f(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var p=s.saveAs||((typeof window>`u`?`undefined`:(0,r.default)(window))!==`object`||window!==s?function(){}:typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype?function(e,t,n){var r=s.URL||s.webkitURL,i=document.createElement(`a`);t=t||e.name||`download`,i.download=t,i.rel=`noopener`,typeof e==`string`?(i.href=e,i.origin===location.origin?f(i):d(i.href)?u(e,t,n):f(i,i.target=`_blank`)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){f(i)},0))}:`msSaveOrOpenBlob`in navigator?function(e,t,n){if(t=t||e.name||`download`,typeof e==`string`){if(d(e))u(e,t,n);else{var i=document.createElement(`a`);i.href=e,i.target=`_blank`,setTimeout(function(){f(i)})}}else navigator.msSaveOrOpenBlob(function(e,t){return t===void 0?t={autoBom:!1}:(0,r.default)(t)!==`object`&&(l.warn(`Deprecated: Expected third argument to be a object`),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){if((i||=open(``,`_blank`))&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return u(e,t,n);var a=e.type===`application/octet-stream`,o=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o)&&(typeof FileReader>`u`?`undefined`:(0,r.default)(FileReader))===`object`){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var d=s.URL||s.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},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 m(e){var t;e||=``,this.ok=!1,e.charAt(0)==`#`&&(e=e.substr(1,6)),e={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,red:`ff0000`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`}[e=(e=e.replace(/ /g,``)).toLowerCase()]||e;for(var 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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n}}var h=s.atob.bind(s),g=s.btoa.bind(s);
/**
* @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 _(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=y(n,r,i,a,t[0],7,-680876936),a=y(a,n,r,i,t[1],12,-389564586),i=y(i,a,n,r,t[2],17,606105819),r=y(r,i,a,n,t[3],22,-1044525330),n=y(n,r,i,a,t[4],7,-176418897),a=y(a,n,r,i,t[5],12,1200080426),i=y(i,a,n,r,t[6],17,-1473231341),r=y(r,i,a,n,t[7],22,-45705983),n=y(n,r,i,a,t[8],7,1770035416),a=y(a,n,r,i,t[9],12,-1958414417),i=y(i,a,n,r,t[10],17,-42063),r=y(r,i,a,n,t[11],22,-1990404162),n=y(n,r,i,a,t[12],7,1804603682),a=y(a,n,r,i,t[13],12,-40341101),i=y(i,a,n,r,t[14],17,-1502002290),n=b(n,r=y(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=b(a,n,r,i,t[6],9,-1069501632),i=b(i,a,n,r,t[11],14,643717713),r=b(r,i,a,n,t[0],20,-373897302),n=b(n,r,i,a,t[5],5,-701558691),a=b(a,n,r,i,t[10],9,38016083),i=b(i,a,n,r,t[15],14,-660478335),r=b(r,i,a,n,t[4],20,-405537848),n=b(n,r,i,a,t[9],5,568446438),a=b(a,n,r,i,t[14],9,-1019803690),i=b(i,a,n,r,t[3],14,-187363961),r=b(r,i,a,n,t[8],20,1163531501),n=b(n,r,i,a,t[13],5,-1444681467),a=b(a,n,r,i,t[2],9,-51403784),i=b(i,a,n,r,t[7],14,1735328473),n=x(n,r=b(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=x(a,n,r,i,t[8],11,-2022574463),i=x(i,a,n,r,t[11],16,1839030562),r=x(r,i,a,n,t[14],23,-35309556),n=x(n,r,i,a,t[1],4,-1530992060),a=x(a,n,r,i,t[4],11,1272893353),i=x(i,a,n,r,t[7],16,-155497632),r=x(r,i,a,n,t[10],23,-1094730640),n=x(n,r,i,a,t[13],4,681279174),a=x(a,n,r,i,t[0],11,-358537222),i=x(i,a,n,r,t[3],16,-722521979),r=x(r,i,a,n,t[6],23,76029189),n=x(n,r,i,a,t[9],4,-640364487),a=x(a,n,r,i,t[12],11,-421815835),i=x(i,a,n,r,t[15],16,530742520),n=S(n,r=x(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=S(a,n,r,i,t[7],10,1126891415),i=S(i,a,n,r,t[14],15,-1416354905),r=S(r,i,a,n,t[5],21,-57434055),n=S(n,r,i,a,t[12],6,1700485571),a=S(a,n,r,i,t[3],10,-1894986606),i=S(i,a,n,r,t[10],15,-1051523),r=S(r,i,a,n,t[1],21,-2054922799),n=S(n,r,i,a,t[8],6,1873313359),a=S(a,n,r,i,t[15],10,-30611744),i=S(i,a,n,r,t[6],15,-1560198380),r=S(r,i,a,n,t[13],21,1309151649),n=S(n,r,i,a,t[4],6,-145523070),a=S(a,n,r,i,t[11],10,-1120210379),i=S(i,a,n,r,t[2],15,718787259),r=S(r,i,a,n,t[9],21,-343485551),e[0]=A(n,e[0]),e[1]=A(r,e[1]),e[2]=A(i,e[2]),e[3]=A(a,e[3])}function v(e,t,n,r,i,a){return t=A(A(t,e),A(r,a)),A(t<<i|t>>>32-i,n)}function y(e,t,n,r,i,a,o){return v(t&n|~t&r,e,t,i,a,o)}function b(e,t,n,r,i,a,o){return v(t&r|n&~r,e,t,i,a,o)}function x(e,t,n,r,i,a,o){return v(t^n^r,e,t,i,a,o)}function S(e,t,n,r,i,a,o){return v(n^(t|~r),e,t,i,a,o)}function C(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)_(r,w(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(_(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,_(r,i),r}function w(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var T=`0123456789abcdef`.split(``);function E(e){for(var t=``,n=0;n<4;n++)t+=T[e>>8*n+4&15]+T[e>>8*n&15];return t}function D(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function O(e){return C(e).map(D).join(``)}var k=function(e){for(var t=0;t<e.length;t++)e[t]=E(e[t]);return e.join(``)}(C(`hello`))!=`5d41402abc4b2a76b9719d911017c592`;function A(e,t){if(k){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&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 j(e,t){var n,r,i,a;if(e!==n){for(var o=(i=e,a=1+(256/e.length|0),Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var l=0;for(c=0;c<256;c++){var u=s[c];l=(l+u+o.charCodeAt(c))%256,s[c]=s[l],s[l]=u}n=e,r=s}else s=r;var d=t.length,f=0,p=0,m=``;for(c=0;c<d;c++)p=(p+(u=s[f=(f+1)%256]))%256,s[f]=s[p],s[p]=u,o=s[(s[f]+s[p])%256],m+=String.fromCharCode(t.charCodeAt(c)^o);return m}
/**
* @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 M={print:4,modify:8,copy:16,"annot-forms":32};function N(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(M.perm!==void 0)throw Error(`Invalid permission: `+e);i+=M[e]}),this.padding=`(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz`;var a=(t+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=O(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=j(this.encryptionKey,this.padding)}function P(e){if(/[^\u0000-\u00ff]/.test(e))throw Error(`Invalid PDF Name Object: `+e+`, Only accept ASCII characters.`);for(var t=``,n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?`#`+(`0`+i.toString(16)).slice(-2):e[r]}return t}function F(e){if((0,r.default)(e)!==`object`)throw Error(`Invalid Context passed to initialize PubSub (jsPDF-module)`);var t={};this.subscribe=function(e,n,r){if(r||=!1,typeof e!=`string`||typeof n!=`function`||typeof r!=`boolean`)throw Error(`Invalid arguments passed to PubSub.subscribe (jsPDF-module)`);t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var o=t[n][a];try{o[0].apply(e,r)}catch(e){s.console&&l.error(`jsPDF PubSub Error`,e.message,e)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function I(e){if(!(this instanceof I))return new I(e);var t=`opacity,stroke-opacity`.split(`,`);for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id=``,this.objectNumber=-1}function L(e,t){this.gState=e,this.matrix=t,this.id=``,this.objectNumber=-1}function R(e,t,n,r,i){if(!(this instanceof R))return new R(e,t,n,r,i);this.type=e===`axial`?2:3,this.coords=t,this.colors=n,L.call(this,r,i)}function z(e,t,n,r,i){if(!(this instanceof z))return new z(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream=``,this.cloneIndex=0,L.call(this,r,i)}function B(e){var t,n=typeof arguments[0]==`string`?arguments[0]:`p`,i=arguments[1],a=arguments[2],o=arguments[3],c=[],u=1,d=16,f=`S`,h=null;(0,r.default)(e||={})===`object`&&(n=e.orientation,i=e.unit||i,a=e.format||a,o=e.compress||e.compressPdf||o,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||``,h.ownerPassword=h.ownerPassword||``,h.userPermissions=h.userPermissions||[]),u=typeof e.userUnit==`number`?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(d=e.floatPrecision),f=e.defaultPathOperation||`S`),c=e.filters||(!0===o?[`FlateEncode`]:c),i||=`mm`,n=(``+(n||`P`)).toLowerCase();var _=e.putOnlyUsedFonts||!1,v={},y={internal:{},__private__:{}};y.__private__.PubSub=F;var b=`1.3`,x=y.__private__.getPdfVersion=function(){return b};y.__private__.setPdfVersion=function(e){b=e};var 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]};y.__private__.getPageFormats=function(){return S};var C=y.__private__.getPageFormat=function(e){return S[e]};a||=`a4`;var w=`compat`,T=`advanced`,E=w;function D(){this.saveGraphicsState(),X(new We(Ee,0,0,-Ee,0,En()*Ee).toString()+` cm`),this.setFontSize(this.getFontSize()/Ee),f=`n`,E=T}function O(){this.restoreGraphicsState(),f=`S`,E=w}var k=y.__private__.combineFontStyleAndFontWeight=function(e,t){if(e==`bold`&&t==`normal`||e==`bold`&&t==400||e==`normal`&&t==`italic`||e==`bold`&&t==`italic`)throw Error(`Invalid Combination of fontweight and fontstyle`);return t&&(e=t==400||t===`normal`?e===`italic`?`italic`:`normal`:t!=700&&t!==`bold`||e!==`normal`?(t==700?`bold`:t)+``+e:`bold`),e};y.advancedAPI=function(e){var t=E===w;return t&&D.call(this),typeof e!=`function`||(e(this),t&&O.call(this)),this},y.compatAPI=function(e){var t=E===T;return t&&O.call(this),typeof e!=`function`||(e(this),t&&D.call(this)),this},y.isAdvancedAPI=function(){return E===T};var A,j=function(e){if(E!==T)throw Error(e+` is only available in 'advanced' API mode. You need to call advancedAPI() first.`)},M=y.roundToPrecision=y.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw Error(`Invalid argument passed to jsPDF.roundToPrecision`);return e.toFixed(r).replace(/0+$/,``)};A=y.hpf=y.__private__.hpf=typeof d==`number`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return M(e,d)}:d===`smart`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return M(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return M(e,16)};var L=y.f2=y.__private__.f2=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f2`);return M(e,2)},V=y.__private__.f3=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f3`);return M(e,3)},H=y.scale=y.__private__.scale=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.scale`);return E===w?e*Ee:E===T?e:void 0},ee=function(e){return H(function(e){return E===w?En()-e:E===T?e:void 0}(e))};y.__private__.setPrecision=y.setPrecision=function(e){typeof parseInt(e,10)==`number`&&(t=parseInt(e,10))};var te,U=`00000000000000000000000000000000`,W=y.__private__.getFileId=function(){return U},G=y.__private__.setFileId=function(e){return U=e!==void 0&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():U.split(``).map(function(){return`ABCDEF0123456789`.charAt(Math.floor(16*Math.random()))}).join(``),h!==null&&(jt=new N(h.userPermissions,h.userPassword,h.ownerPassword,U)),U};y.setFileId=function(e){return G(e),this},y.getFileId=function(){return W()};var ne=y.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?`+`:`-`,r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),a=[n,K(r),`'`,K(i),`'`].join(``);return[`D:`,e.getFullYear(),K(e.getMonth()+1),K(e.getDate()),K(e.getHours()),K(e.getMinutes()),K(e.getSeconds()),a].join(``)},re=y.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),a=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,a,o,0)},ie=y.__private__.setCreationDate=function(e){var t;if(e===void 0&&(e=/* @__PURE__ */ new Date),e instanceof Date)t=ne(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw Error(`Invalid argument passed to jsPDF.setCreationDate`);t=e}return te=t},ae=y.__private__.getCreationDate=function(e){var t=te;return e===`jsDate`&&(t=re(te)),t};y.setCreationDate=function(e){return ie(e),this},y.getCreationDate=function(e){return ae(e)};var oe,K=y.__private__.padd2=function(e){return(`0`+parseInt(e)).slice(-2)},se=y.__private__.padd2Hex=function(e){return(`00`+(e=e.toString())).substr(e.length)},q=0,J=[],ce=[],le=0,ue=[],Y=[],de=!1,fe=ce;y.__private__.setCustomOutputDestination=function(e){de=!0,fe=e};var pe=function(e){de||(fe=e)};y.__private__.resetCustomOutputDestination=function(){de=!1,fe=ce};var X=y.__private__.out=function(e){return e=e.toString(),le+=e.length+1,fe.push(e),fe},me=y.__private__.write=function(e){return X(arguments.length===1?e.toString():Array.prototype.join.call(arguments,` `))},he=y.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},ge=[[`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 ge};var Z=e.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(e){return Z=E===T?e/Ee:e,this};var _e,ve=y.__private__.getFontSize=y.getFontSize=function(){return E===w?Z:Z*Ee},ye=e.R2L||!1;y.__private__.setR2L=y.setR2L=function(e){return ye=e,this},y.__private__.getR2L=y.getR2L=function(){return ye};var be,xe=y.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))_e=e;else if(isNaN(e)){if([void 0,null,`fullwidth`,`fullheight`,`fullpage`,`original`].indexOf(e)===-1)throw Error(`zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "`+e+`" is not recognized.`);_e=e}else _e=parseInt(e,10)};y.__private__.getZoomMode=function(){return _e};var Se,Ce=y.__private__.setPageMode=function(e){if([void 0,null,`UseNone`,`UseOutlines`,`UseThumbs`,`FullScreen`].indexOf(e)==-1)throw Error(`Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "`+e+`" is not recognized.`);be=e};y.__private__.getPageMode=function(){return be};var we=y.__private__.setLayoutMode=function(e){if([void 0,null,`continuous`,`single`,`twoleft`,`tworight`,`two`].indexOf(e)==-1)throw Error(`Layout mode must be one of continuous, single, twoleft, tworight. "`+e+`" is not recognized.`);Se=e};y.__private__.getLayoutMode=function(){return Se},y.__private__.setDisplayMode=y.setDisplayMode=function(e,t,n){return xe(e),we(t),Ce(n),this};var Te={title:``,subject:``,author:``,keywords:``,creator:``};y.__private__.getDocumentProperty=function(e){if(Object.keys(Te).indexOf(e)===-1)throw Error(`Invalid argument passed to jsPDF.getDocumentProperty`);return Te[e]},y.__private__.getDocumentProperties=function(){return Te},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(e){for(var t in Te)Te.hasOwnProperty(t)&&e[t]&&(Te[t]=e[t]);return this},y.__private__.setDocumentProperty=function(e,t){if(Object.keys(Te).indexOf(e)===-1)throw Error(`Invalid arguments passed to jsPDF.setDocumentProperty`);return Te[e]=t};var Q,Ee,$,De,Oe,ke={},Ae={},je=[],Me={},Ne={},Pe={},Fe={},Ie=null,Le=0,Re=[],ze=new F(y),Be=e.hotfixes||[],Ve={},He={},Ue=[],We=function e(t,n,r,i,a,o){if(!(this instanceof e))return new e(t,n,r,i,a,o);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[t,n,r,i,a,o]};Object.defineProperty(We.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(We.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(We.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(We.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),We.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(A).join(e)},We.prototype.multiply=function(e){return new We(e.sx*this.sx+e.shy*this.shx,e.sx*this.shy+e.shy*this.sy,e.shx*this.sx+e.sy*this.shx,e.shx*this.shy+e.sy*this.sy,e.tx*this.sx+e.ty*this.shx+this.tx,e.tx*this.shy+e.ty*this.sy+this.ty)},We.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(e*e+t*t),s=(e/=o)*n+(t/=o)*r;n-=e*s,r-=t*s;var c=Math.sqrt(n*n+r*r);return s/=c,e*(r/=c)<t*(n/=c)&&(e=-e,t=-t,s=-s,o=-o),{scale:new We(o,0,0,c,0,0),translate:new We(1,0,0,1,i,a),rotate:new We(e,t,-t,e,0,0),skew:new We(1,0,s,1,0,0)}},We.prototype.toString=function(e){return this.join(` `)},We.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=1/(e*r-t*n),s=r*o,c=-t*o,l=-n*o,u=e*o;return new We(s,c,l,u,-s*i-l*a,-c*i-u*a)},We.prototype.applyToPoint=function(e){return new hn(e.x*this.sx+e.y*this.shx+this.tx,e.x*this.shy+e.y*this.sy+this.ty)},We.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new hn(e.x+e.w,e.y+e.h));return new gn(t.x,t.y,n.x-t.x,n.y-t.y)},We.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty;return new We(e,t,n,r,i,a)},y.Matrix=We;var Ge=y.matrixMult=function(e,t){return t.multiply(e)},Ke=new We(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Ke;var qe=function(e,t){if(!Ne[e]){var n=(t instanceof R?`Sh`:`P`)+(Object.keys(Me).length+1).toString(10);t.id=n,Ne[e]=n,Me[n]=t,ze.publish(`addPattern`,t)}};y.ShadingPattern=R,y.TilingPattern=z,y.addShadingPattern=function(e,t){return j(`addShadingPattern()`),qe(e,t),this},y.beginTilingPattern=function(e){j(`beginTilingPattern()`),vn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},y.endTilingPattern=function(e,t){j(`endTilingPattern()`),t.stream=Y[oe].join(`
`),qe(e,t),ze.publish(`endTilingPattern`,t),Ue.pop().restore()};var Je,Ye=y.__private__.newObject=function(){var e=Xe();return Ze(e,!0),e},Xe=y.__private__.newObjectDeferred=function(){return q++,J[q]=function(){return le},q},Ze=function(e,t){return t=typeof t==`boolean`&&t,J[e]=le,t&&X(e+` 0 obj`),e},Qe=y.__private__.newAdditionalObject=function(){var e={objId:Xe(),content:``};return ue.push(e),e},$e=Xe(),et=Xe(),tt=y.__private__.decodeColorString=function(e){var t=e.split(` `);if(t.length!==2||t[1]!==`g`&&t[1]!==`G`)t.length!==5||t[4]!==`k`&&t[4]!==`K`||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),`r`]);else{var n=parseFloat(t[0]);t=[n,n,n,`r`]}for(var r=`#`,i=0;i<3;i++)r+=(`0`+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return r},nt=y.__private__.encodeColorString=function(e){var t;typeof e==`string`&&(e={ch1:e});var n=e.ch1,i=e.ch2,a=e.ch3,o=e.ch4,s=e.pdfColorType===`draw`?[`G`,`RG`,`K`]:[`g`,`rg`,`k`];if(typeof n==`string`&&n.charAt(0)!==`#`){var c=new m(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw Error(`Invalid color "`+n+`" passed to jsPDF.encodeColorString.`)}if(typeof n==`string`&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n=`#`+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),typeof n==`string`&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,i=l>>8&255,a=255&l}if(i===void 0||o===void 0&&n===i&&i===a)t=typeof n==`string`?n+` `+s[0]:e.precision===2?L(n/255)+` `+s[0]:V(n/255)+` `+s[0];else if(o===void 0||(0,r.default)(o)===`object`){if(o&&!isNaN(o.a)&&o.a===0)return[`1.`,`1.`,`1.`,s[1]].join(` `);t=typeof n==`string`?[n,i,a,s[1]].join(` `):e.precision===2?[L(n/255),L(i/255),L(a/255),s[1]].join(` `):[V(n/255),V(i/255),V(a/255),s[1]].join(` `)}else t=typeof n==`string`?[n,i,a,o,s[2]].join(` `):e.precision===2?[L(n),L(i),L(a),L(o),s[2]].join(` `):[V(n),V(i),V(a),V(o),s[2]].join(` `);return t},rt=y.__private__.getFilters=function(){return c},it=y.__private__.putStream=function(e){var t=(e||={}).data||``,n=e.filters||rt(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,a=t.length,o=e.objectId,s=function(e){return e};if(h!==null&&o===void 0)throw Error(`ObjectId must be passed to putStream for file encryption`);h!==null&&(s=jt.encryptor(o,0));var c={};!0===n&&(n=[`FlateEncode`]);var l=e.additionalKeyValues||[],u=(c=B.API.processDataByFilters===void 0?{data:t,reverseChain:[]}:B.API.processDataByFilters(t,n)).reverseChain+(Array.isArray(r)?r.join(` `):r.toString());if(c.data.length!==0&&(l.push({key:`Length`,value:c.data.length}),!0===i&&l.push({key:`Length1`,value:a})),u.length!=0){if(u.split(`/`).length-1==1)l.push({key:`Filter`,value:u});else{l.push({key:`Filter`,value:`[`+u+`]`});for(var d=0;d<l.length;d+=1)if(l[d].key===`DecodeParms`){for(var f=[],p=0;p<c.reverseChain.split(`/`).length-1;p+=1)f.push(`null`);f.push(l[d].value),l[d].value=`[`+f.join(` `)+`]`}}}X(`<<`);for(var m=0;m<l.length;m++)X(`/`+l[m].key+` `+l[m].value);X(`>>`),c.data.length!==0&&(X(`stream`),X(s(c.data)),X(`endstream`))},at=y.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Ze(r,!0),X(`<</Type /Page`),X(`/Parent `+e.rootDictionaryObjId+` 0 R`),X(`/Resources `+e.resourceDictionaryObjId+` 0 R`),X(`/MediaBox [`+parseFloat(A(e.mediaBox.bottomLeftX))+` `+parseFloat(A(e.mediaBox.bottomLeftY))+` `+A(e.mediaBox.topRightX)+` `+A(e.mediaBox.topRightY)+`]`),e.cropBox!==null&&X(`/CropBox [`+A(e.cropBox.bottomLeftX)+` `+A(e.cropBox.bottomLeftY)+` `+A(e.cropBox.topRightX)+` `+A(e.cropBox.topRightY)+`]`),e.bleedBox!==null&&X(`/BleedBox [`+A(e.bleedBox.bottomLeftX)+` `+A(e.bleedBox.bottomLeftY)+` `+A(e.bleedBox.topRightX)+` `+A(e.bleedBox.topRightY)+`]`),e.trimBox!==null&&X(`/TrimBox [`+A(e.trimBox.bottomLeftX)+` `+A(e.trimBox.bottomLeftY)+` `+A(e.trimBox.topRightX)+` `+A(e.trimBox.topRightY)+`]`),e.artBox!==null&&X(`/ArtBox [`+A(e.artBox.bottomLeftX)+` `+A(e.artBox.bottomLeftY)+` `+A(e.artBox.topRightX)+` `+A(e.artBox.topRightY)+`]`),typeof e.userUnit==`number`&&e.userUnit!==1&&X(`/UserUnit `+e.userUnit),ze.publish(`putPage`,{objId:r,pageContext:Re[t],pageNumber:t,page:n}),X(`/Contents `+i+` 0 R`),X(`>>`),X(`endobj`);var a=n.join(`
`);return E===T&&(a+=`
Q`),Ze(i,!0),it({data:a,filters:rt(),objectId:i}),X(`endobj`),r},ot=y.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Le;e++)Re[e].objId=Xe(),Re[e].contentsObjId=Xe();for(e=1;e<=Le;e++)n.push(at({number:e,data:Y[e],objId:Re[e].objId,contentsObjId:Re[e].contentsObjId,mediaBox:Re[e].mediaBox,cropBox:Re[e].cropBox,bleedBox:Re[e].bleedBox,trimBox:Re[e].trimBox,artBox:Re[e].artBox,userUnit:Re[e].userUnit,rootDictionaryObjId:$e,resourceDictionaryObjId:et}));Ze($e,!0),X(`<</Type /Pages`);var r=`/Kids [`;for(t=0;t<Le;t++)r+=n[t]+` 0 R `;X(r+`]`),X(`/Count `+Le),X(`>>`),X(`endobj`),ze.publish(`postPutPages`)},st=function(e){ze.publish(`putFont`,{font:e,out:X,newObject:Ye,putStream:it}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),X(`<<`),X(`/Type /Font`),X(`/BaseFont /`+P(e.postScriptName)),X(`/Subtype /Type1`),typeof e.encoding==`string`&&X(`/Encoding /`+e.encoding),X(`/FirstChar 32`),X(`/LastChar 255`),X(`>>`),X(`endobj`))},ct=function(e){e.objectNumber=Ye();var t=[];t.push({key:`Type`,value:`/XObject`}),t.push({key:`Subtype`,value:`/Form`}),t.push({key:`BBox`,value:`[`+[A(e.x),A(e.y),A(e.x+e.width),A(e.y+e.height)].join(` `)+`]`}),t.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),it({data:e.pages[1].join(`
`),additionalKeyValues:t,objectId:e.objectNumber}),X(`endobj`)},lt=function(e,t){t||=21;var n=Ye(),r=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),e[0].offset!=0){var a={offset:0,color:e[0].color};e.unshift(a)}if(e[e.length-1].offset!=1){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var s=``,c=0,l=0;l<r.length;l++){for(n=r[l];n>e[c+1].offset;)c++;var u=e[c].offset,d=(n-u)/(e[c+1].offset-u),f=e[c].color,p=e[c+1].color;s+=se(Math.round((1-d)*f[0]+d*p[0]).toString(16))+se(Math.round((1-d)*f[1]+d*p[1]).toString(16))+se(Math.round((1-d)*f[2]+d*p[2]).toString(16))}return s.trim()}(e.colors,t),i=[];i.push({key:`FunctionType`,value:`0`}),i.push({key:`Domain`,value:`[0.0 1.0]`}),i.push({key:`Size`,value:`[`+t+`]`}),i.push({key:`BitsPerSample`,value:`8`}),i.push({key:`Range`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),i.push({key:`Decode`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),it({data:r,additionalKeyValues:i,alreadyAppliedFilters:[`/ASCIIHexDecode`],objectId:n}),X(`endobj`),e.objectNumber=Ye(),X(`<< /ShadingType `+e.type),X(`/ColorSpace /DeviceRGB`);var a=`/Coords [`+A(parseFloat(e.coords[0]))+` `+A(parseFloat(e.coords[1]))+` `;e.type===2?a+=A(parseFloat(e.coords[2]))+` `+A(parseFloat(e.coords[3])):a+=A(parseFloat(e.coords[2]))+` `+A(parseFloat(e.coords[3]))+` `+A(parseFloat(e.coords[4]))+` `+A(parseFloat(e.coords[5])),X(a+=`]`),e.matrix&&X(`/Matrix [`+e.matrix.toString()+`]`),X(`/Function `+n+` 0 R`),X(`/Extend [true true]`),X(`>>`),X(`endobj`)},ut=function(e,t){var n=Xe(),r=Ye();t.push({resourcesOid:n,objectOid:r}),e.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:`[`+e.boundingBox.map(A).join(` `)+`]`}),i.push({key:`XStep`,value:A(e.xStep)}),i.push({key:`YStep`,value:A(e.yStep)}),i.push({key:`Resources`,value:n+` 0 R`}),e.matrix&&i.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),it({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),X(`endobj`)},dt=function(e){for(var t in e.objectNumber=Ye(),X(`<<`),e)switch(t){case`opacity`:X(`/ca `+L(e[t]));break;case`stroke-opacity`:X(`/CA `+L(e[t]))}X(`>>`),X(`endobj`)},ft=function(e){Ze(e.resourcesOid,!0),X(`<<`),X(`/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]`),function(){for(var e in X(`/Font <<`),ke)ke.hasOwnProperty(e)&&(!1===_||!0===_&&v.hasOwnProperty(e))&&X(`/`+e+` `+ke[e].objectNumber+` 0 R`);X(`>>`)}(),function(){if(Object.keys(Me).length>0){for(var e in X(`/Shading <<`),Me)Me.hasOwnProperty(e)&&Me[e]instanceof R&&Me[e].objectNumber>=0&&X(`/`+e+` `+Me[e].objectNumber+` 0 R`);ze.publish(`putShadingPatternDict`),X(`>>`)}}(),function(e){if(Object.keys(Me).length>0){for(var t in X(`/Pattern <<`),Me)Me.hasOwnProperty(t)&&Me[t]instanceof y.TilingPattern&&Me[t].objectNumber>=0&&Me[t].objectNumber<e&&X(`/`+t+` `+Me[t].objectNumber+` 0 R`);ze.publish(`putTilingPatternDict`),X(`>>`)}}(e.objectOid),function(){if(Object.keys(Pe).length>0){for(var e in X(`/ExtGState <<`),Pe)Pe.hasOwnProperty(e)&&Pe[e].objectNumber>=0&&X(`/`+e+` `+Pe[e].objectNumber+` 0 R`);ze.publish(`putGStateDict`),X(`>>`)}}(),function(){for(var e in X(`/XObject <<`),Ve)Ve.hasOwnProperty(e)&&Ve[e].objectNumber>=0&&X(`/`+e+` `+Ve[e].objectNumber+` 0 R`);ze.publish(`putXobjectDict`),X(`>>`)}(),X(`>>`),X(`endobj`)},pt=function(e){Ae[e.fontName]=Ae[e.fontName]||{},Ae[e.fontName][e.fontStyle]=e.id},mt=function(e,t,n,r,i){var a={id:`F`+(Object.keys(ke).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return ze.publish(`addFont`,{font:a,instance:this}),ke[a.id]=a,pt(a),a.id},ht=y.__private__.pdfEscape=y.pdfEscape=function(e,t){return function(e,t){var n,r,i=(t||={}).sourceEncoding||`Unicode`,a,o=t.outputEncoding,s,c,l,u;if((t.autoencode||o)&&ke[Q].metadata&&ke[Q].metadata[i]&&ke[Q].metadata[i].encoding&&(a=ke[Q].metadata[i].encoding,!o&&ke[Q].encoding&&(o=ke[Q].encoding),!o&&a.codePages&&(o=a.codePages[0]),typeof o==`string`&&(o=a[o]),o)){for(c=!1,s=[],n=0,r=e.length;n<r;n++)(l=o[e.charCodeAt(n)])?s.push(String.fromCharCode(l)):s.push(e[n]),s[n].charCodeAt(0)>>8&&(c=!0);e=s.join(``)}for(n=e.length;c===void 0&&n!==0;)e.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(l=e.charCodeAt(n))>>8)>>8)throw Error(`Character at position `+n+` of string '`+e+`' exceeds 16bits. Cannot be encoded into UCS-2 BE`);s.push(u),s.push(l-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},gt=y.__private__.beginPage=function(e){Y[++Le]=[],Re[Le]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},yt(Le),pe(Y[oe])},_t=function(e,t){var r,i,o;switch(n=t||n,typeof e==`string`&&(r=C(e.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(e)&&(i=e[0]*Ee,o=e[1]*Ee),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(l.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])}gt(a),Zt(Yt),X(on),fn!==0&&X(fn+` J`),pn!==0&&X(pn+` j`),ze.publish(`addPage`,{pageNumber:Le})},vt=function(e){e>0&&e<=Le&&(Y.splice(e,1),Re.splice(e,1),Le--,oe>Le&&(oe=Le),this.setPage(oe))},yt=function(e){e>0&&e<=Le&&(oe=e)},bt=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return Y.length-1},xt=function(e,t,n){var r,i=void 0;return n||={},e=e===void 0?ke[Q].fontName:e,t=t===void 0?ke[Q].fontStyle:t,r=e.toLowerCase(),Ae[r]!==void 0&&Ae[r][t]!==void 0?i=Ae[r][t]:Ae[e]!==void 0&&Ae[e][t]!==void 0?i=Ae[e][t]:!1===n.disableWarning&&l.warn(`Unable to look up font label for font '`+e+`', '`+t+`'. Refer to getFontList() for available fonts.`),i||n.noFallback||((i=Ae.times[t])??(i=Ae.times.normal)),i},St=y.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var n in h!==null&&(t=jt.encryptor(e,0)),X(`<<`),X(`/Producer (`+ht(t(`jsPDF `+B.version))+`)`),Te)Te.hasOwnProperty(n)&&Te[n]&&X(`/`+n.substr(0,1).toUpperCase()+n.substr(1)+` (`+ht(t(Te[n]))+`)`);X(`/CreationDate (`+ht(t(te))+`)`),X(`>>`),X(`endobj`)},Ct=y.__private__.putCatalog=function(e){var t=(e||={}).rootDictionaryObjId||$e;switch(Ye(),X(`<<`),X(`/Type /Catalog`),X(`/Pages `+t+` 0 R`),_e||=`fullwidth`,_e){case`fullwidth`:X(`/OpenAction [3 0 R /FitH null]`);break;case`fullheight`:X(`/OpenAction [3 0 R /FitV null]`);break;case`fullpage`:X(`/OpenAction [3 0 R /Fit]`);break;case`original`:X(`/OpenAction [3 0 R /XYZ null null 1]`);break;default:var n=``+_e;n.substr(n.length-1)===`%`&&(_e=parseInt(_e)/100),typeof _e==`number`&&X(`/OpenAction [3 0 R /XYZ null null `+L(_e)+`]`)}switch(Se||=`continuous`,Se){case`continuous`:X(`/PageLayout /OneColumn`);break;case`single`:X(`/PageLayout /SinglePage`);break;case`two`:case`twoleft`:X(`/PageLayout /TwoColumnLeft`);break;case`tworight`:X(`/PageLayout /TwoColumnRight`)}be&&X(`/PageMode /`+be),ze.publish(`putCatalog`),X(`>>`),X(`endobj`)},wt=y.__private__.putTrailer=function(){X(`trailer`),X(`<<`),X(`/Size `+(q+1)),X(`/Root `+q+` 0 R`),X(`/Info `+(q-1)+` 0 R`),h!==null&&X(`/Encrypt `+jt.oid+` 0 R`),X(`/ID [ <`+U+`> <`+U+`> ]`),X(`>>`)},Tt=y.__private__.putHeader=function(){X(`%PDF-`+b),X(`%ºß¬à`)},Et=y.__private__.putXRef=function(){var e=`0000000000`;X(`xref`),X(`0 `+(q+1)),X(`0000000000 65535 f `);for(var t=1;t<=q;t++)typeof J[t]==`function`?X((e+J[t]()).slice(-10)+` 00000 n `):J[t]===void 0?X(`0000000000 00000 n `):X((e+J[t]).slice(-10)+` 00000 n `)},Dt=y.__private__.buildDocument=function(){var e;q=0,le=0,ce=[],J=[],ue=[],$e=Xe(),et=Xe(),pe(ce),ze.publish(`buildDocument`),Tt(),ot(),function(){ze.publish(`putAdditionalObjects`);for(var e=0;e<ue.length;e++){var t=ue[e];Ze(t.objId,!0),X(t.content),X(`endobj`)}ze.publish(`postPutAdditionalObjects`)}(),e=[],function(){for(var e in ke)ke.hasOwnProperty(e)&&(!1===_||!0===_&&v.hasOwnProperty(e))&&st(ke[e])}(),function(){for(var e in Pe)Pe.hasOwnProperty(e)&&dt(Pe[e])}(),function(){for(var e in Ve)Ve.hasOwnProperty(e)&&ct(Ve[e])}(),function(e){for(var t in Me)Me.hasOwnProperty(t)&&(Me[t]instanceof R?lt(Me[t]):Me[t]instanceof z&&ut(Me[t],e))}(e),ze.publish(`putResources`),e.forEach(ft),ft({resourcesOid:et,objectOid:2**53-1}),ze.publish(`postPutResources`),h!==null&&(jt.oid=Ye(),X(`<<`),X(`/Filter /Standard`),X(`/V `+jt.v),X(`/R `+jt.r),X(`/U <`+jt.toHexString(jt.U)+`>`),X(`/O <`+jt.toHexString(jt.O)+`>`),X(`/P `+jt.P),X(`>>`),X(`endobj`)),St(),Ct();var t=le;return Et(),wt(),X(`startxref`),X(``+t),X(`%%EOF`),pe(Y[oe]),ce.join(`
`)},Ot=y.__private__.getBlob=function(e){return new Blob([he(e)],{type:`application/pdf`})},kt=y.output=y.__private__.output=(Je=function(e,t){switch(typeof(t||={})==`string`?t={filename:t}:t.filename=t.filename||`generated.pdf`,e){case void 0:return Dt();case`save`:y.save(t.filename);break;case`arraybuffer`:return he(Dt());case`blob`:return Ot(Dt());case`bloburi`:case`bloburl`:if(s.URL!==void 0&&typeof s.URL.createObjectURL==`function`)return s.URL&&s.URL.createObjectURL(Ot(Dt()))||void 0;l.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=Dt();try{n=g(r)}catch{n=g(unescape(encodeURIComponent(r)))}return`data:application/pdf;filename=`+t.filename+`;base64,`+n;case`pdfobjectnewwindow`:if(Object.prototype.toString.call(s)===`[object Window]`){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"`;t.pdfObjectUrl&&(i=t.pdfObjectUrl,a=``);var o=`<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(t)+`);<\/script></body></html>`,c=s.open();return c!==null&&c.document.write(o),c}throw Error(`The option pdfobjectnewwindow just works in a browser-environment.`);case`pdfjsnewwindow`:if(Object.prototype.toString.call(s)===`[object Window]`){var u=`<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="`+(t.pdfJsUrl||`examples/PDF.js/web/viewer.html`)+`?file=&downloadName=`+t.filename+`" width="500px" height="400px" /></body></html>`,d=s.open();if(d!==null){d.document.write(u);var f=this;d.document.documentElement.querySelector(`#pdfViewer`).onload=function(){d.document.title=t.filename,d.document.documentElement.querySelector(`#pdfViewer`).contentWindow.PDFViewerApplication.open(f.output(`bloburl`))}}return d}throw Error(`The option pdfjsnewwindow just works in a browser-environment.`);case`dataurlnewwindow`:if(Object.prototype.toString.call(s)!==`[object Window]`)throw Error(`The option dataurlnewwindow just works in a browser-environment.`);var p=`<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="`+this.output(`datauristring`,t)+`"></iframe></body></html>`,m=s.open();if(m!==null&&(m.document.write(p),m.document.title=t.filename),m||typeof safari>`u`)return m;break;case`datauri`:case`dataurl`:return s.document.location.href=this.output(`datauristring`,t);default:return null}},Je.foo=function(){try{return Je.apply(this,arguments)}catch(n){var e=n.stack||``;~e.indexOf(` at `)&&(e=e.split(` at `)[1]);var t=`Error in function `+e.split(`
`)[0].split(`<`)[0]+`: `+n.message;if(!s.console)throw Error(t);s.console.error(t,n),s.alert&&alert(t)}},Je.foo.bar=Je,Je.foo),At=function(e){return!0===Array.isArray(Be)&&Be.indexOf(e)>-1};switch(i){case`pt`:Ee=1;break;case`mm`:Ee=72/25.4;break;case`cm`:Ee=72/2.54;break;case`in`:Ee=72;break;case`px`:Ee=At(`px_scaling`)==1?.75:96/72;break;case`pc`:case`em`:Ee=12;break;case`ex`:Ee=6;break;default:if(typeof i!=`number`)throw Error(`Invalid unit: `+i);Ee=i}var jt=null;ie(),G();var Mt=y.__private__.getPageInfo=y.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfo`);return{objId:Re[e].objId,pageNumber:e,pageContext:Re[e]}},Nt=y.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfoByObjId`);for(var t in Re)if(Re[t].objId===e)break;return Mt(t)},Pt=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Re[oe].objId,pageNumber:oe,pageContext:Re[oe]}};y.addPage=function(){return _t.apply(this,arguments),this},y.setPage=function(){return yt.apply(this,arguments),pe.call(this,Y[oe]),this},y.insertPage=function(e){return this.addPage(),this.movePage(oe,e),this},y.movePage=function(e,t){var n,r;if(e>t){n=Y[e],r=Re[e];for(var i=e;i>t;i--)Y[i]=Y[i-1],Re[i]=Re[i-1];Y[t]=n,Re[t]=r,this.setPage(t)}else if(e<t){n=Y[e],r=Re[e];for(var a=e;a<t;a++)Y[a]=Y[a+1],Re[a]=Re[a+1];Y[t]=n,Re[t]=r,this.setPage(t)}return this},y.deletePage=function(){return vt.apply(this,arguments),this},y.__private__.text=y.text=function(e,t,n,i,a){var o,s,c,l,u,d,f,p,m,h=(i||={}).scope||this;if(typeof e==`number`&&typeof t==`number`&&(typeof n==`string`||Array.isArray(n))){var g=n;n=t,t=e,e=g}if(arguments[3]instanceof We==0?(c=arguments[4],l=arguments[5],(0,r.default)(f=arguments[3])===`object`&&f!==null||(typeof c==`string`&&(l=c,c=null),typeof f==`string`&&(l=f,f=null),typeof f==`number`&&(c=f,f=null),i={flags:f,angle:c,align:l})):(j(`The transform parameter of text() with a Matrix value`),m=a),isNaN(t)||isNaN(n)||e==null)throw Error(`Invalid arguments passed to jsPDF.text`);if(e.length===0)return h;var _,y=``,b=typeof i.lineHeightFactor==`number`?i.lineHeightFactor:Jt,x=h.internal.scaleFactor;function S(e){return e=e.split(` `).join(Array(i.TabLen||9).join(` `)),ht(e,f)}function C(e){for(var t,n=e.concat(),r=[],i=n.length;i--;)typeof(t=n.shift())==`string`?r.push(t):Array.isArray(e)&&(t.length===1||t[1]===void 0&&t[2]===void 0)?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function w(e,t){var n;if(typeof e==`string`)n=t(e)[0];else if(Array.isArray(e)){for(var r,i,a=e.concat(),o=[],s=a.length;s--;)typeof(r=a.shift())==`string`?o.push(t(r)[0]):Array.isArray(r)&&typeof r[0]==`string`&&(i=t(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var D=!1,O=!0;if(typeof e==`string`)D=!0;else if(Array.isArray(e)){var k=e.concat();s=[];for(var M,N=k.length;N--;)(typeof(M=k.shift())!=`string`||Array.isArray(M)&&typeof M[0]!=`string`)&&(O=!1);D=O}if(!1===D)throw Error(`Type of text must be string or Array. "`+e+`" is not recognized.`);typeof e==`string`&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var P=Z/h.internal.scaleFactor,F=P*(b-1);switch(i.baseline){case`bottom`:n-=F;break;case`top`:n+=P-F;break;case`hanging`:n+=P-2*F;break;case`middle`:n+=P/2-F}if((d=i.maxWidth||0)>0&&(typeof e==`string`?e=h.splitTextToSize(e,d):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(h.splitTextToSize(t,d))},[]))),o={text:e,x:t,y:n,options:i,mutex:{pdfEscape:ht,activeFontKey:Q,fonts:ke,activeFontSize:Z}},ze.publish(`preProcessText`,o),e=o.text,c=(i=o.options).angle,m instanceof We==0&&c&&typeof c==`number`){c*=Math.PI/180,i.rotationDirection===0&&(c=-c),E===T&&(c=-c);var I=Math.cos(c),L=Math.sin(c);m=new We(I,L,-L,I,0,0)}else c&&c instanceof We&&(m=c);E!==T||m||(m=Ke),(u=i.charSpace||un)!==void 0&&(y+=A(H(u))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(p=i.horizontalScale)!==void 0&&(y+=A(100*p)+` Tz
`),i.lang;var R=-1,z=i.renderingMode===void 0?i.stroke:i.renderingMode,B=h.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case`fill`:R=0;break;case 1:case!0:case`stroke`:R=1;break;case 2:case`fillThenStroke`:R=2;break;case 3:case`invisible`:R=3;break;case 4:case`fillAndAddForClipping`:R=4;break;case 5:case`strokeAndAddPathForClipping`:R=5;break;case 6:case`fillThenStrokeAndAddToPathForClipping`:R=6;break;case 7:case`addToPathForClipping`:R=7}var V=B.usedRenderingMode===void 0?-1:B.usedRenderingMode;R===-1?V!==-1&&(y+=`0 Tr
`):y+=R+` Tr
`,R!==-1&&(B.usedRenderingMode=R),l=i.align||`left`;var ee,te=Z*b,U=h.internal.pageSize.getWidth(),W=ke[Q];u=i.charSpace||un,d=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[],ne=function(e){return h.getStringUnitWidth(e,{font:W,charSpace:u,fontSize:Z,doKerning:!1})*Z/x};if(Object.prototype.toString.call(e)===`[object Array]`){var re;s=C(e),l!==`left`&&(ee=s.map(ne));var ie,ae=0;if(l===`right`){t-=ee[0],e=[],N=s.length;for(var oe=0;oe<N;oe++)oe===0?(ie=tn(t),re=nn(n)):(ie=H(ae-ee[oe]),re=-te),e.push([s[oe],ie,re]),ae=ee[oe]}else if(l===`center`){t-=ee[0]/2,e=[],N=s.length;for(var K=0;K<N;K++)K===0?(ie=tn(t),re=nn(n)):(ie=H((ae-ee[K])/2),re=-te),e.push([s[K],ie,re]),ae=ee[K]}else if(l===`left`){e=[],N=s.length;for(var se=0;se<N;se++)e.push(s[se])}else if(l===`justify`&&W.encoding===`Identity-H`){e=[],N=s.length,d=d===0?U:d;for(var q=0,J=0;J<N;J++)if(re=J===0?nn(n):-te,ie=J===0?tn(t):q,J<N-1){var ce=H((d-ee[J])/(s[J].split(` `).length-1)),le=s[J].split(` `);e.push([le[0]+` `,ie,re]),q=0;for(var ue=1;ue<le.length;ue++){var Y=(ne(le[ue-1]+` `+le[ue])-ne(le[ue]))*x+ce;ue==le.length-1?e.push([le[ue],Y,0]):e.push([le[ue]+` `,Y,0]),q-=Y}}else e.push([s[J],ie,re]);e.push([``,q,0])}else{if(l!==`justify`)throw Error(`Unrecognized alignment option, use "left", "center", "right" or "justify".`);for(e=[],N=s.length,d=d===0?U:d,J=0;J<N;J++){re=J===0?nn(n):-te,ie=J===0?tn(t):0;var de=s[J].split(` `).length-1,fe=de>0?(d-ee[J])/de:0;J<N-1?G.push(A(H(fe))):G.push(0),e.push([s[J],ie,re])}}}!0===(typeof i.R2L==`boolean`?i.R2L:ye)&&(e=w(e,function(e,t,n){return[e.split(``).reverse().join(``),t,n]})),o={text:e,x:t,y:n,options:i,mutex:{pdfEscape:ht,activeFontKey:Q,fonts:ke,activeFontSize:Z}},ze.publish(`postProcessText`,o),e=o.text,_=o.mutex.isHex||!1;var pe=ke[Q].encoding;pe!==`WinAnsiEncoding`&&pe!==`StandardEncoding`||(e=w(e,function(e,t,n){return[S(e),t,n]})),s=C(e),e=[];for(var me,he,ge,_e=+!!Array.isArray(s[0]),ve=``,be=function(e,t,n){var r=``;return n instanceof We?(n=typeof i.angle==`number`?Ge(n,new We(1,0,0,1,e,t)):Ge(new We(1,0,0,1,e,t),n),E===T&&(n=Ge(new We(1,0,0,-1,0,0),n)),r=n.join(` `)+` Tm
`):r=A(e)+` `+A(t)+` Td
`,r},xe=0;xe<s.length;xe++){switch(ve=``,_e){case 1:ge=(_?`<`:`(`)+s[xe][0]+(_?`>`:`)`),me=parseFloat(s[xe][1]),he=parseFloat(s[xe][2]);break;case 0:ge=(_?`<`:`(`)+s[xe]+(_?`>`:`)`),me=tn(t),he=nn(n)}G!==void 0&&G[xe]!==void 0&&(ve=G[xe]+` Tw
`),xe===0?e.push(ve+be(me,he,m)+ge):_e===0?e.push(ve+ge):_e===1&&e.push(ve+be(me,he,m)+ge)}e=_e===0?e.join(` Tj
T* `):e.join(` Tj
`),e+=` Tj
`;var Se=`BT
/`;return Se+=Q+` `+Z+` Tf
`,Se+=A(Z*b)+` TL
`,Se+=cn+`
`,Se+=y,Se+=e,X(Se+=`ET`),v[Q]=!0,h};var Ft=y.__private__.clip=y.clip=function(e){return X(e===`evenodd`?`W*`:`W`),this};y.clipEvenOdd=function(){return Ft(`evenodd`)},y.__private__.discardPath=y.discardPath=function(){return X(`n`),this};var It=y.__private__.isValidStyle=function(e){var t=!1;return[void 0,null,`S`,`D`,`F`,`DF`,`FD`,`f`,`f*`,`B`,`B*`,`n`].indexOf(e)!==-1&&(t=!0),t};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(e){return It(e)&&(f=e),this};var Lt=y.__private__.getStyle=y.getStyle=function(e){var t=f;switch(e){case`D`:case`S`:t=`S`;break;case`F`:t=`f`;break;case`FD`:case`DF`:t=`B`;break;case`f`:case`f*`:case`B`:case`B*`:t=e}return t},Rt=y.close=function(){return X(`h`),this};y.stroke=function(){return X(`S`),this},y.fill=function(e){return zt(`f`,e),this},y.fillEvenOdd=function(e){return zt(`f*`,e),this},y.fillStroke=function(e){return zt(`B`,e),this},y.fillStrokeEvenOdd=function(e){return zt(`B*`,e),this};var zt=function(e,t){(0,r.default)(t)===`object`?Ht(t,e):X(e)},Bt=function(e){e===null||E===T&&e===void 0||(e=Lt(e),X(e))};function Vt(e,t,n,r,i){var a=new z(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);return a.stream=this.stream,qe(e+`$$`+this.cloneIndex+++`$$`,a),a}var Ht=function(e,t){var n=Ne[e.key],r=Me[n];if(r instanceof R)X(`q`),X(Ut(t)),r.gState&&y.setGState(r.gState),X(e.matrix.toString()+` cm`),X(`/`+n+` sh`),X(`Q`);else if(r instanceof z){var i=new We(1,0,0,-1,0,En());e.matrix&&(i=i.multiply(e.matrix||Ke),n=Vt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),X(`q`),X(`/Pattern cs`),X(`/`+n+` scn`),r.gState&&y.setGState(r.gState),X(t),X(`Q`)}},Ut=function(e){switch(e){case`f`:case`F`:case`n`:return`W n`;case`f*`:return`W* n`;case`B`:case`S`:return`W S`;case`B*`:return`W* S`}},Wt=y.moveTo=function(e,t){return X(A(H(e))+` `+A(ee(t))+` m`),this},Gt=y.lineTo=function(e,t){return X(A(H(e))+` `+A(ee(t))+` l`),this},Kt=y.curveTo=function(e,t,n,r,i,a){return X([A(H(e)),A(ee(t)),A(H(n)),A(ee(r)),A(H(i)),A(ee(a)),`c`].join(` `)),this};y.__private__.line=y.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!It(i))throw Error(`Invalid arguments passed to jsPDF.line`);return E===w?this.lines([[n-e,r-t]],e,t,[1,1],i||`S`):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},y.__private__.lines=y.lines=function(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g,_;if(typeof e==`number`&&(_=n,n=t,t=e,e=_),r||=[1,1],a||=!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!It(i)||typeof a!=`boolean`)throw Error(`Invalid arguments passed to jsPDF.lines`);for(Wt(t,n),o=r[0],s=r[1],l=e.length,h=t,g=n,c=0;c<l;c++)(u=e[c]).length===2?(h=u[0]*o+h,g=u[1]*s+g,Gt(h,g)):(d=u[0]*o+h,f=u[1]*s+g,p=u[2]*o+h,m=u[3]*s+g,h=u[4]*o+h,g=u[5]*s+g,Kt(d,f,p,m,h,g));return a&&Rt(),Bt(i),this},y.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case`m`:Wt(r[0],r[1]);break;case`l`:Gt(r[0],r[1]);break;case`c`:Kt.apply(this,r);break;case`h`:Rt()}}return this},y.__private__.rect=y.rect=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!It(i))throw Error(`Invalid arguments passed to jsPDF.rect`);return E===w&&(r=-r),X([A(H(e)),A(ee(t)),A(H(n)),A(H(r)),`re`].join(` `)),Bt(i),this},y.__private__.triangle=y.triangle=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!It(o))throw Error(`Invalid arguments passed to jsPDF.triangle`);return this.lines([[n-e,r-t],[i-n,a-r],[e-i,t-a]],e,t,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!It(o))throw 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]],e+i,t,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!It(i))throw Error(`Invalid arguments passed to jsPDF.ellipse`);var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return Wt(e+n,t),Kt(e+n,t-o,e+a,t-r,e,t-r),Kt(e-a,t-r,e-n,t-o,e-n,t),Kt(e-n,t+o,e-a,t+r,e,t+r),Kt(e+a,t+r,e+n,t+o,e+n,t),Bt(i),this},y.__private__.circle=y.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!It(r))throw Error(`Invalid arguments passed to jsPDF.circle`);return this.ellipse(e,t,n,n,r)},y.setFont=function(e,t,n){return n&&(t=k(t,n)),Q=xt(e,t,{disableWarning:!1}),this};var qt=y.__private__.getFont=y.getFont=function(){return ke[xt.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var e,t,n={};for(e in Ae)if(Ae.hasOwnProperty(e))for(t in n[e]=[],Ae[e])Ae[e].hasOwnProperty(t)&&n[e].push(t);return n},y.addFont=function(e,t,n,r,i){var a=[`StandardEncoding`,`MacRomanEncoding`,`Identity-H`,`WinAnsiEncoding`];return arguments[3]&&a.indexOf(arguments[3])!==-1?i=arguments[3]:arguments[3]&&a.indexOf(arguments[3])==-1&&(n=k(n,r)),mt.call(this,e,t,n,i||=`Identity-H`)};var Jt,Yt=e.lineWidth||.200025,Xt=y.__private__.getLineWidth=y.getLineWidth=function(){return Yt},Zt=y.__private__.setLineWidth=y.setLineWidth=function(e){return Yt=e,X(A(H(e))+` w`),this};y.__private__.setLineDash=B.API.setLineDash=B.API.setLineDashPattern=function(e,t){if(e||=[],t||=0,isNaN(t)||!Array.isArray(e))throw Error(`Invalid arguments passed to jsPDF.setLineDash`);return e=e.map(function(e){return A(H(e))}).join(` `),t=A(H(t)),X(`[`+e+`] `+t+` d`),this};var Qt=y.__private__.getLineHeight=y.getLineHeight=function(){return Z*Jt};y.__private__.getLineHeight=y.getLineHeight=function(){return Z*Jt};var $t=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(e){return typeof(e||=1.15)==`number`&&(Jt=e),this},en=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return Jt};$t(e.lineHeight);var tn=y.__private__.getHorizontalCoordinate=function(e){return H(e)},nn=y.__private__.getVerticalCoordinate=function(e){return E===T?e:Re[oe].mediaBox.topRightY-Re[oe].mediaBox.bottomLeftY-H(e)},rn=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(e){return A(tn(e))},an=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(e){return A(nn(e))},on=e.strokeColor||`0 G`;y.__private__.getStrokeColor=y.getDrawColor=function(){return tt(on)},y.__private__.setStrokeColor=y.setDrawColor=function(e,t,n,r){return on=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`draw`,precision:2}),X(on),this};var sn=e.fillColor||`0 g`;y.__private__.getFillColor=y.getFillColor=function(){return tt(sn)},y.__private__.setFillColor=y.setFillColor=function(e,t,n,r){return sn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`fill`,precision:2}),X(sn),this};var cn=e.textColor||`0 g`,ln=y.__private__.getTextColor=y.getTextColor=function(){return tt(cn)};y.__private__.setTextColor=y.setTextColor=function(e,t,n,r){return cn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`text`,precision:3}),this};var un=e.charSpace,dn=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(un||0)};y.__private__.setCharSpace=y.setCharSpace=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.setCharSpace`);return un=e,this};var fn=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(e){var t=y.CapJoinStyles[e];if(t===void 0)throw Error(`Line cap style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return fn=t,X(t+` J`),this};var pn=0;y.__private__.setLineJoin=y.setLineJoin=function(e){var t=y.CapJoinStyles[e];if(t===void 0)throw Error(`Line join style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return pn=t,X(t+` j`),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(e){if(e||=0,isNaN(e))throw Error(`Invalid argument passed to jsPDF.setLineMiterLimit`);return X(A(H(e))+` M`),this},y.GState=I,y.setGState=function(e){(e=typeof e==`string`?Pe[Fe[e]]:mn(null,e)).equals(Ie)||(X(`/`+e.id+` gs`),Ie=e)};var mn=function(e,t){if(!e||!Fe[e]){var n=!1;for(var r in Pe)if(Pe.hasOwnProperty(r)&&Pe[r].equals(t)){n=!0;break}if(n)t=Pe[r];else{var i=`GS`+(Object.keys(Pe).length+1).toString(10);Pe[i]=t,t.id=i}return e&&(Fe[e]=t.id),ze.publish(`addGState`,t),t}};y.addGState=function(e,t){return mn(e,t),this},y.saveGraphicsState=function(){return X(`q`),je.push({key:Q,size:Z,color:cn}),this},y.restoreGraphicsState=function(){X(`Q`);var e=je.pop();return Q=e.key,Z=e.size,cn=e.color,Ie=null,this},y.setCurrentTransformationMatrix=function(e){return X(e.toString()+` cm`),this},y.comment=function(e){return X(`#`+e),this};var hn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var i=`pt`;return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},gn=function(e,t,n,r){hn.call(this,e,t),this.type=`rect`;var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var a=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}}),this},_n=function(){this.page=Le,this.currentPage=oe,this.pages=Y.slice(0),this.pagesContext=Re.slice(0),this.x=$,this.y=De,this.matrix=Oe,this.width=bn(oe),this.height=Sn(oe),this.outputDestination=fe,this.id=``,this.objectNumber=-1};_n.prototype.restore=function(){Le=this.page,oe=this.currentPage,Re=this.pagesContext,Y=this.pages,$=this.x,De=this.y,Oe=this.matrix,xn(oe,this.width),Cn(oe,this.height),fe=this.outputDestination};var vn=function(e,t,n,r,i){Ue.push(new _n),Le=oe=0,Y=[],$=e,De=t,Oe=i,gt([n,r])};for(var yn in y.beginFormObject=function(e,t,n,r,i){return vn(e,t,n,r,i),this},y.endFormObject=function(e){return function(e){if(He[e])Ue.pop().restore();else{var t=new _n,n=`Xo`+(Object.keys(Ve).length+1).toString(10);t.id=n,He[e]=n,Ve[n]=t,ze.publish(`addFormObject`,t),Ue.pop().restore()}}(e),this},y.doFormObject=function(e,t){var n=Ve[He[e]];return X(`q`),X(t.toString()+` cm`),X(`/`+n.id+` Do`),X(`Q`),this},y.getFormObject=function(e){var t=Ve[He[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},y.save=function(e,t){return e||=`generated.pdf`,(t||={}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(p(Ot(Dt()),e),typeof p.unload==`function`&&s.setTimeout&&setTimeout(p.unload,911),this):new Promise(function(t,n){try{var r=p(Ot(Dt()),e);typeof p.unload==`function`&&s.setTimeout&&setTimeout(p.unload,911),t(r)}catch(e){n(e.message)}})},B.API)B.API.hasOwnProperty(yn)&&(yn===`events`&&B.API.events.length?function(e,t){for(var n,r,i=t.length-1;i!==-1;i--)n=t[i][0],r=t[i][1],e.subscribe.apply(e,[n].concat(typeof r==`function`?[r]:r))}(ze,B.API.events):y[yn]=B.API[yn]);function bn(e){return Re[e].mediaBox.topRightX-Re[e].mediaBox.bottomLeftX}function xn(e,t){Re[e].mediaBox.topRightX=t+Re[e].mediaBox.bottomLeftX}function Sn(e){return Re[e].mediaBox.topRightY-Re[e].mediaBox.bottomLeftY}function Cn(e,t){Re[e].mediaBox.topRightY=t+Re[e].mediaBox.bottomLeftY}var wn=y.getPageWidth=function(e){return bn(e||=oe)/Ee},Tn=y.setPageWidth=function(e,t){xn(e,t*Ee)},En=y.getPageHeight=function(e){return Sn(e||=oe)/Ee},Dn=y.setPageHeight=function(e,t){Cn(e,t*Ee)};return y.internal={pdfEscape:ht,getStyle:Lt,getFont:qt,getFontSize:ve,getCharSpace:dn,getTextColor:ln,getLineHeight:Qt,getLineHeightFactor:en,getLineWidth:Xt,write:me,getHorizontalCoordinate:tn,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:an,collections:{},newObject:Ye,newAdditionalObject:Qe,newObjectDeferred:Xe,newObjectDeferredBegin:Ze,getFilters:rt,putStream:it,events:ze,scaleFactor:Ee,pageSize:{getWidth:function(){return wn(oe)},setWidth:function(e){Tn(oe,e)},getHeight:function(){return En(oe)},setHeight:function(e){Dn(oe,e)}},encryptionOptions:h,encryption:jt,getEncryptor:function(e){return h===null?function(e){return e}:jt.encryptor(e,0)},output:kt,getNumberOfPages:bt,get pages(){return Y},out:X,f2:L,f3:V,getPageInfo:Mt,getPageInfoByObjId:Nt,getCurrentPageInfo:Pt,getPDFVersion:x,Point:hn,Rectangle:gn,Matrix:We,hasHotfix:At},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return wn(oe)},set:function(e){Tn(oe,e)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return En(oe)},set:function(e){Dn(oe,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=ge.length;t<n;t++){var r=mt.call(this,e[t][0],e[t][1],e[t][2],ge[t][3],!0);!1===_&&(v[r]=!0);var i=e[t][0].split(`-`);pt({id:r,fontName:i[0],fontStyle:i[1]||``})}ze.publish(`addFonts`,{fonts:ke,dictionary:Ae})}.call(y,ge),Q=`F1`,_t(a,n),ze.publish(`initialized`),y}N.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},N.prototype.toHexString=function(e){return e.split(``).map(function(e){return(`0`+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join(``)},N.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join(``)},N.prototype.processOwnerPassword=function(e,t){return j(O(t).substr(0,5),e)},N.prototype.encryptor=function(e,t){var n=O(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return j(n,e)}},I.prototype.equals=function(e){var t,n=`id,objectNumber,equals`;if(!e||(0,r.default)(e)!==(0,r.default)(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return i===0},B.API={events:[]},B.version=`4.0.0`;var V=B.API,H=1,ee=function(e){return e.replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},te=function(e){return e.replace(/\\\\/g,`\\`).replace(/\\\(/g,`(`).replace(/\\\)/g,`)`)},U=function(e){return e.toFixed(2)},W=function(e){return e.toFixed(5)};V.__acroform__={};var G=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},ne=function(e){return e*H},re=function(e){var t=new he,n=$.internal.getHeight(e)||0,r=$.internal.getWidth(e)||0;return t.BBox=[0,0,Number(U(r)),Number(U(n))],t},ie=V.__acroform__.setBit=function(e,t){if(e||=0,t||=0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBit`);return e|1<<t},ae=V.__acroform__.clearBit=function(e,t){if(e||=0,t||=0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBit`);return e&~(1<<t)},oe=V.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBit`);return e&1<<t?1:0},K=V.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf`);return oe(e,t-1)},se=V.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf`);return ie(e,t-1)},q=V.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf`);return ae(e,t-1)},J=V.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(a+s)||0,c.upperRight_X=n(i+o)||0,c.upperRight_Y=r(a)||0,[Number(U(c.lowerLeft_X)),Number(U(c.lowerLeft_Y)),Number(U(c.upperRight_X)),Number(U(c.upperRight_Y))]},ce=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=le(e,e._V||e.DV),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push(`/Tx BMC`),t.push(`q`),t.push(`BT`),t.push(e.scope.__private__.encodeColorString(e.color)),t.push(`/`+r+` `+U(n.fontSize)+` Tf`),t.push(`1 0 0 1 0 0 Tm`),t.push(n.text),t.push(`ET`),t.push(`Q`),t.push(`EMC`);var i=re(e);return i.scope=e.scope,i.stream=t.join(`
`),i}},le=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:``,fontSize:``},i=(t=(t=t.substr(0,1)==`(`?t.substr(1):t).substr(t.length-1)==`)`?t.substr(0,t.length-1):t).split(` `);i=e.multiline?i.map(function(e){return e.split(`
`)}):i.map(function(e){return[e]});var a=n,o=$.internal.getHeight(e)||0;o=o<0?-o:o;var s=$.internal.getWidth(e)||0;s=s<0?-s:s;var c=function(t,n,r){return t+1<i.length&&ue(n+` `+i[t+1][0],e,r).width<=s-4};a++;t:for(;a>0;){t=``,a--;var l,u,d=ue(`3`,e,a).height,f=e.multiline?o-a:(o-d)/2,p=f+=2,m=0,h=0,g=0;if(a<=0){t=`(...) Tj
`,t+=`% Width of Text: `+ue(t,e,a=12).width+`, FieldWidth:`+s+`
`;break}for(var _=``,v=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var b=!1;if(i[y].length!==1&&g!==i[y].length-1){if((d+2)*(v+2)+2>o)continue t;_+=i[y][g],b=!0,h=y,y--}else{_=(_+=i[y][g]+` `).substr(_.length-1)==` `?_.substr(0,_.length-1):_;var x=parseInt(y),S=c(x,_,a),C=y>=i.length-1;if(S&&!C){_+=` `,g=0;continue}if(S||C){if(C)h=x;else if(e.multiline&&(d+2)*(v+2)+2>o)continue t}else{if(!e.multiline||(d+2)*(v+2)+2>o)continue t;h=x}}for(var w=``,T=m;T<=h;T++){var E=i[T];if(e.multiline){if(T===h){w+=E[g]+` `,g=(g+1)%E.length;continue}if(T===m){w+=E[E.length-1]+` `;continue}}w+=E[0]+` `}switch(w=w.substr(w.length-1)==` `?w.substr(0,w.length-1):w,u=ue(w,e,a).width,e.textAlign){case`right`:l=s-u-2;break;case`center`:l=(s-u)/2;break;default:l=2}t+=U(l)+` `+U(p)+` Td
`,t+=`(`+ee(w)+`) Tj
`,t+=-U(l)+` 0 Td
`,p=-(a+2),u=0,m=b?h:h+1,v++,_=``}break}return r.text=t,r.fontSize=a,r},ue=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth(`3`,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},Y={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},de=function(e,t){var n={type:`reference`,object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},fe=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||!1===e.internal.acroformPlugin.isInitialized)){if(Z.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Y)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw Error(`Exception while creating AcroformDictionary`);H=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ge,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe(`postPutResources`,function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe(`buildDocument`,function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&de(r,e)}})(e)}),e.internal.events.subscribe(`putCatalog`,function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw Error(`putCatalogCallback: Root missing.`);e.internal.write(`/AcroForm `+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+` 0 R`)})(e)}),e.internal.events.subscribe(`postPutPages`,function(t){(function(e,t){var n=!e;for(var i in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e||=t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var a=e[i],o=[],s=a.Rect;if(a.Rect&&=J(a.Rect,t),t.internal.newObjectDeferredBegin(a.objId,!0),a.DA=$.createDefaultAppearanceStream(a),(0,r.default)(a)===`object`&&typeof a.getKeyValueListForStream==`function`&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=ce(a);o.push({key:`AP`,value:`<</N `+c+`>>`}),t.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var l=``;for(var u in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(u)){var d=a.appearanceStreamContent[u];if(l+=`/`+u+` `,l+=`<<`,Object.keys(d).length>=1||Array.isArray(d)){for(var i in d)if(d.hasOwnProperty(i)){var f=d[i];typeof f==`function`&&(f=f.call(t,a)),l+=`/`+i+` `+f+` `,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else typeof(f=d)==`function`&&(f=f.call(t,a)),l+=`/`+i+` `+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);l+=`>>`}o.push({key:`AP`,value:`<<
`+l+`>>`})}t.internal.putStream({additionalKeyValues:o,objectId:a.objId}),t.internal.out(`endobj`)}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,a=e[n];t.internal.newObjectDeferredBegin(a.objId,!0),(0,r.default)(a)===`object`&&typeof a.putStream==`function`&&a.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},pe=V.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(e){return e};if(Array.isArray(e)){for(var a=`[`,o=0;o<e.length;o++)switch(o!==0&&(a+=` `),(0,r.default)(e[o])){case`boolean`:case`number`:case`object`:a+=e[o].toString();break;case`string`:e[o].substr(0,1)===`/`?a+=e[o].toString():(t!==void 0&&n&&(i=n.internal.getEncryptor(t)),a+=`(`+ee(i(e[o].toString()))+`)`)}return a+`]`}throw Error(`Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray`)},X=function(e,t,n){var r=function(e){return e};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e||=``).toString(),`(`+ee(r(e))+`)`},me=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};me.prototype.toString=function(){return this.objId+` 0 R`},me.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out(`endobj`)},me.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return e!=`content`&&e!=`appearanceStreamContent`&&e!=`scope`&&e!=`objId`&&e.substring(0,1)!=`_`});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:pe(i,this.objId,this.scope)}):i instanceof me?(i.scope=this.scope,e.push({key:r,value:i.objId+` 0 R`})):typeof i!=`function`&&e.push({key:r,value:i}))}return e};var he=function(){me.call(this),Object.defineProperty(this,"Type",{value:`/XObject`,configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:`/Form`,configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:`2 0 R`,configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};G(he,me);var ge=function(){me.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+ee(t(e))+`)`}},set:function(t){e=t}})};G(ge,me);var Z=function e(){me.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute F supplied.`);t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!K(t,3)},set:function(e){this.F=!!e==1?se(t,3):q(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute Ff supplied.`);n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(e){r=e===void 0?[]:e}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i=``;Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case`/Btn`:case`/Tx`:case`/Ch`:case`/Sig`:i=e;break;default:throw Error(`Invalid value "`+e+`" 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 we)return;a=`FieldObject`+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+ee(t(a))+`)`},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=`helvetica`;Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s=`normal`;Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/H:l},set:function(e){l=e}});var u=`black`;Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d=`/F1 0 Tf 0 g`;Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof we||this instanceof Q))return X(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof xe==0?X(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof xe==0?e.substr(0,1)===`(`?te(e.substr(1,e.length-2)):te(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof xe==1?te(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof xe==1?`/`+e:e}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof xe==0?X(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof xe==0?e.substr(0,1)===`(`?te(e.substr(1,e.length-2)):te(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof xe==1?te(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof xe==1?`/`+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Annot`:null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?`/Widget`:null}});var m,h=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return h},set:function(e){e=!!e,h=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(e){m=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,1)},set:function(e){this.Ff=!!e==1?se(this.Ff,1):q(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,2)},set:function(e){this.Ff=!!e==1?se(this.Ff,2):q(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,3)},set:function(e){this.Ff=!!e==1?se(this.Ff,3):q(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(g!==null)return g},set:function(e){if([0,1,2].indexOf(e)===-1)throw Error(`Invalid value "`+e+`" for attribute Q supplied.`);g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e=`left`;break;case 1:e=`center`;break;case 2:e=`right`}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case`right`:case 2:g=2;break;case`center`:case 1:g=1;break;default:g=0}}})};G(Z,me);var _e=function(){Z.call(this),this.FT=`/Ch`,this.V=`()`,this.fontName=`zapfdingbats`;var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return pe(t,this.objId,this.scope)},set:function(e){var n,r=[];typeof(n=e)==`string`&&(r=function(e,t,n){n||=1;for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e||=``).toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n||=!1,e=(e||=``).toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,18)},set:function(e){this.Ff=!!e==1?se(this.Ff,18):q(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,19)},set:function(e){!0===this.combo&&(this.Ff=!!e==1?se(this.Ff,19):q(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,20)},set:function(e){!!e==1?(this.Ff=se(this.Ff,20),t.sort()):this.Ff=q(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,22)},set:function(e){this.Ff=!!e==1?se(this.Ff,22):q(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,23)},set:function(e){this.Ff=!!e==1?se(this.Ff,23):q(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,27)},set:function(e){this.Ff=!!e==1?se(this.Ff,27):q(this.Ff,27)}}),this.hasAppearanceStream=!1};G(_e,Z);var ve=function(){_e.call(this),this.fontName=`helvetica`,this.combo=!1};G(ve,_e);var ye=function(){ve.call(this),this.combo=!0};G(ye,ve);var be=function(){ye.call(this),this.edit=!0};G(be,ye);var xe=function(){Z.call(this),this.FT=`/Btn`,Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,15)},set:function(e){this.Ff=!!e==1?se(this.Ff,15):q(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,16)},set:function(e){this.Ff=!!e==1?se(this.Ff,16):q(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,17)},set:function(e){this.Ff=!!e==1?se(this.Ff,17):q(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,26)},set:function(e){this.Ff=!!e==1?se(this.Ff,26):q(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push(`<<`),t)r.push(`/`+n+` (`+ee(e(t[n]))+`)`);return r.push(`>>`),r.join(`
`)}},set:function(e){(0,r.default)(e)===`object`&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||``},set:function(e){typeof e==`string`&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e=`/`+t}})};G(xe,Z);var Se=function(){xe.call(this),this.pushButton=!0};G(Se,xe);var Ce=function(){xe.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t===void 0?[]:t}})};G(Ce,xe);var we=function(){var e,t;Z.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push(`<<`),i)n.push(`/`+t+` (`+ee(e(i[t]))+`)`);return n.push(`>>`),n.join(`
`)},set:function(e){(0,r.default)(e)===`object`&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||``},set:function(e){typeof e==`string`&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n=`/`+e}}),this.caption=`l`,this.appearanceState=`Off`,this._AppearanceType=$.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};G(we,Z),Ce.prototype.setAppearance=function(e){if(!(`createAppearanceStream`in e)||!(`getCA`in e))throw Error(`Couldn't assign Appearance to RadioButton. Appearance was Invalid!`);for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Ce.prototype.createOption=function(e){var t=new we;return t.Parent=this,t.optionName=e,this.Kids.push(t),De.call(this.scope,t),t};var Te=function(){xe.call(this),this.fontName=`zapfdingbats`,this.caption=`3`,this.appearanceState=`On`,this.value=`On`,this.textAlign=`center`,this.appearanceStreamContent=$.CheckBox.createAppearanceStream()};G(Te,xe);var Q=function(){Z.call(this),this.FT=`/Tx`,Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,13)},set:function(e){this.Ff=!!e==1?se(this.Ff,13):q(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,21)},set:function(e){this.Ff=!!e==1?se(this.Ff,21):q(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,23)},set:function(e){this.Ff=!!e==1?se(this.Ff,23):q(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,24)},set:function(e){this.Ff=!!e==1?se(this.Ff,24):q(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,25)},set:function(e){this.Ff=!!e==1?se(this.Ff,25):q(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,26)},set:function(e){this.Ff=!!e==1?se(this.Ff,26):q(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};G(Q,Z);var Ee=function(){Q.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!K(this.Ff,14)},set:function(e){this.Ff=!!e==1?se(this.Ff,14):q(this.Ff,14)}}),this.password=!0};G(Ee,Q);var $={CheckBox:{createAppearanceStream:function(){return{N:{On:$.CheckBox.YesNormal},D:{On:$.CheckBox.YesPushDown,Off:$.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=re(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=le(e,e.caption);return n.push(`0.749023 g`),n.push(`0 0 `+U($.internal.getWidth(e))+` `+U($.internal.getHeight(e))+` re`),n.push(`f`),n.push(`BMC`),n.push(`q`),n.push(`0 0 1 rg`),n.push(`/`+r+` `+U(a.fontSize)+` Tf `+i),n.push(`BT`),n.push(a.text),n.push(`ET`),n.push(`Q`),n.push(`EMC`),t.stream=n.join(`
`),t},YesNormal:function(e){var t=re(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=$.internal.getHeight(e),o=$.internal.getWidth(e),s=le(e,e.caption);return i.push(`1 g`),i.push(`0 0 `+U(o)+` `+U(a)+` re`),i.push(`f`),i.push(`q`),i.push(`0 0 1 rg`),i.push(`0 0 `+U(o-1)+` `+U(a-1)+` re`),i.push(`W`),i.push(`n`),i.push(`0 g`),i.push(`BT`),i.push(`/`+n+` `+U(s.fontSize)+` Tf `+r),i.push(s.text),i.push(`ET`),i.push(`Q`),t.stream=i.join(`
`),t},OffPushDown:function(e){var t=re(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+U($.internal.getWidth(e))+` `+U($.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:$.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=$.RadioButton.Circle.YesNormal,t.D[e]=$.RadioButton.Circle.YesPushDown,t},getCA:function(){return`l`},YesNormal:function(e){var t=re(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=$.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push(`q`),n.push(`1 0 0 1 `+W($.internal.getWidth(e)/2)+` `+W($.internal.getHeight(e)/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`),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=re(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*$.internal.Bezier_C).toFixed(5)),o=Number((r*$.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+W($.internal.getWidth(e)/2)+` `+W($.internal.getHeight(e)/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 `+W($.internal.getWidth(e)/2)+` `+W($.internal.getHeight(e)/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`),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=re(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*$.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+W($.internal.getWidth(e)/2)+` `+W($.internal.getHeight(e)/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`),t.stream=n.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:$.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=$.RadioButton.Cross.YesNormal,t.D[e]=$.RadioButton.Cross.YesPushDown,t},getCA:function(){return`8`},YesNormal:function(e){var t=re(e);t.scope=e.scope;var n=[],r=$.internal.calculateCross(e);return n.push(`q`),n.push(`1 1 `+U($.internal.getWidth(e)-2)+` `+U($.internal.getHeight(e)-2)+` re`),n.push(`W`),n.push(`n`),n.push(U(r.x1.x)+` `+U(r.x1.y)+` m`),n.push(U(r.x2.x)+` `+U(r.x2.y)+` l`),n.push(U(r.x4.x)+` `+U(r.x4.y)+` m`),n.push(U(r.x3.x)+` `+U(r.x3.y)+` l`),n.push(`s`),n.push(`Q`),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=re(e);t.scope=e.scope;var n=$.internal.calculateCross(e),r=[];return r.push(`0.749023 g`),r.push(`0 0 `+U($.internal.getWidth(e))+` `+U($.internal.getHeight(e))+` re`),r.push(`f`),r.push(`q`),r.push(`1 1 `+U($.internal.getWidth(e)-2)+` `+U($.internal.getHeight(e)-2)+` re`),r.push(`W`),r.push(`n`),r.push(U(n.x1.x)+` `+U(n.x1.y)+` m`),r.push(U(n.x2.x)+` `+U(n.x2.y)+` l`),r.push(U(n.x4.x)+` `+U(n.x4.y)+` m`),r.push(U(n.x3.x)+` `+U(n.x3.y)+` l`),r.push(`s`),r.push(`Q`),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=re(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+U($.internal.getWidth(e))+` `+U($.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return`/`+t+` `+e.fontSize+` Tf `+n}};$.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=$.internal.getWidth(e),n=$.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},$.internal.getWidth=function(e){var t=0;return(0,r.default)(e)===`object`&&(t=ne(e.Rect[2])),t},$.internal.getHeight=function(e){var t=0;return(0,r.default)(e)===`object`&&(t=ne(e.Rect[3])),t};var De=V.addField=function(e){if(fe(this,e),!(e instanceof Z))throw Error(`Invalid argument passed to jsPDF.addField.`);var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=_e,V.AcroFormListBox=ve,V.AcroFormComboBox=ye,V.AcroFormEditBox=be,V.AcroFormButton=xe,V.AcroFormPushButton=Se,V.AcroFormRadioButton=Ce,V.AcroFormCheckBox=Te,V.AcroFormTextField=Q,V.AcroFormPasswordField=Ee,V.AcroFormAppearance=$,V.AcroForm={ChoiceField:_e,ListBox:ve,ComboBox:ye,EditBox:be,Button:xe,PushButton:Se,RadioButton:Ce,CheckBox:Te,TextField:Q,PasswordField:Ee,Appearance:$},B.AcroForm={ChoiceField:_e,ListBox:ve,ComboBox:ye,EditBox:be,Button:xe,PushButton:Se,RadioButton:Ce,CheckBox:Te,TextField:Q,PasswordField:Ee,Appearance:$};var Oe=B.AcroForm;function ke(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}(function(e){var t=`addImage_`;e.__addimage__={};var n=`UNKNOWN`,i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=e.__addimage__.getImageFileTypeByImageData=function(e,t){var r,a,o,s,c,l=n;if((t||=n)===`RGBA`||e.data!==void 0&&e.data instanceof Uint8ClampedArray&&`height`in e&&`width`in e)return`RGBA`;if(w(e))for(c in i)for(o=i[c],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(o[r][a]!==void 0&&o[r][a]!==e[a]){s=!1;break}if(!0===s){l=c;break}}else for(c in i)for(o=i[c],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(o[r][a]!==void 0&&o[r][a]!==e.charCodeAt(a)){s=!1;break}if(!0===s){l=c;break}}return l===n&&t!==n&&(l=t),l},o=function e(t){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();i.indexOf(`FlateEncode`)!==-1;)i.splice(i.indexOf(`FlateEncode`),1);t.objectId=this.internal.newObject();var a=[];if(a.push({key:`Type`,value:`/XObject`}),a.push({key:`Subtype`,value:`/Image`}),a.push({key:`Width`,value:t.width}),a.push({key:`Height`,value:t.height}),t.colorSpace===y.INDEXED?a.push({key:`ColorSpace`,value:`[/Indexed /DeviceRGB `+(t.palette.length/3-1)+` `+(`sMask`in t&&t.sMask!==void 0?t.objectId+2:t.objectId+1)+` 0 R]`}):(a.push({key:`ColorSpace`,value:`/`+t.colorSpace}),t.colorSpace===y.DEVICE_CMYK&&a.push({key:`Decode`,value:`[1 0 1 0 1 0 1 0]`})),a.push({key:`BitsPerComponent`,value:t.bitsPerComponent}),`decodeParameters`in t&&t.decodeParameters!==void 0&&a.push({key:`DecodeParms`,value:`<<`+t.decodeParameters+`>>`}),`transparency`in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var o=``,s=0,c=t.transparency.length;s<c;s++)o+=t.transparency[s]+` `+t.transparency[s]+` `;a.push({key:`Mask`,value:`[`+o+`]`})}t.sMask!==void 0&&a.push({key:`SMask`,value:t.objectId+1+` 0 R`});var l=t.filter===void 0?void 0:[`/`+t.filter];if(r({data:t.data,additionalKeyValues:a,alreadyAppliedFilters:l,objectId:t.objectId}),n(`endobj`),`sMask`in t&&t.sMask!==void 0){var u=t.sMaskBitsPerComponent??t.bitsPerComponent,d={width:t.width,height:t.height,colorSpace:`DeviceGray`,bitsPerComponent:u,data:t.sMask};`filter`in t&&(d.decodeParameters=`/Predictor ${t.predictor} /Colors 1 /BitsPerComponent ${u} /Columns ${t.width}`,d.filter=t.filter),e.call(this,d)}if(t.colorSpace===y.INDEXED){var f=this.internal.newObject();r({data:E(new Uint8Array(t.palette)),objectId:f}),n(`endobj`)}},s=function(){var e=this.internal.collections[t+`images`];for(var n in e)o.call(this,e[n])},c=function(){var e,n=this.internal.collections[t+`images`],r=this.internal.write;for(var i in n)r(`/I`+(e=n[i]).index,e.objectId,`0`,`R`)},l=function(){this.internal.collections[t+`images`]||(this.internal.collections[t+`images`]={},this.internal.events.subscribe(`putResources`,s),this.internal.events.subscribe(`putXobjectDict`,c))},u=function(){var e=this.internal.collections[t+`images`];return l.call(this),e},d=function(){return Object.keys(this.internal.collections[t+`images`]).length},f=function(t){return typeof e[`process`+t.toUpperCase()]==`function`},p=function(e){return(0,r.default)(e)===`object`&&e.nodeType===1},m=function(t,n){if(t.nodeName===`IMG`&&t.hasAttribute(`src`)){var r=``+t.getAttribute(`src`);if(r.indexOf(`data:image/`)===0)return h(unescape(r).split(`base64,`).pop());var i=e.loadFile(r,!0);if(i!==void 0)return i}if(t.nodeName===`CANVAS`){if(t.width===0||t.height===0)throw Error(`Given canvas must have data. Canvas width: `+t.width+`, height: `+t.height);var a;switch(n){case`PNG`:a=`image/png`;break;case`WEBP`:a=`image/webp`;break;default:a=`image/jpeg`}return h(t.toDataURL(a,1).split(`base64,`).pop())}},g=function(e){var n=this.internal.collections[t+`images`];if(n){for(var r in n)if(e===n[r].alias)return n[r]}},_=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),e===0&&(e=t*n.width/n.height),t===0&&(t=e*n.height/n.width),[e,t]},v=function(e,t,n,r,i,a){var o=_.call(this,n,r,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=u.call(this);if(n=o[0],r=o[1],l[i.index]=i,a){a*=Math.PI/180;var d=Math.cos(a),f=Math.sin(a),p=function(e){return e.toFixed(4)},m=[p(d),p(f),p(-1*f),p(d),0,0,`cm`]}this.internal.write(`q`),a?(this.internal.write([1,`0`,`0`,1,s(e),c(t+r),`cm`].join(` `)),this.internal.write(m.join(` `)),this.internal.write([s(n),`0`,`0`,s(r),`0`,`0`,`cm`].join(` `))):this.internal.write([s(n),`0`,`0`,s(r),s(e),c(t+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`)},y=e.color_spaces={DEVICE_RGB:`DeviceRGB`,DEVICE_GRAY:`DeviceGray`,DEVICE_CMYK:`DeviceCMYK`,CAL_GREY:`CalGray`,CAL_RGB:`CalRGB`,LAB:`Lab`,ICC_BASED:`ICCBased`,INDEXED:`Indexed`,PATTERN:`Pattern`,SEPARATION:`Separation`,DEVICE_N:`DeviceN`};e.decode={DCT_DECODE:`DCTDecode`,FLATE_DECODE:`FlateDecode`,LZW_DECODE:`LZWDecode`,JPX_DECODE:`JPXDecode`,JBIG2_DECODE:`JBIG2Decode`,ASCII85_DECODE:`ASCII85Decode`,ASCII_HEX_DECODE:`ASCIIHexDecode`,RUN_LENGTH_DECODE:`RunLengthDecode`,CCITT_FAX_DECODE:`CCITTFaxDecode`};var b=e.image_compression={NONE:`NONE`,FAST:`FAST`,MEDIUM:`MEDIUM`,SLOW:`SLOW`},x=e.__addimage__.sHashCode=function(e){var t,n,r=0;if(typeof e==`string`)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(w(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},S=e.__addimage__.validateStringAsBase64=function(e){(e||=``).toString().trim();var t=!0;return e.length===0&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},C=e.__addimage__.extractImageFromDataUrl=function(e){if(e==null||!(e=e.trim()).startsWith(`data:`))return null;var t=e.indexOf(`,`);return t<0?null:e.substring(0,t).trim().endsWith(`base64`)?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var w=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},T=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},E=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t=``,n=w(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,i,a,o,s,c,u,d;if(typeof arguments[1]==`number`?(t=n,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],u=arguments[6],d=arguments[7]):(t=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],u=arguments[7],d=arguments[8]),(0,r.default)(e=arguments[0])===`object`&&!p(e)&&`imageData`in e){var f=e;e=f.imageData,t=f.format||t||n,i=f.x||i||0,a=f.y||a||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,u=f.compression||u,d=f.rotation||f.angle||d}var m=this.internal.getFilters();if(u===void 0&&m.indexOf(`FlateEncode`)!==-1&&(u=`SLOW`),isNaN(i)||isNaN(a))throw Error(`Invalid coordinates passed to jsPDF.addImage`);l.call(this);var h=D.call(this,e,t,c,u);return v.call(this,i,a,o,s,h,d),this};var D=function(t,r,i,o){var s,c,l;if(typeof t==`string`&&a(t)===n){t=unescape(t);var u=O(t,!1);(u!==``||(u=e.loadFile(t,!0))!==void 0)&&(t=u)}if(p(t)&&(t=m(t,r)),r=a(t,r),!f(r))throw Error(`addImage does not support files of type '`+r+`', please ensure that a plugin for '`+r+`' support is added.`);if(((l=i)==null||l.length===0)&&(i=function(e){return typeof e==`string`||w(e)?x(e):w(e.data)?x(e.data):null}(t)),(s=g.call(this,i))||(t instanceof Uint8Array||r===`RGBA`||(c=t,t=T(t)),s=this[`process`+r.toUpperCase()](t,d.call(this),i,function(t){return t&&typeof t==`string`&&(t=t.toUpperCase()),t in e.image_compression?t:b.NONE}(o),c)),!s)throw Error(`An unknown error occurred whilst processing the image.`);return s},O=e.__addimage__.convertBase64ToBinaryString=function(e,t){t=typeof t!=`boolean`||t;var n,r=``;if(typeof e==`string`){n=C(e)??e;try{r=h(n)}catch(e){if(t)throw S(n)?/* @__PURE__ */ Error(`atob-Error in jsPDF.convertBase64ToBinaryString `+e.message):/* @__PURE__ */ Error(`Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString `)}}return r};e.getImageProperties=function(t){var r,i,o=``;if(p(t)&&(t=m(t)),typeof t==`string`&&a(t)===n&&((o=O(t,!1))===``&&(o=e.loadFile(t)||``),t=o),i=a(t),!f(i))throw Error(`addImage does not support files of type '`+i+`', please ensure that a plugin for '`+i+`' support is added.`);if(t instanceof Uint8Array||(t=T(t)),!(r=this[`process`+i.toUpperCase()](t)))throw Error(`An unknown error occurred whilst processing the image`);return r.fileType=i,r}})(B.API),function(e){
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=function(e){if(e!==void 0&&e!=``)return!0};B.API.events.push([`addPage`,function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push([`putPage`,function(e){for(var n,r,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,l=!1,u=0;u<c.length&&!l;u++)switch((n=c[u]).type){case`link`:(t(n.options.url)||t(n.options.pageNumber))&&(l=!0);break;case`reference`:case`text`:case`freetext`:l=!0}if(l!=0){this.internal.write(`/Annots [`);for(var d=0;d<c.length;d++){n=c[d];var f=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(n.type){case`reference`:this.internal.write(` `+n.object.objId+` 0 R `);break;case`text`:var m=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),_=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 (`+f(g(n.contents))+`)`,i+=` /Popup `+h.objId+` 0 R`,i+=` /P `+s.objId+` 0 R`,i+=` /T (`+f(g(_))+`) >>`,m.content=i;var v=m.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 `+v,n.open&&(i+=` /Open true`),i+=` >>`,h.content=i,this.internal.write(m.objId,`0 R`,h.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 (`+f(p(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 b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r=`/Rect [`+n.finalBounds.x+` `+n.finalBounds.y+` `+n.finalBounds.w+` `+n.finalBounds.h+`] `,i=``,n.options.url)i=`<</Type /Annot /Subtype /Link `+r+`/Border [0 0 0] /A <</S /URI /URI (`+f(p(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;default:var x=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=` /XYZ `+n.options.left+` `+x+` `+n.options.zoom+`]`}i!=``&&(i+=` >>`,this.internal.write(i))}}this.internal.write(`]`)}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case`link`:this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case`text`:case`freetext`:t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+n),h:s(t+r)},options:i,type:`link`})},e.textWithLink=function(e,t,n,r){var i,a,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){a=r.maxWidth;var c=this.splitTextToSize(e,a).length;i=Math.ceil(s*c)}else a=o,i=s;return this.text(e,t,n,r),n+=.2*s,r.align===`center`&&(t-=o/2),r.align===`right`&&(t-=o),this.link(t,n-s,a,i,r),o},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(B.API),function(e){
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},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];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(e){return t[e.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(e){return typeof e==`string`&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i=``,a=0;for(t=0;t<e.length;t+=1)r[e.charCodeAt(t)]===void 0?(r=n,i+=e.charAt(t-a),t-=a,a=0):(a++,typeof(r=r[e.charCodeAt(t)])==`number`&&(i+=String.fromCharCode(r),r=n,a=0),t===e.length-1&&(r=n,i+=e.charAt(t-(a-1)),t-=a-1,a=0));return i};e.__arabicParser__.isArabicDiacritic=function(e){return e!==void 0&&r[e.charCodeAt(0)]!==void 0};var f=e.__arabicParser__.getCorrectForm=function(e,t,n){return o(e)?!1===a(e)?-1:!l(e)||!o(t)&&!o(n)||!o(n)&&s(t)||s(e)&&!o(t)||s(e)&&c(t)||s(e)&&s(t)?0:u(e)&&o(t)&&!s(t)&&o(n)&&l(n)?3:s(e)||!o(n)?1:2:-1},p=function(e){var n=0,r=0,i=0,a=``,s=``,c=``,l=(e||=``).split(`\\s+`),u=[];for(n=0;n<l.length;n+=1){for(u.push(``),r=0;r<l[n].length;r+=1)a=l[n][r],s=l[n][r-1],c=l[n][r+1],o(a)?(i=f(a,s,c),u[n]+=i===-1?a:String.fromCharCode(t[a.charCodeAt(0)][i])):u[n]+=a;u[n]=d(u[n])}return u.join(` `)},m=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t=typeof arguments[0]==`string`?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([p(t[r][0]),t[r][1],t[r][2]]):n.push([p(t[r])]);e=n}else e=p(t);return typeof arguments[0]==`string`?e:(arguments[0].text=e,arguments[0])};e.events.push([`preProcessText`,m])}(B.API),B.API.autoPrint=function(e){var t;return(e||={}).variant=e.variant||`non-conform`,e.variant===`javascript`?this.addJS(`print({});`):(this.internal.events.subscribe(`postPutResources`,function(){t=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/S /Named`),this.internal.out(`/Type /Action`),this.internal.out(`/N /Print`),this.internal.out(`>>`),this.internal.out(`endobj`)}),this.internal.events.subscribe(`putCatalog`,function(){this.internal.out(`/OpenAction `+t+` 0 R`)})),this},function(e){
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext(`2d`).pageWrapXEnabled&&(this.getContext(`2d`).pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext(`2d`).pageWrapYEnabled&&(this.getContext(`2d`).pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if((e||=`2d`)!==`2d`)return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw Error(`toDataURL is not implemented.`)},e.events.push([`initialized`,function(){this.canvas=new t,this.canvas.pdf=this}])}(B.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),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]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction=typeof e==`function`?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var n=(t||={}).fontSize||this.getFontSize(),r=t.font||this.getFont(),a=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,l=this;if(!Array.isArray(e)&&typeof e!=`string`){if(typeof e!=`number`)throw Error(`getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.`);e=String(e)}var u=t.maxWidth;u>0?typeof e==`string`?e=this.splitTextToSize(e,u):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(l.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)o<(c=this.getStringUnitWidth(e[d],{font:r})*n)&&(o=c);return o!==0&&(s=e.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);i.call(this);var r=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return r.lineNumber!==void 0&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,l&&c&&(this.printHeaderRow(e.lineNumber,!0),e.y+=c[0].height)):e.y=r.y+r.height||e.y),e.text[0]!==void 0&&(this.rect(e.x,e.y,e.width,e.height,!0===n?`FD`:void 0),e.align===`right`?this.text(e.text,e.x+e.width-a,e.y+a,{align:`right`,baseline:`top`}):e.align===`center`?this.text(e.text,e.x+e.width/2,e.y+a,{align:`center`,baseline:`top`,maxWidth:e.width-a-a}):this.text(e.text,e.x+a,e.y+a,{align:`left`,baseline:`top`,maxWidth:e.width-a-a})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,l,u,d){if(i.call(this),!l)throw Error(`No data for PDF table.`);var f,p,m,h,g=[],_=[],v=[],y={},b={},x=[],S=[],C=(d||={}).autoSize||!1,w=!1!==d.printHeaders,T=d.css&&d.css[`font-size`]!==void 0?16*d.css[`font-size`]:d.fontSize||12,E=d.margins||Object.assign({width:this.getPageWidth()},t),D=typeof d.padding==`number`?d.padding:3,O=d.headerBackgroundColor||`#c8c8c8`,k=d.headerTextColor||`#000`;if(a.call(this),this.internal.__cell__.printHeaders=w,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=T,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=O,this.internal.__cell__.headerTextColor=k,this.setFontSize(T),u==null)_=g=Object.keys(l[0]),v=g.map(function(){return`left`});else if(Array.isArray(u)&&(0,r.default)(u[0])===`object`)for(g=u.map(function(e){return e.name}),_=u.map(function(e){return e.prompt||e.name||``}),v=u.map(function(e){return e.align||`left`}),f=0;f<u.length;f+=1)b[u[f].name]=.7499990551181103*u[f].width;else Array.isArray(u)&&typeof u[0]==`string`&&(_=g=u,v=g.map(function(){return`left`}));if(C||Array.isArray(u)&&typeof u[0]==`string`)for(f=0;f<g.length;f+=1){for(y[h=g[f]]=l.map(function(e){return e[h]}),this.setFont(void 0,`bold`),x.push(this.getTextDimensions(_[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=y[h],this.setFont(void 0,`normal`),m=0;m<p.length;m+=1)x.push(this.getTextDimensions(p[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[h]=Math.max.apply(null,x)+D+D,x=[]}if(w){var A={};for(f=0;f<g.length;f+=1)A[g[f]]={},A[g[f]].text=_[f],A[g[f]].align=v[f];var j=c.call(this,A,b);S=g.map(function(t){return new o(e,n,b[t],j,A[t].text,void 0,A[t].align)}),this.setTableHeaderRow(S),this.printHeaderRow(1,!1)}var M=u.reduce(function(e,t){return e[t.name]=t.align,e},{});for(f=0;f<l.length;f+=1){`rowStart`in d&&d.rowStart instanceof Function&&d.rowStart({row:f,data:l[f]},this);var N=c.call(this,l[f],b);for(m=0;m<g.length;m+=1){var P=l[f][g[m]];`cellStart`in d&&d.cellStart instanceof Function&&d.cellStart({row:f,col:m,data:P},this),s.call(this,new o(e,n,b[g[m]],N,P,f+2,M[g[m]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var c=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(r){var i=e[r];return this.splitTextToSize(i.hasOwnProperty(`text`)?i.text:i,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw Error(`Property tableHeaderRow does not exist.`);var r;if(n=!0,typeof this.internal.__cell__.headerFunction==`function`){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 c=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){r=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(u)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,`normal`),n=!1}}(B.API);var Ae={italic:[`italic`,`oblique`,`normal`],oblique:[`oblique`,`italic`,`normal`],normal:[`normal`,`oblique`,`italic`]},je=[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`],Me=ke(je),Ne=[100,200,300,400,500,600,700,800,900],Pe=ke(Ne);function Fe(e){var t=e.family.replace(/"|'/g,``).toLowerCase(),n=function(e){return Ae[e||=`normal`]?e:`normal`}(e.style),r=function(e){return e?typeof e==`number`?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):e===`bold`?700:400:400}(e.weight),i=function(e){return typeof Me[e||=`normal`]==`number`?e:`normal`}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(` `)}}}function Ie(e,t,n,r){for(var i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var Le={"sans-serif":`helvetica`,fixed:`courier`,monospace:`courier`,terminal:`courier`,cursive:`times`,fantasy:`times`,serif:`times`},Re={caption:`times`,icon:`times`,menu:`times`,"message-box":`times`,"small-caption":`times`,"status-bar":`times`};function ze(e){return[e.stretch,e.style,e.weight,e.family].join(` `)}function Be(e){return e.trimLeft()}function Ve(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function He(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze=[`times`];function Qe(e,t,n,r,a){var o=4,s=tt;switch(a){case B.API.image_compression.FAST:o=1,s=et;break;case B.API.image_compression.MEDIUM:o=6,s=nt;break;case B.API.image_compression.SLOW:o=9,s=rt}e=function(e,t,n,r){for(var i,a=e.length/t,o=new Uint8Array(e.length+a),s=[$e,et,tt,nt,rt],c=0;c<a;c+=1){var l=c*t,u=e.subarray(l,l+t);if(r)o.set(r(u,n,i),l+c);else{for(var d=s.length,f=[],p=0;p<d;p+=1)f[p]=s[p](u,n,i);var m=at(f.concat());o.set(f[m],l+c)}i=u}return o}(e,t,Math.ceil(n*r/8),s);var c=(0,i.zlibSync)(e,{level:o});return B.API.__addimage__.arrayBufferToBinaryString(c)}function $e(e){var t=Array.apply([],e);return t.unshift(0),t}function et(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var a=e[i-t]||0;r[i+1]=e[i]-a+256&255}return r}function tt(e,t,n){var r=e.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var o=n&&n[a]||0;i[a+1]=e[a]-o+256&255}return i}function nt(e,t,n){var r=e.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var o=e[a-t]||0,s=n&&n[a]||0;i[a+1]=e[a]+256-(o+s>>>1)&255}return i}function rt(e,t,n){var r=e.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var o=it(e[a-t]||0,n&&n[a]||0,n&&n[a-t]||0);i[a+1]=e[a]-o+256&255}return i}function it(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),a=Math.abs(e+t-n-n);return r<=i&&r<=a?e:i<=a?t:n}function at(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function ot(e,t,n){var r=t*n,i=Math.floor(r/8),a=16-(r-8*i+n),o=(1<<n)-1;return ct(e,i)>>a&o}function st(e,t,n,r){var i=n*r,a=Math.floor(i/8),o=16-(i-8*a+r),s=(1<<r)-1,c=(t&s)<<o;(function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}})(e,a,ct(e,a)&~(s<<o)&65535|c)
/**
* @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 ct(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function lt(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw Error(`Invalid GIF 87a/89a header.`);var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,c=null;a&&(s=t,c=o,t+=3*o);var l=!0,u=[],d=0,f=null,p=0,m=null;for(this.width=n,this.height=r;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,m=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw Error(`Invalid graphics extension block.`);var h=e[t++];d=e[t++]|e[t++]<<8,f=e[t++],1&h||(f=null),p=h>>2&7,t++;break;case 254:for(;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;default:throw Error(`Unknown graphic control label: 0x`+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++],x=b>>6&1,S=1<<1+(7&b),C=s,w=c,T=!1;b>>7&&(T=!0,C=t,w=S,t+=3*S);var E=t;for(t++;;){var D;if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}u.push({x:g,y:_,width:v,height:y,has_local_palette:T,palette_offset:C,palette_size:w,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!x,delay:d,disposal:p});break;case 59:l=!1;break;default:throw Error(`Unknown gif block: 0x`+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(e){if(e<0||e>=u.length)throw Error(`Frame index out of range.`);return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height,o=new Uint8Array(a);ut(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=S,r[m++]=x,r[m++]=b,r[m++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height,o=new Uint8Array(a);ut(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=b,r[m++]=x,r[m++]=S,r[m++]=255}--d}}}function ut(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,c=i+1,u=(1<<c)-1,d=0,f=0,p=0,m=e[t++],h=/* @__PURE__ */ new Int32Array(4096),g=null;;){for(;d<16&&m!==0;)f|=e[t++]<<d,d+=8,m===1?m=e[t++]:--m;if(d<c)break;var _=f&u;if(f>>=c,d-=c,_!==a){if(_===o)break;for(var v=_<s?_:g,y=0,b=v;b>a;)b=h[b]>>8,++y;var x=b;if(p+y+(v===_?0:1)>r)return void l.log(`Warning, gif stream longer than expected.`);n[p++]=x;var S=p+=y;for(v!==_&&(n[p++]=x),b=v;y--;)b=h[b],n[--S]=255&b,b>>=8;g!==null&&s<4096&&(h[s++]=g<<8|x,s>=u+1&&c<12&&(++c,u=u<<1|1)),g=_}else s=o+1,u=(1<<(c=i+1))-1,g=null}return p!==r&&l.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 dt(e){var t,n,r,i,a,o=Math.floor,s=Array(64),c=Array(64),l=Array(64),u=Array(64),d=Array(65535),f=Array(65535),p=Array(64),m=Array(64),h=[],g=0,_=7,v=Array(64),y=Array(64),b=Array(64),x=Array(256),S=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],w=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[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],D=[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],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],j=[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 M(e,t){for(var n=0,r=0,i=[],a=1;a<=16;a++){for(var o=1;o<=e[a];o++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=a,r++,n++;n*=2}return i}function N(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<_),n--,--_<0&&(g==255?(P(255),P(0)):P(g),_=7,g=0)}function P(e){h.push(e)}function F(e){P(e>>8&255),P(255&e)}function I(e,t,n,r,i){for(var a,o=i[0],s=i[240],c=function(e,t){var n,r,i,a,o,s,c,l,u,d,f=0;for(u=0;u<8;++u){n=e[f],r=e[f+1],i=e[f+2],a=e[f+3],o=e[f+4],s=e[f+5],c=e[f+6];var m=n+(l=e[f+7]),h=n-l,g=r+c,_=r-c,v=i+s,y=i-s,b=a+o,x=a-o,S=m+b,C=m-b,w=g+v,T=g-v;e[f]=S+w,e[f+4]=S-w;var E=.707106781*(T+C);e[f+2]=C+E,e[f+6]=C-E;var D=.382683433*((S=x+y)-(T=_+h)),O=.5411961*S+D,k=1.306562965*T+D,A=.707106781*(w=y+_),j=h+A,M=h-A;e[f+5]=M+O,e[f+3]=M-O,e[f+1]=j+k,e[f+7]=j-k,f+=8}for(f=0,u=0;u<8;++u){n=e[f],r=e[f+8],i=e[f+16],a=e[f+24],o=e[f+32],s=e[f+40],c=e[f+48];var N=n+(l=e[f+56]),P=n-l,F=r+c,I=r-c,L=i+s,R=i-s,z=a+o,B=a-o,V=N+z,H=N-z,ee=F+L,te=F-L;e[f]=V+ee,e[f+32]=V-ee;var U=.707106781*(te+H);e[f+16]=H+U,e[f+48]=H-U;var W=.382683433*((V=B+R)-(te=I+P)),G=.5411961*V+W,ne=1.306562965*te+W,re=.707106781*(ee=R+I),ie=P+re,ae=P-re;e[f+40]=ae+G,e[f+24]=ae-G,e[f+8]=ie+ne,e[f+56]=ie-ne,f++}for(u=0;u<64;++u)d=e[u]*t[u],p[u]=d>0?d+.5|0:d-.5|0;return p}(e,t),l=0;l<64;++l)m[C[l]]=c[l];var u=m[0]-n;n=m[0],u==0?N(r[0]):(N(r[f[a=32767+u]]),N(d[a]));for(var h=63;h>0&&m[h]==0;)h--;if(h==0)return N(o),n;for(var g,_=1;_<=h;){for(var v=_;m[_]==0&&_<=h;)++_;var y=_-v;if(y>=16){g=y>>4;for(var b=1;b<=g;++b)N(s);y&=15}a=32767+m[_],N(i[(y<<4)+f[a]]),N(d[a]),_++}return h!=63&&N(o),n}function L(e){e=Math.min(Math.max(e,1),100),a!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((t[n]*e+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 d=o((i[a]*e+50)/100);d=Math.min(Math.max(d,1),255),c[C[a]]=d}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,m=0;m<8;m++)for(var h=0;h<8;h++)l[p]=1/(s[C[p]]*f[m]*f[h]*8),u[p]=1/(c[C[p]]*f[m]*f[h]*8),p++}(Math.floor(e<50?5e3/e:200-2*e)),a=e)}this.encode=function(e,a){a&&L(a),h=[],g=0,_=7,F(65496),F(65504),F(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),F(1),F(1),P(0),P(0),function(){F(65499),F(132),P(0);for(var e=0;e<64;e++)P(s[e]);P(1);for(var t=0;t<64;t++)P(c[t])}(),function(e,t){F(65472),F(17),P(8),F(t),F(e),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(e.width,e.height),function(){F(65476),F(418),P(0);for(var e=0;e<16;e++)P(w[e+1]);for(var t=0;t<=11;t++)P(T[t]);P(16);for(var n=0;n<16;n++)P(E[n+1]);for(var r=0;r<=161;r++)P(D[r]);P(1);for(var i=0;i<16;i++)P(O[i+1]);for(var a=0;a<=11;a++)P(k[a]);P(17);for(var o=0;o<16;o++)P(A[o+1]);for(var s=0;s<=161;s++)P(j[s])}(),F(65498),F(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var o=0,d=0,f=0;g=0,_=7,this.encode.displayName=`_encode_`;for(var p,m,x,C,M,R,z,B,V,H=e.data,ee=e.width,te=e.height,U=4*ee,W=0;W<te;){for(p=0;p<U;){for(M=U*W+p,z=-1,B=0,V=0;V<64;V++)R=M+(B=V>>3)*U+(z=4*(7&V)),W+B>=te&&(R-=U*(W+1+B-te)),p+z>=U&&(R-=p+z-U+4),m=H[R++],x=H[R++],C=H[R++],v[V]=(S[m]+S[x+256|0]+S[C+512|0]>>16)-128,y[V]=(S[m+768|0]+S[x+1024|0]+S[C+1280|0]>>16)-128,b[V]=(S[m+1280|0]+S[x+1536|0]+S[C+1792|0]>>16)-128;o=I(v,l,o,t,r),d=I(y,u,d,n,i),f=I(b,u,f,n,i),p+=32}W+=8}if(_>=0){var G=[];G[1]=_+1,G[0]=(1<<_+1)-1,N(G)}return F(65497),new Uint8Array(h)},e||=50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=M(w,T),n=M(O,k),r=M(E,D),i=M(A,j),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)f[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)f[32767+i]=n,d[32767+i]=[],d[32767+i][1]=n,d[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)S[e]=19595*e,S[e+256|0]=38470*e,S[e+512|0]=7471*e+32768,S[e+768|0]=-11059*e,S[e+1024|0]=-21709*e,S[e+1280|0]=32768*e+8421375,S[e+1536|0]=-27439*e,S[e+1792|0]=-5329*e}(),L(e)}
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function ft(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,[`BM`,`BA`,`CI`,`CP`,`IC`,`PT`].indexOf(this.flag)===-1)throw Error(`Invalid BMP File`);this.parseHeader(),this.parseBGR()}function pt(e){function t(e){if(!e)throw Error(`assert :P`)}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var a=0;a<i;a++)e[t+a]=n[r+a]}function i(e,t,n,r){for(var i=0;i<r;i++)e[t+i]=n}function a(e){return new Int32Array(e)}function o(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function s(e,t){var n=[];return function e(n,r,i){for(var a=i[r],o=0;o<a&&(n.push(i.length>r+1?[]:new t),!(i.length<r+1));o++)e(n[o],r+1,i)}(n,0,e),n}var c=function(){var e=this;function c(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function l(e,n,r,i,a){t(!(i%r));do e[n+(i-=r)]=a;while(0<i)}function u(e,n,r,i,o){if(t(2328>=o),512>=o)var s=a(512);else if((s=a(o))==null)return 0;return function(e,n,r,i,o,s){var u,f,p=n,m=1<<r,h=a(16),g=a(16);for(t(o!=0),t(i!=null),t(e!=null),t(0<r),f=0;f<o;++f){if(15<i[f])return 0;++h[i[f]]}if(h[0]==o)return 0;for(g[1]=0,u=1;15>u;++u){if(h[u]>1<<u)return 0;g[u+1]=g[u]+h[u]}for(f=0;f<o;++f)u=i[f],0<i[f]&&(s[g[u]++]=f);if(g[15]==1)return(i=new d).g=0,i.value=s[0],l(e,p,1,m,i),m;var _,v=-1,y=m-1,b=0,x=1,S=1,C=1<<r;for(f=0,u=1,o=2;u<=r;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u])(i=new d).g=u,i.value=s[f++],l(e,p+b,o,C,i),b=c(b,u)}for(u=r+1,o=2;15>=u;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u]){if(i=new d,(b&y)!=v){for(p+=C,_=1<<(v=u)-r;15>v&&!(0>=(_-=h[v]));)++v,_<<=1;m+=C=1<<(_=v-r),e[n+(v=b&y)].g=_+r,e[n+v].value=p-n-v}i.g=u-r,i.value=s[f++],l(e,p+(b>>r),o,C,i),b=c(b,u)}}return x==2*g[15]-1?m:0}(e,n,r,i,o,s)}function d(){this.value=this.g=0}function f(){this.value=this.g=0}function p(){this.G=o(5,d),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Rn,f)}function m(e,n,r,i){t(e!=null),t(n!=null),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,E(e)}function h(e,t){for(var n=0;0<t--;)n|=O(e,128)<<t;return n}function g(e,t){var n=h(e,t);return D(e)?-n:n}function _(e,n,r,i){var a,o=0;for(t(e!=null),t(n!=null),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),a=0;a<i;++a)o+=n[r+a]<<8*a;e.Ra=o,e.bb=i,e.oa=n,e.pa=r}function v(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Vn-8>>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Bn){var r=S(e)&zn[n];return e.u+=n,v(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function S(e){return e.Ra>>>(e.u&Vn-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Vn}function w(e,t){e.u=t,e.h=C(e)}function T(e){e.u>=Hn&&(t(e.u>=Hn),v(e))}function E(e){t(e!=null&&e.oa!=null),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(e!=null&&e.oa!=null),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function D(e){return h(e,1)}function O(e,t){var n=e.Ca;0>e.b&&E(e);var r=e.b,i=n*t>>>8,a=(e.I>>>r>i)+0;for(a?(n-=i,e.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Un[r],e.b-=r,e.Ca=(n<<r)-1,a}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function A(e,t){return e[t+0]|e[t+1]<<8}function j(e,t){return A(e,t)|e[t+2]<<16}function M(e,t){return A(e,t)|A(e,t+2)<<16}function N(e,n){var r=1<<n;return t(e!=null),t(0<n),e.X=a(r),e.X==null?0:(e.Mb=32-n,e.Xa=n,1)}function P(e,n){t(e!=null),t(n!=null),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function F(){this.X=[],this.Xa=this.Mb=0}function I(e,n,r,i){t(r!=null),t(i!=null);var a=r[0],o=i[0];return a==0&&(a=(e*o+n/2)/n),o==0&&(o=(n*a+e/2)/e),0>=a||0>=o?0:(r[0]=a,i[0]=o,1)}function L(e,t){return e+(1<<t)-1>>>t}function R(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function z(t,n){e[n]=function(n,r,i,a,o,s,c){for(var l=0;l<o;++l){var u=e[t](s[c+l-1],i,a+l);s[c+l]=R(n[r+l],u)}}}function B(){this.ud=this.hd=this.jd=0}function V(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function ee(e,t){return H(e+(e-t+.5>>1))}function te(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function U(e,t,n,r,i,a,o){for(r=a[o-1],n=0;n<i;++n)a[o+n]=r=R(e[t+n],r)}function W(e,t,n,r,i){for(var a=0;a<n;++a){var o=e[t+a],s=o>>8&255,c=16711935&(c=(c=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+c>>>0}}function G(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function ne(e,t,n,r,i,a){for(var o=0;o<r;++o){var s=t[n+o],c=s>>>8,l=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(c<<24>>24)>>>5));l=255&(l=(l+=(e.hd<<24>>24)*(c<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(u<<16)+l}}function re(t,n,r,i,a){e[n]=function(e,t,n,r,o,s,c,l,u){for(r=c;r<l;++r)for(c=0;c<u;++c)o[s++]=a(n[i(e[t++])])},e[t]=function(t,n,o,s,c,l,u){var d=8>>t.b,f=t.Ea,p=t.K[0],m=t.w;if(8>d)for(t=(1<<t.b)-1,m=(1<<d)-1;n<o;++n){var h,g=0;for(h=0;h<f;++h)h&t||(g=i(s[c++])),l[u++]=a(p[g&m]),g>>=d}else e[`VP8LMapColor`+r](s,c,p,m,l,u,n,o,f)}}function ie(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a}}function ae(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a,r[i++]=a>>24&255}}function oe(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&240|o>>12&15,o=240&o|o>>28&15;r[i++]=a,r[i++]=o}}function K(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a,r[i++]=o}}function se(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=255&a,r[i++]=a>>8&255,r[i++]=a>>16&255}}function q(e,t,n,i,a,o){if(o==0)for(n=t+n;t<n;)k(i,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else r(i,a,e,t,n)}function J(t,n){e[n][0]=e[t+`0`],e[n][1]=e[t+`1`],e[n][2]=e[t+`2`],e[n][3]=e[t+`3`],e[n][4]=e[t+`4`],e[n][5]=e[t+`5`],e[n][6]=e[t+`6`],e[n][7]=e[t+`7`],e[n][8]=e[t+`8`],e[n][9]=e[t+`9`],e[n][10]=e[t+`10`],e[n][11]=e[t+`11`],e[n][12]=e[t+`12`],e[n][13]=e[t+`13`],e[n][14]=e[t+`0`],e[n][15]=e[t+`0`]}function ce(e){return e==Hr||e==Ur||e==Wr||e==Gr}function le(){this.eb=[],this.size=this.A=this.fb=0}function ue(){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 Y(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new le,this.f.kb=new ue,this.sd=null}function de(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function fe(){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 pe(e){return alert(`todo:WebPSamplerProcessPlane`),e.T}function X(e,t){var n=e.T,i=t.ba.f.RGBA,a=i.eb,o=i.fb+e.ka*i.A,s=gi[t.ba.S],c=e.y,l=e.O,u=e.f,d=e.N,f=e.ea,p=e.W,m=t.cc,h=t.dc,g=t.Mc,_=t.Nc,v=e.ka,y=e.ka+e.T,b=e.U,x=b+1>>1;for(v==0?s(c,l,null,null,u,d,f,p,u,d,f,p,a,o,null,null,b):(s(t.ec,t.fc,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b),++n);v+2<y;v+=2)m=u,h=d,g=f,_=p,d+=e.Rc,p+=e.Rc,o+=2*i.A,s(c,(l+=2*e.fa)-e.fa,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b);return l+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,c,l,b),r(t.cc,t.dc,u,d,x),r(t.Mc,t.Nc,f,p,x),n--):1&y||s(c,l,null,null,u,d,f,p,u,d,f,p,a,o+i.A,null,null,b),n}function me(e,n,r){var i=e.F,a=[e.J];if(i!=null){var o=e.U,s=n.ba.S,c=s==zr||s==Wr;n=n.ba.f.RGBA;var l=[0],u=e.ka;l[0]=e.T,e.Kb&&(u==0?--l[0]:(--u,a[0]-=e.width),e.j+e.ka+e.T==e.o&&(l[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=wr(i,a[0],e.width,o,l,d,u+(c?0:3),n.A),t(r==l),e&&ce(s)&&Sr(d,u,c,o,l,n.A)}return 0}function he(e){var t=e.ma,n=t.ba.S,r=11>n,i=n==Ir||n==Rr||n==zr||n==Br||n==12||ce(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Fn(t.Oa,e,i?11:12))return 0;if(i&&ce(n)&&vn(),e.da)alert(`todo:use_scaling`);else{if(r){if(t.Ib=pe,e.Kb){if(n=e.U+1>>1,t.memory=a(e.U+2*n),t.memory==null)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=X,vn()}}else alert(`todo:EmitYUV`);i&&(t.Jb=me,r&&gn())}if(r&&!Ai){for(e=0;256>e;++e)ji[e]=89858*(e-128)+Ti>>wi,Pi[e]=-22014*(e-128)+Ti,Ni[e]=-45773*(e-128),Mi[e]=113618*(e-128)+Ti>>wi;for(e=Ei;e<Di;++e)t=76283*(e-16)+Ti>>wi,Fi[e-Ei]=Ge(t,255),Ii[e-Ei]=Ge(t+8>>4,15);Ai=1}return 1}function ge(e){var n=e.ma,r=e.U,i=e.T;return t(!(1&e.ka)),0>=r||0>=i?0:(r=n.Ib(e,n),n.Jb!=null&&n.Jb(e,n,r),n.Dc+=r,1)}function Z(e){e.ma.memory=null}function _e(e,t,n,r){return y(e,8)==47?(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),y(e,3)==0?!e.h:0):0}function ve(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ye(e,t){return 120<t?t-120:1<=(n=((n=Zr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function be(e,t,n){var r=S(n),i=e[t+=255&r].g-8;return 0<i&&(w(n,n.u+8),r=S(n),t+=e[t].value,t+=r&(1<<i)-1),w(n,n.u+e[t].g),e[t].value}function xe(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function Se(e,n,r){var i=e.xc;return t((n=i==0?0:e.vc[e.md*(r>>i)+(n>>i)])<e.Wb),e.Ya[n]}function Ce(e,n,i,a){var o=e.ab,s=e.c*n,c=e.C;n=c+n;var l=i,u=a;for(a=e.Ta,i=e.Ua;0<o--;){var d=e.gc[o],f=c,p=n,m=l,h=u,g=(u=a,l=i,d.Ea);switch(t(f<p),t(p<=d.nc),d.hc){case 2:Kn(m,h,(p-f)*g,u,l);break;case 0:var _=f,v=p,y=u,b=l,x=(E=d).Ea;_==0&&(Wn(m,h,null,null,1,y,b),U(m,h+1,0,0,x-1,y,b+1),h+=x,b+=x,++_);for(var S=1<<E.b,C=S-1,w=L(x,E.b),T=E.K,E=E.w+(_>>E.b)*w;_<v;){var D=T,O=E,k=1;for(Gn(m,h,y,b-x,1,y,b);k<x;){var A=(k&~C)+S;A>x&&(A=x),(0,Zn[D[O++]>>8&15])(m,h+ +k,y,b+k-x,A-k,y,b+k),k=A}h+=x,b+=x,++_&C||(E+=w)}p!=d.nc&&r(u,l-g,u,l+(p-f-1)*g,g);break;case 1:for(g=m,v=h,x=(m=d.Ea)-(b=m&~(y=(h=1<<d.b)-1)),_=L(m,d.b),S=d.K,d=d.w+(f>>d.b)*_;f<p;){for(C=S,w=d,T=new B,E=v+b,D=v+m;v<E;)G(C[w++],T),Qn(T,g,v,h,u,l),v+=h,l+=h;v<D&&(G(C[w++],T),Qn(T,g,v,x,u,l),v+=x,l+=x),++f&y||(d+=_)}break;case 3:if(m==u&&h==l&&0<d.b){for(v=u,m=g=l+(p-f)*g-(b=(p-f)*L(d.Ea,d.b)),h=u,y=l,_=[],b=(x=b)-1;0<=b;--b)_[b]=h[y+b];for(b=x-1;0<=b;--b)v[m+b]=_[b];qn(d,f,p,u,g,u,l)}else qn(d,f,p,m,h,u,l)}l=a,u=i}u!=i&&r(a,i,l,u,s)}function we(e,n){var r=e.V,i=e.Ba+e.c*e.C,a=n-e.C;if(t(n<=e.l.o),t(16>=a),0<a){var o=e.l,s=e.Ta,c=e.Ua,l=o.width;if(Ce(e,a,r,i),a=c=[c],t((r=e.C)<(i=n)),t(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var u=o.j-r;r=o.j,a[0]+=u*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(c=c[0],11>(r=e.ca).S){var d=r.f.RGBA,f=(i=r.S,a=o.U,o=o.T,u=d.eb,d.A),p=o;for(d=d.fb+e.Ma*d.A;0<p--;){var m=s,h=c,g=a,_=u,v=d;switch(i){case Fr:$n(m,h,g,_,v);break;case Ir:er(m,h,g,_,v);break;case Hr:er(m,h,g,_,v),Sr(_,v,0,g,1,0);break;case Lr:rr(m,h,g,_,v);break;case Rr:q(m,h,g,_,v,1);break;case Ur:q(m,h,g,_,v,1),Sr(_,v,0,g,1,0);break;case zr:q(m,h,g,_,v,0);break;case Wr:q(m,h,g,_,v,0),Sr(_,v,1,g,1,0);break;case Br:tr(m,h,g,_,v);break;case Gr:tr(m,h,g,_,v),Cr(_,v,g,1,0);break;case Vr:nr(m,h,g,_,v);break;default:t(0)}c+=l,d+=f}e.Ma+=o}else alert(`todo:EmitRescaledRowsYUVA`);t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Te(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].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 Q(e,n,r,i,a,o){if(e.Z!=0){var s=e.qd,c=e.rd;for(t(hi[e.Z]!=null);n<r;++n)hi[e.Z](s,c,i,a,i,a,o),s=i,c=a,a+=o;e.qd=s,e.rd=c}}function Ee(e,n){var r=e.l.ma,i=r.Z==0||r.Z==1?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var a=e.l.width,o=r.ca,s=r.tb+a*i,c=e.V,l=e.Ba+e.c*i,u=e.gc;t(e.ab==1),t(u[0].hc==3),Yn(u[0],i,n,c,l,o,s),Q(r,i,n,o,s,a)}e.C=e.Ma=n}function $(e,n,r,i,a,o,s){var c=e.$/i,l=e.$%i,u=e.m,d=e.s,f=r+e.$,p=f;a=r+i*a;var m=r+i*o,h=280+d.ua,g=e.Pb?c:16777216,_=0<d.ua?d.Wa:null,v=d.wc,y=f<m?Se(d,l,c):null;t(e.C<o),t(m<=a);var b=!1;t:for(;;){for(;b||f<m;){var x=0;if(c>=g){var E=f-r;t((g=e).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&P(g.s.Wa,g.s.vb),g=c+$r}if(l&v||(y=Se(d,l,c)),t(y!=null),y.Qb&&(n[f]=y.qb,b=!0),!b){if(T(u),y.jc){x=u,E=n;var D=f,O=y.pd[S(x)&Rn-1];t(y.jc),256>O.g?(w(x,x.u+O.g),E[D]=O.value,x=0):(w(x,x.u+O.g-256),t(256<=O.value),x=O.value),x==0&&(b=!0)}else x=be(y.G[0],y.H[0],u)}if(u.h)break;if(b||256>x){if(!b){if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(T(u),b=be(y.G[1],y.H[1],u),T(u),E=be(y.G[2],y.H[2],u),D=be(y.G[3],y.H[3],u),u.h)break;n[f]=(D<<24|b<<16|x<<8|E)>>>0}}if(b=!1,++f,++l>=i&&(l=0,++c,s!=null&&c<=o&&!(c%16)&&s(e,c),_!=null))for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else if(280>x){if(x=ve(x-256,u),E=be(y.G[4],y.H[4],u),T(u),E=ye(i,E=ve(E,u)),u.h)break;if(f-r<E||a-f<x)break t;for(D=0;D<x;++D)n[f+D]=n[f+D-E];for(f+=x,l+=x;l>=i;)l-=i,++c,s!=null&&c<=o&&!(c%16)&&s(e,c);if(t(f<=a),l&v&&(y=Se(d,l,c)),_!=null)for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else{if(!(x<h))break t;for(b=x-280,t(_!=null);p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x;x=f,t(!(b>>>(E=_).Xa)),n[x]=E.X[b],b=!0}b||t(u.h==C(u))}if(e.Pb&&u.h&&f<a)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&P(e.s.vb,e.s.Wa);else{if(u.h)break t;s?.(e,c>o?o:c),e.a=0,e.$=f-r}return 1}return e.a=3,0}function De(e){t(e!=null),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;n!=null&&(n.X=null),e.vb=null,t(e!=null)}function Oe(){var t=new on;return t==null?null:(t.a=0,t.xb=mi,J(`Predictor`,`VP8LPredictors`),J(`Predictor`,`VP8LPredictors_C`),J(`PredictorAdd`,`VP8LPredictorsAdd`),J(`PredictorAdd`,`VP8LPredictorsAdd_C`),Kn=W,Qn=ne,$n=ie,er=ae,tr=oe,nr=K,rr=se,e.VP8LMapColor32b=Jn,e.VP8LMapColor8b=Xn,t)}function ke(e,n,r,s,c){var l=1,f=[e],m=[n],h=s.m,g=s.s,_=null,v=0;t:for(;;){if(r)for(;l&&y(h,1);){var b=f,x=m,C=s,E=1,D=C.m,O=C.gc[C.ab],k=y(D,2);if(C.Oc&1<<k)l=0;else{switch(C.Oc|=1<<k,O.hc=k,O.Ea=b[0],O.nc=x[0],O.K=[null],++C.ab,t(4>=C.ab),k){case 0:case 1:O.b=y(D,3)+2,E=ke(L(O.Ea,O.b),L(O.nc,O.b),0,C,O.K),O.K=O.K[0];break;case 3:var A,j=y(D,8)+1,M=16<j?0:4<j?1:2<j?2:3;if(b[0]=L(O.Ea,M),O.b=M,A=E=ke(j,1,0,C,O.K)){var P,F=j,I=O,z=1<<(8>>I.b),B=a(z);if(B==null)A=0;else{var V=I.K[0],H=I.w;for(B[0]=I.K[0][0],P=1;P<1*F;++P)B[P]=R(V[H+P],B[P-1]);for(;P<4*z;++P)B[P]=0;I.K[0]=null,I.K[0]=B,A=1}}E=A;break;case 2:break;default:t(0)}l=E}}if(f=f[0],m=m[0],l&&y(h,1)&&!(l=1<=(v=y(h,4))&&11>=v)){s.a=3;break t}var ee;if(ee=l)e:{var te,U,W,G=s,ne=f,re=m,ie=v,ae=r,oe=G.m,K=G.s,se=[null],q=1,J=0,ce=Qr[ie];n:for(;;){if(ae&&y(oe,1)){var le=y(oe,3)+2,ue=L(ne,le),Y=L(re,le),de=ue*Y;if(!ke(ue,Y,0,G,se))break n;for(se=se[0],K.xc=le,te=0;te<de;++te){var fe=se[te]>>8&65535;se[te]=fe,fe>=q&&(q=fe+1)}}if(oe.h)break n;for(U=0;5>U;++U){var pe=Jr[U];!U&&0<ie&&(pe+=1<<ie),J<pe&&(J=pe)}var X=o(q*ce,d),me=q,he=o(me,p);if(he==null)var ge=null;else t(65536>=me),ge=he;var Z=a(J);if(ge==null||Z==null||X==null){G.a=1;break n}var _e=X;for(te=W=0;te<q;++te){var ve=ge[te],ye=ve.G,be=ve.H,Se=0,Ce=1,we=0;for(U=0;5>U;++U){pe=Jr[U],ye[U]=_e,be[U]=W,!U&&0<ie&&(pe+=1<<ie);r:{var Te,Q=pe,Ee=G,Oe=Z,Ae=_e,je=W,Me=0,Ne=Ee.m,Pe=y(Ne,1);if(i(Oe,0,0,Q),Pe){var Fe=y(Ne,1)+1,Ie=y(Ne,y(Ne,1)==0?1:8);Oe[Ie]=1,Fe==2&&(Oe[Ie=y(Ne,8)]=1);var Le=1}else{var Re=a(19),ze=y(Ne,4)+4;if(19<ze){Ee.a=3;var Be=0;break r}for(Te=0;Te<ze;++Te)Re[Xr[Te]]=y(Ne,3);var Ve=void 0,He=void 0,Ue=Ee,We=Re,Ge=Q,Ke=Oe,qe=0,Je=Ue.m,Ye=8,Xe=o(128,d);i:for(;u(Xe,0,7,We,19);){if(y(Je,1)){if((Ve=2+y(Je,2+2*y(Je,3)))>Ge)break i}else Ve=Ge;for(He=0;He<Ge&&Ve--;){T(Je);var Ze=Xe[0+(127&S(Je))];w(Je,Je.u+Ze.g);var Qe=Ze.value;if(16>Qe)Ke[He++]=Qe,Qe!=0&&(Ye=Qe);else{var $e=Qe==16,et=Qe-16,tt=qr[et],nt=y(Je,Kr[et])+tt;if(He+nt>Ge)break i;for(var rt=$e?Ye:0;0<nt--;)Ke[He++]=rt}}qe=1;break i}qe||(Ue.a=3),Le=qe}(Le&&=!Ne.h)&&(Me=u(Ae,je,8,Oe,Q)),Le&&Me!=0?Be=Me:(Ee.a=3,Be=0)}if(Be==0)break n;if(Ce&&Yr[U]==1&&(Ce=_e[W].g==0),Se+=_e[W].g,W+=Be,3>=U){var it,at=Z[0];for(it=1;it<pe;++it)Z[it]>at&&(at=Z[it]);we+=at}}if(ve.nd=Ce,ve.Qb=0,Ce&&(ve.qb=(ye[3][be[3]+0].value<<24|ye[1][be[1]+0].value<<16|ye[2][be[2]+0].value)>>>0,Se==0&&256>ye[0][be[0]+0].value&&(ve.Qb=1,ve.qb+=ye[0][be[0]+0].value<<8)),ve.jc=!ve.Qb&&6>we,ve.jc){var ot,st=ve;for(ot=0;ot<Rn;++ot){var ct=ot,lt=st.pd[ct],ut=st.G[0][st.H[0]+ct];256<=ut.value?(lt.g=ut.g+256,lt.value=ut.value):(lt.g=0,lt.value=0,ct>>=xe(ut,8,lt),ct>>=xe(st.G[1][st.H[1]+ct],16,lt),ct>>=xe(st.G[2][st.H[2]+ct],0,lt),xe(st.G[3][st.H[3]+ct],24,lt))}}}K.vc=se,K.Wb=q,K.Ya=ge,K.yc=X,ee=1;break e}ee=0}if(!(l=ee)){s.a=3;break t}if(0<v){if(g.ua=1<<v,!N(g.Wa,v)){s.a=1,l=0;break t}}else g.ua=0;var dt=s,ft=f,pt=m,mt=dt.s,ht=mt.xc;if(dt.c=ft,dt.i=pt,mt.md=L(ft,ht),mt.wc=ht==0?-1:(1<<ht)-1,r){s.xb=pi;break t}if((_=a(f*m))==null){s.a=1,l=0;break t}l=(l=$(s,_,0,f,m,m,null))&&!h.h;break t}return l?(c==null?(t(_==null),t(r)):c[0]=_,s.$=0,r||De(g)):De(g),l}function Ae(e,n){var r=e.c*e.i,i=r+n+16*n;return t(e.c<=n),e.V=a(i),e.V==null?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function je(e,n){var r=e.C,i=n-r,a=e.V,o=e.Ba+e.c*r;for(t(n<=e.l.o);0<i;){var s=16<i?16:i,c=e.l.ma,l=e.l.width,u=l*s,d=c.ca,f=c.tb+l*r,p=e.Ta,m=e.Ua;Ce(e,s,a,o),Tr(p,m,d,f,u),Q(c,r,r+s,d,f,l),i-=s,a+=s*e.c,r+=s}t(r==n),e.C=e.Ma=n}function Me(){this.ub=this.yd=this.td=this.Rb=0}function Ne(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Pe(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Fe(){this.Yb=function(){var e=[];return function e(t,n,r){for(var i=r[n],a=0;a<i&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));a++)e(t[a],n+1,r)}(e,0,[3,11]),e}()}function Ie(){this.jb=a(3),this.Wc=s([4,8],Fe),this.Xc=s([4,17],Fe)}function Le(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Re(){this.ld=this.La=this.dd=this.tc=0}function ze(){this.Na=this.la=0}function Be(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ve(){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 He(){this.uc=this.M=this.Nb=0,this.wa=Array(new Re),this.Y=0,this.ya=Array(new Ve),this.aa=0,this.l=new Ke}function Ue(){this.y=a(16),this.f=a(8),this.ea=a(8)}function We(){this.cb=this.a=0,this.sc=``,this.m=new b,this.Od=new Me,this.Kc=new Ne,this.ed=new Le,this.Qa=new Pe,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,Be),this.Pa=new Ie,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ue),this.Hd=0,this.rb=Array(new ze),this.sb=0,this.wa=Array(new Re),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 Ve),this.L=this.aa=0,this.gd=s([4,2],Re),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 Ge(e,t){return 0>e?0:e>t?t:e}function Ke(){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 qe(){var e=new We;return e!=null&&(e.a=0,e.sc=`OK`,e.cb=0,e.Xb=0,ni||=Ze),e}function Je(e,t,n){return e.a==0&&(e.a=t,e.sc=n,e.cb=0),0}function Ye(e,t,n){return 3<=n&&e[t+0]==157&&e[t+1]==1&&e[t+2]==42}function Xe(e,n){if(e==null)return 0;if(e.a=0,e.sc=`OK`,n==null)return Je(e,2,`null VP8Io passed to VP8GetHeaders()`);var r=n.data,a=n.w,o=n.ha;if(4>o)return Je(e,7,`Truncated header.`);var s=r[a+0]|r[a+1]<<8|r[a+2]<<16,c=e.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Je(e,3,`Incorrect keyframe parameters.`);if(!c.yd)return Je(e,4,`Frame not displayable.`);a+=3,o-=3;var l=e.Kc;if(c.Rb){if(7>o)return Je(e,7,`cannot parse picture header`);if(!Ye(r,a,o))return Je(e,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,e.za=l.c+15>>4,e.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=e.Pa).jb,0,255,s.jb.length),t((s=e.Qa)!=null),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(c.ub>o)return Je(e,7,`bad partition length`);m(s=e.m,r,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(l.Ld=D(s),l.Kd=D(s)),l=e.Qa;var u,d=e.Pa;if(t(s!=null),t(l!=null),l.Cb=D(s),l.Cb){if(l.Bb=D(s),D(s)){for(l.Fb=D(s),u=0;4>u;++u)l.Zb[u]=D(s)?g(s,7):0;for(u=0;4>u;++u)l.Lb[u]=D(s)?g(s,6):0}if(l.Bb)for(u=0;3>u;++u)d.jb[u]=D(s)?h(s,8):255}else l.Bb=0;if(s.Ka)return Je(e,3,`cannot parse segment header`);if((l=e.ed).zd=D(s),l.Tb=h(s,6),l.wb=h(s,3),l.Pc=D(s),l.Pc&&D(s)){for(d=0;4>d;++d)D(s)&&(l.vd[d]=g(s,6));for(d=0;4>d;++d)D(s)&&(l.od[d]=g(s,6))}if(e.L=l.Tb==0?0:l.zd?1:2,s.Ka)return Je(e,3,`cannot parse filter header`);var f=o;if(o=u=a,a=u+f,l=f,e.Xb=(1<<h(e.m,2))-1,f<3*(d=e.Xb))r=7;else{for(u+=3*d,l-=3*d,f=0;f<d;++f){var p=r[o+0]|r[o+1]<<8|r[o+2]<<16;p>l&&(p=l),m(e.Jc[+f],r,u,p),u+=p,l-=p,o+=3}m(e.Jc[+d],r,u,l),r=u<a?0:5}if(r!=0)return Je(e,r,`cannot parse partitions`);for(r=h(u=e.m,7),o=D(u)?g(u,4):0,a=D(u)?g(u,4):0,l=D(u)?g(u,4):0,d=D(u)?g(u,4):0,u=D(u)?g(u,4):0,f=e.Qa,p=0;4>p;++p){if(f.Cb){var _=f.Zb[p];f.Fb||(_+=r)}else{if(0<p){e.pb[p]=e.pb[0];continue}_=r}var v=e.pb[p];v.Sc[0]=ei[Ge(_+o,127)],v.Sc[1]=ti[Ge(_+0,127)],v.Eb[0]=2*ei[Ge(_+a,127)],v.Eb[1]=101581*ti[Ge(_+l,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ei[Ge(_+d,117)],v.Qc[1]=ti[Ge(_+u,127)],v.lc=_+u}if(!c.Rb)return Je(e,4,`Not a key frame.`);for(D(s),c=e.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(a=0;3>a;++a)for(l=0;11>l;++l)d=O(s,ci[r][o][a][l])?h(s,8):oi[r][o][a][l],c.Wc[r][o].Yb[a][l]=d;for(o=0;17>o;++o)c.Xc[r][o]=c.Wc[r][li[o]]}return e.kc=D(s),e.kc&&(e.Bd=h(s,8)),e.cb=1}function Ze(e,t,n,r,i,a,o){var s=t[i].Yb[n];for(n=0;16>i;++i){if(!O(e,s[n+0]))return i;for(;!O(e,s[n+1]);)if(s=t[++i].Yb[0],n=0,i==16)return 16;var c=t[i+1].Yb;if(O(e,s[n+2])){var l=e,u=0;if(O(l,(f=s)[(d=n)+3])){if(O(l,f[d+6])){for(s=0,d=2*(u=O(l,f[d+8]))+(f=O(l,f[d+9+u])),u=0,f=ri[d];f[s];++s)u+=u+O(l,f[s]);u+=3+(8<<d)}else O(l,f[d+7])?(u=7+2*O(l,165),u+=O(l,145)):u=5+O(l,159)}else u=O(l,f[d+4])?3+O(l,f[d+5]):2;s=c[2]}else u=1,s=c[1];c=o+ii[i],0>(l=e).b&&E(l);var d,f=l.b,p=(d=l.Ca>>1)-(l.I>>f)>>31;--l.b,l.Ca+=p,l.Ca|=1,l.I-=(d+1&p)<<f,a[c]=((u^p)-p)*r[(0<i)+0]}return 16}function Qe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function $e(e,t,n,r,i){i=e[t+n+32*r]+(i>>3),e[t+n+32*r]=-256&i?0>i?0:255:i}function et(e,t,n,r,i,a){$e(e,t,0,n,r+i),$e(e,t,1,n,r+a),$e(e,t,2,n,r-a),$e(e,t,3,n,r-i)}function tt(e){return(20091*e>>16)+e}function nt(e,t,n,r){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=e[t+0]+e[t+8],l=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-tt(e[t+12]),d=tt(e[t+4])+(35468*e[t+12]>>16);s[o+0]=c+d,s[o+1]=l+u,s[o+2]=l-u,s[o+3]=c-d,o+=4,t++}for(i=o=0;4>i;++i)c=(e=s[o+0]+4)+s[o+8],l=e-s[o+8],u=(35468*s[o+4]>>16)-tt(s[o+12]),$e(n,r,0,0,c+(d=tt(s[o+4])+(35468*s[o+12]>>16))),$e(n,r,1,0,l+u),$e(n,r,2,0,l-u),$e(n,r,3,0,c-d),o++,r+=32}function rt(e,t,n,r){var i=e[t+0]+4,a=35468*e[t+4]>>16,o=tt(e[t+4]),s=35468*e[t+1]>>16;et(n,r,0,i+o,e=tt(e[t+1]),s),et(n,r,1,i+a,e,s),et(n,r,2,i-a,e,s),et(n,r,3,i-o,e,s)}function it(e,t,n,r,i){nt(e,t,n,r),i&&nt(e,t+16,n,r+4)}function at(e,t,n,r){ar(e,t+0,n,r,1),ar(e,t+32,n,r+128,1)}function ot(e,t,n,r){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)$e(n,r,t,i,e)}function st(e,t,n,r){e[t+0]&&cr(e,t+0,n,r),e[t+16]&&cr(e,t+16,n,r+4),e[t+32]&&cr(e,t+32,n,r+128),e[t+48]&&cr(e,t+48,n,r+128+4)}function ct(e,t,n,r){var i,o=a(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],c=e[t+4+i]+e[t+8+i],l=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=u+l,o[12+i]=u-l}for(i=0;4>i;++i)s=(e=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],l=o[1+4*i]-o[2+4*i],u=e-o[3+4*i],n[r+0]=s+c>>3,n[r+16]=u+l>>3,n[r+32]=s-c>>3,n[r+48]=u-l>>3,r+=64}function lt(e,t,n){var r,i=t-32,a=Nr,o=255-e[i-1];for(r=0;r<n;++r){var s,c=a,l=o+e[t-1];for(s=0;s<n;++s)e[t+s]=c[l+e[i+s]];t+=32}}function ut(e,t){lt(e,t,4)}function dt(e,t){lt(e,t,8)}function ft(e,t){lt(e,t,16)}function pt(e,t){for(var n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function mt(e,t){for(var n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function ht(e,t,n){for(var r=0;16>r;++r)i(t,n+32*r,e,16)}function gt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];ht(r>>5,e,t)}function _t(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];ht(r>>4,e,t)}function vt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];ht(r>>4,e,t)}function yt(e,t){ht(128,e,t)}function bt(e,t,n){return e+2*t+n+2>>2}function xt(e,t){var n,i=t-32;for(i=new Uint8Array([bt(e[i-1],e[i+0],e[i+1]),bt(e[i+0],e[i+1],e[i+2]),bt(e[i+1],e[i+2],e[i+3]),bt(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)r(e,t+32*n,i,0,i.length)}function St(e,t){var n=e[t-1],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];k(e,t+0,16843009*bt(e[t-1-32],n,r)),k(e,t+32,16843009*bt(n,r,i)),k(e,t+64,16843009*bt(r,i,a)),k(e,t+96,16843009*bt(i,a,a))}function Ct(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)i(e,t+32*n,r,4)}function wt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+96]=bt(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=bt(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=bt(a,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=bt(o,a,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=bt(s,o,a),e[t+3+32]=e[t+2+0]=bt(c,s,o),e[t+3+0]=bt(l,c,s)}function Tt(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],a=e[t+4-32],o=e[t+5-32],s=e[t+6-32],c=e[t+7-32];e[t+0+0]=bt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=bt(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=bt(r,i,a),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=bt(i,a,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=bt(a,o,s),e[t+3+64]=e[t+2+96]=bt(o,s,c),e[t+3+96]=bt(s,c,c)}function Et(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+0]=e[t+1+64]=a+o+1>>1,e[t+1+0]=e[t+2+64]=o+s+1>>1,e[t+2+0]=e[t+3+64]=s+c+1>>1,e[t+3+0]=c+l+1>>1,e[t+0+96]=bt(i,r,n),e[t+0+64]=bt(r,n,a),e[t+0+32]=e[t+1+96]=bt(n,a,o),e[t+1+32]=e[t+2+96]=bt(a,o,s),e[t+2+32]=e[t+3+96]=bt(o,s,c),e[t+3+32]=bt(s,c,l)}function Dt(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],a=e[t+3-32],o=e[t+4-32],s=e[t+5-32],c=e[t+6-32],l=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+i+1>>1,e[t+2+0]=e[t+1+64]=i+a+1>>1,e[t+3+0]=e[t+2+64]=a+o+1>>1,e[t+0+32]=bt(n,r,i),e[t+1+32]=e[t+0+96]=bt(r,i,a),e[t+2+32]=e[t+1+96]=bt(i,a,o),e[t+3+32]=e[t+2+96]=bt(a,o,s),e[t+3+64]=bt(o,s,c),e[t+3+96]=bt(s,c,l)}function Ot(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+i+1>>1,e[t+2+32]=e[t+0+64]=i+a+1>>1,e[t+1+0]=bt(n,r,i),e[t+3+0]=e[t+1+32]=bt(r,i,a),e[t+3+32]=e[t+1+64]=bt(i,a,a),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=a}function kt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96],o=e[t-1-32],s=e[t+0-32],c=e[t+1-32],l=e[t+2-32];e[t+0+0]=e[t+2+32]=n+o+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=i+r+1>>1,e[t+0+96]=a+i+1>>1,e[t+3+0]=bt(s,c,l),e[t+2+0]=bt(o,s,c),e[t+1+0]=e[t+3+32]=bt(n,o,s),e[t+1+32]=e[t+3+64]=bt(r,n,o),e[t+1+64]=e[t+3+96]=bt(i,r,n),e[t+1+96]=bt(a,i,r)}function At(e,t){for(var n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function jt(e,t){for(var n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Mt(e,t,n){for(var r=0;8>r;++r)i(t,n+32*r,e,8)}function Nt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Mt(r>>4,e,t)}function Pt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Mt(r>>3,e,t)}function Ft(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Mt(r>>3,e,t)}function It(e,t){Mt(128,e,t)}function Lt(e,t,n){var r=e[t-n],i=e[t+0],a=3*(i-r)+jr[1020+e[t-2*n]-e[t+n]],o=Mr[112+(a+4>>3)];e[t-n]=Nr[255+r+Mr[112+(a+3>>3)]],e[t+0]=Nr[255+i-o]}function Rt(e,t,n,r){var i=e[t+0],a=e[t+n];return Pr[255+e[t-2*n]-e[t-n]]>r||Pr[255+a-i]>r}function zt(e,t,n,r){return 4*Pr[255+e[t-n]-e[t+0]]+Pr[255+e[t-2*n]-e[t+n]]<=r}function Bt(e,t,n,r,i){var a=e[t-3*n],o=e[t-2*n],s=e[t-n],c=e[t+0],l=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*Pr[255+s-c]+Pr[255+o-l]>r?0:Pr[255+e[t-4*n]-a]<=i&&Pr[255+a-o]<=i&&Pr[255+o-s]<=i&&Pr[255+d-u]<=i&&Pr[255+u-l]<=i&&Pr[255+l-c]<=i}function Vt(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)zt(e,t+r,n,i)&&Lt(e,t+r,n)}function Ht(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)zt(e,t+r*n,1,i)&&Lt(e,t+r*n,1)}function Ut(e,t,n,r){for(var i=3;0<i;--i)Vt(e,t+=4*n,n,r)}function Wt(e,t,n,r){for(var i=3;0<i;--i)Ht(e,t+=4,n,r)}function Gt(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(Bt(e,t,n,a,o)){if(Rt(e,t,n,s))Lt(e,t,n);else{var c=e,l=t,u=n,d=c[l-2*u],f=c[l-u],p=c[l+0],m=c[l+u],h=c[l+2*u],g=27*(v=jr[1020+3*(p-f)+jr[1020+d-m]])+63>>7,_=18*v+63>>7,v=9*v+63>>7;c[l-3*u]=Nr[255+c[l-3*u]+v],c[l-2*u]=Nr[255+d+_],c[l-u]=Nr[255+f+g],c[l+0]=Nr[255+p-g],c[l+u]=Nr[255+m-_],c[l+2*u]=Nr[255+h-v]}}t+=r}}function Kt(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(Bt(e,t,n,a,o)){if(Rt(e,t,n,s))Lt(e,t,n);else{var c=e,l=t,u=n,d=c[l-u],f=c[l+0],p=c[l+u],m=Mr[112+(4+(h=3*(f-d))>>3)],h=Mr[112+(h+3>>3)],g=m+1>>1;c[l-2*u]=Nr[255+c[l-2*u]+g],c[l-u]=Nr[255+d+h],c[l+0]=Nr[255+f-m],c[l+u]=Nr[255+p-g]}}t+=r}}function qt(e,t,n,r,i,a){Gt(e,t,n,1,16,r,i,a)}function Jt(e,t,n,r,i,a){Gt(e,t,1,n,16,r,i,a)}function Yt(e,t,n,r,i,a){for(var o=3;0<o;--o)Kt(e,t+=4*n,n,1,16,r,i,a)}function Xt(e,t,n,r,i,a){for(var o=3;0<o;--o)Kt(e,t+=4,1,n,16,r,i,a)}function Zt(e,t,n,r,i,a,o,s){Gt(e,t,i,1,8,a,o,s),Gt(n,r,i,1,8,a,o,s)}function Qt(e,t,n,r,i,a,o,s){Gt(e,t,1,i,8,a,o,s),Gt(n,r,1,i,8,a,o,s)}function $t(e,t,n,r,i,a,o,s){Kt(e,t+4*i,i,1,8,a,o,s),Kt(n,r+4*i,i,1,8,a,o,s)}function en(e,t,n,r,i,a,o,s){Kt(e,t+4,1,i,8,a,o,s),Kt(n,r+4,1,i,8,a,o,s)}function tn(){this.ba=new Y,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new fe,this.memory=0,this.Ib=`OutputFunc`,this.Jb=`OutputAlphaFunc`,this.Nd=`OutputRowFunc`}function nn(){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 rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new F,this.vb=new F,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new d}function on(){this.xb=this.a=0,this.l=new Ke,this.ca=new Y,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=o(4,rn),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ke,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(e,t,n,r,i,a,o){for(e=e==null?0:e[t+0],t=0;t<o;++t)i[a+t]=e+n[r+t]&255,e=i[a+t]}function ln(e,t,n,r,i,a,o){var s;if(e==null)cn(null,null,n,r,i,a,o);else for(s=0;s<o;++s)i[a+s]=e[t+s]+n[r+s]&255}function un(e,t,n,r,i,a,o){if(e==null)cn(null,null,n,r,i,a,o);else{var s,c=e[t+0],l=c,u=c;for(s=0;s<o;++s)l=u+(c=e[t+s])-l,u=n[r+s]+(-256&l?0>l?0:255:l)&255,l=c,i[a+s]=u}}function dn(e,n,i,o){var s=n.width,c=n.o;if(t(e!=null&&n!=null),0>i||0>=o||i+o>c)return null;if(!e.Cc){if(e.ga==null){var l;if(e.ga=new sn,(l=e.ga==null)||(l=n.width*n.o,t(e.Gb.length==0),e.Gb=a(l),e.Uc=0,e.Gb==null?l=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,l=1),l=!l),!l){l=e.ga;var u=e.Fa,d=e.P,f=e.qc,p=e.mb,m=e.nb,h=d+1,g=f-1,v=l.l;if(t(u!=null&&p!=null&&n!=null),hi[0]=null,hi[1]=cn,hi[2]=ln,hi[3]=un,l.ca=p,l.tb=m,l.c=n.width,l.i=n.height,t(0<l.c&&0<l.i),1>=f)n=0;else if(l.$a=3&u[d+0],l.Z=u[d+0]>>2&3,l.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||d)n=0;else if(v.put=ge,v.ac=he,v.bc=Z,v.ma=l,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,l.$a)t:{t(l.$a==1),n=Oe();e:for(;;){if(n==null){n=0;break t}if(t(l!=null),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,_(n.m,u,h,g),!ke(l.c,l.i,1,n,null)||(n.ab==1&&n.gc[0].hc==3&&Te(n.s)?(l.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(u),n.Ba=0,n.V==null?(n.a=1,n=0):n=1):(l.ic=0,n=Ae(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;e.ga.Lc==1?o=c-i:e.Ga=0}t(e.ga!=null),t(i+o<=c);t:{if(n=(u=e.ga).c,c=u.l.o,u.$a==0){if(h=e.rc,g=e.Vc,v=e.Fa,d=e.P+1+i*n,f=e.mb,p=e.nb+i*n,t(d<=e.P+e.qc),u.Z!=0)for(t(hi[u.Z]!=null),l=0;l<o;++l)hi[u.Z](h,g,v,d,f,p,n),h=f,g=p,p+=n,d+=n;else for(l=0;l<o;++l)r(f,p,v,d,n),h=f,g=p,p+=n,d+=n;e.rc=h,e.Vc=g}else{if(t(u.mc!=null),n=i+o,t((l=u.mc)!=null),t(n<=l.i),l.C>=n)n=1;else if(u.ic||gn(),u.ic){u=l.V,h=l.Ba,g=l.c;var y=l.i,b=(v=1,d=l.$/g,f=l.$%g,p=l.m,m=l.s,l.$),x=g*y,S=g*n,w=m.wc,E=b<S?Se(m,f,d):null;t(b<=x),t(n<=y),t(Te(m));e:for(;;){for(;!p.h&&b<S;){if(f&w||(E=Se(m,f,d)),t(E!=null),T(p),256>(y=be(E.G[0],E.H[0],p)))u[h+b]=y,++b,++f>=g&&(f=0,++d<=n&&!(d%16)&&Ee(l,d));else{if(!(280>y)){v=0;break e}y=ve(y-256,p);var D,O=be(E.G[4],E.H[4],p);if(T(p),!(b>=(O=ye(g,O=ve(O,p)))&&x-b>=y)){v=0;break e}for(D=0;D<y;++D)u[h+b+D]=u[h+b+D-O];for(b+=y,f+=y;f>=g;)f-=g,++d<=n&&!(d%16)&&Ee(l,d);b<S&&f&w&&(E=Se(m,f,d))}t(p.h==C(p))}Ee(l,d>n?n:d);break e}!v||p.h&&b<x?(v=0,l.a=p.h?5:3):l.$=b,n=v}else n=$(l,l.V,l.Ba,l.c,l.i,n,je);if(!n){o=0;break t}}i+o>=c&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&((o=e.ga)!=null&&(o.mc=null),e.ga=null,0<e.Ga))return alert(`todo:WebPDequantizeLevels`),null}return e.nb+i*s}function fn(e,t,n,r,i,a){for(;0<i--;){var o,s=e,c=t+ +!!n,l=e,u=t+(n?0:3);for(o=0;o<r;++o){var d=l[u+4*o];d!=255&&(d*=32897,s[c+4*o+0]=s[c+4*o+0]*d>>23,s[c+4*o+1]=s[c+4*o+1]*d>>23,s[c+4*o+2]=s[c+4*o+2]*d>>23)}t+=a}}function pn(e,t,n,r,i){for(;0<r--;){for(var a=0;a<n;++a){var o=e[t+2*a+0],s=15&(l=e[t+2*a+1]),c=4369*s,l=(240&l|l>>4)*c>>16;e[t+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,e[t+2*a+1]=240&l|s}t+=i}}function mn(e,t,n,r,i,a,o,s){var c,l,u=255;for(l=0;l<i;++l){for(c=0;c<r;++c){var d=e[t+c];a[o+4*c]=d,u&=d}t+=n,o+=s}return u!=255}function hn(e,t,n,r,i){for(var a=0;a<i;++a)n[r+a]=e[t+a]>>8}function gn(){Sr=fn,Cr=pn,wr=mn,Tr=hn}function _n(n,r,i){e[n]=function(e,n,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y){var b,x=y-1>>1,S=s[c+0]|l[u+0]<<16,C=d[f+0]|p[m+0]<<16;t(e!=null);var w=3*S+C+131074>>2;for(r(e[n+0],255&w,w>>16,h,g),a!=null&&(w=3*C+S+131074>>2,r(a[o+0],255&w,w>>16,_,v)),b=1;b<=x;++b){var T=s[c+b]|l[u+b]<<16,E=d[f+b]|p[m+b]<<16,D=S+T+C+E+524296,O=D+2*(T+C)>>3;w=O+S>>1,S=(D=D+2*(S+E)>>3)+T>>1,r(e[n+2*b-1],255&w,w>>16,h,g+(2*b-1)*i),r(e[n+2*b-0],255&S,S>>16,h,g+(2*b-0)*i),a!=null&&(w=D+C>>1,S=O+E>>1,r(a[o+2*b-1],255&w,w>>16,_,v+(2*b-1)*i),r(a[o+2*b+0],255&S,S>>16,_,v+(2*b+0)*i)),S=T,C=E}1&y||(w=3*S+C+131074>>2,r(e[n+y-1],255&w,w>>16,h,g+(y-1)*i),a!=null&&(w=3*C+S+131074>>2,r(a[o+y-1],255&w,w>>16,_,v+(y-1)*i)))}}function vn(){gi[Fr]=_i,gi[Ir]=yi,gi[Lr]=vi,gi[Rr]=bi,gi[zr]=xi,gi[Br]=Si,gi[Vr]=Ci,gi[Hr]=yi,gi[Ur]=bi,gi[Wr]=xi,gi[Gr]=Si}function yn(e){return e&~ki?0>e?0:255:e>>Oi}function bn(e,t){return yn((19077*e>>8)+(26149*t>>8)-14234)}function xn(e,t,n){return yn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Sn(e,t){return yn((19077*e>>8)+(33050*t>>8)-17685)}function Cn(e,t,n,r,i){r[i+0]=bn(e,n),r[i+1]=xn(e,t,n),r[i+2]=Sn(e,t)}function wn(e,t,n,r,i){r[i+0]=Sn(e,t),r[i+1]=xn(e,t,n),r[i+2]=bn(e,n)}function Tn(e,t,n,r,i){var a=xn(e,t,n);t=a<<3&224|Sn(e,t)>>3,r[i+0]=248&bn(e,n)|a>>5,r[i+1]=t}function En(e,t,n,r,i){var a=240&Sn(e,t)|15;r[i+0]=240&bn(e,n)|xn(e,t,n)>>4,r[i+1]=a}function Dn(e,t,n,r,i){r[i+0]=255,Cn(e,t,n,r,i+1)}function On(e,t,n,r,i){wn(e,t,n,r,i),r[i+3]=255}function kn(e,t,n,r,i){Cn(e,t,n,r,i),r[i+3]=255}function An(t,n,r){e[t]=function(e,t,i,a,o,s,c,l,u){for(var d=l+(-2&u)*r;l!=d;)n(e[t+0],i[a+0],o[s+0],c,l),n(e[t+1],i[a+0],o[s+0],c,l+r),t+=2,++a,++s,l+=2*r;1&u&&n(e[t+0],i[a+0],o[s+0],c,l)}}function jn(e,t,n){return n==0?e==0?t==0?6:5:t==0?4:0:n}function Mn(e,t,n,r,i){switch(e>>>30){case 3:ar(t,n,r,i,0);break;case 2:or(t,n,r,i);break;case 1:cr(t,n,r,i)}}function Nn(e,t){var n,a,o=t.M,s=t.Nb,c=e.oc,l=e.pc+40,u=e.oc,d=e.pc+584,f=e.oc,p=e.pc+600;for(n=0;16>n;++n)c[l+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,f[p+32*n-1]=129;for(0<o?c[l-1-32]=u[d-1-32]=f[p-1-32]=129:(i(c,l-32-1,127,21),i(u,d-32-1,127,9),i(f,p-32-1,127,9)),a=0;a<e.za;++a){var m=t.ya[t.aa+a];if(0<a){for(n=-1;16>n;++n)r(c,l+32*n-4,c,l+32*n+12,4);for(n=-1;8>n;++n)r(u,d+32*n-4,u,d+32*n+4,4),r(f,p+32*n-4,f,p+32*n+4,4)}var h=e.Gd,g=e.Hd+a,_=m.ad,v=m.Hc;if(0<o&&(r(c,l-32,h[g].y,0,16),r(u,d-32,h[g].f,0,8),r(f,p-32,h[g].ea,0,8)),m.Za){var y=c,b=l-32+16;for(0<o&&(a>=e.za-1?i(y,b,h[g].y[15],4):r(y,b,h[g+1].y,0,4)),n=0;4>n;n++)y[b+128+n]=y[b+256+n]=y[b+384+n]=y[b+0+n];for(n=0;16>n;++n,v<<=2)y=c,b=l+Li[n],di[m.Ob[n]](y,b),Mn(v,_,16*n,y,b)}else if(y=jn(a,o,m.Ob[0]),ui[y](c,l),v!=0)for(n=0;16>n;++n,v<<=2)Mn(v,_,16*n,c,l+Li[n]);for(n=m.Gc,y=jn(a,o,m.Dd),fi[y](u,d),fi[y](f,p),v=_,y=u,b=d,255&(m=0|n)&&(170&m?sr(v,256,y,b):lr(v,256,y,b)),m=f,v=p,255&(n>>=8)&&(170&n?sr(_,320,m,v):lr(_,320,m,v)),o<e.Ub-1&&(r(h[g].y,0,c,l+480,16),r(h[g].f,0,u,d+224,8),r(h[g].ea,0,f,p+224,8)),n=8*s*e.B,h=e.sa,g=e.ta+16*a+16*s*e.R,_=e.qa,m=e.ra+8*a+n,v=e.Ha,y=e.Ia+8*a+n,n=0;16>n;++n)r(h,g+n*e.R,c,l+32*n,16);for(n=0;8>n;++n)r(_,m+n*e.B,u,d+32*n,8),r(v,y+n*e.B,f,p+32*n,8)}}function Pn(e,r,i,a,o,s,c,l,u){var d=[0],f=[0],p=0,m=u==null?0:u.kd,h=u??new nn;if(e==null||12>i)return 7;h.data=e,h.w=r,h.ha=i,r=[r],i=[i],h.gb=[h.gb];t:{var g=r,v=i,y=h.gb;if(t(e!=null),t(v!=null),t(y!=null),y[0]=0,12<=v[0]&&!n(e,g[0],`RIFF`)){if(n(e,g[0]+8,`WEBP`)){y=3;break t}var b=M(e,g[0]+4);if(12>b||4294967286<b){y=3;break t}if(m&&b>v[0]-8){y=7;break t}y[0]=b,g[0]+=12,v[0]-=12}y=0}if(y!=0)return y;for(b=0<h.gb[0],i=i[0];;){t:{var S=e;v=r,y=i;var C=d,w=f,T=g=[0];if((O=p=[p])[0]=0,8>y[0])y=7;else{if(!n(S,v[0],`VP8X`)){if(M(S,v[0]+4)!=10){y=3;break t}if(18>y[0]){y=7;break t}var E=M(S,v[0]+8),D=1+j(S,v[0]+12);if(2147483648<=D*(S=1+j(S,v[0]+15))){y=3;break t}T!=null&&(T[0]=E),C!=null&&(C[0]=D),w!=null&&(w[0]=S),v[0]+=18,y[0]-=18,O[0]=1}y=0}}if(p=p[0],g=g[0],y!=0)return y;if(v=!!(2&g),!b&&p)return 3;if(s!=null&&(s[0]=!!(16&g)),c!=null&&(c[0]=v),l!=null&&(l[0]=0),c=d[0],g=f[0],p&&v&&u==null){y=0;break}if(4>i){y=7;break}if(b&&p||!b&&!p&&!n(e,r[0],`ALPH`)){i=[i],h.na=[h.na],h.P=[h.P],h.Sa=[h.Sa];t:{E=e,y=r,b=i;var O=h.gb;C=h.na,w=h.P,T=h.Sa,D=22,t(E!=null),t(b!=null),S=y[0];var k=b[0];for(t(C!=null),t(T!=null),C[0]=null,w[0]=null,T[0]=0;;){if(y[0]=S,b[0]=k,8>k){y=7;break t}var A=M(E,S+4);if(4294967286<A){y=3;break t}var N=8+A+1&-2;if(D+=N,0<O&&D>O){y=3;break t}if(!n(E,S,`VP8 `)||!n(E,S,`VP8L`)){y=0;break t}if(k[0]<N){y=7;break t}n(E,S,`ALPH`)||(C[0]=E,w[0]=S+8,T[0]=A),S+=N,k-=N}}if(i=i[0],h.na=h.na[0],h.P=h.P[0],h.Sa=h.Sa[0],y!=0)break}i=[i],h.Ja=[h.Ja],h.xa=[h.xa];t:if(O=e,y=r,b=i,C=h.gb[0],w=h.Ja,T=h.xa,E=y[0],S=!n(O,E,`VP8 `),D=!n(O,E,`VP8L`),t(O!=null),t(b!=null),t(w!=null),t(T!=null),8>b[0])y=7;else{if(S||D){if(O=M(O,E+4),12<=C&&O>C-12){y=3;break t}if(m&&O>b[0]-8){y=7;break t}w[0]=O,y[0]+=8,b[0]-=8,T[0]=D}else T[0]=5<=b[0]&&O[E+0]==47&&!(O[E+4]>>5),w[0]=b[0];y=0}if(i=i[0],h.Ja=h.Ja[0],h.xa=h.xa[0],r=r[0],y!=0)break;if(4294967286<h.Ja)return 3;if(l==null||v||(l[0]=h.xa?2:1),c=[c],g=[g],h.xa){if(5>i){y=7;break}l=c,m=g,v=s,e==null||5>i?e=0:5<=i&&e[r+0]==47&&!(e[r+4]>>5)?(b=[0],O=[0],C=[0],_(w=new x,e,r,i),_e(w,b,O,C)?(l!=null&&(l[0]=b[0]),m!=null&&(m[0]=O[0]),v!=null&&(v[0]=C[0]),e=1):e=0):e=0}else{if(10>i){y=7;break}l=g,e==null||10>i||!Ye(e,r+3,i-3)?e=0:(m=e[r+0]|e[r+1]<<8|e[r+2]<<16,v=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&m||3<(m>>1&7)||!(m>>4&1)||m>>5>=h.Ja||!v||!e?e=0:(c&&(c[0]=v),l&&(l[0]=e),e=1))}if(!e||(c=c[0],g=g[0],p&&(d[0]!=c||f[0]!=g)))return 3;u!=null&&(u[0]=h,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-i));break}return y==0||y==7&&p&&u==null?(s!=null&&(s[0]|=h.na!=null&&0<h.na.length),a!=null&&(a[0]=c),o!=null&&(o[0]=g),0):y}function Fn(e,t,n){var r=t.width,i=t.height,a=0,o=0,s=r,c=i;if(t.Da=e!=null&&0<e.Da,t.Da&&(s=e.cd,c=e.bd,a=e.v,o=e.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>r||o+c>i))return 0;if(t.v=a,t.j=o,t.va=a+s,t.o=o+c,t.U=s,t.T=c,t.da=e!=null&&0<e.da,t.da){if(!I(s,c,n=[e.ib],a=[e.hb]))return 0;t.ib=n[0],t.hb=a[0]}return t.ob=e!=null&&e.ob,t.Kb=e==null||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*i/4,t.Kb=0),1}function In(e){if(e==null)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,t.F!=null&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Ln(e,t,n,r){if(r==null||0>=e||0>=t)return 2;if(n!=null){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,c=-2&n.j;if(0>s||0>c||0>=i||0>=o||s+i>e||c+o>t)return 2;e=i,t=o}if(n.da){if(!I(e,t,i=[n.ib],o=[n.hb]))return 2;e=i[0],t=o[0]}}r.width=e,r.height=t;t:{var l=r.width,u=r.height;if(e=r.S,0>=l||0>=u||!(e>=Fr&&13>e))e=2;else{if(0>=r.Rd&&r.sd==null){s=o=i=t=0;var d=(c=l*Vi[e])*u;if(11>e||(o=(u+1)/2*(t=(l+1)/2),e==12&&(s=(i=l)*u)),(u=a(d+2*o+s))==null){e=1;break t}r.sd=u,11>e?((l=r.f.RGBA).eb=u,l.fb=0,l.A=c,l.size=d):((l=r.f.kb).y=u,l.O=0,l.fa=c,l.Fd=d,l.f=u,l.N=0+d,l.Ab=t,l.Cd=o,l.ea=u,l.W=0+d+o,l.Db=t,l.Ed=o,e==12&&(l.F=u,l.J=0+d+2*o),l.Tc=s,l.lb=i)}if(t=1,i=r.S,o=r.width,s=r.height,i>=Fr&&13>i){if(11>i)e=r.f.RGBA,t&=(c=Math.abs(e.A))*(s-1)+o<=e.size,t&=c>=o*Vi[i],t&=e.eb!=null;else{e=r.f.kb,c=(o+1)/2,d=(s+1)/2,l=Math.abs(e.fa),u=Math.abs(e.Ab);var f=Math.abs(e.Db),p=Math.abs(e.lb),m=p*(s-1)+o;t&=l*(s-1)+o<=e.Fd,t&=u*(d-1)+c<=e.Cd,t=(t&=f*(d-1)+c<=e.Ed)&l>=o&u>=c&f>=c,t&=e.y!=null,t&=e.f!=null,t&=e.ea!=null,i==12&&(t&=p>=o,t&=m<=e.Tc,t&=e.F!=null)}}else t=0;e=t?0:2}}return e!=0||n!=null&&n.fd&&(e=In(r)),e}var Rn=64,zn=[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],Bn=24,Vn=32,Hn=8,Un=[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];z(`Predictor0`,`PredictorAdd0`),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return V(V(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return V(e,t[n-1])},e.Predictor7=function(e,t,n){return V(e,t[n+0])},e.Predictor8=function(e,t,n){return V(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return V(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return V(V(e,t[n-1]),V(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=te(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+te(r>>16&255,e>>16&255,t>>16&255)+te(r>>8&255,e>>8&255,t>>8&255)+te(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(H((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|H((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(ee((e=V(e,t[n+0]))>>24&255,r>>24&255)<<24|ee(e>>16&255,r>>16&255)<<16|ee(e>>8&255,r>>8&255)<<8|ee(255&e,255&r))>>>0};var Wn=e.PredictorAdd0;e.PredictorAdd1=U,z(`Predictor2`,`PredictorAdd2`),z(`Predictor3`,`PredictorAdd3`),z(`Predictor4`,`PredictorAdd4`),z(`Predictor5`,`PredictorAdd5`),z(`Predictor6`,`PredictorAdd6`),z(`Predictor7`,`PredictorAdd7`),z(`Predictor8`,`PredictorAdd8`),z(`Predictor9`,`PredictorAdd9`),z(`Predictor10`,`PredictorAdd10`),z(`Predictor11`,`PredictorAdd11`),z(`Predictor12`,`PredictorAdd12`),z(`Predictor13`,`PredictorAdd13`);var Gn=e.PredictorAdd2;re(`ColorIndexInverseTransform`,`MapARGB`,`32b`,function(e){return e>>8&255},function(e){return e}),re(`VP8LColorIndexInverseTransformAlpha`,`MapAlpha`,`8b`,function(e){return e},function(e){return e>>8&255});var Kn,qn=e.ColorIndexInverseTransform,Jn=e.MapARGB,Yn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Zn=e.VP8LPredictorsAdd=[];Zn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er=a(511),Dr=a(2041),Or=a(225),kr=a(767),Ar=0,jr=Dr,Mr=Or,Nr=kr,Pr=Er,Fr=0,Ir=1,Lr=2,Rr=3,zr=4,Br=5,Vr=6,Hr=7,Ur=8,Wr=9,Gr=10,Kr=[2,3,7],qr=[3,3,11],Jr=[280,256,256,256,40],Yr=[0,1,1,1,0],Xr=[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],Qr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$r=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ti=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ni=null,ri=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ii=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ai=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],oi=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],si=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ci=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],li=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ui=[],di=[],fi=[],pi=1,mi=2,hi=[],gi=[];_n(`UpsampleRgbLinePair`,Cn,3),_n(`UpsampleBgrLinePair`,wn,3),_n(`UpsampleRgbaLinePair`,kn,4),_n(`UpsampleBgraLinePair`,On,4),_n(`UpsampleArgbLinePair`,Dn,4),_n(`UpsampleRgba4444LinePair`,En,2),_n(`UpsampleRgb565LinePair`,Tn,2);var _i=e.UpsampleRgbLinePair,vi=e.UpsampleBgrLinePair,yi=e.UpsampleRgbaLinePair,bi=e.UpsampleBgraLinePair,xi=e.UpsampleArgbLinePair,Si=e.UpsampleRgba4444LinePair,Ci=e.UpsampleRgb565LinePair,wi=16,Ti=1<<wi-1,Ei=-227,Di=482,Oi=6,ki=(256<<Oi)-1,Ai=0,ji=a(256),Mi=a(256),Ni=a(256),Pi=a(256),Fi=a(Di-Ei),Ii=a(Di-Ei);An(`YuvToRgbRow`,Cn,3),An(`YuvToBgrRow`,wn,3),An(`YuvToRgbaRow`,kn,4),An(`YuvToBgraRow`,On,4),An(`YuvToArgbRow`,Dn,4),An(`YuvToRgba4444Row`,En,2),An(`YuvToRgb565Row`,Tn,2);var Li=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ri=[0,2,8],zi=[8,7,6,4,4,2,2,2,1,1,1,1],Bi=1;this.WebPDecodeRGBA=function(e,n,s,c,l){var u=Ir,d=new tn,f=new Y;d.ba=f,f.S=u,f.width=[f.width],f.height=[f.height];var p=f.width,m=f.height,h=new de;if(h==null||e==null)var g=2;else t(h!=null),g=Pn(e,n,s,h.width,h.height,h.Pd,h.Qd,h.format,null);if(g==0?(p!=null&&(p[0]=h.width[0]),m!=null&&(m[0]=h.height[0]),p=1):p=0,p){f.width=f.width[0],f.height=f.height[0],c!=null&&(c[0]=f.width),l!=null&&(l[0]=f.height);t:{if(c=new Ke,(l=new nn).data=e,l.w=n,l.ha=s,l.kd=1,n=[0],t(l!=null),((e=Pn(l.data,l.w,l.ha,null,null,null,n,null,l))==0||e==7)&&n[0]&&(e=4),(n=e)==0){if(t(d!=null),c.data=l.data,c.w=l.w+l.offset,c.ha=l.ha-l.offset,c.put=ge,c.ac=he,c.bc=Z,c.ma=d,l.xa){if((e=Oe())==null){d=1;break t}if(function(e,n){var r=[0],i=[0],a=[0];e:for(;;){if(e==null)return 0;if(n==null)return e.a=2,0;if(e.l=n,e.a=0,_(e.m,n.data,n.w,n.ha),!_e(e.m,r,i,a)){e.a=3;break e}if(e.xb=mi,n.width=r[0],n.height=i[0],!ke(r[0],i[0],1,e,null))break e;return 1}return t(e.a!=0),0}(e,c)){if(c=(n=Ln(c.width,c.height,d.Oa,d.ba))==0){e:{c=e;n:for(;;){if(c==null){c=0;break e}if(t(c.s.yc!=null),t(c.s.Ya!=null),t(0<c.s.Wb),t((s=c.l)!=null),t((l=s.ma)!=null),c.xb!=0){if(c.ca=l.ba,c.tb=l.tb,t(c.ca!=null),!Fn(l.Oa,s,Rr)){c.a=2;break n}if(!Ae(c,s.width)||s.da)break n;if((s.da||ce(c.ca.S))&&gn(),11>c.ca.S||(alert(`todo:WebPInitConvertARGBToYUV`),c.ca.f.kb.F!=null&&gn()),c.Pb&&0<c.s.ua&&c.s.vb.X==null&&!N(c.s.vb,c.s.Wa.Xa)){c.a=1;break n}c.xb=0}if(!$(c,c.V,c.Ba,c.c,c.i,s.o,we))break n;l.Dc=c.Ma,c=1;break e}t(c.a!=0),c=0}c=!c}c&&(n=e.a)}else n=e.a}else{if((e=new qe)==null){d=1;break t}if(e.Fa=l.na,e.P=l.P,e.qc=l.Sa,Xe(e,c)){if((n=Ln(c.width,c.height,d.Oa,d.ba))==0){if(e.Aa=0,s=d.Oa,t((l=e)!=null),s!=null){if(0<(p=0>(p=s.Md)?0:100<p?255:255*p/100)){for(m=h=0;4>m;++m)12>(g=l.pb[m]).lc&&(g.ia=p*zi[0>g.lc?0:g.lc]>>3),h|=g.ia;h&&(alert(`todo:VP8InitRandom`),l.ia=1)}l.Ga=s.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(e,n){if(e==null)return 0;if(n==null)return Je(e,2,`NULL VP8Io parameter in VP8Decode().`);if(!e.cb&&!Xe(e,n))return 0;if(t(e.cb),n.ac==null||n.ac(n)){n.ob&&(e.L=0);var s=Ri[e.L];if(e.L==2?(e.yb=0,e.zb=0):(e.yb=n.v-s>>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var c=e.ed;for(s=0;4>s;++s){var l;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=c.Tb)}else u=c.Tb;for(l=0;1>=l;++l){var d=e.gd[s][l],f=u;if(c.Pc&&(f+=c.vd[0],l&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var p=f;0<c.wb&&(p=4<c.wb?p>>2:p>>1)>9-c.wb&&(p=9-c.wb),1>p&&(p=1),d.dd=p,d.tc=2*f+p,d.ld=40<=f?2:+(15<=f)}else d.tc=0;d.La=l}}}s=0}else Je(e,6,`Frame setup failed`),s=e.a;if(s=s==0){if(s){e.$c=0,0<e.Aa||(e.Ic=Bi);e:{s=e.Ic,c=4*(p=e.za);var m=32*p,h=p+1,g=0<e.L?p*(0<e.Aa?2:1):0,_=(e.Aa==2?2:1)*p;if((d=c+832+(l=3*(16*s+Ri[e.L])/2*m)+(u=e.Fa!=null&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)s=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=a(d),e.Fc=0,e.Ec==null){s=Je(e,1,`no memory during frame initialization.`);break e}e.Vb=d}d=e.Ec,f=e.Fc,e.Ac=d,e.Bc=f,f+=c,e.Gd=o(m,Ue),e.Hd=0,e.rb=o(h+1,ze),e.sb=1,e.wa=g?o(g,Re):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=p),t(!0),e.oc=d,e.pc=f,f+=832,e.ya=o(_,Ve),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,e.Aa==2&&(e.D.aa+=p),e.R=16*p,e.B=8*p,p=(m=Ri[e.L])*e.R,m=m/2*e.B,e.sa=d,e.ta=f+p,e.qa=e.sa,e.ra=e.ta+16*s*e.R+m,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+m,e.$c=0,f+=l,e.mb=u?d:null,e.nb=u?f:null,t(f+u<=e.Fc+e.Vb),Qe(e),i(e.Ac,e.Bc,0,c),s=1}}if(s){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Ar){for(s=-255;255>=s;++s)Er[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Dr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Or[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)kr[255+s]=0>s?0:255<s?255:s;Ar=1}ir=ct,ar=it,sr=at,cr=ot,lr=st,or=rt,ur=qt,dr=Jt,fr=Zt,pr=Qt,mr=Yt,hr=Xt,gr=$t,_r=en,vr=Vt,yr=Ht,br=Ut,xr=Wt,di[0]=Ct,di[1]=ut,di[2]=xt,di[3]=St,di[4]=wt,di[5]=Et,di[6]=Tt,di[7]=Dt,di[8]=kt,di[9]=Ot,ui[0]=gt,ui[1]=ft,ui[2]=pt,ui[3]=mt,ui[4]=_t,ui[5]=vt,ui[6]=yt,fi[0]=Nt,fi[1]=dt,fi[2]=At,fi[3]=jt,fi[4]=Ft,fi[5]=Pt,fi[6]=It,s=1}else s=0}s&&=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var o,s=e.Jc[e.M&e.Xb],c=e.m,l=e;for(o=0;o<l.za;++o){var u=c,d=l,f=d.Ac,p=d.Bc+4*o,m=d.zc,h=d.ya[d.aa+o];if(d.Qa.Bb?h.$b=O(u,d.Pa.jb[0])?2+O(u,d.Pa.jb[2]):O(u,d.Pa.jb[1]):h.$b=0,d.kc&&(h.Ad=O(u,d.Bd)),h.Za=!O(u,145)+0,h.Za){var g=h.Ob,_=0;for(d=0;4>d;++d){var v,y=m[0+d];for(v=0;4>v;++v){y=si[f[p+v]][y];for(var b=ai[O(u,y[0])];0<b;)b=ai[2*b+O(u,y[b])];y=-b,f[p+v]=y}r(g,_,f,p,4),_+=4,m[0+d]=y}}else y=O(u,156)?O(u,128)?1:3:O(u,163)?2:0,h.Ob[0]=y,i(f,p,y,4),i(m,0,y,4);h.Dd=O(u,142)?O(u,114)?O(u,183)?1:3:2:0}if(l.m.Ka)return Je(e,7,`Premature end-of-partition0 encountered.`);for(;e.ja<e.za;++e.ja){if(l=s,u=(c=e).rb[c.sb-1],f=c.rb[c.sb+c.ja],o=c.ya[c.aa+c.ja],p=c.kc?o.Ad:0)u.la=f.la=0,o.Za||(u.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,S;if(u=f,f=l,p=c.Pa.Xc,m=c.ya[c.aa+c.ja],h=c.pb[m.$b],d=m.ad,g=0,_=c.rb[c.sb-1],y=v=0,i(d,g,0,384),m.Za)var C=0,w=p[3];else{b=a(16);var T=u.Na+_.Na;if(T=ni(f,p[1],T,h.Eb,0,b,0),u.Na=_.Na=(0<T)+0,1<T)ir(b,0,d,g);else{var E=b[0]+3>>3;for(b=0;256>b;b+=16)d[g+b]=E}C=1,w=p[0]}var D=15&u.la,k=15&_.la;for(b=0;4>b;++b){var A=1&k;for(E=S=0;4>E;++E)D=D>>1|(A=(T=ni(f,w,T=A+(1&D),h.Sc,C,d,g))>C)<<7,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=4,k=k>>1|A<<7,v=(v<<8|S)>>>0}for(w=D,C=k>>4,x=0;4>x;x+=2){for(S=0,D=u.la>>4+x,k=_.la>>4+x,b=0;2>b;++b){for(A=1&k,E=0;2>E;++E)T=A+(1&D),D=D>>1|(A=0<(T=ni(f,p[2],T,h.Qc,0,d,g)))<<3,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=2,k=k>>1|A<<5}y|=S<<4*x,w|=D<<4<<x,C|=(240&k)<<x}u.la=w,_.la=C,m.Hc=v,m.Gc=y,m.ia=43690&y?0:h.ia,p=!(v|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[o.$b][o.Za],c.wa[c.Y+c.ja].La|=!p),l.Ka)return Je(e,7,`Premature end-of-file encountered.`)}if(Qe(e),c=n,l=1,o=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,s.Aa==0)e:{if(o.M=s.M,o.uc=u,Nn(s,o),l=1,o=(S=s.D).Nb,u=(y=Ri[s.L])*s.R,f=y/2*s.B,b=16*o*s.R,E=8*o*s.B,p=s.sa,m=s.ta-u+b,h=s.qa,d=s.ra-f+E,g=s.Ha,_=s.Ia-f+E,k=(D=S.M)==0,v=D>=s.Va-1,s.Aa==2&&Nn(s,S),S.uc)for(A=(T=s).D.M,t(T.D.uc),S=T.yb;S<T.Hb;++S){C=S,w=A;var j=(M=(V=T).D).Nb;x=V.R;var M=M.wa[M.Y+C],N=V.sa,P=V.ta+16*j*x+16*C,F=M.dd,I=M.tc;if(I!=0){if(t(3<=I),V.L==1)0<C&&yr(N,P,x,I+4),M.La&&xr(N,P,x,I),0<w&&vr(N,P,x,I+4),M.La&&br(N,P,x,I);else{var L=V.B,R=V.qa,z=V.ra+8*j*L+8*C,B=V.Ha,V=V.Ia+8*j*L+8*C;j=M.ld,0<C&&(dr(N,P,x,I+4,F,j),pr(R,z,B,V,L,I+4,F,j)),M.La&&(hr(N,P,x,I,F,j),_r(R,z,B,V,L,I,F,j)),0<w&&(ur(N,P,x,I+4,F,j),fr(R,z,B,V,L,I+4,F,j)),M.La&&(mr(N,P,x,I,F,j),gr(R,z,B,V,L,I,F,j))}}}if(s.ia&&alert(`todo:DitherRow`),c.put!=null){if(S=16*D,D=16*(D+1),k?(c.y=s.sa,c.O=s.ta+b,c.f=s.qa,c.N=s.ra+E,c.ea=s.Ha,c.W=s.Ia+E):(S-=y,c.y=p,c.O=m,c.f=h,c.N=d,c.ea=g,c.W=_),v||(D-=y),D>c.o&&(D=c.o),c.F=null,c.J=null,s.Fa!=null&&0<s.Fa.length&&S<D&&(c.J=dn(s,c,S,D-S),c.F=s.mb,c.F==null&&c.F.length==0)){l=Je(s,3,`Could not decode alpha data.`);break e}S<c.j&&(y=c.j-S,S=c.j,t(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),c.F!=null&&(c.J+=c.width*y)),S<D&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,c.F!=null&&(c.J+=c.v),c.ka=S-c.j,c.U=c.va-c.v,c.T=D-S,l=c.put(c))}o+1!=s.Ic||v||(r(s.sa,s.ta-u,p,m+16*s.R,u),r(s.qa,s.ra-f,h,d+8*s.B,f),r(s.Ha,s.Ia-f,g,_+8*s.B,f))}if(!l)return Je(e,6,`Output aborted.`)}return 1}(e,n),n.bc!=null&&n.bc(n),s&=1}return s?(e.cb=0,s):0})(e,c)||(n=e.a)}}else n=e.a}n==0&&d.Oa!=null&&d.Oa.fd&&(n=In(d.ba))}d=n}u=d==0?11>u?f.f.RGBA.eb:f.f.kb.y:null}else u=null;return u};var Vi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(e,t){for(var n=``,r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return e[t+0]|e[t+1]<<8}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function f(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new c;var p=[0],m=[0],h=[],g=new c,_=e,v=function(e,t){var n={},r=0,i=!1,a=0,o=0;if(n.frames=[],!function(e,t){
/** @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
*/
for(var n=0;n<4;n++)if(e[t+n]!=`RIFF`.charCodeAt(n))return!0;return!1}(e,t)){for(f(e,t+=4),t+=8;t<e.length;){var s=l(e,t),c=f(e,t+=4);t+=4;var p=c+(1&c);switch(s){case`VP8 `:case`VP8L`:n.frames[r]===void 0&&(n.frames[r]={}),(g=n.frames[r]).src_off=i?o:t-8,g.src_size=a+c+8,r++,i&&(i=!1,a=0,o=0);break;case`VP8X`:(g=n.header={}).feature_flags=e[t];var m=t+4;g.canvas_width=1+d(e,m),m+=3,g.canvas_height=1+d(e,m),m+=3;break;case`ALPH`:i=!0,a=p+8,o=t-8;break;case`ANIM`:(g=n.header).bgcolor=f(e,t),m=t+4,g.loop_count=u(e,m),m+=2;break;case`ANMF`:var h,g;(g=n.frames[r]={}).offset_x=2*d(e,t),t+=3,g.offset_y=2*d(e,t),t+=3,g.width=1+d(e,t),t+=3,g.height=1+d(e,t),t+=3,g.duration=d(e,t),t+=3,h=e[t++],g.dispose=1&h,g.blend=h>>1&1}s!=`ANMF`&&(t+=p)}return n}}(_,0);v.response=_,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,b=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,p=[y.canvas_height],m=[y.canvas_width];for(var x=0;x<b.length&&b[x].blend!=0;x++);}var S=b[0],C=g.WebPDecodeRGBA(_,S.src_off,S.src_size,m,p);S.rgba=C,S.imgwidth=m[0],S.imgheight=p[0];for(var w=0;w<m[0]*p[0]*4;w++)h[w]=C[w];return this.width=m,this.height=p,this.data=h,this}(function(e){var t,n,i,a,o,s,c,u,d,f=function(e){return e||={},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||`#000000`,this.fillStyle=e.fillStyle||`#000000`,this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||`10px sans-serif`,this.textBaseline=e.textBaseline||`alphabetic`,this.textAlign=e.textAlign||`left`,this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||`miter`,this.lineCap=e.lineCap||`butt`,this.path=e.path||[],this.transform=e.transform===void 0?new u:e.transform.clone(),this.globalCompositeOperation=e.globalCompositeOperation||`normal`,this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect=typeof e.ignoreClearRect!=`boolean`||e.ignoreClearRect,this};e.events.push([`initialized`,function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,d=new f}]);var p=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=!!e}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=!!e}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(e){var t;typeof e==`number`?t=[e,e,e,e]:((t=[,,,,])[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),d.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(e){e instanceof f&&(d=e)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(e){d.path=e}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t=h(e);this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=t.a===0,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=h(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=t.a===0,this.ctx.strokeOpacity=t.a,t.a===0?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){[`butt`,`round`,`square`].indexOf(e)!==-1&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){[`bevel`,`round`,`miter`].indexOf(e)!==-1&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){[`right`,`end`,`center`,`left`,`start`].indexOf(e)!==-1&&(this.ctx.textAlign=e)}});var u=null,p=null,m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(e){u=null,p=null,m=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))!==null){var n=t[1];t[2];var r=t[3],i=t[4];t[5];var a=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i=Math.floor(o===`px`?parseFloat(i)*this.pdf.internal.scaleFactor:o===`em`?parseFloat(i)*this.pdf.getFontSize():parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(e){var t,n,r=[],i=e.trim();if(i===``)return Ze;if(i in Re)return[Re[i]];for(;i!==``;){switch(n=null,t=(i=Be(i)).charAt(0)){case`"`:case`'`:n=Ve(i.substring(1),t);break;default:n=He(i)}if(n===null||(r.push(n[0]),(i=Be(n[1]))!==``&&i.charAt(0)!==`,`))return Ze;i=i.replace(/^,/,``)}return r}(a);if(this.fontFaces){var c=function(e,t,n){for(var r=(n||={}).defaultFontFamily||`times`,i=Object.assign({},Le,n.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=Fe(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o||=e[r]))throw Error(`Could not find a font-family for the rule '`+ze(a)+`' and default family '`+r+`'.`);if(o=function(e,t){if(t[e])return t[e];var n=Me[e],r=Ie(t,je,n,n<=Me.normal?-1:1);if(!r)throw Error(`Could not find a matching font-stretch value for `+e);return r}(a.stretch,o),o=function(e,t){if(t[e])return t[e];for(var n=Ae[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw Error(`Could not find a matching font-style for `+e)}(a.style,o),!(o=function(e,t){if(t[e])return t[e];if(e===400&&t[500])return t[500];if(e===500&&t[400])return t[400];var n=Pe[e],r=Ie(t,Ne,n,e<400?-1:1);if(!r)throw Error(`Could not find a matching font-weight for value `+e);return r}(a.weight,o)))throw Error(`Failed to resolve a font for the rule '`+ze(a)+`'.`);return o}(function(e,t){var n=e.getFontList(),r=JSON.stringify(n);return(u===null||p!==r)&&(u=function(e){for(var t={},n=0;n<e.length;++n){var r=Fe(e[n]),i=r.family,a=r.stretch,o=r.style,s=r.weight;t[i]=t[i]||{},t[i][a]=t[i][a]||{},t[i][a][o]=t[i][a][o]||{},t[i][a][o][s]=r}return t}(function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){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}}r!==null&&(r.ref={name:n,style:e},t.push(r))})}),t}(n).concat(t)),p=r),u}(this.pdf,this.fontFaces),s.map(function(e){return{family:e,stretch:`normal`,weight:r,style:n}}));this.pdf.setFont(c.ref.name,c.ref.style)}else{var l=``;(r===`bold`||parseInt(r,10)>=700||n===`bold`)&&(l=`bold`),n===`italic`&&(l+=`italic`),l.length===0&&(l=`normal`);for(var d=``,f={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`},m=0;m<s.length;m++){if(this.pdf.internal.getFont(s[m],l,{noFallback:!0,disableWarning:!0})!==void 0){d=s[m];break}if(l===`bolditalic`&&this.pdf.internal.getFont(s[m],`bold`,{noFallback:!0,disableWarning:!0})!==void 0)d=s[m],l=`bold`;else if(this.pdf.internal.getFont(s[m],`normal`,{noFallback:!0,disableWarning:!0})!==void 0){d=s[m],l=`normal`;break}}if(d===``){for(var h=0;h<s.length;h++)if(f[s[h]]){d=f[s[h]];break}}d=d===``?`Times`:d,this.pdf.setFont(d,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,B.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,B.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=!!e}})};p.prototype.setLineDash=function(e){this.lineDash=e},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){C.call(this,`fill`,!1)},p.prototype.stroke=function(){C.call(this,`stroke`,!1)},p.prototype.beginPath=function(){this.path=[{type:`begin`}]},p.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw l.error(`jsPDF.context2d.moveTo: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.moveTo`);var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:`mt`,x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},p.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;t!==-1;t--)if(this.path[t].type===`begin`&&(0,r.default)(this.path[t+1])===`object`&&typeof this.path[t+1].x==`number`){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:`close`}),this.ctx.lastPoint=new s(e.x,e.y)},p.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw l.error(`jsPDF.context2d.lineTo: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.lineTo`);var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:`lt`,x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},p.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw l.error(`jsPDF.context2d.quadraticCurveTo: Invalid arguments`,arguments),/* @__PURE__ */ 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(e,t));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)},p.prototype.bezierCurveTo=function(e,t,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error(`jsPDF.context2d.bezierCurveTo: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.bezierCurveTo`);var o=this.ctx.transform.applyToPoint(new s(i,a)),c=this.ctx.transform.applyToPoint(new s(e,t)),u=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:`bct`,x1:c.x,y1:c.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},p.prototype.arc=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i))throw l.error(`jsPDF.context2d.arc: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.arc`);if(a=!!a,!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(e,t));e=o.x,t=o.y;var c=this.ctx.transform.applyToPoint(new s(0,n)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt((c.x-u.x)**2+(c.y-u.y)**2)}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:`arc`,x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},p.prototype.arcTo=function(e,t,n,r,i){throw Error(`arcTo not implemented.`)},p.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error(`jsPDF.context2d.rect: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.rect`);this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},p.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error(`jsPDF.context2d.fillRect: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.fillRect`);if(!g.call(this)){var i={};this.lineCap!==`butt`&&(i.lineCap=this.lineCap,this.lineCap=`butt`),this.lineJoin!==`miter`&&(i.lineJoin=this.lineJoin,this.lineJoin=`miter`),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty(`lineCap`)&&(this.lineCap=i.lineCap),i.hasOwnProperty(`lineJoin`)&&(this.lineJoin=i.lineJoin)}},p.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error(`jsPDF.context2d.strokeRect: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.strokeRect`);_.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},p.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error(`jsPDF.context2d.clearRect: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.clearRect`);this.ignoreClearRect||(this.fillStyle=`#ffffff`,this.fillRect(e,t,n,r))},p.prototype.save=function(e){e=typeof e!=`boolean`||e;for(var t=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(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},p.prototype.restore=function(e){e=typeof e!=`boolean`||e;for(var t=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(t),e&&this.ctxStack.length!==0&&(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)},p.prototype.toDataURL=function(){throw Error(`toDataUrl not implemented.`)};var h=function(e){var t,n,r,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(a!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=1;else if((a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e))!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,typeof e==`string`&&e.charAt(0)!==`#`){var o=new m(e);e=o.ok?o.toHex():`#000000`}e.length===4?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:i,style:e}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},_=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw l.error(`jsPDF.context2d.fillText: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.fillText`);if(r=isNaN(r)?void 0:r,!g.call(this)){var i=L(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;j.call(this,{text:e,x:t,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},p.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw l.error(`jsPDF.context2d.strokeText: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.strokeText`);if(!_.call(this)){r=isNaN(r)?void 0:r;var i=L(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;j.call(this,{text:e,x:t,y:n,scale:a,renderingMode:`stroke`,angle:i,align:this.textAlign,maxWidth:r})}},p.prototype.measureText=function(e){if(typeof e!=`string`)throw l.error(`jsPDF.context2d.measureText: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.measureText`);var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e||={}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},p.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw l.error(`jsPDF.context2d.scale: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.scale`);var n=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.rotate=function(e){if(isNaN(e))throw l.error(`jsPDF.context2d.rotate: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.rotate`);var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},p.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw l.error(`jsPDF.context2d.translate: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.translate`);var n=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.transform=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw l.error(`jsPDF.context2d.transform: Invalid arguments`,arguments),/* @__PURE__ */ Error(`Invalid arguments passed to jsPDF.context2d.transform`);var o=new u(e,t,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},p.prototype.setTransform=function(e,t,n,r,i,a){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new u(e,t,n,r,i,a)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(e,t,n,r,i,a,o,s,l){var d=this.pdf.getImageProperties(e),f=1,p=1,m=1,h=1;r!==void 0&&s!==void 0&&(m=s/r,h=l/i,f=d.width/r*s/r,p=d.height/i*l/i),a===void 0&&(a=t,o=n,t=0,n=0),r!==void 0&&s===void 0&&(s=r,l=i),r===void 0&&s===void 0&&(s=d.width,l=d.height);var g=this.ctx.transform.decompose(),_=L(g.rotate.shx),b=new u,C=(b=(b=(b=b.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new c(a-t*m,o-n*h,r*f,i*p));if(this.autoPaging){for(var T,E=y.call(this,C),D=[],O=0;O<E.length;O+=1)D.indexOf(E[O])===-1&&D.push(E[O]);S(D);for(var k=D[0],A=D[D.length-1],j=k;j<A+1;j++){this.pdf.setPage(j);var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=j===1?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=j===1?0:P+(j-2)*F;if(this.ctx.clip_path.length!==0){var R=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(T,this.posX+this.margin[3],-I+N+this.ctx.prevPageLastElemOffset),w.call(this,`fill`,!0),this.path=R}var z=JSON.parse(JSON.stringify(C));z=x([z],this.posX+this.margin[3],-I+N+this.ctx.prevPageLastElemOffset)[0];var B=(j>k||j<A)&&v.call(this);B&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,F,null).clip().discardPath()),this.pdf.addImage(e,`JPEG`,z.x,z.y,z.w,z.h,null,null,_),B&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,`JPEG`,C.x,C.y,C.w,C.h,null,null,_)};var y=function(e,t,n){var r=[];t||=this.pdf.internal.pageSize.width,n||=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case`mt`:case`lt`:r.push(Math.floor((e.y+i)/n)+1);break;case`arc`:r.push(Math.floor((e.y+i-e.radius)/n)+1),r.push(Math.floor((e.y+i+e.radius)/n)+1);break;case`qct`:var a=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.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=z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.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((e.y+i)/n)+1),r.push(Math.floor((e.y+e.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)b.call(this);return r},b=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=a},x=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case`bct`:e[r].x2+=t,e[r].y2+=n;case`qct`:e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},S=function(e){return e.sort(function(e,t){return e-t})},C=function(e,t){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,a=this.lineWidth,o=Math.abs(a*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var c,l,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),f=[],p=0;p<d.length;p++)if(d[p].x!==void 0)for(var m=y.call(this,d[p]),h=0;h<m.length;h+=1)f.indexOf(m[h])===-1&&f.push(m[h]);for(var g=0;g<f.length;g++)for(;this.pdf.internal.getNumberOfPages()<f[g];)b.call(this);S(f);for(var _=f[0],C=f[f.length-1],T=_;T<C+1;T++){this.pdf.setPage(T),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=o,this.lineJoin=s;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=T===1?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],A=T===1?0:O+(T-2)*k;if(this.ctx.clip_path.length!==0){var j=this.path;c=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(c,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),w.call(this,e,!0),this.path=j}if(l=JSON.parse(JSON.stringify(u)),this.path=x(l,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),!1===t||T===0){var M=(T>_||T<C)&&v.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,k,null).clip().discardPath()),w.call(this,e,t),M&&this.pdf.restoreGraphicsState()}this.lineWidth=a}this.path=u}else this.lineWidth=o,w.call(this,e,t),this.lineWidth=a},w=function(e,t){if((e!==`stroke`||t||!_.call(this))&&(e===`stroke`||t||!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 c=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],c>0)){for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-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),u=a[o-1].y+2/3*(s.y1-a[o-1].y),d=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),p=s.x,m=s.y;n=[l-a[o-1].x,u-a[o-1].y,d-a[o-1].x,f-a[o-1].y,p-a[o-1].x,m-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=t?null:e===`stroke`?`stroke`:`fill`;for(var h=!1,v=0;v<i.length;v++)if(i[v].arc)for(var y=i[v].abs,b=0;b<y.length;b++){var x=y[b];x.type===`arc`?D.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!h):M.call(this,x.x,x.y),h=!0}else if(!0===i[v].close)this.pdf.internal.out(`h`),h=!1;else if(!0!==i[v].begin){var S=i[v].start.x,C=i[v].start.y;N.call(this,i[v].deltas,S,C),h=!0}r&&O.call(this,r),t&&k.call(this)}},T=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case`bottom`:return e-n;case`top`:return e+t-n;case`hanging`:return e+t-2*n;case`middle`:return e+t/2-n;default:return e}},E=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return this.colorStops.length===0?`#000000`:this.colorStops[0][1]},e.isCanvasGradient=!0,e},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var D=function(e,t,n,r,i,a,o,s,c){for(var l=F.call(this,n,r,i,a),u=0;u<l.length;u++){var d=l[u];u===0&&(c?A.call(this,d.x1+e,d.y1+t):M.call(this,d.x1+e,d.y1+t)),P.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?k.call(this):O.call(this,o)},O=function(e){switch(e){case`stroke`:this.pdf.internal.out(`S`);break;case`fill`:this.pdf.internal.out(`f`)}},k=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(e,t){this.pdf.internal.out(n(e)+` `+i(t)+` m`)},j=function(e){var t;switch(e.align){case`right`:case`end`:t=`right`;break;case`center`:t=`center`;break;default:t=`left`}var n,r,i,a=this.pdf.getTextDimensions(e.text),o=T.call(this,e.y),l=E.call(this,o)-a.h,d=this.ctx.transform.applyToPoint(new s(e.x,o));if(this.autoPaging){var f=this.ctx.transform.decompose(),p=new u;p=(p=(p=p.multiply(f.translate)).multiply(f.skew)).multiply(f.scale);for(var m=this.ctx.transform.applyToRectangle(new c(e.x,o,a.w,a.h)),h=p.applyToRectangle(new c(e.x,l,a.w,a.h)),g=y.call(this,h),_=[],b=0;b<g.length;b+=1)_.indexOf(g[b])===-1&&_.push(g[b]);S(_);for(var C=_[0],D=_[_.length-1],O=C;O<D+1;O++){this.pdf.setPage(O);var k=O===1?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[2],M=j-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],P=N-this.margin[3],F=O===1?0:A+(O-2)*M;if(this.ctx.clip_path.length!==0){var I=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(n,this.posX+this.margin[3],-1*F+k),w.call(this,`fill`,!0),this.path=I}var L=x([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale);var R=this.autoPaging!==`text`;if(R||L.y+L.h<=j){if(R||L.y>=k&&L.x<=N){var z=R?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||N-L.x)[0],B=x([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0],V=R&&(O>C||O<D)&&v.call(this);V&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,M,null).clip().discardPath()),this.pdf.text(z,B.x,B.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),V&&this.pdf.restoreGraphicsState()}}else L.y<j&&(this.ctx.prevPageLastElemOffset+=j-L.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale),this.pdf.text(e.text,d.x+this.posX,d.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)},M=function(e,t,r,a){r||=0,a||=0,this.pdf.internal.out(n(e+r)+` `+i(t+a)+` l`)},N=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},P=function(e,n,r,i,s,c,l,u){this.pdf.internal.out([t(a(r+e)),t(o(i+n)),t(a(s+e)),t(o(c+n)),t(a(l+e)),t(o(u+n)),`c`].join(` `))},F=function(e,t,n,r){for(var i=2*Math.PI,a=Math.PI/2;t>n;)t-=i;var o=Math.abs(n-t);o<i&&r&&(o=i-o);for(var s=[],c=r?-1:1,l=t;o>1e-5;){var u=l+c*Math.min(o,a);s.push(I.call(this,e,l,u)),o-=Math.abs(u-l),l=u}return s},I=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),a=e*Math.sin(r),o=i,s=-a,c=o*o+s*s,l=c+o*i+s*a,u=4/3*(Math.sqrt(2*c*l)-l)/(o*a-s*i),d=o-u*s,f=s+u*o,p=d,m=-f,h=r+t,g=Math.cos(h),_=Math.sin(h);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*g-f*_,y2:d*_+f*g,x3:p*g-m*_,y3:p*_+m*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},L=function(e){return 180*e/Math.PI},R=function(e,t,n,r,i,a){var o=e+.5*(n-e),s=t+.5*(r-t),l=i+.5*(n-i),u=a+.5*(r-a),d=Math.min(e,i,o,l),f=Math.max(e,i,o,l),p=Math.min(t,a,s,u),m=Math.max(t,a,s,u);return new c(d,p,f-d,m-p)},z=function(e,t,n,r,i,a,o,s){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=n-e,w=r-t,T=i-n,E=a-r,D=o-i,O=s-a;for(u=0;u<41;u++)_=(h=(d=e+(l=u/40)*C)+l*((p=n+l*T)-d))+l*(p+l*(i+l*D-p)-h),v=(g=(f=t+l*w)+l*((m=r+l*E)-f))+l*(m+l*(a+l*O-m)-g),u==0?(y=_,b=v,x=_,S=v):(y=Math.min(y,_),b=Math.min(b,v),x=Math.max(x,_),S=Math.max(S,v));return new c(Math.round(y),Math.round(b),Math.round(x-y),Math.round(S-b))},B=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}})(B.API),function(e){
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=function(e){var t,n,r,i,a,o,s,c,l,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t=`\0\0\0\0`.slice(e.length%4||4)).length;i>r;r+=4)(a=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))===0?n.push(122):(o=(a=((a=((a=((a=(a-(u=a%85))/85)-(l=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,c+33,l+33,u+33));return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+`~>`},n=function(e){var t,n,r,i,a,o=String,s=`length`,c=255,l=`charCodeAt`,u=`slice`,d=`replace`;for(e[u](-2),e=e[u](0,-2)[d](/\s/g,``)[d](`z`,`!!!!!`),r=[],i=0,a=(e+=t=`uuuuu`[u](e[s]%5||5))[s];a>i;i+=5)n=52200625*(e[l](i)-33)+614125*(e[l](i+1)-33)+7225*(e[l](i+2)-33)+85*(e[l](i+3)-33)+(e[l](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),o.fromCharCode.apply(o,r)},r=function(e){return e.split(``).map(function(e){return(`0`+e.charCodeAt().toString(16)).slice(-2)}).join(``)+`>`},a=function(e){var t=/* @__PURE__ */ new RegExp(/^([0-9A-Fa-f]{2})+$/);if((e=e.replace(/\s/g,``)).indexOf(`>`)!==-1&&(e=e.substr(0,e.indexOf(`>`))),e.length%2&&(e+=`0`),!1===t.test(e))return``;for(var n=``,r=0;r<e.length;r+=2)n+=String.fromCharCode(`0x`+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=(0,i.zlibSync)(t)).reduce(function(e,t){return e+String.fromCharCode(t)},``)};e.processDataByFilters=function(e,i){var s=0,c=e||``,l=[];for(typeof(i||=[])==`string`&&(i=[i]),s=0;s<i.length;s+=1)switch(i[s]){case`ASCII85Decode`:case`/ASCII85Decode`:c=n(c),l.push(`/ASCII85Encode`);break;case`ASCII85Encode`:case`/ASCII85Encode`:c=t(c),l.push(`/ASCII85Decode`);break;case`ASCIIHexDecode`:case`/ASCIIHexDecode`:c=a(c),l.push(`/ASCIIHexEncode`);break;case`ASCIIHexEncode`:case`/ASCIIHexEncode`:c=r(c),l.push(`/ASCIIHexDecode`);break;case`FlateEncode`:case`/FlateEncode`:c=o(c),l.push(`/FlateDecode`);break;default:throw Error(`The filter: "`+i[s]+`" is not implemented`)}return{data:c,reverseChain:l.reverse().join(` `)}}}(B.API),function(e){
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n=typeof n==`function`?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,a=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;i<t;i+=1)n.push(r(255&e.charCodeAt(i)));return n.join(``)};if(r.open(`GET`,e,!t),r.overrideMimeType(`text/plain; charset=x-user-defined`),!1===t&&(r.onload=function(){r.status===200?n(a(this.responseText)):n(void 0)}),r.send(null),t&&r.status===200)return a(r.responseText)}(e,t,n)}catch{}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(B.API),function(e){function t(){return(s.html2canvas?Promise.resolve(s.html2canvas):Promise.resolve(
/*! import() */
).then(n.t.bind(n,
/*! html2canvas */
`html2canvas`,23))).catch(function(e){return Promise.reject(/* @__PURE__ */ Error(`Could not load html2canvas: `+e))}).then(function(e){return e.default?e.default:e})}function i(){return(s.DOMPurify?Promise.resolve(s.DOMPurify):Promise.resolve(
/*! import() */
).then(n.bind(n,
/*! dompurify */
`./node_modules/dompurify/dist/purify.es.mjs`))).catch(function(e){return Promise.reject(/* @__PURE__ */ Error(`Could not load dompurify: `+e))}).then(function(e){return e.default?e.default:e})}var a=function(e){var t=(0,r.default)(e);return t===`undefined`?`undefined`:t===`string`||e instanceof String?`string`:t===`number`||e instanceof Number?`number`:t===`function`||e instanceof Function?`function`:e&&e.constructor===Array?`array`:e&&e.nodeType===1?`element`:t===`object`?`object`:`unknown`},o=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},c=function e(t,n){for(var r=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&i.nodeType===1&&i.nodeName===`SCRIPT`||r.appendChild(e(i,n));return t.nodeType===1&&(t.nodeName===`CANVAS`?(r.width=t.width,r.height=t.height,r.getContext(`2d`).drawImage(t,0,0)):t.nodeName!==`TEXTAREA`&&t.nodeName!==`SELECT`||(r.value=t.value),r.addEventListener(`load`,function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},l=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:`file.pdf`,margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:`transparent`}},l.prototype.from=function(e,t){return this.then(function(){switch(t||=function(e){switch(a(e)){case`string`:return`string`;case`element`:return e.nodeName.toLowerCase()===`canvas`?`canvas`:`element`;default:return`unknown`}}(e),t){case`string`:return this.then(i).then(function(t){return this.set({src:o(`div`,{innerHTML:e,dompurify:t})})});case`element`:return this.set({src:e});case`canvas`:return this.set({canvas:e});case`img`:return this.set({img:e});default:return this.error(`Unknown source type.`)}})},l.prototype.to=function(e){switch(e){case`container`:return this.toContainer();case`canvas`:return this.toCanvas();case`img`:return this.toImg();case`pdf`:return this.toPdf();default:return this.error(`Invalid target.`)}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error(`Cannot duplicate - no source HTML.`)},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:`relative`,display:`inline-block`,width:(typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+`px`,left:0,right:0,top:0,margin:`auto`,backgroundColor:this.opt.backgroundColor},t=c(this.prop.src,this.opt.html2canvas.javascriptEnabled);t.tagName===`BODY`&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+`px`),this.prop.overlay=o(`div`,{className:`html2pdf__overlay`,style:{position:`fixed`,overflow:`hidden`,zIndex:1e3,left:`-100000px`,right:0,bottom:0,top:0}}),this.prop.container=o(`div`,{className:`html2pdf__container`,style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o(`div`,{style:{clear:`both`,border:`0 none transparent`,margin:0,padding:0,height:0}})),this.prop.container.style.float=`none`,this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position=`relative`,this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+`px`})},l.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},l.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r=typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||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,t.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var a=0;a<n.length;++a){var o=n[a],s=o.src.find(function(e){return e.format===`truetype`});s&&t.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=i.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL(`image/`+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement(`img`),this.prop.img.src=e})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(e,t,n){return(n||=`pdf`).toLowerCase()===`img`||n.toLowerCase()===`image`?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},l.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case`img`:return this.prop.img;case`datauristring`:case`dataurlstring`:return this.prop.img.src;case`datauri`:case`dataurl`:return document.location.href=this.prop.img.src;default:throw`Image output type "`+e+`" is not supported.`}})},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(e){if(a(e)!==`object`)return this;var t=Object.keys(e||{}).map(function(t){if(t in l.template.prop)return function(){this.prop[t]=e[t]};switch(t){case`margin`:return this.setMargin.bind(this,e.margin);case`jsPDF`:return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case`pageSize`:return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},l.prototype.get=function(e,t){return this.then(function(){var n=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},l.prototype.setMargin=function(e){return this.then(function(){switch(a(e)){case`number`:e=[e,e,e,e];case`array`:if(e.length===2&&(e=[e[0],e[1],e[0],e[1]]),e.length===4)break;default:return this.error(`Invalid margin array.`)}this.opt.margin=e}).then(this.setPageSize)},l.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e||=B.getPageSize(this.opt.jsPDF)).hasOwnProperty(`inner`)||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},l.prototype.setProgress=function(e,t,n,r){return e!=null&&(this.progress.val=e),t!=null&&(this.progress.state=t),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},l.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},l.prototype.thenCore=function(e,t,n){n||=Promise.prototype.then;var r=this;e&&=e.bind(r),t&&=t.bind(r);var i=Promise.toString().indexOf(`[native code]`)!==-1&&Promise.name===`Promise`?r:l.convert(Object.assign({},r),Promise.prototype),a=n.call(i,e,t);return l.convert(a,r.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},l.prototype.catch=function(e){e&&=e.bind(this);var t=Promise.prototype.catch.call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},l.prototype.error=function(e){return this.then(function(){throw Error(e)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,B.getPageSize=function(e,t,n){if((0,r.default)(e)===`object`){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t||=`mm`,n||=`a4`,e=(``+(e||`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(t){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: `+t}var c,l=0,u=0;if(s.hasOwnProperty(o))l=s[o][1]/a,u=s[o][0]/a;else try{l=n[1],u=n[0]}catch{throw Error(`Invalid format: `+n)}if(e===`p`||e===`portrait`)e=`p`,u>l&&(c=u,u=l,l=c);else{if(e!==`l`&&e!==`landscape`)throw`Invalid orientation: `+e;e=`l`,l>u&&(c=u,u=l,l=c)}return{width:u,height:l,unit:t,k:a,orientation:e}},e.html=function(e,t){(t||={}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Fe):null;var n=new l(t);return t.worker?n:n.from(e).doCallback()}}(B.API),B.API.addJS=function(e){return Ge=e,this.internal.events.subscribe(`postPutResources`,function(){Ue=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/Names [(EmbeddedJS) `+(Ue+1)+` 0 R]`),this.internal.out(`>>`),this.internal.out(`endobj`),We=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/S /JavaScript`),this.internal.out(`/JS (`+Ge+`)`),this.internal.out(`>>`),this.internal.out(`endobj`)}),this.internal.events.subscribe(`putCatalog`,function(){Ue!==void 0&&We!==void 0&&this.internal.out(`/Names <</JavaScript `+Ue+` 0 R>>`)}),this},function(e){
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t;e.events.push([`postPutResources`,function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i<r.length;i++){var a=r[i],o=n.exec(a);if(o!=null){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,l=[];for(i=0;i<c;i++){var u=e.internal.newObject();l.push(u);var d=e.internal.getPageInfo(i+1);e.internal.write(`<< /D[`+d.objId+` 0 R /XYZ null null null]>> endobj`)}var f=e.internal.newObject();for(e.internal.write(`<< /Names [ `),i=0;i<l.length;i++)e.internal.write(`(page_`+(i+1)+`)`+l[i]+` 0 R`);e.internal.write(` ] >>`,`endobj`),t=e.internal.newObject(),e.internal.write(`<< /Dests `+f+` 0 R`),e.internal.write(`>>`,`endobj`)}}]),e.events.push([`putCatalog`,function(){var e=this;e.outline.root.children.length>0&&(e.internal.write(`/Outlines`,this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write(`/Names `+t+` 0 R`))}]),e.events.push([`initialized`,function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return e??=this.root,e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val=``,this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line(`/Type /Outlines`),e.children.length>0&&(this.line(`/First `+this.makeRef(e.children[0])),this.line(`/Last `+this.makeRef(e.children[e.children.length-1]))),this.line(`/Count `+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var i=t.children[r];this.objStart(i),this.line(`/Title `+this.makeString(i.title)),this.line(`/Parent `+this.makeRef(t)),r>0&&this.line(`/Prev `+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line(`/Next `+this.makeRef(t.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=e.internal.getPageInfo(i.options.pageNumber);this.line(`/Dest [`+o.objId+` 0 R /XYZ 0 `+n(0)+` 0]`)}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+`\r
`},e.outline.makeRef=function(e){return e.id+` 0 R`},e.outline.makeString=function(t){return`(`+e.internal.pdfEscape(t)+`)`},e.outline.objStart=function(e){this.ctx.val+=`\r
`+e.id+` 0 obj\r
<<\r
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(B.API),function(e){
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,i,a,o){var s,c=this.decode.DCT_DECODE,l=null;if(typeof e==`string`||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,s=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,t.indexOf(e.charCodeAt(o+1))!==-1){n=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),a={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:n,numcomponents:e.charCodeAt(o+9)};break}r=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return a}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),s.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:e,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:r}}return l}}(B.API),B.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var s,c=(0,o.decode)(e,{checkCrc:!0}),l=c.width,u=c.height,d=c.channels,f=c.palette,p=c.depth;s=f&&d===1?function(e){for(var t=e.width,n=e.height,r=e.data,i=e.palette,o=e.depth,s=!1,c=[],l=[],u=void 0,d=!1,f=0,p=0;p<i.length;p++){var m=(0,a.default)(i[p],4),h=m[0],g=m[1],_=m[2],v=m[3];c.push(h,g,_),v!=null&&(v===0?(f++,l.length<1&&l.push(p)):v<255&&(d=!0))}if(d||f>1){s=!0,l=void 0;var y=t*n;u=new Uint8Array(y);for(var b=new DataView(r.buffer),x=0;x<y;x++){var S=ot(b,x,o),C=(0,a.default)(i[S],4)[3];u[x]=C}}else f===0&&(l=void 0);return{colorSpace:`Indexed`,colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:u,needSMask:s,palette:c,mask:l}}(c):d===2||d===4?function(e){for(var t=e.data,n=e.width,r=e.height,i=e.channels,a=e.depth,o=i===2?`DeviceGray`:`DeviceRGB`,s=i-1,c=n*r,l=s,u=c*l,d=1*c,f=Math.ceil(u*a/8),p=Math.ceil(d*a/8),m=new Uint8Array(f),h=new Uint8Array(p),g=new DataView(t.buffer),_=new DataView(m.buffer),v=new DataView(h.buffer),y=!1,b=0;b<c;b++){for(var x=b*i,S=0;S<l;S++)st(_,ot(g,x+S,a),b*l+S,a);var C=ot(g,x+l,a);C<(1<<a)-1&&(y=!0),st(v,C,1*b,a)}return{colorSpace:o,colorsPerPixel:s,sMaskBitsPerComponent:y?a:void 0,colorBytes:m,alphaBytes:h,needSMask:y}}(c):function(e){var t=e.data,n=e.channels===1?`DeviceGray`:`DeviceRGB`;return{colorSpace:n,colorsPerPixel:n===`DeviceGray`?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<t;i++)r.setUint16(2*i,e[i],!1);return n}(t):t,needSMask:!1}}(c);var m,h,g,_=s,v=_.colorSpace,y=_.colorsPerPixel,b=_.sMaskBitsPerComponent,x=_.colorBytes,S=_.alphaBytes,C=_.needSMask,w=_.palette,T=_.mask,E=null;return r!==B.API.image_compression.NONE&&typeof i.zlibSync==`function`?(E=function(e){var t;switch(e){case B.API.image_compression.FAST:t=11;break;case B.API.image_compression.MEDIUM:t=13;break;case B.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),m=this.decode.FLATE_DECODE,h=`/Predictor ${E} /Colors ${y} /BitsPerComponent ${p} /Columns ${l}`,e=Qe(x,Math.ceil(l*y*p/8),y,p,r),C&&(g=Qe(S,Math.ceil(l*b/8),1,b,r))):(m=void 0,h=void 0,e=x,C&&(g=S)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:n,data:e,index:t,filter:m,decodeParameters:h,transparency:T,palette:w,sMask:g,predictor:E,width:l,height:u,bitsPerComponent:p,sMaskBitsPerComponent:b,colorSpace:v}}},function(e){e.processGIF89A=function(t,n,r,i){var a=new lt(t),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:o,height:s},u=new dt(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(B.API),ft.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,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=Array(e);for(var t=0;t<e;t++){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[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ft.prototype.parseBGR=function(){this.pos=this.offset;try{var e=`bit`+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){l.log(`bit decode error:`+e)}},ft.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;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 c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},ft.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,c=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[c],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}t!==0&&(this.pos+=4-t)}},ft.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,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}e!==0&&(this.pos+=4-e)}},ft.prototype.bit15=function(){for(var e=this.width%3,t=31,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&t)/t*255|0,s=(a>>5&t)/t*255|0,c=(a>>10&t)/t*255|0,l=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=e}},ft.prototype.bit16=function(){for(var e=this.width%3,t=31,n=63,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&t)/t*255|0,c=(o>>5&n)/n*255|0,l=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},ft.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,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=t*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}},ft.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,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=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},ft.prototype.getData=function(){return this.data},function(e){
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
e.processBMP=function(t,n,r,i){var a=new ft(t,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new dt(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(B.API),pt.prototype.getData=function(){return this.data},function(e){
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
e.processWEBP=function(t,n,r,i){var a=new pt(t),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new dt(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(B.API),B.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,l=0;l<i;l+=4){var u=r[l],d=r[l+1],f=r[l+2],p=r[l+3];a[s++]=u,a[s++]=d,a[s++]=f,o[c++]=p}var m=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:m,index:t,alias:n,colorSpace:`DeviceRGB`,bitsPerComponent:8,width:e.width,height:e.height}},B.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:`Afrikaans`,sq:`Albanian`,ar:`Arabic (Standard)`,"ar-DZ":`Arabic (Algeria)`,"ar-BH":`Arabic (Bahrain)`,"ar-EG":`Arabic (Egypt)`,"ar-IQ":`Arabic (Iraq)`,"ar-JO":`Arabic (Jordan)`,"ar-KW":`Arabic (Kuwait)`,"ar-LB":`Arabic (Lebanon)`,"ar-LY":`Arabic (Libya)`,"ar-MA":`Arabic (Morocco)`,"ar-OM":`Arabic (Oman)`,"ar-QA":`Arabic (Qatar)`,"ar-SA":`Arabic (Saudi Arabia)`,"ar-SY":`Arabic (Syria)`,"ar-TN":`Arabic (Tunisia)`,"ar-AE":`Arabic (U.A.E.)`,"ar-YE":`Arabic (Yemen)`,an:`Aragonese`,hy:`Armenian`,as:`Assamese`,ast:`Asturian`,az:`Azerbaijani`,eu:`Basque`,be:`Belarusian`,bn:`Bengali`,bs:`Bosnian`,br:`Breton`,bg:`Bulgarian`,my:`Burmese`,ca:`Catalan`,ch:`Chamorro`,ce:`Chechen`,zh:`Chinese`,"zh-HK":`Chinese (Hong Kong)`,"zh-CN":`Chinese (PRC)`,"zh-SG":`Chinese (Singapore)`,"zh-TW":`Chinese (Taiwan)`,cv:`Chuvash`,co:`Corsican`,cr:`Cree`,hr:`Croatian`,cs:`Czech`,da:`Danish`,nl:`Dutch (Standard)`,"nl-BE":`Dutch (Belgian)`,en:`English`,"en-AU":`English (Australia)`,"en-BZ":`English (Belize)`,"en-CA":`English (Canada)`,"en-IE":`English (Ireland)`,"en-JM":`English (Jamaica)`,"en-NZ":`English (New Zealand)`,"en-PH":`English (Philippines)`,"en-ZA":`English (South Africa)`,"en-TT":`English (Trinidad & Tobago)`,"en-GB":`English (United Kingdom)`,"en-US":`English (United States)`,"en-ZW":`English (Zimbabwe)`,eo:`Esperanto`,et:`Estonian`,fo:`Faeroese`,fj:`Fijian`,fi:`Finnish`,fr:`French (Standard)`,"fr-BE":`French (Belgium)`,"fr-CA":`French (Canada)`,"fr-FR":`French (France)`,"fr-LU":`French (Luxembourg)`,"fr-MC":`French (Monaco)`,"fr-CH":`French (Switzerland)`,fy:`Frisian`,fur:`Friulian`,gd:`Gaelic (Scots)`,"gd-IE":`Gaelic (Irish)`,gl:`Galacian`,ka:`Georgian`,de:`German (Standard)`,"de-AT":`German (Austria)`,"de-DE":`German (Germany)`,"de-LI":`German (Liechtenstein)`,"de-LU":`German (Luxembourg)`,"de-CH":`German (Switzerland)`,el:`Greek`,gu:`Gujurati`,ht:`Haitian`,he:`Hebrew`,hi:`Hindi`,hu:`Hungarian`,is:`Icelandic`,id:`Indonesian`,iu:`Inuktitut`,ga:`Irish`,it:`Italian (Standard)`,"it-CH":`Italian (Switzerland)`,ja:`Japanese`,kn:`Kannada`,ks:`Kashmiri`,kk:`Kazakh`,km:`Khmer`,ky:`Kirghiz`,tlh:`Klingon`,ko:`Korean`,"ko-KP":`Korean (North Korea)`,"ko-KR":`Korean (South Korea)`,la:`Latin`,lv:`Latvian`,lt:`Lithuanian`,lb:`Luxembourgish`,mk:`North Macedonia`,ms:`Malay`,ml:`Malayalam`,mt:`Maltese`,mi:`Maori`,mr:`Marathi`,mo:`Moldavian`,nv:`Navajo`,ng:`Ndonga`,ne:`Nepali`,no:`Norwegian`,nb:`Norwegian (Bokmal)`,nn:`Norwegian (Nynorsk)`,oc:`Occitan`,or:`Oriya`,om:`Oromo`,fa:`Persian`,"fa-IR":`Persian/Iran`,pl:`Polish`,pt:`Portuguese`,"pt-BR":`Portuguese (Brazil)`,pa:`Punjabi`,"pa-IN":`Punjabi (India)`,"pa-PK":`Punjabi (Pakistan)`,qu:`Quechua`,rm:`Rhaeto-Romanic`,ro:`Romanian`,"ro-MO":`Romanian (Moldavia)`,ru:`Russian`,"ru-MO":`Russian (Moldavia)`,sz:`Sami (Lappish)`,sg:`Sango`,sa:`Sanskrit`,sc:`Sardinian`,sd:`Sindhi`,si:`Singhalese`,sr:`Serbian`,sk:`Slovak`,sl:`Slovenian`,so:`Somani`,sb:`Sorbian`,es:`Spanish`,"es-AR":`Spanish (Argentina)`,"es-BO":`Spanish (Bolivia)`,"es-CL":`Spanish (Chile)`,"es-CO":`Spanish (Colombia)`,"es-CR":`Spanish (Costa Rica)`,"es-DO":`Spanish (Dominican Republic)`,"es-EC":`Spanish (Ecuador)`,"es-SV":`Spanish (El Salvador)`,"es-GT":`Spanish (Guatemala)`,"es-HN":`Spanish (Honduras)`,"es-MX":`Spanish (Mexico)`,"es-NI":`Spanish (Nicaragua)`,"es-PA":`Spanish (Panama)`,"es-PY":`Spanish (Paraguay)`,"es-PE":`Spanish (Peru)`,"es-PR":`Spanish (Puerto Rico)`,"es-ES":`Spanish (Spain)`,"es-UY":`Spanish (Uruguay)`,"es-VE":`Spanish (Venezuela)`,sx:`Sutu`,sw:`Swahili`,sv:`Swedish`,"sv-FI":`Swedish (Finland)`,"sv-SV":`Swedish (Sweden)`,ta:`Tamil`,tt:`Tatar`,te:`Teluga`,th:`Thai`,tig:`Tigre`,ts:`Tsonga`,tn:`Tswana`,tr:`Turkish`,tk:`Turkmen`,uk:`Ukrainian`,hsb:`Upper Sorbian`,ur:`Urdu`,ve:`Venda`,vi:`Vietnamese`,vo:`Volapuk`,wa:`Walloon`,cy:`Welsh`,xh:`Xhosa`,ji:`Yiddish`,zu:`Zulu`}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe(`putCatalog`,function(){this.internal.write(`/Lang (`+this.internal.languageSettings.languageCode+`)`)}),this.internal.languageSettings.isSubscribed=!0)),this},Ke=B.API,qe=Ke.getCharWidthsArray=function(e,t){var n,i,a=(t||={}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),c=t.widths?t.widths:a.metadata.Unicode.widths,l=c.fof?c.fof:1,u=t.kerning?t.kerning:a.metadata.Unicode.kerning,d=u.fof?u.fof:1,f=!1!==t.doKerning,p=0,m=e.length,h=0,g=c[0]||l,_=[];for(n=0;n<m;n++)i=e.charCodeAt(n),typeof a.metadata.widthOfString==`function`?_.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+1e3/o*s||0)/1e3):(p=f&&(0,r.default)(u[i])===`object`&&!isNaN(parseInt(u[i][h],10))?u[i][h]/d:0,_.push((c[i]||g)/l+p)),h=i;return _},Je=Ke.getStringUnitWidth=function(e,t){var n=(t||={}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Ke.processArabic&&(e=Ke.processArabic(e)),typeof r.metadata.widthOfString==`function`?r.metadata.widthOfString(e,n,i)/n:qe.apply(this,arguments).reduce(function(e,t){return e+t},0)},Ye=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var c=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(c,a)),s=0,c=a),s+=t[a],a++;return c!==a&&i.push(e.slice(c,a)),i},Xe=function(e,t,n){n||={};var r,i,a,o,s,c,l,u=[],d=[u],f=n.textIndent||0,p=0,m=0,h=e.split(` `),g=qe.apply(this,[` `,n])[0];if(c=n.lineIndent===-1?h[0].length+2:n.lineIndent||0){var _=Array(c).join(` `),v=[];h.map(function(e){(e=e.split(/\s*\n/)).length>1?v=v.concat(e.map(function(e,t){return(t&&e.length?`
`:``)+e})):v.push(e[0])}),h=v,c=Je.apply(this,[_,n])}for(a=0,o=h.length;a<o;a++){var y=0;if(r=h[a],c&&r[0]==`
`&&(r=r.substr(1),y=1),f+p+(m=(i=qe.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||y){if(m>t){for(s=Ye.apply(this,[r,i,t-(f+p),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[r];d.push(u),f=m+c,p=g}else u.push(r),f+=p+m,p=g}return l=c?function(e,t){return(t?_:``)+e.join(` `)}:function(e){return e.join(` `)},d.map(l)},Ke.splitTextToSize=function(e,t,n){var r,i=(n||={}).fontSize||this.internal.getFontSize(),a=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n=`Unicode`;return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,c,l=[];for(s=0,c=r.length;s<c;s++)l=l.concat(Xe.apply(this,[r[s],o,a]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t=`0123456789abcdef`,n=`klmnopqrstuvwxyz`,i={},a={},o=0;o<16;o++)i[n[o]]=t[o],a[t[o]]=n[o];var s=function(e){return`0x`+parseInt(e,10).toString(16)},c=e.__fontmetrics__.compress=function(e){var t,n,i,o,l=[`{`];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?n=`'`+u+`'`:(u=parseInt(u,10),n=(n=s(u).slice(2)).slice(0,-1)+a[n.slice(-1)]),typeof t==`number`)t<0?(i=s(t).slice(3),o=`-`):(i=s(t).slice(2),o=``),i=o+i.slice(0,-1)+a[i.slice(-1)];else{if((0,r.default)(t)!==`object`)throw Error(`Don't know what to do with value type `+(0,r.default)(t)+`.`);i=c(t)}l.push(n+i)}return l.push(`}`),l.join(``)},l=e.__fontmetrics__.uncompress=function(e){if(typeof e!=`string`)throw Error(`Invalid argument passed to uncompress.`);for(var t,n,r,a,o={},s=1,c=o,l=[],u=``,d=``,f=e.length-1,p=1;p<f;p+=1)(a=e[p])==`'`?t?(r=t.join(``),t=void 0):t=[]:t?t.push(a):a==`{`?(l.push([c,r]),c={},r=void 0):a==`}`?((n=l.pop())[0][n[1]]=c,r=void 0,c=n[0]):a==`-`?s=-1:r===void 0?i.hasOwnProperty(a)?(u+=i[a],r=parseInt(u,16)*s,s=1,u=``):u+=a:i.hasOwnProperty(a)?(d+=i[a],c[r]=parseInt(d,16)*s,s=1,r=void 0,d=``):d+=a;return o},u={codePages:[`WinAnsiEncoding`],WinAnsiEncoding:l(`{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}`)},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},f={Unicode:{"Courier-Oblique":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-BoldItalic":l(`{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}`),"Helvetica-Bold":l(`{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}`),Courier:l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-BoldOblique":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Bold":l(`{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}`),Symbol:l(`{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}`),Helvetica:l(`{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}`),"Helvetica-BoldOblique":l(`{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}`),ZapfDingbats:l(`{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-Bold":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Italic":l(`{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}`),"Times-Roman":l(`{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}`),"Helvetica-Oblique":l(`{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}`)}};e.events.push([`addFont`,function(e){var t=e.font,n=f.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=d.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(B.API),function(e){
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push([`addFont`,function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw Error(`Font does not exist in vFS, import fonts or remove declaration doc.addFont('`+i.postScriptName+`').`);if(typeof(r=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!=`string`)throw 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)?t(r):t(h(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]})(i,r)}}])}(B),B.API.addSvgAsImage=function(e,t,r,i,a,o,c,u){if(isNaN(t)||isNaN(r))throw l.error(`jsPDF.addSvgAsImage: Invalid coordinates`,arguments),/* @__PURE__ */ Error(`Invalid coordinates passed to jsPDF.addSvgAsImage`);if(isNaN(i)||isNaN(a))throw l.error(`jsPDF.addSvgAsImage: Invalid measurements`,arguments),/* @__PURE__ */ Error(`Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage`);var d=document.createElement(`canvas`);d.width=i,d.height=a;var f=d.getContext(`2d`);f.fillStyle=`#fff`,f.fillRect(0,0,d.width,d.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return(s.canvg?Promise.resolve(s.canvg):Promise.resolve(
/*! import() */
).then(n.bind(n,
/*! canvg */
`./node_modules/canvg/lib/index.es.js`))).catch(function(e){return Promise.reject(/* @__PURE__ */ Error(`Could not load canvg: `+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(f,e,p)},function(){return Promise.reject(/* @__PURE__ */ Error(`Could not load canvg.`))}).then(function(e){return e.render(p)}).then(function(){m.addImage(d.toDataURL(`image/jpeg`,1),t,r,i,a,c,u)})},B.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,`g`),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,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(t,n);return this},B.API.viewerPreferences=function(e,t){var n;e||={},t||=!1;var i,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}},c=Object.keys(s),l=[],u=0,d=0,f=0;function p(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e===`reset`||!0===t){var m=c.length;for(f=0;f<m;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1}if((0,r.default)(e)===`object`){for(a in e)if(o=e[a],p(c,a)&&o!==void 0){if(n[a].type===`boolean`&&typeof o==`boolean`)n[a].value=o;else if(n[a].type===`name`&&p(n[a].valueSet,o))n[a].value=o;else if(n[a].type===`integer`&&Number.isInteger(o))n[a].value=o;else if(n[a].type===`array`){for(u=0;u<o.length;u+=1)if(i=!0,o[u].length===1&&typeof o[u][0]==`number`)l.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!=`number`&&(i=!1);!0===i&&l.push([o[u][0]-1,o[u][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 e,t=[];for(e in n)!0===n[e].explicitSet&&(n[e].type===`name`?t.push(`/`+e+` /`+n[e].value):t.push(`/`+e+` `+n[e].value));t.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+t.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){
/** ====================================================================
* @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.
* ====================================================================
*/
var t=function(){var e=`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="`+this.internal.__metadata__.namespaceuri+`"><jspdf:metadata>`,t=unescape(`%3Cx%3Axmpmeta%20xmlns%3Ax%3D%22adobe%3Ans%3Ameta%2F%22%3E`),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(`%3C%2Fjspdf%3Ametadata%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E`),a=unescape(`%3C%2Fx%3Axmpmeta%3E`),o=n.length+r.length+i.length+t.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(t+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`)};e.addMetadata=function(e,r){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceuri:r||`http://jspdf.default.namespaceuri/`},this.internal.events.subscribe(`putCatalog`,n),this.internal.events.subscribe(`postPutResources`,t)),this}}(B.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,i=[``,`0`,`00`,`000`,`0000`],a=[``],o=0,s=e.length;o<s;++o){if(n=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(o),r.indexOf(n)==-1&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),n==`0`)return a.join(``);n=n.toString(16),a.push(i[4-n.length],n)}return a.join(``)},r=function(e){var t,n,r,i,a=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,o,s;for(r=[],o=0,s=(n=Object.keys(e).sort(function(e,t){return e-t})).length;o<s;o++)t=n[o],r.length>=100&&(a+=`
`+r.length+` beginbfchar
`+r.join(`
`)+`
endbfchar`,r=[]),e[t]!==void 0&&e[t]!==null&&typeof e[t].toString==`function`&&(i=(`0000`+e[t].toString(16)).slice(-4),t=(`0000`+(+t).toString(16)).slice(-4),r.push(`<`+t+`><`+i+`>`));return r.length&&(a+=`
`+r.length+` beginbfchar
`+r.join(`
`)+`
endbfchar
`),a+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`Identity-H`){for(var s=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l=``,u=0;u<c.length;u++)l+=String.fromCharCode(c[u]);var d=a();o({data:l,addLength1:!0,objectId:d}),i(`endobj`);var f=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i(`endobj`);var p=a();i(`<<`),i(`/Type /FontDescriptor`),i(`/FontName /`+P(n.fontName)),i(`/FontFile2 `+d+` 0 R`),i(`/FontBBox `+e.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 m=a();i(`<<`),i(`/Type /Font`),i(`/BaseFont /`+P(n.fontName)),i(`/FontDescriptor `+p+` 0 R`),i(`/W `+e.API.PDFObject.convert(s)),i(`/CIDToGIDMap /Identity`),i(`/DW 1000`),i(`/Subtype /CIDFontType2`),i(`/CIDSystemInfo`),i(`<<`),i(`/Supplement 0`),i(`/Registry (Adobe)`),i(`/Ordering (`+n.encoding+`)`),i(`>>`),i(`>>`),i(`endobj`),n.objectNumber=a(),i(`<<`),i(`/Type /Font`),i(`/Subtype /Type0`),i(`/ToUnicode `+f+` 0 R`),i(`/BaseFont /`+P(n.fontName)),i(`/Encoding /`+n.encoding),i(`/DescendantFonts [`+m+` 0 R]`),i(`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]),t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`WinAnsiEncoding`){for(var s=n.metadata.rawData,c=``,l=0;l<s.length;l++)c+=String.fromCharCode(s[l]);var u=a();o({data:c,addLength1:!0,objectId:u}),i(`endobj`);var d=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i(`endobj`);var f=a();i(`<<`),i(`/Descent `+n.metadata.decender),i(`/CapHeight `+n.metadata.capHeight),i(`/StemV `+n.metadata.stemV),i(`/Type /FontDescriptor`),i(`/FontFile2 `+u+` 0 R`),i(`/Flags 96`),i(`/FontBBox `+e.API.PDFObject.convert(n.metadata.bbox)),i(`/FontName /`+P(n.fontName)),i(`/ItalicAngle `+n.metadata.italicAngle),i(`/Ascent `+n.metadata.ascender),i(`>>`),i(`endobj`),n.objectNumber=a();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i(`<</Subtype/TrueType/Type/Font/ToUnicode `+d+` 0 R/BaseFont/`+P(n.fontName)+`/FontDescriptor `+f+` 0 R/Encoding/`+n.encoding+` /FirstChar 29 /LastChar 255 /Widths `+e.API.PDFObject.convert(n.metadata.hmtx.widths)+`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]);var i=function(e){var t,r=e.text||``,i=e.x,a=e.y,o=e.options||{},s=e.mutex||{},c=s.pdfEscape,l=s.activeFontKey,u=s.fonts,d=l,f=``,p=0,m=``,h=u[d].encoding;if(u[d].encoding!==`Identity-H`)return{text:r,x:i,y:a,options:o,mutex:s};for(m=r,d=l,Array.isArray(r)&&(m=r[0]),p=0;p<m.length;p+=1)u[d].metadata.hasOwnProperty(`cmap`)&&(t=u[d].metadata.cmap.unicode.codeMap[m[p].charCodeAt(0)]),t||m[p].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty(`Unicode`)?f+=m[p]:f+=``;var g=``;return parseInt(d.slice(1))<14||h===`WinAnsiEncoding`?g=c(f,d).split(``).map(function(e){return e.charCodeAt(0).toString(16)}).join(``):h===`Identity-H`&&(g=n(f,u[d])),s.isHex=!0,{text:g,x:i,y:a,options:o,mutex:s}};t.events.push([`postProcessText`,function(e){var t=e.text||``,n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var a=0;for(a=0;a<t.length;a+=1)Array.isArray(t[a])&&t[a].length===3?n.push([i(Object.assign({},r,{text:t[a][0]})).text,t[a][1],t[a][2]]):n.push(i(Object.assign({},r,{text:t[a]})).text);e.text=n}else e.text=i(Object.assign({},r,{text:t})).text}])}(B),function(e){
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]===void 0?null:this.internal.vFS[e]}}(B.API),function(e){
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
*/
e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,a,o,s,c,l=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=/* @__PURE__ */ `(.).(.<.>.<.[.].[.{.}.{.«.».«.‹.›.‹.⁅.⁆.⁅.⁽.⁾.⁽.₍.₎.₍.≤.≥.≤.〈.〉.〈.﹙.﹚.﹙.﹛.﹜.﹛.﹝.﹞.﹝.﹤.﹥.﹤`.split(`.`),h=/* @__PURE__ */ 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,_=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,r=p[n];return r===void 0?n===252||n===253?`AL`:h.test(n)?`L`:n===8?`R`:`N`:l[256*r+(255&t)]},y=function(e){for(var t,n=0;n<e.length;n++){if((t=v(e.charAt(n)))===`L`)return!1;if(t===`R`)return!0}return!1},b=function(e,t,o,s){var c,l,u,d,f=t[s];switch(f){case`L`:case`R`:case`LRE`:case`RLE`:case`LRO`:case`RLO`:case`PDF`:g=!1;break;case`N`:case`AN`:break;case`EN`:g&&(f=`AN`);break;case`AL`:g=!0,f=`R`;break;case`WS`:case`BN`:f=`N`;break;case`CS`:s<1||s+1>=t.length||(c=o[s-1])!==`EN`&&c!==`AN`||(l=t[s+1])!==`EN`&&l!==`AN`?f=`N`:g&&(l=`AN`),f=l===c?l:`N`;break;case`ES`:f=(c=s>0?o[s-1]:`B`)===`EN`&&s+1<t.length&&t[s+1]===`EN`?`EN`:`N`;break;case`ET`:if(s>0&&o[s-1]===`EN`){f=`EN`;break}if(g){f=`N`;break}for(u=s+1,d=t.length;u<d&&t[u]===`ET`;)u++;f=u<d&&t[u]===`EN`?`EN`:`N`;break;case`NSM`:if(i&&!a){for(d=t.length,u=s+1;u<d&&t[u]===`NSM`;)u++;if(u<d){var p=e[s],m=p>=1425&&p<=2303||p===64286;if(c=t[u],m&&(c===`R`||c===`AL`)){f=`R`;break}}}f=s<1||(c=t[s-1])===`B`?`N`:o[s-1];break;case`B`:g=!1,n=!0,f=_;break;case`S`:r=!0,f=`N`}return f},x=function(e,t,n){var r=e.split(``);return n&&S(r,n,{hiLevel:_}),r.reverse(),t&&t.reverse(),r.join(``)},S=function(e,t,i){var a,o,s,c,l,p=-1,m=e.length,h=0,y=[],x=_?d:u,S=[];for(g=!1,n=!1,r=!1,o=0;o<m;o++)S[o]=v(e[o]);for(s=0;s<m;s++){if(l=h,y[s]=b(e,S,y,s),a=240&(h=x[l][f[y[s]]]),h&=15,t[s]=c=x[h][5],a>0){if(a===16){for(o=p;o<s;o++)t[o]=1;p=-1}else p=-1}if(x[h][6])p===-1&&(p=s);else if(p>-1){for(o=p;o<s;o++)t[o]=c;p=-1}S[s]===`B`&&(t[s]=0),i.hiLevel|=c}r&&function(e,t,n){for(var r=0;r<n;r++)if(e[r]===`S`){t[r]=_;for(var i=r-1;i>=0&&e[i]===`WS`;i--)t[i]=_}}(S,t,m)},C=function(e,t,r,i,a){if(!(a.hiLevel<e)){if(e===1&&_===1&&!n)return t.reverse(),void(r&&r.reverse());for(var o,s,c,l,u=t.length,d=0;d<u;){if(i[d]>=e){for(c=d+1;c<u&&i[c]>=e;)c++;for(l=d,s=c-1;l<s;l++,s--)o=t[l],t[l]=t[s],t[s]=o,r&&(o=r[l],r[l]=r[s],r[s]=o);d=c}d++}}},w=function(e,t,n){var r=e.split(``),i={hiLevel:_};return n||=[],S(r,n,i),function(e,t,n){if(n.hiLevel!==0&&c)for(var r,i=0;i<e.length;i++)t[i]===1&&(r=m.indexOf(e[i]))>=0&&(e[i]=m[r+1])}(r,n,i),C(2,r,t,n,i),C(1,r,t,n,i),r.join(``)};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;a===void 0&&(a=y(e)),s===void 0&&(s=y(e))}(e,t),i||!o||s){if(i&&o&&a^s)_=+!!a,e=x(e,t,n);else if(!i&&o&&s)_=+!!a,e=w(e,t,n),e=x(e,t);else if(!i||a||o||s){if(i&&!o&&a^s)e=x(e,t),a?(_=0,e=w(e,t,n)):(_=1,e=w(e,t,n),e=x(e,t));else if(i&&a&&!o&&s)_=1,e=w(e,t,n),e=x(e,t);else if(!i&&!o&&a^s){var r=c;a?(_=1,e=w(e,t,n),_=0,c=!1,e=w(e,t,n),c=r):(_=0,e=w(e,t,n),e=x(e,t),_=1,c=!1,e=w(e,t,n),c=r,e=x(e,t))}}else _=0,e=w(e,t,n)}else _=+!!a,e=w(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,o=e.isOutputVisual,a=e.isInputRtl,s=e.isOutputRtl,c=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=/* @__PURE__ */ `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`.split(`.`),n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push([`postProcessText`,function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var i=[];if(r.isInputVisual=typeof r.isInputVisual!=`boolean`||r.isInputVisual,n.setOptions(r),Object.prototype.toString.call(t)===`[object Array]`){var a=0;for(i=[],a=0;a<t.length;a+=1)Object.prototype.toString.call(t[a])===`[object Array]`?i.push([n.doBidiReorder(t[a][0]),t[a][1],t[a][2]]):i.push([n.doBidiReorder(t[a])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(B),B.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new ht(e),this.contents.pos=4,t.readString(4)===`ttcf`)throw Error(`TTCF not supported.`);t.pos=0,this.parse(),this.subset=new Pt(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new gt(this.contents),this.head=new yt(this),this.name=new Et(this),this.cmap=new xt(this),this.toUnicode={},this.hhea=new St(this),this.maxp=new Dt(this),this.hmtx=new Ot(this),this.post=new wt(this),this.os2=new Ct(this),this.loca=new Nt(this),this.glyf=new At(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,i=[];for(t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+`.`+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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error(`No unicode cmap for font`)},e.prototype.characterToGlyph=function(e){return this.cmap.unicode?.codeMap[e]||0},e.prototype.widthOfGlyph=function(e){var t=1e3/this.head.unitsPerEm;return this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,a=0,o;for(i=0,o=(e=``+e).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=e.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(r))+1e3/t*n||0;return t/1e3*a},e.prototype.lineHeight=function(e,t){var n;return t??=!1,n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var mt,ht=function(){function e(e){this.data=e??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n=[];for(t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join(``)},e.prototype.writeString=function(e){var t,n,r=[];for(t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte();return 128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*a+256*o+s},e.prototype.writeLongLong=function(e){var t=Math.floor(e/4294967296),n=4294967295&e;return this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){for(var t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,i=[];for(n=0,r=e.length;n<r;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),gt=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,a,o,s,c,l,u,d,f=Object.keys(t).length,p,m;for(m in s=Math.log(2),u=16*Math.floor(Math.log(f)/s),a=Math.floor(u/s),l=16*f-u,(r=new ht).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(a),r.writeShort(l),i=16*f,c=r.pos+i,o=null,p=[],t)for(d=t[m],r.writeString(m),r.writeInt(e(d)),r.writeInt(c),r.writeInt(d.length),p=p.concat(d),m===`head`&&(o=c),c+=d.length;c%4;)p.push(0),c++;return r.write(p),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=kt.call(e);e.length%4;)e.push(0);for(r=new ht(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),_t={}.hasOwnProperty,vt=function(e,t){for(var n in t)_t.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};mt=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var yt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`head`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new ht).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),bt=function(){function e(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(f=e.readUInt16(),d=f/2,e.pos+=6,i=function(){var t,n=[];for(s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,m=function(){var t,n=[];for(s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n=[];for(s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n=[];for(s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,o=function(){var t,n=[];for(s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=g=0,v=i.length;g<v;s=++g)for(h=i[s],n=_=p=m[s];p<=h?_<=h:_>=h;n=p<=h?++_:--_)l[s]===0?a=n+c[s]:(a=o[l[s]/2+(n-p)-(d-s)]||0)!==0&&(a+=c[s]),this.codeMap[n]=65535&a}e.pos=u}return e.encode=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k=new ht,A,j,M,N,P,F,I,L,R,z,B,V,H,ee,te,U,W,G;switch(a=Object.keys(e).sort(function(e,t){return e-t}),t){case`macroman`:for(m=0,h=function(){var e=[];for(p=0;p<256;++p)e.push(0);return e}(),_={0:0},i={},A=0,P=a.length;A<P;A++)_[te=e[r=a[A]]]??(_[te]=++m),i[r]={old:e[r],new:_[e[r]]},h[r]=_[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(h),{charMap:i,subtable:k.data,maxGlyphID:m+1};case`unicode`:for(D=[],u=[],v=0,_={},n={},g=c=null,j=0,F=a.length;j<F;j++)_[b=e[r=a[j]]]??(_[b]=++v),n[r]={old:b,new:_[b]},o=_[b]-r,g!=null&&o===c||(g&&u.push(g),D.push(r),c=o),g=r;for(g&&u.push(g),u.push(65535),D.push(65535),T=2*(w=D.length),C=2*(Math.log(w)/Math.LN2)**2,d=Math.log(C/2)/Math.LN2,S=2*w-C,s=[],x=[],f=[],p=M=0,I=D.length;M<I;p=++M){if(E=D[p],l=u[p],E===65535){s.push(0),x.push(0);break}if(E-(O=n[E].new)>=32768)for(s.push(0),x.push(2*(f.length+w-p)),r=N=E;E<=l?N<=l:N>=l;r=E<=l?++N:--N)f.push(n[r].new);else s.push(O-E),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*w+2*f.length),k.writeUInt16(0),k.writeUInt16(T),k.writeUInt16(C),k.writeUInt16(d),k.writeUInt16(S),H=0,L=u.length;H<L;H++)r=u[H],k.writeUInt16(r);for(k.writeUInt16(0),ee=0,R=D.length;ee<R;ee++)r=D[ee],k.writeUInt16(r);for(U=0,z=s.length;U<z;U++)o=s[U],k.writeUInt16(o);for(W=0,B=x.length;W<B;W++)y=x[W],k.writeUInt16(y);for(G=0,V=f.length;G<V;G++)m=f[G],k.writeUInt16(m);return{charMap:n,subtable:k.data,maxGlyphID:v+1}}},e}(),xt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`cmap`,e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new bt(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return t??=`macroman`,n=bt.encode(e,t),(r=new ht).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),St=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`hhea`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),Ct=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`OS/2`,e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n=[];for(t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n=[];for(t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n=[];for(t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),wt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`post`,e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r=[];for(i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),Tt=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Et=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`name`,e.prototype.parse=function(e){var t,n,r,i,a,o,s,c,l,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(s={},i=l=0,u=n.length;l<u;i=++l)r=n[i],e.pos=r.offset,c=e.readString(r.length),a=new Tt(c,r),s[d=r.nameID]??(s[d]=[]),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{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}(),Dt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`maxp`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Ot=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`hmtx`,e.prototype.parse=function(e){var t,n,r,i,a,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i=[];for(t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r=[];for(e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],t=a=0;0<=r?a<r:a>r;t=0<=r?++a:--a)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),kt=[].slice,At=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`glyf`,e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,i,a,o,s,c,l,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),(r=i.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+n,a=(o=new ht(t.read(r))).readShort(),c=o.readShort(),u=o.readShort(),s=o.readShort(),l=o.readShort(),this.cache[e]=a===-1?new Mt(o,c,u,s,l):new jt(o,a,c,u,s,l),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,i,a=[],o,s;for(i=[],o=0,s=t.length;o<s;o++)r=e[t[o]],i.push(a.length),r&&(a=a.concat(r.encode(n)));return i.push(a.length),{table:a,offsets:i}},e}(),jt=function(){function e(e,t,n,r,i,a){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Mt=function(){function e(e,t,n,r,i){var a,o;for(this.raw=e,this.xMin=t,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 e.prototype.encode=function(){var e,t=new ht(kt.call(this.raw.data)),n;for(e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Nt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return vt(e,mt),e.prototype.tag=`loca`,e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?function(){var t,r=[];for(n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r=[];for(n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,a=0;a<n.length;++a)if(n[a]=r,i<t.length&&t[i]==a){++i,n[a]=r;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(r+=s)}for(var c=Array(4*n.length),l=0;l<n.length;++l)c[4*l+3]=255&n[l],c[4*l+2]=(65280&n[l])>>8,c[4*l+1]=(16711680&n[l])>>16,c[4*l]=(4278190080&n[l])>>24;return c},e}(),Pt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r=this.font.cmap.tables[0].codeMap,i;for(t in e={},i=this.subset)n=i[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){for(var t,n,r={},i,a=0,o=e.length,s;a<o;a++)r[i=e[a]]=this.font.glyf.glyphFor(i);for(i in t=[],r)(n=r[i])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))n=s[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n=xt.encode(this.generateCmap(),`unicode`),r,i,a=this.glyphsFor(e),o,s,c,l,u,d,f={0:0},p,m,h,g;for(r in g=n.charMap)f[(s=g[r]).old]=s.new;for(p in d=n.maxGlyphID,a)p in f||(f[p]=d++);return l=function(e){var t,n={};for(t in e)n[e[t]]=t;return n}(f),u=Object.keys(l).sort(function(e,t){return e-t}),m=function(){var e,t,n=[];for(e=0,t=u.length;e<t;e++)o=u[e],n.push(l[o]);return n}(),i=this.font.glyf.encode(a,m,f),c=this.font.loca.encode(i.offsets,m),h={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(h[`OS/2`]=this.font.os2.raw()),this.font.directory.encode(h)},e}();B.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join(`0`)+e).slice(-t)},t.convert=function(n){var r,i,a,o;if(Array.isArray(n))return`[`+function(){var e,i,a=[];for(e=0,i=n.length;e<i;e++)r=n[e],a.push(t.convert(r));return a}().join(` `)+`]`;if(typeof n==`string`)return`/`+n;if(n?.isString)return`(`+n+`)`;if(n instanceof Date)return`(D:`+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+`Z)`;if({}.toString.call(n)===`[object Object]`){for(i in a=[`<<`],n)o=n[i],a.push(`/`+i+` `+t.convert(o));return a.push(`>>`),a.join(`
`)}return``+n},t}()}),"./node_modules/pako/dist/pako.esm.mjs":(function(e,t,n){
/*!*********************************************!*\
!*** ./node_modules/pako/dist/pako.esm.mjs ***!
\*********************************************/
n.r(t),n.d(t,{Deflate:function(){return Jn},Inflate:function(){return Qn},constants:function(){return nr},default:function(){return rr},deflate:function(){return Yn},deflateRaw:function(){return Xn},gzip:function(){return Zn},inflate:function(){return $n},inflateRaw:function(){return er},ungzip:function(){return tr}})
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
;function r(e){let t=e.length;for(;--t>=0;)e[t]=0}let i=new Uint8Array([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]),a=new Uint8Array([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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=Array(576);r(c);let l=Array(60);r(l);let u=Array(512);r(u);let d=Array(256);r(d);let f=Array(29);r(f);let p=Array(30);r(p);function m(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let h,g,_;function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}let y=e=>e<256?u[e]:u[256+(e>>>7)],b=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},x=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,b(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},S=(e,t,n)=>{x(e,n[t*2],n[t*2+1])},C=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},w=e=>{e.bi_valid===16?(b(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},T=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=15;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<573;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},E=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=15;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=C(r[t]++,t))}},D=()=>{let e,t,n,r,s,v=Array(16);for(n=0,r=0;r<28;r++)for(f[r]=n,e=0;e<1<<i[r];e++)d[n++]=r;for(d[n-1]=r,s=0,r=0;r<16;r++)for(p[r]=s,e=0;e<1<<a[r];e++)u[s++]=r;for(s>>=7;r<30;r++)for(p[r]=s<<7,e=0;e<1<<a[r]-7;e++)u[256+s++]=r;for(t=0;t<=15;t++)v[t]=0;for(e=0;e<=143;)c[e*2+1]=8,e++,v[8]++;for(;e<=255;)c[e*2+1]=9,e++,v[9]++;for(;e<=279;)c[e*2+1]=7,e++,v[7]++;for(;e<=287;)c[e*2+1]=8,e++,v[8]++;for(E(c,287,v),e=0;e<30;e++)l[e*2+1]=5,l[e*2]=C(e,5);h=new m(c,i,257,286,15),g=new m(l,a,0,30,15),_=new m([],o,0,19,7)},O=e=>{let t=0;for(;t<286;t++)e.dyn_ltree[t*2]=0;for(t=0;t<30;t++)e.dyn_dtree[t*2]=0;for(t=0;t<19;t++)e.bl_tree[t*2]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},k=e=>{e.bi_valid>8?b(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},A=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},j=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&A(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!A(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},M=(e,t,n)=>{let r,o,s=0,c,l;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,o=e.pending_buf[e.sym_buf+s++],r===0?S(e,o,t):(c=d[o],S(e,c+256+1,t),l=i[c],l!==0&&(o-=f[c],x(e,o,l)),r--,c=y(r),S(e,c,n),l=a[c],l!==0&&(r-=p[c],x(e,r,l)));while(s<e.sym_next);S(e,256,t)},N=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=573,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)j(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,j(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],T(e,t),E(n,c,e.bl_count)},P=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[34]++:e.bl_tree[36]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[32]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},F=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do S(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(S(e,17,e.bl_tree),x(e,s-3,3)):(S(e,18,e.bl_tree),x(e,s-11,7)):(a!==i&&(S(e,a,e.bl_tree),s--),S(e,16,e.bl_tree),x(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},I=e=>{let t;for(P(e,e.dyn_ltree,e.l_desc.max_code),P(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;t>=3&&e.bl_tree[s[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},L=(e,t,n,r)=>{let i;for(x(e,t-257,5),x(e,n-1,5),x(e,r-4,4),i=0;i<r;i++)x(e,e.bl_tree[s[i]*2+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,n-1)},R=e=>{let t=4093624447,n=0;for(;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(n=32;n<256;n++)if(e.dyn_ltree[n*2]!==0)return 1;return 0},z=!1,B=e=>{z||=(D(),!0),e.l_desc=new v(e.dyn_ltree,h),e.d_desc=new v(e.dyn_dtree,g),e.bl_desc=new v(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,O(e)},V=(e,t,n,r)=>{x(e,0+ +!!r,3),k(e),b(e,n),b(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var H={_tr_init:B,_tr_stored_block:V,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=R(e)),N(e,e.l_desc),N(e,e.d_desc),o=I(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?V(e,t,n,r):e.strategy===4||a===i?(x(e,2+ +!!r,3),M(e,c,l)):(x(e,4+ +!!r,3),L(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),M(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&k(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(d[n]+256+1)*2]++,e.dyn_dtree[y(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{x(e,2,3),S(e,256,c),w(e)}},ee=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};let te=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var U=(e,t,n,r)=>{let i=te,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},W={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`},G={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_MEM_ERROR:-4,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};let{_tr_init:ne,_tr_stored_block:re,_tr_flush_block:ie,_tr_tally:ae,_tr_align:oe}=H,{Z_NO_FLUSH:K,Z_PARTIAL_FLUSH:se,Z_FULL_FLUSH:q,Z_FINISH:J,Z_BLOCK:ce,Z_OK:le,Z_STREAM_END:ue,Z_STREAM_ERROR:Y,Z_DATA_ERROR:de,Z_BUF_ERROR:fe,Z_DEFAULT_COMPRESSION:pe,Z_FILTERED:X,Z_HUFFMAN_ONLY:me,Z_RLE:he,Z_FIXED:ge,Z_DEFAULT_STRATEGY:Z,Z_UNKNOWN:_e,Z_DEFLATED:ve}=G,ye=(e,t)=>(e.msg=W[t],t),be=e=>e*2-(e>4?9:0),xe=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Se=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Ce=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,we=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Te=(e,t)=>{ie(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,we(e.strm)},Q=(e,t)=>{e.pending_buf[e.pending++]=t},Ee=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},$=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=ee(e.adler,t,i,n):e.state.wrap===2&&(e.adler=U(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},De=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+258,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,l[i+o]===m&&l[i+o-1]===p&&l[i]===l[r]&&l[++i]===l[r+1]){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=258-(f-r),r=f-258,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},Oe=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Se(e),r+=t),e.strm.avail_in===0)break;if(n=$(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ce(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ce(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&e.strm.avail_in!==0)},ke=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==J||t===K||r!==i+e.strm.avail_in)))break;o=+(t===J&&r===i+e.strm.avail_in),re(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,we(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&($(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==K&&t!==J&&e.strm.avail_in===0&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&($(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===J)&&t!==K&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===J&&e.strm.avail_in===0&&r===i),re(e,e.block_start,r,o),e.block_start+=r,we(e.strm)),o?3:1)},Ae=(e,t)=>{let n,r;for(;;){if(e.lookahead<262){if(Oe(e),e.lookahead<262&&t===K)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(e.ins_h=Ce(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-262&&(e.match_length=De(e,n)),e.match_length>=3){if(r=ae(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=Ce(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ce(e,e.ins_h,e.window[e.strstart+1])}else r=ae(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Te(e,!1),e.strm.avail_out===0))return 1}return e.insert=e.strstart<2?e.strstart:2,t===J?(Te(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(Te(e,!1),e.strm.avail_out===0)?1:2},je=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<262){if(Oe(e),e.lookahead<262&&t===K)return 1;if(e.lookahead===0)break}if(n=0,e.lookahead>=3&&(e.ins_h=Ce(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=De(e,n),e.match_length<=5&&(e.strategy===X||e.match_length===3&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=ae(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ce(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Te(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if(r=ae(e,0,e.window[e.strstart-1]),r&&Te(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=ae(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<2?e.strstart:2,t===J?(Te(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(Te(e,!1),e.strm.avail_out===0)?1:2},Me=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=258){if(Oe(e),e.lookahead<=258&&t===K)return 1;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+258;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=ae(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ae(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Te(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===J?(Te(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(Te(e,!1),e.strm.avail_out===0)?1:2},Ne=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Oe(e),e.lookahead===0)){if(t===K)return 1;break}if(e.match_length=0,n=ae(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Te(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===J?(Te(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(Te(e,!1),e.strm.avail_out===0)?1:2};function Pe(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}let Fe=[new Pe(0,0,0,0,ke),new Pe(4,4,8,4,Ae),new Pe(4,5,16,8,Ae),new Pe(4,6,32,32,Ae),new Pe(4,4,16,16,je),new Pe(8,16,32,32,je),new Pe(8,16,128,128,je),new Pe(8,32,128,256,je),new Pe(32,128,258,1024,je),new Pe(32,258,258,4096,je)],Ie=e=>{e.window_size=2*e.w_size,xe(e.head),e.max_lazy_match=Fe[e.level].max_lazy,e.good_match=Fe[e.level].good_length,e.nice_match=Fe[e.level].nice_length,e.max_chain_length=Fe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0};function Le(){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=ve,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=/* @__PURE__ */ new Uint16Array(1146),this.dyn_dtree=/* @__PURE__ */ new Uint16Array(122),this.bl_tree=/* @__PURE__ */ new Uint16Array(78),xe(this.dyn_ltree),xe(this.dyn_dtree),xe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=/* @__PURE__ */ new Uint16Array(16),this.heap=/* @__PURE__ */ new Uint16Array(573),xe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=/* @__PURE__ */ new Uint16Array(573),xe(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let Re=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==42&&t.status!==57&&t.status!==69&&t.status!==73&&t.status!==91&&t.status!==103&&t.status!==113&&t.status!==666)},ze=e=>{if(Re(e))return ye(e,Y);e.total_in=e.total_out=0,e.data_type=_e;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?57:t.wrap?42:113,e.adler=t.wrap===2?0:1,t.last_flush=-2,ne(t),le},Be=e=>{let t=ze(e);return t===le&&Ie(e.state),t},Ve=(e,t)=>Re(e)||e.state.wrap!==2?Y:(e.state.gzhead=t,le),He=(e,t,n,r,i,a)=>{if(!e)return Y;let o=1;if(t===pe&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||n!==ve||r<8||r>15||t<0||t>9||a<0||a>ge||r===8&&o!==1)return ye(e,Y);r===8&&(r=9);let s=new Le;return e.state=s,s.strm=e,s.status=42,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,Be(e)};var Ue={deflateInit:(e,t)=>He(e,t,ve,15,8,Z),deflateInit2:He,deflateReset:Be,deflateResetKeep:ze,deflateSetHeader:Ve,deflate:(e,t)=>{if(Re(e)||t>ce||t<0)return e?ye(e,Y):Y;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===666&&t!==J)return ye(e,e.avail_out===0?fe:Y);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(we(e),e.avail_out===0)return n.last_flush=-1,le}else if(e.avail_in===0&&be(t)<=be(r)&&t!==J)return ye(e,fe);if(n.status===666&&e.avail_in!==0)return ye(e,fe);if(n.status===42&&n.wrap===0&&(n.status=113),n.status===42){let t=ve+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=me||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=32),t+=31-t%31,Ee(n,t),n.strstart!==0&&(Ee(n,e.adler>>>16),Ee(n,e.adler&65535)),e.adler=1,n.status=113,we(e),n.pending!==0)return n.last_flush=-1,le}if(n.status===57){if(e.adler=0,Q(n,31),Q(n,139),Q(n,8),n.gzhead)Q(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Q(n,n.gzhead.time&255),Q(n,n.gzhead.time>>8&255),Q(n,n.gzhead.time>>16&255),Q(n,n.gzhead.time>>24&255),Q(n,n.level===9?2:n.strategy>=me||n.level<2?4:0),Q(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Q(n,n.gzhead.extra.length&255),Q(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=U(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Q(n,0),Q(n,0),Q(n,0),Q(n,0),Q(n,0),Q(n,n.level===9?2:n.strategy>=me||n.level<2?4:0),Q(n,3),n.status=113,we(e),n.pending!==0)return n.last_flush=-1,le}if(n.status===69){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,we(e),n.pending!==0)return n.last_flush=-1,le;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(n.status===73){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t)),we(e),n.pending!==0)return n.last_flush=-1,le;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,Q(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=91}if(n.status===91){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t)),we(e),n.pending!==0)return n.last_flush=-1,le;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,Q(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=U(e.adler,n.pending_buf,n.pending-t,t))}n.status=103}if(n.status===103){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(we(e),n.pending!==0))return n.last_flush=-1,le;Q(n,e.adler&255),Q(n,e.adler>>8&255),e.adler=0}if(n.status=113,we(e),n.pending!==0)return n.last_flush=-1,le}if(e.avail_in!==0||n.lookahead!==0||t!==K&&n.status!==666){let r=n.level===0?ke(n,t):n.strategy===me?Ne(n,t):n.strategy===he?Me(n,t):Fe[n.level].func(n,t);if((r===3||r===4)&&(n.status=666),r===1||r===3)return e.avail_out===0&&(n.last_flush=-1),le;if(r===2&&(t===se?oe(n):t!==ce&&(re(n,0,0,!1),t===q&&(xe(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),we(e),e.avail_out===0))return n.last_flush=-1,le}return t===J?n.wrap<=0?ue:(n.wrap===2?(Q(n,e.adler&255),Q(n,e.adler>>8&255),Q(n,e.adler>>16&255),Q(n,e.adler>>24&255),Q(n,e.total_in&255),Q(n,e.total_in>>8&255),Q(n,e.total_in>>16&255),Q(n,e.total_in>>24&255)):(Ee(n,e.adler>>>16),Ee(n,e.adler&65535)),we(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?ue:le):le},deflateEnd:e=>{if(Re(e))return Y;let t=e.state.status;return e.state=null,t===113?ye(e,de):le},deflateSetDictionary:(e,t)=>{let n=t.length;if(Re(e))return Y;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==42||r.lookahead)return Y;if(i===1&&(e.adler=ee(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(xe(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Oe(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do r.ins_h=Ce(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=2,Oe(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,le},deflateInfo:`pako deflate (from Nodeca project)`};let We=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ge={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)We(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}};let Ke=!0;try{String.fromCharCode.apply(null,/* @__PURE__ */ new Uint8Array(1))}catch{Ke=!1}let qe=/* @__PURE__ */ new Uint8Array(256);for(let e=0;e<256;e++)qe[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;qe[254]=qe[254]=1;var Je=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};let Ye=(e,t)=>{if(t<65534&&e.subarray&&Ke)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var Xe={string2buf:Je,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=qe[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return Ye(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+qe[e[n]]>t?n:t}};function Ze(){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}var Qe=Ze;let $e=Object.prototype.toString,{Z_NO_FLUSH:et,Z_SYNC_FLUSH:tt,Z_FULL_FLUSH:nt,Z_FINISH:rt,Z_OK:it,Z_STREAM_END:at,Z_DEFAULT_COMPRESSION:ot,Z_DEFAULT_STRATEGY:st,Z_DEFLATED:ct}=G;function lt(e){this.options=Ge.assign({level:ot,method:ct,chunkSize:16384,windowBits:15,memLevel:8,strategy:st},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new Qe,this.strm.avail_out=0;let n=Ue.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==it)throw Error(W[n]);if(t.header&&Ue.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?Xe.string2buf(t.dictionary):$e.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=Ue.deflateSetDictionary(this.strm,e),n!==it)throw Error(W[n]);this._dict_set=!0}}lt.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?rt:et,n.input=typeof e==`string`?Xe.string2buf(e):$e.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===tt||a===nt)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ue.deflate(n,a),i===at)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ue.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===it;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},lt.prototype.onData=function(e){this.chunks.push(e)},lt.prototype.onEnd=function(e){e===it&&(this.result=Ge.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ut(e,t){let n=new lt(t);if(n.push(e,!0),n.err)throw n.msg||W[n.err];return n.result}function dt(e,t){return t||={},t.raw=!0,ut(e,t)}function ft(e,t){return t||={},t.gzip=!0,ut(e,t)}var pt={Deflate:lt,deflate:ut,deflateRaw:dt,gzip:ft,constants:G};let mt=16209;var ht=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=mt;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=mt;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=mt;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=16191;break top}else{e.msg=`invalid literal/length code`,E.mode=mt;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p};let gt=new Uint16Array([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]),_t=new Uint8Array([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]),vt=new Uint16Array([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]),yt=new Uint8Array([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]);var bt=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=/* @__PURE__ */ new Uint16Array(16),D=/* @__PURE__ */ new Uint16Array(16),O=null,k,A,j;for(l=0;l<=15;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=15;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=15;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===0||f!==1))return-1;for(D[1]=0,l=1;l<15;l++)D[l+1]=D[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[D[t[n+u]]++]=u);if(e===0?(w=O=o,T=20):e===1?(w=gt,O=_t,T=257):(w=vt,O=yt,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===1&&_>852||e===2&&_>592)return 1;for(;;){k=l-h,o[u]+1<T?(A=0,j=o[u]):o[u]>=T?(A=O[o[u]-T],j=w[o[u]-T]):(A=96,j=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=k<<24|A<<16|j|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===1&&_>852||e===2&&_>592)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0};let{Z_FINISH:xt,Z_BLOCK:St,Z_TREES:Ct,Z_OK:wt,Z_STREAM_END:Tt,Z_NEED_DICT:Et,Z_STREAM_ERROR:Dt,Z_DATA_ERROR:Ot,Z_MEM_ERROR:kt,Z_BUF_ERROR:At,Z_DEFLATED:jt}=G,Mt=16180,Nt=16181,Pt=16182,Ft=16183,It=16184,Lt=16185,Rt=16186,zt=16187,Bt=16188,Vt=16189,Ht=16190,Ut=16191,Wt=16192,Gt=16193,Kt=16194,qt=16195,Jt=16196,Yt=16197,Xt=16198,Zt=16199,Qt=16200,$t=16201,en=16202,tn=16203,nn=16204,rn=16205,an=16206,on=16207,sn=16208,cn=16209,ln=16210,un=16211,dn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function fn(){this.strm=null,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=/* @__PURE__ */ new Uint16Array(320),this.work=/* @__PURE__ */ new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let pn=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<Mt||t.mode>un)},mn=e=>{if(pn(e))return Dt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=Mt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=/* @__PURE__ */ new Int32Array(852),t.distcode=t.distdyn=/* @__PURE__ */ new Int32Array(592),t.sane=1,t.back=-1,wt},hn=e=>{if(pn(e))return Dt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,mn(e)},gn=(e,t)=>{let n;if(pn(e))return Dt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Dt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,hn(e))},_n=(e,t)=>{if(!e)return Dt;let n=new fn;e.state=n,n.strm=e,n.window=null,n.mode=Mt;let r=gn(e,t);return r!==wt&&(e.state=null),r},vn=e=>_n(e,15),yn=!0,bn,xn,Sn=e=>{if(yn){bn=/* @__PURE__ */ new Int32Array(512),xn=/* @__PURE__ */ new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(bt(1,e.lens,0,288,bn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;bt(2,e.lens,0,32,xn,0,e.work,{bits:5}),yn=!1}e.lencode=bn,e.lenbits=9,e.distcode=xn,e.distbits=5},Cn=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var wn={inflateReset:hn,inflateReset2:gn,inflateResetKeep:mn,inflateInit:vn,inflateInit2:_n,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=/* @__PURE__ */ new Uint8Array(4),E,D,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pn(e)||!e.output||!e.input&&e.avail_in!==0)return Dt;n=e.state,n.mode===Ut&&(n.mode=Wt),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=wt;inf_leave:for(;;)switch(n.mode){case Mt:if(n.wrap===0){n.mode=Wt;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=U(n.check,T,2,0),l=0,u=0,n.mode=Nt;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=cn;break}if((l&15)!==jt){e.msg=`unknown compression method`,n.mode=cn;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=cn;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?Vt:Ut,l=0,u=0;break;case Nt:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==jt){e.msg=`unknown compression method`,n.mode=cn;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=cn;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=U(n.check,T,2,0)),l=0,u=0,n.mode=Pt;case Pt:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=U(n.check,T,4,0)),l=0,u=0,n.mode=Ft;case Ft:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=U(n.check,T,2,0)),l=0,u=0,n.mode=It;case It:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=U(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=Lt;case Lt:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=U(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=Rt;case Rt:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=U(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=zt;case zt:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=U(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=Bt;case Bt:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=cn;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ut;break;case Vt:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=dn(l),l=0,u=0,n.mode=Ht;case Ht:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Et;e.adler=n.check=1,n.mode=Ut;case Ut:if(t===St||t===Ct)break inf_leave;case Wt:if(n.last){l>>>=u&7,u-=u&7,n.mode=an;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=Gt;break;case 1:if(Sn(n),n.mode=Zt,t===Ct){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=Jt;break;case 3:e.msg=`invalid block type`,n.mode=cn}l>>>=2,u-=2;break;case Gt:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=cn;break}if(n.length=l&65535,l=0,u=0,n.mode=Kt,t===Ct)break inf_leave;case Kt:n.mode=qt;case qt:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=Ut;break;case Jt:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=cn;break}n.have=0,n.mode=Yt;case Yt:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[O[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=bt(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=cn;break}n.have=0,n.mode=Xt;case Xt:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(D=_+2;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=cn;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(D=_+3;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(D=_+7;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=cn;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===cn)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=cn;break}if(n.lenbits=9,E={bits:n.lenbits},w=bt(1,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=cn;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=bt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=cn;break}if(n.mode=Zt,t===Ct)break inf_leave;case Zt:n.mode=Qt;case Qt:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,ht(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===Ut&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=rn;break}if(v&32){n.back=-1,n.mode=Ut;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=cn;break}n.extra=v&15,n.mode=$t;case $t:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=en;case en:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=cn;break}n.offset=y,n.extra=v&15,n.mode=tn;case tn:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=cn;break}n.mode=nn;case nn:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=cn;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=Qt);break;case rn:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=Qt;break;case an:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?U(n.check,i,f,o-f):ee(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:dn(l))!==n.check){e.msg=`incorrect data check`,n.mode=cn;break}l=0,u=0}n.mode=on;case on:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=cn;break}l=0,u=0}n.mode=sn;case sn:w=Tt;break inf_leave;case cn:w=Ot;break inf_leave;case ln:return kt;case un:default:return Dt}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<cn&&(n.mode<an||t!==xt))&&Cn(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?U(n.check,i,f,e.next_out-f):ee(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Ut?128:0)+(n.mode===Zt||n.mode===Kt?256:0),(d===0&&f===0||t===xt)&&w===wt&&(w=At),w},inflateEnd:e=>{if(pn(e))return Dt;let t=e.state;return t.window&&=null,e.state=null,wt},inflateGetHeader:(e,t)=>{if(pn(e))return Dt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,wt):Dt},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return pn(e)||(r=e.state,r.wrap!==0&&r.mode!==Ht)?Dt:r.mode===Ht&&(i=1,i=ee(i,t,n,0),i!==r.check)?Ot:(a=Cn(e,t,n,n),a?(r.mode=ln,kt):(r.havedict=1,wt))},inflateInfo:`pako inflate (from Nodeca project)`};function Tn(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}var En=Tn;let Dn=Object.prototype.toString,{Z_NO_FLUSH:On,Z_FINISH:kn,Z_OK:An,Z_STREAM_END:jn,Z_NEED_DICT:Mn,Z_STREAM_ERROR:Nn,Z_DATA_ERROR:Pn,Z_MEM_ERROR:Fn}=G;function In(e){this.options=Ge.assign({chunkSize:65536,windowBits:15,to:``},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new Qe,this.strm.avail_out=0;let n=wn.inflateInit2(this.strm,t.windowBits);if(n!==An||(this.header=new En,wn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=Xe.string2buf(t.dictionary):Dn.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=wn.inflateSetDictionary(this.strm,t.dictionary),n!==An))))throw Error(W[n])}In.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?kn:On,n.input=Dn.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=wn.inflate(n,o),a===Mn&&i&&(a=wn.inflateSetDictionary(n,i),a===An?a=wn.inflate(n,o):a===Pn&&(a=Mn));n.avail_in>0&&a===jn&&n.state.wrap>0&&e[n.next_in]!==0;)wn.inflateReset(n),a=wn.inflate(n,o);switch(a){case Nn:case Pn:case Mn:case Fn:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===jn)){if(this.options.to===`string`){let e=Xe.utf8border(n.output,n.next_out),t=n.next_out-e,i=Xe.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out))}if(a!==An||s!==0){if(a===jn)return a=wn.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},In.prototype.onData=function(e){this.chunks.push(e)},In.prototype.onEnd=function(e){e===An&&(this.result=this.options.to===`string`?this.chunks.join(``):Ge.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Ln(e,t){let n=new In(t);if(n.push(e),n.err)throw n.msg||W[n.err];return n.result}function Rn(e,t){return t||={},t.raw=!0,Ln(e,t)}var zn={Inflate:In,inflate:Ln,inflateRaw:Rn,ungzip:Ln,constants:G};let{Deflate:Bn,deflate:Vn,deflateRaw:Hn,gzip:Un}=pt,{Inflate:Wn,inflate:Gn,inflateRaw:Kn,ungzip:qn}=zn;var Jn=Bn,Yn=Vn,Xn=Hn,Zn=Un,Qn=Wn,$n=Gn,er=Kn,tr=qn,nr=G,rr={Deflate:Jn,deflate:Yn,deflateRaw:Xn,gzip:Zn,Inflate:Qn,inflate:$n,inflateRaw:er,ungzip:tr,constants:nr}}),"./node_modules/performance-now/lib/performance-now.js":(function(e){
/*!*************************************************************!*\
!*** ./node_modules/performance-now/lib/performance-now.js ***!
\*************************************************************/
(function(){var t,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?e.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},n=process.hrtime,t=function(){var e=n();return e[0]*1e9+e[1]},i=t(),o=process.uptime()*1e9,a=i-o):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(/* @__PURE__ */ new Date()).getTime()-r},r=(/* @__PURE__ */ new Date()).getTime())}).call(this)}),"./node_modules/raf/index.js":(function(e,t,n){
/*!***********************************!*\
!*** ./node_modules/raf/index.js ***!
\***********************************/
/*! performance-now */
for(var r=n(`./node_modules/performance-now/lib/performance-now.js`),i=typeof window>`u`?global:window,a=[`moz`,`webkit`],o=`AnimationFrame`,s=i[`request`+o],c=i[`cancel`+o]||i[`cancelRequest`+o],l=0;!s&&l<a.length;l++)s=i[a[l]+`Request`+o],c=i[a[l]+`Cancel`+o]||i[a[l]+`CancelRequest`+o];if(!s||!c){var u=0,d=0,f=[],p=1e3/60;s=function(e){if(f.length===0){var t=r(),n=Math.max(0,p-(t-u));u=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||=i,e.requestAnimationFrame=s,e.cancelAnimationFrame=c}}),"./node_modules/rgbcolor/index.js":(function(e){
/*!****************************************!*\
!*** ./node_modules/rgbcolor/index.js ***!
\****************************************/
e.exports=function(e){this.ok=!1,this.alpha=1,e.charAt(0)==`#`&&(e=e.substr(1,6)),e=e.replace(/ /g,``),e=e.toLowerCase();var t={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`ff0000`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:[`rgba(123, 234, 45, 0.8)`,`rgba(255,234,245,1.0)`],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:[`rgb(123, 234, 45)`,`rgb(255,234,245)`],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toRGBA=function(){return`rgba(`+this.r+`, `+this.g+`, `+this.b+`, `+this.alpha+`)`},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n},this.getHelpXML=function(){for(var e=[],r=0;r<n.length;r++)for(var i=n[r].example,a=0;a<i.length;a++)e[e.length]=i[a];for(var o in t)e[e.length]=o;var s=document.createElement(`ul`);s.setAttribute(`id`,`rgbcolor-examples`);for(var r=0;r<e.length;r++)try{var c=document.createElement(`li`),l=new RGBColor(e[r]),u=document.createElement(`div`);u.style.cssText=`margin: 3px; border: 1px solid black; background:`+l.toHex()+`; color:`+l.toHex(),u.appendChild(document.createTextNode(`test`));var d=document.createTextNode(` `+e[r]+` -> `+l.toRGB()+` -> `+l.toHex());c.appendChild(u),c.appendChild(d),s.appendChild(c)}catch{}return s}}}),"./node_modules/stackblur-canvas/dist/stackblur-es.js":(function(e,t,n){
/*!************************************************************!*\
!*** ./node_modules/stackblur-canvas/dist/stackblur-es.js ***!
\************************************************************/
n.r(t),n.d(t,{BlurStack:function(){return p},canvasRGB:function(){return d},canvasRGBA:function(){return l},image:function(){return s},imageDataRGB:function(){return f},imageDataRGBA:function(){return u}});function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],o=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function s(e,t,n,r,i,a){if(typeof e==`string`&&(e=document.getElementById(e)),e&&(Object.prototype.toString.call(e).slice(8,-1)!==`HTMLImageElement`||`naturalWidth`in e)){var o=i?`offset`:`natural`,s=e[o+`Width`],c=e[o+`Height`];if(Object.prototype.toString.call(e).slice(8,-1)===`ImageBitmap`&&(s=e.width,c=e.height),typeof t==`string`&&(t=document.getElementById(t)),t&&`getContext`in t){a||(t.style.width=s+`px`,t.style.height=c+`px`),t.width=s,t.height=c;var u=t.getContext(`2d`);u.clearRect(0,0,s,c),u.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,s,c),!(isNaN(n)||n<1)&&(r?l(t,0,0,s,c,n):d(t,0,0,s,c,n))}}}function c(e,t,n,i,a){if(typeof e==`string`&&(e=document.getElementById(e)),!e||r(e)!==`object`||!(`getContext`in e))throw TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext(`2d`);try{return o.getImageData(t,n,i,a)}catch(e){throw Error(`unable to access image data: `+e)}}function l(e,t,n,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=c(e,t,n,r,i);o=u(o,t,n,r,i,a),e.getContext(`2d`).putImageData(o,t,n)}}function u(e,t,n,r,i,s){for(var c=e.data,l=2*s+1,u=r-1,d=i-1,f=s+1,m=f*(f+1)/2,h=new p,g=h,_,v=1;v<l;v++)g=g.next=new p,v===f&&(_=g);g.next=h;for(var y=null,b=null,x=0,S=0,C=a[s],w=o[s],T=0;T<i;T++){g=h;for(var E=c[S],D=c[S+1],O=c[S+2],k=c[S+3],A=0;A<f;A++)g.r=E,g.g=D,g.b=O,g.a=k,g=g.next;for(var j=0,M=0,N=0,P=0,F=f*E,I=f*D,L=f*O,R=f*k,z=m*E,B=m*D,V=m*O,H=m*k,ee=1;ee<f;ee++){var te=S+((u<ee?u:ee)<<2),U=c[te],W=c[te+1],G=c[te+2],ne=c[te+3],re=f-ee;z+=(g.r=U)*re,B+=(g.g=W)*re,V+=(g.b=G)*re,H+=(g.a=ne)*re,j+=U,M+=W,N+=G,P+=ne,g=g.next}y=h,b=_;for(var ie=0;ie<r;ie++){var ae=H*C>>>w;if(c[S+3]=ae,ae!==0){var oe=255/ae;c[S]=(z*C>>>w)*oe,c[S+1]=(B*C>>>w)*oe,c[S+2]=(V*C>>>w)*oe}else c[S]=c[S+1]=c[S+2]=0;z-=F,B-=I,V-=L,H-=R,F-=y.r,I-=y.g,L-=y.b,R-=y.a;var K=ie+s+1;K=x+(K<u?K:u)<<2,j+=y.r=c[K],M+=y.g=c[K+1],N+=y.b=c[K+2],P+=y.a=c[K+3],z+=j,B+=M,V+=N,H+=P,y=y.next;var se=b,q=se.r,J=se.g,ce=se.b,le=se.a;F+=q,I+=J,L+=ce,R+=le,j-=q,M-=J,N-=ce,P-=le,b=b.next,S+=4}x+=r}for(var ue=0;ue<r;ue++){S=ue<<2;var Y=c[S],de=c[S+1],fe=c[S+2],pe=c[S+3],X=f*Y,me=f*de,he=f*fe,ge=f*pe,Z=m*Y,_e=m*de,ve=m*fe,ye=m*pe;g=h;for(var be=0;be<f;be++)g.r=Y,g.g=de,g.b=fe,g.a=pe,g=g.next;for(var xe=r,Se=0,Ce=0,we=0,Te=0,Q=1;Q<=s;Q++){S=xe+ue<<2;var Ee=f-Q;Z+=(g.r=Y=c[S])*Ee,_e+=(g.g=de=c[S+1])*Ee,ve+=(g.b=fe=c[S+2])*Ee,ye+=(g.a=pe=c[S+3])*Ee,Te+=Y,Se+=de,Ce+=fe,we+=pe,g=g.next,Q<d&&(xe+=r)}S=ue,y=h,b=_;for(var $=0;$<i;$++){var De=S<<2;c[De+3]=pe=ye*C>>>w,pe>0?(pe=255/pe,c[De]=(Z*C>>>w)*pe,c[De+1]=(_e*C>>>w)*pe,c[De+2]=(ve*C>>>w)*pe):c[De]=c[De+1]=c[De+2]=0,Z-=X,_e-=me,ve-=he,ye-=ge,X-=y.r,me-=y.g,he-=y.b,ge-=y.a,De=ue+((De=$+f)<d?De:d)*r<<2,Z+=Te+=y.r=c[De],_e+=Se+=y.g=c[De+1],ve+=Ce+=y.b=c[De+2],ye+=we+=y.a=c[De+3],y=y.next,X+=Y=b.r,me+=de=b.g,he+=fe=b.b,ge+=pe=b.a,Te-=Y,Se-=de,Ce-=fe,we-=pe,b=b.next,S+=r}}return e}function d(e,t,n,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=c(e,t,n,r,i);o=f(o,t,n,r,i,a),e.getContext(`2d`).putImageData(o,t,n)}}function f(e,t,n,r,i,s){for(var c=e.data,l=2*s+1,u=r-1,d=i-1,f=s+1,m=f*(f+1)/2,h=new p,g=h,_,v=1;v<l;v++)g=g.next=new p,v===f&&(_=g);g.next=h;for(var y=null,b=null,x=a[s],S=o[s],C,w,T=0,E=0,D=0;D<i;D++){var O=c[E],k=c[E+1],A=c[E+2],j=f*O,M=f*k,N=f*A,P=m*O,F=m*k,I=m*A;g=h;for(var L=0;L<f;L++)g.r=O,g.g=k,g.b=A,g=g.next;for(var R=0,z=0,B=0,V=1;V<f;V++)C=E+((u<V?u:V)<<2),P+=(g.r=O=c[C])*(w=f-V),F+=(g.g=k=c[C+1])*w,I+=(g.b=A=c[C+2])*w,R+=O,z+=k,B+=A,g=g.next;y=h,b=_;for(var H=0;H<r;H++)c[E]=P*x>>>S,c[E+1]=F*x>>>S,c[E+2]=I*x>>>S,P-=j,F-=M,I-=N,j-=y.r,M-=y.g,N-=y.b,C=T+((C=H+s+1)<u?C:u)<<2,R+=y.r=c[C],z+=y.g=c[C+1],B+=y.b=c[C+2],P+=R,F+=z,I+=B,y=y.next,j+=O=b.r,M+=k=b.g,N+=A=b.b,R-=O,z-=k,B-=A,b=b.next,E+=4;T+=r}for(var ee=0;ee<r;ee++){E=ee<<2;var te=c[E],U=c[E+1],W=c[E+2],G=f*te,ne=f*U,re=f*W,ie=m*te,ae=m*U,oe=m*W;g=h;for(var K=0;K<f;K++)g.r=te,g.g=U,g.b=W,g=g.next;for(var se=0,q=0,J=0,ce=1,le=r;ce<=s;ce++)E=le+ee<<2,ie+=(g.r=te=c[E])*(w=f-ce),ae+=(g.g=U=c[E+1])*w,oe+=(g.b=W=c[E+2])*w,se+=te,q+=U,J+=W,g=g.next,ce<d&&(le+=r);E=ee,y=h,b=_;for(var ue=0;ue<i;ue++)C=E<<2,c[C]=ie*x>>>S,c[C+1]=ae*x>>>S,c[C+2]=oe*x>>>S,ie-=G,ae-=ne,oe-=re,G-=y.r,ne-=y.g,re-=y.b,C=ee+((C=ue+f)<d?C:d)*r<<2,ie+=se+=y.r=c[C],ae+=q+=y.g=c[C+1],oe+=J+=y.b=c[C+2],y=y.next,G+=te=b.r,ne+=U=b.g,re+=W=b.b,se-=te,q-=U,J-=W,b=b.next,E+=r}return e}var p=function e(){i(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}),"./node_modules/svg-pathdata/lib/SVGPathData.module.js":(function(e,t,n){
/*!*************************************************************!*\
!*** ./node_modules/svg-pathdata/lib/SVGPathData.module.js ***!
\*************************************************************/
n.r(t),n.d(t,{COMMAND_ARG_COUNTS:function(){return C},SVGPathData:function(){return S},SVGPathDataParser:function(){return x},SVGPathDataTransformer:function(){return d},encodeSVGPath:function(){return a}});
/*! *****************************************************************************
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 r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function a(e){var t=``;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===S.CLOSE_PATH)t+=`z`;else if(r.type===S.HORIZ_LINE_TO)t+=(r.relative?`h`:`H`)+r.x;else if(r.type===S.VERT_LINE_TO)t+=(r.relative?`v`:`V`)+r.y;else if(r.type===S.MOVE_TO)t+=(r.relative?`m`:`M`)+r.x+` `+r.y;else if(r.type===S.LINE_TO)t+=(r.relative?`l`:`L`)+r.x+` `+r.y;else if(r.type===S.CURVE_TO)t+=(r.relative?`c`:`C`)+r.x1+` `+r.y1+` `+r.x2+` `+r.y2+` `+r.x+` `+r.y;else if(r.type===S.SMOOTH_CURVE_TO)t+=(r.relative?`s`:`S`)+r.x2+` `+r.y2+` `+r.x+` `+r.y;else if(r.type===S.QUAD_TO)t+=(r.relative?`q`:`Q`)+r.x1+` `+r.y1+` `+r.x+` `+r.y;else if(r.type===S.SMOOTH_QUAD_TO)t+=(r.relative?`t`:`T`)+r.x+` `+r.y;else{if(r.type!==S.ARC)throw Error(`Unexpected command type "`+r.type+`" at index `+n+`.`);t+=(r.relative?`a`:`A`)+r.rX+` `+r.rY+` `+r.xRot+` `+ +r.lArcFlag+` `+ +r.sweepFlag+` `+r.x+` `+r.y}}return t}function o(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function s(){for(var e=[...arguments],t=0;t<e.length;t++)if(typeof e[t]!=`number`)throw Error(`assertNumbers arguments[`+t+`] is not a number. `+typeof e[t]+` == typeof `+e[t]);return!0}var c=Math.PI;function l(e,t,n){e.lArcFlag=e.lArcFlag===0?0:1,e.sweepFlag=e.sweepFlag===0?0:1;var r=e.rX,i=e.rY,a=e.x,s=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var l=o([(t-a)/2,(n-s)/2],-e.xRot/180*c),u=l[0],d=l[1],f=u**2/r**2+d**2/i**2;1<f&&(r*=Math.sqrt(f),i*=Math.sqrt(f)),e.rX=r,e.rY=i;var p=r**2*d**2+i**2*u**2,m=(e.lArcFlag===e.sweepFlag?-1:1)*Math.sqrt(Math.max(0,(r**2*i**2-p)/p)),h=r*d/i*m,g=-i*u/r*m,_=o([h,g],e.xRot/180*c);e.cX=_[0]+(t+a)/2,e.cY=_[1]+(n+s)/2,e.phi1=Math.atan2((d-g)/i,(u-h)/r),e.phi2=Math.atan2((-d-g)/i,(-u-h)/r),e.sweepFlag===0&&e.phi2>e.phi1&&(e.phi2-=2*c),e.sweepFlag===1&&e.phi2<e.phi1&&(e.phi2+=2*c),e.phi1*=180/c,e.phi2*=180/c}function u(e,t,n){s(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var d,f=Math.PI/180;function p(e,t,n){return(1-n)*e+n*t}function m(e,t,n,r){return e+Math.cos(r/180*c)*t+Math.sin(r/180*c)*n}function h(e,t,n,r){var i=1e-6,a=t-e,o=n-t,s=3*a+3*(r-n)-6*o,c=6*(o-a),l=3*a;return Math.abs(s)<i?[-l/c]:function(e,t,n){n===void 0&&(n=1e-6);var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]}(c/s,l/s,i)}function g(e,t,n,r,i){var a=1-i;return e*(a*a*a)+t*(3*a*a*i)+n*(3*a*i*i)+r*(i*i*i)}(function(e){function t(){return i((function(e,t,n){return e.relative&&=(e.x1!==void 0&&(e.x1+=t),e.y1!==void 0&&(e.y1+=n),e.x2!==void 0&&(e.x2+=t),e.y2!==void 0&&(e.y2+=n),e.x!==void 0&&(e.x+=t),e.y!==void 0&&(e.y+=n),!1),e}))}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return i((function(i,a,o){return i.type&S.SMOOTH_CURVE_TO&&(i.type=S.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?o:t,i.x1=i.relative?a-e:2*a-e,i.y1=i.relative?o-t:2*o-t),i.type&S.CURVE_TO?(e=i.relative?a+i.x2:i.x2,t=i.relative?o+i.y2:i.y2):(e=NaN,t=NaN),i.type&S.SMOOTH_QUAD_TO&&(i.type=S.QUAD_TO,n=isNaN(n)?a:n,r=isNaN(r)?o:r,i.x1=i.relative?a-n:2*a-n,i.y1=i.relative?o-r:2*o-r),i.type&S.QUAD_TO?(n=i.relative?a+i.x1:i.x1,r=i.relative?o+i.y1:i.y1):(n=NaN,r=NaN),i}))}function r(){var e=NaN,t=NaN;return i((function(n,r,i){if(n.type&S.SMOOTH_QUAD_TO&&(n.type=S.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&S.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var a=n.x1,o=n.y1;n.type=S.CURVE_TO,n.x1=((n.relative?0:r)+2*a)/3,n.y1=((n.relative?0:i)+2*o)/3,n.x2=(n.x+2*a)/3,n.y2=(n.y+2*o)/3}else e=NaN,t=NaN;return n}))}function i(e){var t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type&S.MOVE_TO))throw Error(`path must start with moveto`);var o=e(a,t,n,r,i);return a.type&S.CLOSE_PATH&&(t=r,n=i),a.x!==void 0&&(t=a.relative?t+a.x:a.x),a.y!==void 0&&(n=a.relative?n+a.y:a.y),a.type&S.MOVE_TO&&(r=t,i=n),o}}function a(e,t,n,r,a,o){return s(e,t,n,r,a,o),i((function(i,s,c,l){var u=i.x1,d=i.x2,f=i.relative&&!isNaN(l),p=i.x===void 0?f?0:s:i.x,m=i.y===void 0?f?0:c:i.y;function h(e){return e*e}i.type&S.HORIZ_LINE_TO&&t!==0&&(i.type=S.LINE_TO,i.y=i.relative?0:c),i.type&S.VERT_LINE_TO&&n!==0&&(i.type=S.LINE_TO,i.x=i.relative?0:s),i.x!==void 0&&(i.x=i.x*e+m*n+(f?0:a)),i.y!==void 0&&(i.y=p*t+i.y*r+(f?0:o)),i.x1!==void 0&&(i.x1=i.x1*e+i.y1*n+(f?0:a)),i.y1!==void 0&&(i.y1=u*t+i.y1*r+(f?0:o)),i.x2!==void 0&&(i.x2=i.x2*e+i.y2*n+(f?0:a)),i.y2!==void 0&&(i.y2=d*t+i.y2*r+(f?0:o));var g=e*r-t*n;if(i.xRot!==void 0&&(e!==1||t!==0||n!==0||r!==1)){if(g===0)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=S.LINE_TO;else{var _=i.xRot*Math.PI/180,v=Math.sin(_),y=Math.cos(_),b=1/h(i.rX),x=1/h(i.rY),C=h(y)*b+h(v)*x,w=2*v*y*(b-x),T=h(v)*b+h(y)*x,E=C*r*r-w*t*r+T*t*t,D=w*(e*r+t*n)-2*(C*n*r+T*e*t),O=C*n*n-w*e*n+T*e*e,k=(Math.atan2(D,E-O)+Math.PI)%Math.PI/2,A=Math.sin(k),j=Math.cos(k);i.rX=Math.abs(g)/Math.sqrt(E*h(j)+D*A*j+O*h(A)),i.rY=Math.abs(g)/Math.sqrt(E*h(A)-D*A*j+O*h(j)),i.xRot=180*k/Math.PI}}return i.sweepFlag!==void 0&&0>g&&(i.sweepFlag=+!i.sweepFlag),i}))}function c(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return e===void 0&&(e=0x9184e72a000),s(e),function(e){return e.x1!==void 0&&(e.x1=t(e.x1)),e.y1!==void 0&&(e.y1=t(e.y1)),e.x2!==void 0&&(e.x2=t(e.x2)),e.y2!==void 0&&(e.y2=t(e.y2)),e.x!==void 0&&(e.x=t(e.x)),e.y!==void 0&&(e.y=t(e.y)),e.rX!==void 0&&(e.rX=t(e.rX)),e.rY!==void 0&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,n){return e.relative||=(e.x1!==void 0&&(e.x1-=t),e.y1!==void 0&&(e.y1-=n),e.x2!==void 0&&(e.x2-=t),e.y2!==void 0&&(e.y2-=n),e.x!==void 0&&(e.x-=t),e.y!==void 0&&(e.y-=n),!0),e}))},e.NORMALIZE_HVZ=function(e,t,n){return e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),i((function(r,i,a,o,s){if(isNaN(o)&&!(r.type&S.MOVE_TO))throw Error(`path must start with moveto`);return t&&r.type&S.HORIZ_LINE_TO&&(r.type=S.LINE_TO,r.y=r.relative?0:a),n&&r.type&S.VERT_LINE_TO&&(r.type=S.LINE_TO,r.x=r.relative?0:i),e&&r.type&S.CLOSE_PATH&&(r.type=S.LINE_TO,r.x=r.relative?o-i:o,r.y=r.relative?s-a:s),r.type&S.ARC&&(r.rX===0||r.rY===0)&&(r.type=S.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){e===void 0&&(e=0),s(e);var t=NaN,n=NaN,r=NaN,a=NaN;return i((function(i,o,s,c,l){var u=Math.abs,d=!1,f=0,p=0;if(i.type&S.SMOOTH_CURVE_TO&&(f=isNaN(t)?0:o-t,p=isNaN(n)?0:s-n),i.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(t=i.relative?o+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(t=NaN,n=NaN),i.type&S.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,a=isNaN(a)?s:2*s-a):i.type&S.QUAD_TO?(r=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(r=NaN,a=NaN),i.type&S.LINE_COMMANDS||i.type&S.ARC&&(i.rX===0||i.rY===0||!i.lArcFlag)||i.type&S.CURVE_TO||i.type&S.SMOOTH_CURVE_TO||i.type&S.QUAD_TO||i.type&S.SMOOTH_QUAD_TO){var m=i.x===void 0?0:i.relative?i.x:i.x-o,h=i.y===void 0?0:i.relative?i.y:i.y-s;f=isNaN(r)?i.x1===void 0?f:i.relative?i.x:i.x1-o:r-o,p=isNaN(a)?i.y1===void 0?p:i.relative?i.y:i.y1-s:a-s;var g=i.x2===void 0?0:i.relative?i.x:i.x2-o,_=i.y2===void 0?0:i.relative?i.y:i.y2-s;u(m)<=e&&u(h)<=e&&u(f)<=e&&u(p)<=e&&u(g)<=e&&u(_)<=e&&(d=!0)}return i.type&S.CLOSE_PATH&&u(o-c)<=e&&u(s-l)<=e&&(d=!0),d?[]:i}))},e.MATRIX=a,e.ROTATE=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0),s(e,t,n);var r=Math.sin(e),i=Math.cos(e);return a(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return t===void 0&&(t=0),s(e,t),a(1,0,0,1,e,t)},e.SCALE=function(e,t){return t===void 0&&(t=e),s(e,t),a(e,0,0,t,0,0)},e.SKEW_X=function(e){return s(e),a(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return s(e),a(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),s(e),a(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),s(e),a(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,n){return S.ARC===e.type?function(e,t,n){var r,i,a,s;e.cX||l(e,t,n);for(var c=Math.min(e.phi1,e.phi2),u=Math.max(e.phi1,e.phi2)-c,d=Math.ceil(u/90),m=Array(d),h=t,g=n,_=0;_<d;_++){var v=p(e.phi1,e.phi2,_/d),y=p(e.phi1,e.phi2,(_+1)/d),b=y-v,x=4/3*Math.tan(b*f/4),C=[Math.cos(v*f)-x*Math.sin(v*f),Math.sin(v*f)+x*Math.cos(v*f)],w=C[0],T=C[1],E=[Math.cos(y*f),Math.sin(y*f)],D=E[0],O=E[1],k=[D+x*Math.sin(y*f),O-x*Math.cos(y*f)],A=k[0],j=k[1];m[_]={relative:e.relative,type:S.CURVE_TO};var M=function(t,n){var r=o([t*e.rX,n*e.rY],e.xRot),i=r[0],a=r[1];return[e.cX+i,e.cY+a]};r=M(w,T),m[_].x1=r[0],m[_].y1=r[1],i=M(A,j),m[_].x2=i[0],m[_].y2=i[1],a=M(D,O),m[_].x=a[0],m[_].y=a[1],e.relative&&(m[_].x1-=h,m[_].y1-=g,m[_].x2-=h,m[_].y2-=g,m[_].x-=h,m[_].y-=g),h=(s=[m[_].x,m[_].y])[0],g=s[1]}return m}(e,e.relative?0:t,e.relative?0:n):e}))},e.ANNOTATE_ARCS=function(){return i((function(e,t,n){return e.relative&&(t=0,n=0),S.ARC===e.type&&l(e,t,n),e}))},e.CLONE=c,e.CALCULATE_BOUNDS=function(){var e=function(e){var t={};for(var n in e)t[n]=e[n];return t},a=t(),o=r(),s=n(),c=i((function(t,n,r){var i=s(o(a(e(t))));function d(e){e>c.maxX&&(c.maxX=e),e<c.minX&&(c.minX=e)}function f(e){e>c.maxY&&(c.maxY=e),e<c.minY&&(c.minY=e)}if(i.type&S.DRAWING_COMMANDS&&(d(n),f(r)),i.type&S.HORIZ_LINE_TO&&d(i.x),i.type&S.VERT_LINE_TO&&f(i.y),i.type&S.LINE_TO&&(d(i.x),f(i.y)),i.type&S.CURVE_TO){d(i.x),f(i.y);for(var p=0,_=h(n,i.x1,i.x2,i.x);p<_.length;p++)0<(P=_[p])&&1>P&&d(g(n,i.x1,i.x2,i.x,P));for(var v=0,y=h(r,i.y1,i.y2,i.y);v<y.length;v++)0<(P=y[v])&&1>P&&f(g(r,i.y1,i.y2,i.y,P))}if(i.type&S.ARC){d(i.x),f(i.y),l(i,n,r);for(var b=i.xRot/180*Math.PI,x=Math.cos(b)*i.rX,C=Math.sin(b)*i.rX,w=-Math.sin(b)*i.rY,T=Math.cos(b)*i.rY,E=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],D=E[0],O=E[1],k=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<D?r+360:r},A=0,j=u(w,-x,0).map(k);A<j.length;A++)(P=j[A])>D&&P<O&&d(m(i.cX,x,w,P));for(var M=0,N=u(T,-C,0).map(k);M<N.length;M++){var P;(P=N[M])>D&&P<O&&f(m(i.cY,C,T,P))}}return t}));return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(d||={});var _,v=function(){function e(){}return e.prototype.round=function(e){return this.transform(d.ROUND(e))},e.prototype.toAbs=function(){return this.transform(d.TO_ABS())},e.prototype.toRel=function(){return this.transform(d.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(d.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(d.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(d.QT_TO_C())},e.prototype.aToC=function(){return this.transform(d.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(d.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(d.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(d.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(d.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,a){return this.transform(d.MATRIX(e,t,n,r,i,a))},e.prototype.skewX=function(e){return this.transform(d.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(d.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(d.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(d.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(d.ANNOTATE_ARCS())},e}(),y=function(e){return e===` `||e===` `||e===`\r`||e===`
`},b=function(e){return 48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57},x=function(e){function t(){var t=e.call(this)||this;return t.curNumber=``,t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return i(t,e),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(` `,e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw SyntaxError(`Unterminated command at the path end.`);return e},t.prototype.parse=function(e,t){var n=this;t===void 0&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var a=e[i],o=!(this.curCommandType!==S.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!==`0`&&this.curNumber!==`1`),s=b(a)&&(this.curNumber===`0`&&a===`0`||o);if(!b(a)||s){if(a!==`e`&&a!==`E`){if(a!==`-`&&a!==`+`||!this.curNumberHasExp||this.curNumberHasExpDigits){if(a!==`.`||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw SyntaxError(`Invalid number ending at `+i);if(this.curCommandType===S.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw SyntaxError(`Expected positive number, got "`+c+`" at index "`+i+`"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!==`0`&&this.curNumber!==`1`)throw SyntaxError(`Expected a flag, got "`+this.curNumber+`" at index "`+i+`"`)}this.curArgs.push(c),this.curArgs.length===C[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?r({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):S.VERT_LINE_TO===this.curCommandType?r({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?r({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?r({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?r({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&r({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber=``,this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!y(a)){if(a===`,`&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!==`+`&&a!==`-`&&a!==`.`){if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw SyntaxError(`Unterminated command at index `+i+`.`);if(!this.canParseCommandOrComma)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a!==`z`&&a!==`Z`){if(a===`h`||a===`H`)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative=a===`h`;else if(a===`v`||a===`V`)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative=a===`v`;else if(a===`m`||a===`M`)this.curCommandType=S.MOVE_TO,this.curCommandRelative=a===`m`;else if(a===`l`||a===`L`)this.curCommandType=S.LINE_TO,this.curCommandRelative=a===`l`;else if(a===`c`||a===`C`)this.curCommandType=S.CURVE_TO,this.curCommandRelative=a===`c`;else if(a===`s`||a===`S`)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative=a===`s`;else if(a===`q`||a===`Q`)this.curCommandType=S.QUAD_TO,this.curCommandRelative=a===`q`;else if(a===`t`||a===`T`)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative=a===`t`;else{if(a!==`a`&&a!==`A`)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`.`);this.curCommandType=S.ARC,this.curCommandRelative=a===`a`}}else t.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}}else this.curNumber=a,this.curNumberHasDecimal=a===`.`}}else this.curNumber+=a,this.curNumberHasDecimal=!0}else this.curNumber+=a}else this.curNumber+=a,this.curNumberHasExp=!0}else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){n===void 0&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var a=i[r],o=e(a);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},t}(v),S=function(e){function t(n){var r=e.call(this)||this;return r.commands=typeof n==`string`?t.parse(n):n,r}return i(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=d.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return a(e)},t.parse=function(e){var t=new x,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(v),C=((_={})[S.MOVE_TO]=2,_[S.LINE_TO]=2,_[S.HORIZ_LINE_TO]=1,_[S.VERT_LINE_TO]=1,_[S.CLOSE_PATH]=0,_[S.QUAD_TO]=4,_[S.SMOOTH_QUAD_TO]=2,_[S.CURVE_TO]=6,_[S.SMOOTH_CURVE_TO]=4,_[S.ARC]=7,_)}),"./src/plugin/hyperlinks.js":(function(e,t,n){
/*!**********************************!*\
!*** ./src/plugin/hyperlinks.js ***!
\**********************************/
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/es.string.link.js */
/*! core-js/modules/esnext.iterator.constructor.js */
/*! core-js/modules/esnext.iterator.for-each.js */
n.r(t),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/es.string.link.js`),n(`./node_modules/core-js/modules/esnext.iterator.constructor.js`),n(`./node_modules/core-js/modules/esnext.iterator.for-each.js`),n(
/*! core-js/modules/web.dom-collections.for-each.js */
`./node_modules/core-js/modules/web.dom-collections.for-each.js`);var r=n(
/*! ../worker.js */
`./src/worker.js`),i=n(
/*! ../utils.js */
`./src/utils.js`),a=[],o={toContainer:r.default.prototype.toContainer,toPdf:r.default.prototype.toPdf};r.default.prototype.toContainer=function(){return o.toContainer.call(this).then(function(){if(this.opt.enableLinks){var e=this.prop.container,t=e.querySelectorAll(`a`),n=(0,i.unitConvert)(e.getBoundingClientRect(),this.prop.pageSize.k);a=[],Array.prototype.forEach.call(t,function(e){for(var t=e.getClientRects(),r=0;r<t.length;r++){var o=(0,i.unitConvert)(t[r],this.prop.pageSize.k);o.left-=n.left,o.top-=n.top;var s=Math.floor(o.top/this.prop.pageSize.inner.height)+1,c=this.opt.margin[0]+o.top%this.prop.pageSize.inner.height,l=this.opt.margin[1]+o.left;a.push({page:s,top:c,left:l,clientRect:o,link:e})}},this)}})},r.default.prototype.toPdf=function(){return o.toPdf.call(this).then(function(){if(this.opt.enableLinks){a.forEach(function(e){this.prop.pdf.setPage(e.page),this.prop.pdf.link(e.left,e.top,e.clientRect.width,e.clientRect.height,{url:e.link.href})},this);var e=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(e)}})}}),"./src/plugin/jspdf-plugin.js":(function(e,t,n){
/*!************************************!*\
!*** ./src/plugin/jspdf-plugin.js ***!
\************************************/
/*! core-js/modules/es.symbol.js */
/*! core-js/modules/es.symbol.description.js */
/*! core-js/modules/es.symbol.iterator.js */
/*! core-js/modules/es.array.iterator.js */
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/es.string.iterator.js */
n.r(t),n(`./node_modules/core-js/modules/es.symbol.js`),n(`./node_modules/core-js/modules/es.symbol.description.js`),n(`./node_modules/core-js/modules/es.symbol.iterator.js`),n(`./node_modules/core-js/modules/es.array.iterator.js`),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/es.string.iterator.js`),n(
/*! core-js/modules/web.dom-collections.iterator.js */
`./node_modules/core-js/modules/web.dom-collections.iterator.js`);var r=n(
/*! jspdf/dist/jspdf.es.min.js */
`./node_modules/jspdf/dist/jspdf.es.min.js`);function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}r.jsPDF.getPageSize=function(e,t,n){if(i(e)===`object`){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t||=`mm`,n||=`a4`,e=(``+(e||`P`)).toLowerCase();var a=(``+n).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case`pt`:var s=1;break;case`mm`:var s=72/25.4;break;case`cm`:var s=72/2.54;break;case`in`:var s=72;break;case`px`:var s=72/96;break;case`pc`:var s=12;break;case`em`:var s=12;break;case`ex`:var s=6;break;default:throw`Invalid unit: `+t}if(o.hasOwnProperty(a))var c=o[a][1]/s,l=o[a][0]/s;else try{var c=n[1],l=n[0]}catch{throw Error(`Invalid format: `+n)}if(e===`p`||e===`portrait`){if(e=`p`,l>c){var u=l;l=c,c=u}}else if(e===`l`||e===`landscape`){if(e=`l`,c>l){var u=l;l=c,c=u}}else throw`Invalid orientation: `+e;return{width:l,height:c,unit:t,k:s}},t.default=r.jsPDF}),"./src/plugin/pagebreaks.js":(function(e,t,n){
/*!**********************************!*\
!*** ./src/plugin/pagebreaks.js ***!
\**********************************/
/*! core-js/modules/es.array.concat.js */
/*! core-js/modules/es.array.join.js */
/*! core-js/modules/es.array.slice.js */
/*! core-js/modules/es.object.keys.js */
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/esnext.iterator.constructor.js */
/*! core-js/modules/esnext.iterator.for-each.js */
n.r(t),n(`./node_modules/core-js/modules/es.array.concat.js`),n(`./node_modules/core-js/modules/es.array.join.js`),n(`./node_modules/core-js/modules/es.array.slice.js`),n(`./node_modules/core-js/modules/es.object.keys.js`),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/esnext.iterator.constructor.js`),n(`./node_modules/core-js/modules/esnext.iterator.for-each.js`),n(
/*! core-js/modules/web.dom-collections.for-each.js */
`./node_modules/core-js/modules/web.dom-collections.for-each.js`);var r=n(
/*! ../worker.js */
`./src/worker.js`),i=n(
/*! ../utils.js */
`./src/utils.js`),a={toContainer:r.default.prototype.toContainer};r.default.template.opt.pagebreak={mode:[`css`,`legacy`],before:[],after:[],avoid:[]},r.default.prototype.toContainer=function(){return a.toContainer.call(this).then(function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),r={avoidAll:n.indexOf(`avoid-all`)!==-1,css:n.indexOf(`css`)!==-1,legacy:n.indexOf(`legacy`)!==-1},a={},o=this;[`before`,`after`,`avoid`].forEach(function(t){a[t]=r.avoidAll&&t===`avoid`?[]:[].concat(o.opt.pagebreak[t]||[]),a[t].length>0&&(a[t]=Array.prototype.slice.call(e.querySelectorAll(a[t].join(`, `))))});var s=e.querySelectorAll(`.html2pdf__page-break`);s=Array.prototype.slice.call(s);var c=e.querySelectorAll(`*`);Array.prototype.forEach.call(c,function(e){var n={before:!1,after:r.legacy&&s.indexOf(e)!==-1,avoid:r.avoidAll};if(r.css){var o=window.getComputedStyle(e),c=[`always`,`page`,`left`,`right`];n={before:n.before||c.indexOf(o.breakBefore||o.pageBreakBefore)!==-1,after:n.after||c.indexOf(o.breakAfter||o.pageBreakAfter)!==-1,avoid:n.avoid||[`avoid`,`avoid-page`].indexOf(o.breakInside||o.pageBreakInside)!==-1}}Object.keys(n).forEach(function(t){n[t]=n[t]||a[t].indexOf(e)!==-1});var l=e.getBoundingClientRect();if(n.avoid&&!n.before){var u=Math.floor(l.top/t),d=Math.floor(l.bottom/t),f=Math.abs(l.bottom-l.top)/t;d!==u&&f<=1&&(n.before=!0)}if(n.before){var p=(0,i.createElement)(`div`,{style:{display:`block`,height:t-l.top%t+`px`}});e.parentNode.insertBefore(p,e)}if(n.after){var p=(0,i.createElement)(`div`,{style:{display:`block`,height:t-l.bottom%t+`px`}});e.parentNode.insertBefore(p,e.nextSibling)}})})}}),"./src/snapdom/clone.js":(function(e,t,n){
/*!******************************!*\
!*** ./src/snapdom/clone.js ***!
\******************************/
/*! core-js/modules/es.symbol.js */
/*! core-js/modules/es.symbol.description.js */
/*! core-js/modules/es.symbol.iterator.js */
/*! core-js/modules/es.array.concat.js */
/*! core-js/modules/es.array.from.js */
/*! core-js/modules/es.array.iterator.js */
/*! core-js/modules/es.array.slice.js */
/*! core-js/modules/es.function.name.js */
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/es.regexp.exec.js */
/*! core-js/modules/es.regexp.test.js */
/*! core-js/modules/es.regexp.to-string.js */
/*! core-js/modules/es.set.js */
/*! core-js/modules/es.string.iterator.js */
/*! core-js/modules/esnext.set.add-all.js */
/*! core-js/modules/esnext.set.delete-all.js */
/*! core-js/modules/esnext.set.difference.js */
/*! core-js/modules/esnext.set.every.js */
/*! core-js/modules/esnext.set.filter.js */
/*! core-js/modules/esnext.set.find.js */
/*! core-js/modules/esnext.set.intersection.js */
/*! core-js/modules/esnext.set.is-disjoint-from.js */
/*! core-js/modules/esnext.set.is-subset-of.js */
/*! core-js/modules/esnext.set.is-superset-of.js */
/*! core-js/modules/esnext.set.join.js */
/*! core-js/modules/esnext.set.map.js */
/*! core-js/modules/esnext.set.reduce.js */
/*! core-js/modules/esnext.set.some.js */
/*! core-js/modules/esnext.set.symmetric-difference.js */
/*! core-js/modules/esnext.set.union.js */
n.r(t),n.d(t,{deepCloneBasic:function(){return s}}),n(`./node_modules/core-js/modules/es.symbol.js`),n(`./node_modules/core-js/modules/es.symbol.description.js`),n(`./node_modules/core-js/modules/es.symbol.iterator.js`),n(`./node_modules/core-js/modules/es.array.concat.js`),n(`./node_modules/core-js/modules/es.array.from.js`),n(`./node_modules/core-js/modules/es.array.iterator.js`),n(`./node_modules/core-js/modules/es.array.slice.js`),n(`./node_modules/core-js/modules/es.function.name.js`),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/es.regexp.exec.js`),n(`./node_modules/core-js/modules/es.regexp.test.js`),n(`./node_modules/core-js/modules/es.regexp.to-string.js`),n(`./node_modules/core-js/modules/es.set.js`),n(`./node_modules/core-js/modules/es.string.iterator.js`),n(`./node_modules/core-js/modules/esnext.set.add-all.js`),n(`./node_modules/core-js/modules/esnext.set.delete-all.js`),n(`./node_modules/core-js/modules/esnext.set.difference.js`),n(`./node_modules/core-js/modules/esnext.set.every.js`),n(`./node_modules/core-js/modules/esnext.set.filter.js`),n(`./node_modules/core-js/modules/esnext.set.find.js`),n(`./node_modules/core-js/modules/esnext.set.intersection.js`),n(`./node_modules/core-js/modules/esnext.set.is-disjoint-from.js`),n(`./node_modules/core-js/modules/esnext.set.is-subset-of.js`),n(`./node_modules/core-js/modules/esnext.set.is-superset-of.js`),n(`./node_modules/core-js/modules/esnext.set.join.js`),n(`./node_modules/core-js/modules/esnext.set.map.js`),n(`./node_modules/core-js/modules/esnext.set.reduce.js`),n(`./node_modules/core-js/modules/esnext.set.some.js`),n(`./node_modules/core-js/modules/esnext.set.symmetric-difference.js`),n(`./node_modules/core-js/modules/esnext.set.union.js`),n(
/*! core-js/modules/web.dom-collections.iterator.js */
`./node_modules/core-js/modules/web.dom-collections.iterator.js`);function r(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||n.return==null||n.return()}finally{if(c)throw o}}}}function i(e,t){if(e){if(typeof e==`string`)return a(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){try{var n=e.currentSrc||e.src||``;if(!n)return;t.setAttribute(`src`,n),t.removeAttribute(`srcset`),t.removeAttribute(`sizes`),t.loading=`eager`,t.decoding=`sync`}catch{}}function s(e){if(!e)throw Error(`Invalid node`);var t=/* @__PURE__ */ new Set,n=null;if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if(e.tagName===`IFRAME`){var i=document.createElement(`div`);return i.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,i}if(e.tagName===`CANVAS`){var a=e.toDataURL(),c=document.createElement(`img`);return c.src=a,c.width=e.width,c.height=e.height,c}var l;try{l=e.cloneNode(!1),e.tagName===`IMG`&&o(e,l)}catch(t){throw console.error(`[Snapdom] Failed to clone node:`,e,t),t}if(e instanceof HTMLTextAreaElement){l.textContent=e.value,l.value=e.value;var u=e.getBoundingClientRect();return l.style.boxSizing=`border-box`,l.style.width=`${u.width}px`,l.style.height=`${u.height}px`,l}if(e instanceof HTMLInputElement&&(e.hasAttribute(`value`)&&(l.value=e.value,l.setAttribute(`value`,e.value)),e.checked!==void 0&&(l.checked=e.checked,e.checked&&l.setAttribute(`checked`,``),e.indeterminate&&(l.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(n=e.value),e.shadowRoot&&!(Array.from(e.shadowRoot.querySelectorAll(`slot`)).length>0)){var d=document.createDocumentFragment(),f=r(e.shadowRoot.childNodes),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(m.nodeType!==Node.ELEMENT_NODE||m.tagName!==`STYLE`){var h=s(m);h&&d.appendChild(h)}}}catch(e){f.e(e)}finally{f.f()}l.appendChild(d)}if(e.tagName===`SLOT`){var g=e.assignedNodes?.call(e,{flatten:!0})||[],_=g.length>0?g:Array.from(e.childNodes),v=document.createDocumentFragment(),y=r(_),b;try{for(y.s();!(b=y.n()).done;){var x=b.value,S=s(x);S&&v.appendChild(S)}}catch(e){y.e(e)}finally{y.f()}return v}var C=r(e.childNodes),w;try{for(C.s();!(w=C.n()).done;){var T=w.value;if(!t.has(T)){var E=s(T);E&&l.appendChild(E)}}}catch(e){C.e(e)}finally{C.f()}if(n!==null&&l instanceof HTMLSelectElement){l.value=n;var D=r(l.options),O;try{for(D.s();!(O=D.n()).done;){var k=O.value;k.value===n?k.setAttribute(`selected`,``):k.removeAttribute(`selected`)}}catch(e){D.e(e)}finally{D.f()}}var A=e.scrollLeft,j=e.scrollTop;if((A||j)&&l instanceof HTMLElement){l.style.overflow=`hidden`,l.style.scrollbarWidth=`none`,l.style.msOverflowStyle=`none`;var M=document.createElement(`div`);for(M.style.transform=`translate(${-A}px, ${-j}px)`,M.style.willChange=`transform`,M.style.display=`inline-block`,M.style.width=`100%`;l.firstChild;)M.appendChild(l.firstChild);l.appendChild(M)}return l}}),"./src/utils.js":(function(e,t,n){
/*!**********************!*\
!*** ./src/utils.js ***!
\**********************/
/*! core-js/modules/es.symbol.js */
/*! core-js/modules/es.symbol.description.js */
/*! core-js/modules/es.symbol.iterator.js */
/*! core-js/modules/es.array.iterator.js */
/*! core-js/modules/es.number.constructor.js */
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/es.string.iterator.js */
n.r(t),n.d(t,{createElement:function(){return o},objType:function(){return a},toPx:function(){return c},unitConvert:function(){return s}}),n(`./node_modules/core-js/modules/es.symbol.js`),n(`./node_modules/core-js/modules/es.symbol.description.js`),n(`./node_modules/core-js/modules/es.symbol.iterator.js`),n(`./node_modules/core-js/modules/es.array.iterator.js`),n(`./node_modules/core-js/modules/es.number.constructor.js`),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/es.string.iterator.js`),n(
/*! core-js/modules/web.dom-collections.iterator.js */
`./node_modules/core-js/modules/web.dom-collections.iterator.js`);var r=n(
/*! dompurify */
`./node_modules/dompurify/dist/purify.es.mjs`);function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}var a=function(e){var t=i(e);return t===`undefined`?`undefined`:t===`string`||e instanceof String?`string`:t===`number`||e instanceof Number?`number`:t===`function`||e instanceof Function?`function`:e&&e.constructor===Array?`array`:e&&e.nodeType===1?`element`:t===`object`?`object`:`unknown`},o=function(e,t){var n=document.createElement(e);for(var i in t.className&&(n.className=t.className),t.innerHTML&&(n.innerHTML=r.default.sanitize(t.innerHTML)),t.style)n.style[i]=t.style[i];return n},s=function(e,t){if(a(e)===`number`)return e*72/96/t;var n={};for(var r in e)n[r]=e[r]*72/96/t;return n},c=function(e,t){return Math.floor(e*t/72*96)}}),"./src/worker.js":(function(e,t,n){
/*!***********************!*\
!*** ./src/worker.js ***!
\***********************/
/*! core-js/modules/es.array.concat.js */
/*! core-js/modules/es.array.map.js */
/*! core-js/modules/es.function.name.js */
/*! core-js/modules/es.json.stringify.js */
/*! core-js/modules/es.object.assign.js */
/*! core-js/modules/es.object.keys.js */
/*! core-js/modules/es.object.to-string.js */
/*! core-js/modules/es.promise.js */
/*! core-js/modules/es.regexp.to-string.js */
/*! core-js/modules/esnext.iterator.constructor.js */
/*! core-js/modules/esnext.iterator.for-each.js */
/*! core-js/modules/esnext.iterator.map.js */
/*! core-js/modules/web.dom-collections.for-each.js */
n.r(t),n(`./node_modules/core-js/modules/es.array.concat.js`),n(`./node_modules/core-js/modules/es.array.map.js`),n(`./node_modules/core-js/modules/es.function.name.js`),n(`./node_modules/core-js/modules/es.json.stringify.js`),n(`./node_modules/core-js/modules/es.object.assign.js`),n(`./node_modules/core-js/modules/es.object.keys.js`),n(`./node_modules/core-js/modules/es.object.to-string.js`),n(`./node_modules/core-js/modules/es.promise.js`),n(`./node_modules/core-js/modules/es.regexp.to-string.js`),n(`./node_modules/core-js/modules/esnext.iterator.constructor.js`),n(`./node_modules/core-js/modules/esnext.iterator.for-each.js`),n(`./node_modules/core-js/modules/esnext.iterator.map.js`),n(`./node_modules/core-js/modules/web.dom-collections.for-each.js`),n(
/*! core-js/modules/web.timers.js */
`./node_modules/core-js/modules/web.timers.js`);var r=n(
/*! jspdf/dist/jspdf.es.min.js */
`./node_modules/jspdf/dist/jspdf.es.min.js`),i=n(
/*! html2canvas */
`html2canvas`),a=/*#__PURE__*/ n.n(i),o=n(
/*! ./snapdom/clone.js */
`./src/snapdom/clone.js`),s=n(
/*! ./utils.js */
`./src/utils.js`),c=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return r=r.setProgress(1,e,1,[e]),r=r.set(t),r};c.prototype=Object.create(Promise.prototype),c.prototype.constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:`file.pdf`,margin:[0,0,0,0],image:{type:`jpeg`,quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},c.prototype.from=function(e,t){function n(e){switch((0,s.objType)(e)){case`string`:return`string`;case`element`:return e.nodeName.toLowerCase&&e.nodeName.toLowerCase()===`canvas`?`canvas`:`element`;default:return`unknown`}}return this.then(function(){switch(t||=n(e),t){case`string`:return this.set({src:(0,s.createElement)(`div`,{innerHTML:e})});case`element`:return this.set({src:e});case`canvas`:return this.set({canvas:e});case`img`:return this.set({img:e});default:return this.error(`Unknown source type.`)}})},c.prototype.to=function(e){switch(e){case`container`:return this.toContainer();case`canvas`:return this.toCanvas();case`img`:return this.toImg();case`pdf`:return this.toPdf();default:return this.error(`Invalid target.`)}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error(`Cannot duplicate - no source HTML.`)},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:`fixed`,overflow:`hidden`,zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:`rgba(0,0,0,0.8)`},t={position:`absolute`,width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:`auto`,margin:`auto`,backgroundColor:`white`};e.opacity=0;var n=(0,o.deepCloneBasic)(this.prop.src);return this.prop.overlay=(0,s.createElement)(`div`,{className:`html2pdf__overlay`,style:e}),this.prop.container=(0,s.createElement)(`div`,{className:`html2pdf__container`,style:t}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),new Promise(function(e){return setTimeout(e,10)})})},c.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(function(){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,a()(this.prop.container,e)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL(`image/`+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement(`img`),this.prop.img.src=e})},c.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e=this.prop.canvas,t=this.opt,n=e.height,i=Math.floor(e.width*this.prop.pageSize.inner.ratio),a=Math.ceil(n/i),o=this.prop.pageSize.inner.height,s=document.createElement(`canvas`),c=s.getContext(`2d`);s.width=e.width,s.height=i,this.prop.pdf=this.prop.pdf||new r.jsPDF(t.jsPDF);for(var l=0;l<a;l++){l===a-1&&n%i!==0&&(s.height=n%i,o=s.height*this.prop.pageSize.inner.width/s.width);var u=s.width,d=s.height;c.fillStyle=`white`,c.fillRect(0,0,u,d),c.drawImage(e,0,l*i,u,d,0,0,u,d),l&&this.prop.pdf.addPage();var f=s.toDataURL(`image/`+t.image.type,t.image.quality);this.prop.pdf.addImage(f,t.image.type,t.margin[1],t.margin[0],this.prop.pageSize.inner.width,o)}})},c.prototype.output=function(e,t,n){return n||=`pdf`,n.toLowerCase()===`img`||n.toLowerCase()===`image`?this.outputImg(e,t):this.outputPdf(e,t)},c.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},c.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case`img`:return this.prop.img;case`datauristring`:case`dataurlstring`:return this.prop.img.src;case`datauri`:case`dataurl`:return document.location.href=this.prop.img.src;default:throw`Image output type "`+e+`" is not supported.`}})},c.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.set=function(e){if((0,s.objType)(e)!==`object`)return this;var t=Object.keys(e||{}).map(function(t){switch(t){case`margin`:return this.setMargin.bind(this,e.margin);case`jsPDF`:return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case`pageSize`:return this.setPageSize.bind(this,e.pageSize);default:return t in c.template.prop?function(){this.prop[t]=e[t]}:function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},c.prototype.get=function(e,t){return this.then(function(){var n=e in c.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},c.prototype.setMargin=function(e){return this.then(function(){switch((0,s.objType)(e)){case`number`:e=[e,e,e,e];case`array`:if(e.length===2&&(e=[e[0],e[1],e[0],e[1]]),e.length===4)break;default:return this.error(`Invalid margin array.`)}this.opt.margin=e}).then(this.setPageSize)},c.prototype.setPageSize=function(e){return this.then(function(){e||=r.jsPDF.getPageSize(this.opt.jsPDF),e.hasOwnProperty(`inner`)||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:(0,s.toPx)(e.inner.width,e.k),height:(0,s.toPx)(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},c.prototype.setProgress=function(e,t,n,r){return e!=null&&(this.progress.val=e),t!=null&&(this.progress.state=t),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},c.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},c.prototype.thenCore=function(e,t,n){n||=Promise.prototype.then;var r=this;e&&=e.bind(r),t&&=t.bind(r);var i=Promise.toString().indexOf(`[native code]`)!==-1&&Promise.name===`Promise`?r:c.convert(Object.assign({},r),Promise.prototype),a=n.call(i,e,t);return c.convert(a,r.__proto__)},c.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},c.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},c.prototype.catch=function(e){e&&=e.bind(this);var t=Promise.prototype.catch.call(this,e);return c.convert(t,this)},c.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},c.prototype.error=function(e){return this.then(function(){throw Error(e)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,t.default=c}),html2canvas:(function(t){
/*!******************************!*\
!*** external "html2canvas" ***!
\******************************/
t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;if(t[e]===void 0){var a=/* @__PURE__ */ Error(`Cannot find module '`+e+`'`);throw a.code=`MODULE_NOT_FOUND`,a}var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}(function(){r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t}})(),(function(){var e=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},t;r.t=function(n,i){if(i&1&&(n=this(n)),i&8||typeof n==`object`&&n&&(i&4&&n.__esModule||i&16&&typeof n.then==`function`))return n;var a=Object.create(null);r.r(a);var o={};t||=[null,e({}),e([]),e(e)];for(var s=i&2&&n;(typeof s==`object`||typeof s==`function`)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(function(e){o[e]=function(){return n[e]}});return o.default=function(){return n},r.d(a,o),a}})(),(function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),(function(){r.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})}})();var i={}
/*!**********************!*\
!*** ./src/index.js ***!
\**********************/
/*! ./worker.js */
/*! ./plugin/jspdf-plugin.js */
/*! ./plugin/pagebreaks.js */
/*! ./plugin/hyperlinks.js */
;return(function(){r.r(i);var e=r(`./src/worker.js`);r(`./src/plugin/jspdf-plugin.js`),r(`./src/plugin/pagebreaks.js`),r(`./src/plugin/hyperlinks.js`);var t=function e(t,n){var r=new e.Worker(n);return t?r.from(t).save():r};t.Worker=e.default,i.default=t})(),i=i.default,i})()})})))(),1),U=class extends D{getUrlSlug(){return`ethics-proposal`}getFormComponent(){return W}hasReadOnlyMode(){return!0}getFormIdentifier(){return`32297d33-1352-4cf2-ba06-1577911c3537`}getEnumTranslations(e){let t=c();t.changeLanguage(e);let n=e=>t.t(e);return{_common:{yes:n(`render-form.forms.ethics-commission-form.yes`),no:n(`render-form.forms.ethics-commission-form.no`)},type:{study:n(`render-form.forms.ethics-commission-form.study`),publication:n(`render-form.forms.ethics-commission-form.publication`)},fieldsOfExpertise:{"advanced-material-sciences":n(`render-form.forms.ethics-commission-form.advanced-material-sciences`),"human-and-biotechnology":n(`render-form.forms.ethics-commission-form.human-and-biotechnology`),"information-communication-and-computing":n(`render-form.forms.ethics-commission-form.information-communication-and-computing`),"mobility-and-production":n(`render-form.forms.ethics-commission-form.mobility-and-production`),"sustainable-systems":n(`render-form.forms.ethics-commission-form.sustainable-systems`),none:n(`render-form.forms.ethics-commission-form.none`)},qualificationWork:{bachelor:n(`render-form.forms.ethics-commission-form.bachelor-label`),master:n(`render-form.forms.ethics-commission-form.master-label`),doctorat:n(`render-form.forms.ethics-commission-form.doctorat-label`)},isPublicationPlanned:{"no-publication":n(`render-form.forms.ethics-commission-form.no-publication-label`),"one-publication":n(`render-form.forms.ethics-commission-form.one-publication-label`)},dataProtectionChecked:{"yes-at":n(`render-form.forms.ethics-commission-form.data-protection-checked-label-yes-at`),not:n(`render-form.forms.ethics-commission-form.data-protection-checked-label-not`)}}}},W=class extends O{constructor(){super(),this.scrollTimeout=null,this.needValidationOnLoad=!1,this.handleSaveDraft=this.handleSaveDraft.bind(this),this.handleFormSubmission=this.handleFormSubmission.bind(this),this.handleFormDeleteSubmission=this.handleFormDeleteSubmission.bind(this),this.handleFormSaveSubmission=this.handleFormSaveSubmission.bind(this),this.handleFilesToSubmit=this.handleFilesToSubmit.bind(this),this.handleSelect2Close=this.handleSelect2Close.bind(this),this.handleChangeEvents=this.handleChangeEvents.bind(this),this.handleValidationOnFocusOut=this.handleValidationOnFocusOut.bind(this),this.handleAnchorClick=this.handleAnchorClick.bind(this),this._deletionConfirmationResolve=null,this.conditionalFields={animalsInvolved:!1,cellsObtainedInResearch:!1,complyWithSustainabilityStrategy:!1,deadBodies:!1,diversityAspects:!1,lowIncomeCountries:!1,harmfulSubstancesOnSubjects:!1,hasConfidentialPart:!1,hasConflictInContentControl:!1,hasConflictOfInterest:!1,hasEthicalIssues:!1,humanDecisionInfluence:!1,humanStemCells:!1,humanStemCellsUsed:!1,isNewSubmission:!1,isResearchProject:!1,nonEuCountries:!1,potentiallyStigmatizePeople:!1,replaceHumanDecisionMaking:!1,negativeSocialConsequences:!1,informationProcessingWeaponSystem:!1,hasNegativeEffects:!1,technologyAssessment:!1,weaponSystem:!1,hasDualUse:!1,reputationalDamage:!1,requestedFromAnotherCommittee:!1,stakeholderParticipationPlanned:!1,testSubjects:!1,testSubjectsRiskMinimized:!1,testSubjectsTortured:!1,thirdCountriesLocalResources:!1,useOfHumanEmbryos:!1}}static get properties(){return{...super.properties,resourceActions:{type:Object,attribute:!1}}}static get scopedElements(){return{...super.scopedElements,"dbp-translated":_,"dbp-form-string-element":j,"dbp-form-date-element":M,"dbp-form-boolean-element":N,"dbp-form-enum-element":P,"dbp-form-person-select-element":B,"dbp-form-resource-select-element":V,"dbp-form-string-view":I,"dbp-form-date-view":L,"dbp-form-enum-view":R,"dbp-form-person-select-view":H,"dbp-form-resource-select-view":ee,"dbp-file-source":T,"dbp-file-sink":C,"dbp-pdf-viewer":w,"dbp-grant-permission-dialog":S,"dbp-modal":v}}async update(e){super.update(e);let t=this._i18n;e.has(`data`)&&(Object.keys(this.data).length>0&&await this.processFormData(),this.setButtonStates(),this.updateComplete.then(async()=>{await this.processConditionalFields();let e=new URLSearchParams(window.location.search);if(this.readOnly===!1&&e.get(`validate`)===`true`){let e=this.formElement;this.isFormValid=await A(e),this.isFormValid||(this.scrollToFirstInvalidField(e,!0),m({summary:t.t(`errors.warning-title`),body:t.t(`errors.form-validation-warning-notification-body`),type:`warning`,timeout:0}))}}))}updated(e){super.updated(e),(e.has(`data`)||e.has(`readOnly`)||e.has(`userAllSubmissions`))&&(this._formHeaderObserved=!1,this.stickyHeaderObserver())}async processFormData(){let e=this._i18n;try{this.currentSubmission=this.data,this.submissionId=this.data.identifier,this.lastModifiedCreatorId=this.data.lastModifiedById,this.formData=JSON.parse(this.data.dataFeedElement),this.submissionBinaryState=this.data.submissionState,this.submissionGrantedActions=this.data.grantedActions,this.selectedTags=this.data.tags,this.initializeFileGroups();let t={};for(let e of this.data.submittedFiles)t[e.fileAttributeName]||(t[e.fileAttributeName]=[]),t[e.fileAttributeName].push(e);this.fileUploadCounts={};for(let[e,n]of Object.entries(t)){this.fileUploadCounts[e]=n.length;let t=this.getOrCreateFileGroup(e);t.submittedFiles=await this.transformApiResponseToFile(n)}switch(Number(this.submissionBinaryState)){case 1:this.currentState=a.DRAFT;break;case 4:this.currentState=a.SUBMITTED;break;default:this.currentState=null}if(this.formData)try{let t=await this.apiGetUserDetails(this.lastModifiedCreatorId);if(!t.ok)m({summary:e.t(`errors.error-title`),body:e.t(`errors.failed-to-get-last-modifier-details`,{status:t.status}),type:`danger`,timeout:0});else{let e=await t.json();this.lastModifiedCreatorName=`${e?.givenName} ${e?.familyName}`}}catch(t){console.log(t),m({summary:e.t(`errors.error-title`),body:e.t(`errors.failed-to-get-last-modifier-details`),type:`danger`,timeout:0})}}catch(e){console.error(`Error parsing submission data:`,e)}}resetForm(e){super.resetForm(e);for(let e of Object.keys(this.filesByGroup))this.filesByGroup[e]={submittedFiles:/* @__PURE__ */ new Map,filesToSubmit:/* @__PURE__ */ new Map,filesToRemove:/* @__PURE__ */ new Map};this.selectedTags={}}static get styles(){return[super.styles,u`
@layer theme, utility, formalize, print;
@layer theme {
${h(!1)}
${f()}
${d()}
}
@layer formalize {
${b()}
}
`]}openFilePicker(e){e.preventDefault(),this._(`dbp-file-source`).setAttribute(`dialog-open`,``)}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.addEventListener(`dbp-file-source-file-selected`,this.handleFilesToSubmit),this.addEventListener(`DbpFormalizeFormSaveDraft`,this.handleSaveDraft),this.addEventListener(`DbpFormalizeFormSubmission`,this.handleFormSubmission),this.addEventListener(`DbpFormalizeFormDeleteSubmission`,this.handleFormDeleteSubmission),this.addEventListener(`DbpFormalizeFormSaveSubmission`,this.handleFormSaveSubmission),window.addEventListener(`click`,this.handleSelect2Close),this.renderRoot.addEventListener(`focusout`,this.handleValidationOnFocusOut,{capture:!0}),this.renderRoot.addEventListener(`click`,this.handleAnchorClick)})}async handleValidationOnFocusOut(e){let t=window.location.href;if(new URL(t).searchParams.get(`validate`)!==`true`)return;let n=this.formElement;this.isFormValid=await A(n)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`DbpFormalizeFormSaveDraft`,this.handleSaveDraft),this.removeEventListener(`DbpFormalizeFormSubmission`,this.handleFormSubmission),this.removeEventListener(`DbpFormalizeFormDeleteSubmission`,this.handleFormDeleteSubmission),this.removeEventListener(`DbpFormalizeFormSaveSubmission`,this.handleFormSaveSubmission),this.removeEventListener(`dbp-file-source-file-selected`,this.handleFilesToSubmit),window.removeEventListener(`click`,this.handleSelect2Close),this.renderRoot.removeEventListener(`focusout`,this.handleValidationOnFocusOut,{capture:!0}),this.renderRoot.removeEventListener(`click`,this.handleAnchorClick)}handleSelect2Close(e){let t=e.composedPath(),n=this._(`dbp-form-enum-element[display-mode="tags"]`);if(!n)return;let r=n.shadowRoot.querySelector(`.select2`),i=n.shadowRoot.querySelector(`#select-dropdown`);n&&!t.includes(r)&&!t.includes(i)&&n.closeSelect2()}handleAnchorClick(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`a[href^="#"]`);if(!t)return;let n=t.getAttribute(`href`);if(!n||n===`#`)return;let r=n.slice(1),i=this.renderRoot.querySelectorAll(`#${r}`);if(i.length===0)return;let a=Array.from(i).find(e=>{let t=window.getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`&&e.offsetParent!==null})||i[0];e.preventDefault(),a.scrollIntoView({behavior:`smooth`,block:`center`})}handleFieldsOfExpertiseItems(e){let t=e.detail.value||[],n=`none`,r=this._(`dbp-form-enum-element[name="fieldsOfExpertise"]`);r&&(t.includes(n)?(r.disabledItems=Object.keys(r.items).filter(e=>e!==n),t.length>1&&(r.value=[n])):r.disabledItems=t.length>0?[n]:[])}handleChangeEvents(e){if(super.handleChangeEvents(e),e.detail&&e.detail.option&&e.detail.value){let t=e.detail.option,n=e.detail.value;if(t.value===`download`&&n===`download`){this.downloadAllFiles();return}if(t.value===`edit-permissions`&&n===`edit-permissions`){this._(`#grant-permission-dialog`).open();return}}}async handleSaveDraft(e){let t=this._i18n,n=e.detail,r=!1;n.submissionId&&(r=!0),n.formData.identifier=r?this.lastModifiedCreatorId:this.getUserId();let i=new FormData;for(let[e,t]of Object.entries(this.filesByGroup))t.filesToSubmit.size>0&&t.filesToSubmit.forEach(t=>{i.append(`${e}[]`,t,t.name)}),t.filesToRemove.size>0&&t.filesToRemove.forEach((e,t)=>{i.append(`submittedFiles[${t}]`,`null`)});i.append(`form`,`/formalize/forms/`+this.formIdentifier),i.append(`dataFeedElement`,JSON.stringify(n.formData)),i.append(`submissionState`,String(s.DRAFT));let a=Object.values(this.selectedTags);i.append(`tags`,JSON.stringify(a));let c=r?`PATCH`:`POST`,l=this._buildRequestOptions(i,c),u=this._buildSubmissionUrl(r?this.submissionId:null),d={};for(let[e,t]of Object.entries(this.filesByGroup))d[e]={submittedFiles:new Map(t.submittedFiles),filesToSubmit:new Map(t.filesToSubmit),filesToRemove:new Map(t.filesToRemove)};try{let e=await fetch(u,l),n=await e.json();if(!e.ok)m({summary:t.t(`errors.error-title`),body:t.t(`errors.failed-to-save-draft`,{status:e.status,detail:n.detail}),type:`danger`,timeout:0});else{this.data=n,this.newSubmissionId=n.identifier,this.submissionBinaryState=n.submissionState;let e={};for(let t of n.submittedFiles)e[t.fileAttributeName]||(e[t.fileAttributeName]=[]),e[t.fileAttributeName].push(t);for(let[t,n]of Object.entries(e)){let e=this.getOrCreateFileGroup(t);e.submittedFiles=await this.transformApiResponseToFile(n),e.filesToSubmit=/* @__PURE__ */ new Map,e.filesToRemove=/* @__PURE__ */ new Map}let t=o(this.formUrlSlug,this.lang)+`/${this.newSubmissionId}`;window.history.pushState({},``,t.toString()),this.disableLeavePageWarning(),this.redirectToReadonlyForm(),this.dispatchEvent(new CustomEvent(`dbpFormDataUpdated`,{detail:{needUpdate:!0},bubbles:!0,composed:!0}))}}catch(e){for(let[e,t]of Object.entries(d))this.filesByGroup[e]=t;console.error(e),m({summary:t.t(`errors.error-title`),body:t.t(`errors.unknown-error-on-save-draft`),type:`danger`,timeout:0})}}async handleFormSubmission(e){let t=this._i18n,n=e.detail,r=!1;n.submissionId&&(r=!0),n.formData.identifier=r?this.lastModifiedCreatorId:this.getUserId();let i=new FormData;for(let[e,t]of Object.entries(this.filesByGroup))t.filesToSubmit.size>0&&t.filesToSubmit.forEach(t=>{i.append(`${e}[]`,t,t.name)}),t.filesToRemove.size>0&&t.filesToRemove.forEach((e,t)=>{i.append(`submittedFiles[${t}]`,`null`)});i.append(`form`,`/formalize/forms/`+this.formIdentifier),i.append(`dataFeedElement`,JSON.stringify(n.formData)),i.append(`submissionState`,String(s.SUBMITTED));let o=Object.values(this.selectedTags);i.append(`tags`,JSON.stringify(o));let c=r?`PATCH`:`POST`,l=this._buildRequestOptions(i,c),u=this._buildSubmissionUrl(r?this.submissionId:null),d={};for(let[e,t]of Object.entries(this.filesByGroup))d[e]={submittedFiles:new Map(t.submittedFiles),filesToSubmit:new Map(t.filesToSubmit),filesToRemove:new Map(t.filesToRemove)};try{let e=await fetch(u,l);if(!e.ok)this.submissionError=!0,await this.displayErrors(e);else{this.submissionError=!1,this.currentState=a.SUBMITTED,this.submitted=!0;for(let e of Object.keys(this.filesByGroup))this.filesByGroup[e].filesToSubmit=/* @__PURE__ */ new Map,this.filesByGroup[e].filesToRemove=/* @__PURE__ */ new Map;this.hideForm=!0,this.disableLeavePageWarning(),m({summary:t.t(`success.success-title`),body:t.t(`success.form-submitted-successfully`),type:`success`,timeout:5}),this.dispatchEvent(new CustomEvent(`dbpFormDataUpdated`,{detail:{needUpdate:!0},bubbles:!0,composed:!0}))}}catch(e){for(let[e,t]of Object.entries(d))this.filesByGroup[e]=t;console.error(e),m({summary:t.t(`errors.error-title`),body:t.t(`errors.unknown-error-on-form-submission`),type:`danger`,timeout:0})}}async handleFormDeleteSubmission(e){let t=this._i18n,r=e.detail.submissionId;if(!r){m({summary:t.t(`errors.error-title`),body:t.t(`errors.no-submission-id-provided`),type:`danger`,timeout:0});return}if(await n(this))try{let e=await fetch(this.entryPointUrl+`/formalize/submissions/${r}`,{method:`DELETE`,headers:{Authorization:`Bearer `+this.getToken()}});e.ok?(this.wasDeleteSubmissionSuccessful=!0,this.deleteSubmissionError=!1):(this.deleteSubmissionError=!0,m({summary:t.t(`errors.error-title`),body:t.t(`errors.failed-to-delete-submission-status`,{status:e.status}),type:`danger`,timeout:0}))}catch(e){console.error(e),m({summary:t.t(`errors.error-title`),body:t.t(`errors.unknown-error-on-delete-submission`),type:`danger`,timeout:0})}finally{if(this.wasDeleteSubmissionSuccessful){m({summary:t.t(`success.success-title`),body:t.t(`success.form-submission-deleted-successfully`),type:`success`,timeout:5});let n=o(this.formUrlSlug,this.lang);window.history.pushState({},``,n.toString()),this.resetForm(e),this.sendSetPropertyEvent(`routing-url`,`/${this.formUrlSlug}`)}}}async handleFormSaveSubmission(e){let t=this._i18n;if(!e.detail.submissionId)return;let n=e.detail;n.formData.identifier=this.lastModifiedCreatorId;let r=new FormData;for(let[e,t]of Object.entries(this.filesByGroup))t.filesToSubmit.size>0&&t.filesToSubmit.forEach(t=>{r.append(`${e}[]`,t,t.name)}),t.filesToRemove.size>0&&t.filesToRemove.forEach((e,t)=>{r.append(`submittedFiles[${t}]`,`null`)});r.append(`dataFeedElement`,JSON.stringify(n.formData));let i=Object.values(this.selectedTags);r.append(`tags`,JSON.stringify(i));let a=this._buildRequestOptions(r,`PATCH`),o=this._buildSubmissionUrl(e.detail.submissionId),s={};for(let[e,t]of Object.entries(this.filesByGroup))s[e]={submittedFiles:new Map(t.submittedFiles),filesToSubmit:new Map(t.filesToSubmit),filesToRemove:new Map(t.filesToRemove)};try{let e=await fetch(o,a);if(!e.ok)await this.displayErrors(e);else{let n=await e.json(),r={};for(let e of n.submittedFiles)r[e.fileAttributeName]||(r[e.fileAttributeName]=[]),r[e.fileAttributeName].push(e);for(let[e,t]of Object.entries(r)){let n=this.getOrCreateFileGroup(e);n.submittedFiles=await this.transformApiResponseToFile(t),n.filesToSubmit=/* @__PURE__ */ new Map,n.filesToRemove=/* @__PURE__ */ new Map}this.dispatchEvent(new CustomEvent(`dbpFormDataUpdated`,{detail:{needUpdate:!0},bubbles:!0,composed:!0})),m({summary:t.t(`success.success-title`),body:t.t(`success.form-saved-successfully`),type:`success`,timeout:5})}}catch(e){for(let[e,t]of Object.entries(s))this.filesByGroup[e]=t;this.requestUpdate(),console.error(e),m({summary:t.t(`errors.error-title`),body:t.t(`errors.unknown-error-on-save-submission`),type:`danger`,timeout:0})}}async generatePDF(e=!0){let t=this._(`#ethics-commission-form`);t.classList.add(`print`);let n=this.extractShadowContent(t);window.scrollTo(0,0);let r={margin:[70,51],filename:`Ethical_Review_Application.pdf`,image:{type:`jpeg`,quality:.98},html2canvas:{scale:2,dpi:192,scrollY:0},jsPDF:{unit:`pt`,format:`a4`,orientation:`portrait`},pagebreak:{}};try{let n=await(0,te.default)().set(r).from(t).toPdf().get(`pdf`).then(e=>{var t=e.internal.getNumberOfPages();for(let n=1;n<=t;n++)e.setPage(n),this.addHeader(e,n);return e});if(e)await n.save(r.filename);else{let e=n.output(`blob`);return new File([e],r.filename,{type:`application/pdf`})}}finally{t.classList.remove(`print`),n()}}addHeader(e,t){e.setFontSize(9),e.setTextColor(25),e.text(`TU Graz`,e.internal.pageSize.getWidth()-50-10,25,{align:`right`}),e.setDrawColor(255,0,0),e.setFillColor(255,0,0),e.setLineWidth(1),e.rect(e.internal.pageSize.getWidth()-50-8,17,8,8,`F`),e.setDrawColor(0,0,0),e.line(50,28,e.internal.pageSize.getWidth()-50,28,`S`),e.setFontSize(8),e.text(`Antrag auf Prüfung der ethischen Vertretbarkeit`,50,37,{align:`left`}),e.text(`Ethikkommission TU Graz / Geschäftsstelle`,e.internal.pageSize.getWidth()/2,e.internal.pageSize.getHeight()-25,{align:`center`}),e.text(String(t),e.internal.pageSize.getWidth()-50,e.internal.pageSize.getHeight()-25,{align:`right`})}extractShadowContent(e){let t=[];return e.querySelectorAll(`*`).forEach(e=>{if(e instanceof HTMLElement){if(e.tagName===`DBP-TRANSLATED`&&e.shadowRoot){let n=e.shadowRoot.innerHTML,r=document.createElement(`div`);r.innerHTML=n;let i=e.querySelector(`[slot="${this.lang}"]`);if(i){let e=i.innerHTML,t=document.createElement(`fieldset`);t.innerHTML=e,r.append(t)}t.push({original:e,clone:r}),e.style.display=`none`,e.insertAdjacentElement(`afterend`,r)}if(e.tagName.startsWith(`DBP-FORM`)&&e.shadowRoot){if(e.getAttribute(`name`)===`comments`){e.style.display=`none`;return}let n=e.shadowRoot.innerHTML,r=document.createElement(`div`);r.innerHTML=n;let i=e.querySelector(`[slot="label"]`);if(i){let e=document.createElement(`label`),t=i.querySelector(`dbp-translated`);if(t){let n=t.querySelector(`[slot="${this.lang}"]`);n&&(e.innerHTML=n.innerHTML)}else e.textContent=i.textContent;r.querySelector(`fieldset`)?.prepend(e)}t.push({original:e,clone:r}),e.style.display=`none`,e.insertAdjacentElement(`afterend`,r)}}}),function(){t.forEach(({original:e,clone:t})=>{t.remove(),e.style.display=``})}}async downloadAllFiles(){let e=await this.generatePDF(!1),t=[];for(let e of Object.keys(this.filesByGroup)){let n=this.getOrCreateFileGroup(e);t.push(...Array.from(n.submittedFiles.values()))}this._(`#file-sink`).files=[e,...t]}render(){return l`
${this.readOnly?l`
${this.renderFormViews()}
`:l`
${this.renderFormElements()}
`}
`}async apiGetResourceActionGrants(){let e={method:`GET`,headers:{"Content-Type":`application/ld+json`,Authorization:`Bearer `+this.getToken()}};return await fetch(this.entryPointUrl+`/authorization/resource-action-grants?resourceClass=DbpRelayFormalizeSubmission&resourceIdentifier=${this.submissionId}&page=1&perPage=9999`,e)}skipToFormActions(e){e.preventDefault();let t=this._(`#ethics-commission-form`),n=this._(`#action-buttons`);t&&n&&(t.scrollIntoView({block:`start`}),n.focus({preventScroll:!0}))}handleSkipLinkKeydown(e){e.key===` `&&this.skipToFormActions(e)}renderFormViews(){let e=this._i18n,t=this.formData||{};return l`
<style>
/* Style needs to be inline for html2pdf.js */
@layer theme, utility, formalize, print;
@layer print {
${x()}
}
</style>
<form
id="ethics-commission-form"
aria-labelledby="form-title"
class=${g({hidden:this.hideForm,"readonly-mode":this.readOnly,"edit-mode":!this.readOnly,"formalize-form":!0})}>
<div class="form-header">
${this.getButtonRowHtml()}
</div>
<h2 class="form-title">${e.t(`render-form.forms.ethics-commission-form.title`)}</h2>
<dbp-form-enum-view
subscribe="lang"
name="type"
label="${e.t(`render-form.forms.ethics-commission-form.type-label`)}"
.items=${{study:e.t(`render-form.forms.ethics-commission-form.study`),publication:e.t(`render-form.forms.ethics-commission-form.publication`)}}
.value=${t.type||``}>
</dbp-form-enum-view>
<article>
<dbp-form-string-view
subscribe="lang"
name="registryNumber"
label="${e.t(`render-form.forms.ethics-commission-form.registry-number-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.registry-number-description`)}"
value=${t.registryNumber||``}></dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="userTitle"
label="${e.t(`render-form.forms.ethics-commission-form.user-title`)}"
value=${t.userTitle||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="userTitleShort"
label="${e.t(`render-form.forms.ethics-commission-form.user-title-short`)}"
value=${t.userTitleShort||``}>
</dbp-form-string-view>
<dbp-form-person-select-view
subscribe="lang"
name="applicant"
label="${e.t(`render-form.forms.ethics-commission-form.applicant-label`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
.value=${t.applicant||``}>
</dbp-form-person-select-view>
<p class="field-note">${e.t(`render-form.forms.ethics-commission-form.applicant-description`)}</p>
<dbp-form-resource-select-view
subscribe="lang"
label="${e.t(`render-form.forms.ethics-commission-form.contact-details-label`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
resource-path="/base/organizations"
.value=${t.contactDetails||``}>
</dbp-form-resource-select-view>
<dbp-form-string-view
subscribe="lang"
name="jobPosition"
label="${e.t(`render-form.forms.ethics-commission-form.job-position-label`)}"
value=${t.jobPosition||``}>
</dbp-form-string-view>
<dbp-form-person-select-view
subscribe="lang"
name="coApplicants"
label="${e.t(`render-form.forms.ethics-commission-form.co-applicants-label`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
.value=${Array.isArray(t.coApplicants)?t.coApplicants:[]}
multiple>
</dbp-form-person-select-view>
<p class="field-note">${e.t(`render-form.forms.ethics-commission-form.co-applicants-description`)}</p>
<dbp-form-string-view
subscribe="lang"
name="externalCoApplicants"
label="${e.t(`render-form.forms.ethics-commission-form.external-co-applicants-label`)}"
value=${t.externalCoApplicants||``}>
</dbp-form-string-view>
<dbp-form-enum-view
subscribe="lang"
name="fieldsOfExpertise"
display-mode="tags"
label="${e.t(`render-form.forms.ethics-commission-form.fields-of-expertise-label`)}"
.items=${{"advanced-material-sciences":e.t(`render-form.forms.ethics-commission-form.advanced-material-sciences`),"human-and-biotechnology":e.t(`render-form.forms.ethics-commission-form.human-and-biotechnology`),"information-communication-and-computing":e.t(`render-form.forms.ethics-commission-form.information-communication-and-computing`),"mobility-and-production":e.t(`render-form.forms.ethics-commission-form.mobility-and-production`),"sustainable-systems":e.t(`render-form.forms.ethics-commission-form.sustainable-systems`),none:e.t(`render-form.forms.ethics-commission-form.none`)}}
.value=${t.fieldsOfExpertise||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="isNewSubmission"
data-condition="no"
layout-type="${this.tagIsInline}"
label="${e.t(`render-form.forms.ethics-commission-form.is-new-submission-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isNewSubmission||``}></dbp-form-enum-view>
${this.conditionalFields.isNewSubmission?l`
<dbp-form-string-view
subscribe="lang"
name="applicationReferenceNumber"
label="${e.t(`render-form.forms.ethics-commission-form.application-reference-number-label`)}"
value=${t.applicationReferenceNumber||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="requestedFromAnotherCommittee"
display-mode="list"
label="${e.t(`render-form.forms.ethics-commission-form.requested-from-another-committee-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.requestedFromAnotherCommittee||``}>
</dbp-form-enum-view>
${this.conditionalFields.requestedFromAnotherCommittee?l`
<dbp-form-string-view
class="${g({"fade-in":this.conditionalFields.requestedFromAnotherCommittee})}"
subscribe="lang"
name="anotherCommittee"
label="${e.t(`render-form.forms.ethics-commission-form.another-committee-label`)}"
value=${t.anotherCommittee||``}
required></dbp-form-string-view>
`:``}
<dbp-form-enum-view
subscribe="lang"
name="isResearchProject"
data-condition="yes"
label="${e.t(`render-form.forms.ethics-commission-form.is-research-project-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isResearchProject||``}>
</dbp-form-enum-view>
${this.conditionalFields.isResearchProject?l`
<dbp-form-enum-view
subscribe="lang"
name="qualificationWork"
label="${e.t(`render-form.forms.ethics-commission-form.qualification-work-label`)}"
.items=${{bachelor:e.t(`render-form.forms.ethics-commission-form.bachelor-label`),master:e.t(`render-form.forms.ethics-commission-form.master-label`),doctorat:e.t(`render-form.forms.ethics-commission-form.doctorat-label`)}}
.value=${t.qualificationWork||``}></dbp-form-enum-view>
<dbp-form-string-view
subscribe="lang"
name="namesOfSupervisingPersons"
label="${e.t(`render-form.forms.ethics-commission-form.names-of-supervising-persons-label`)}"
value=${t.namesOfSupervisingPersons||``}></dbp-form-string-view>
<dbp-form-enum-view
subscribe="lang"
name="isPublicationPlanned"
label="${e.t(`render-form.forms.ethics-commission-form.is-publication-planned-label`)}"
.items=${{"no-publication":e.t(`render-form.forms.ethics-commission-form.no-publication-label`),"one-publication":e.t(`render-form.forms.ethics-commission-form.one-publication-label`)}}
.value=${t.isPublicationPlanned||``}></dbp-form-enum-view>
`:``}
${this.isAdmin?l`
<dbp-form-date-view
subscribe="lang"
name="studyDescription"
label="${e.t(`render-form.forms.ethics-commission-form.study-description-label`)}"
value=${t.studyDescription||``}></dbp-form-date-view>
<dbp-form-date-view
subscribe="lang"
name="studyDescriptionDateOfTransmission"
label="${e.t(`render-form.forms.ethics-commission-form.date-of-transmission-label`)}"
value=${t.studyDescriptionDateOfTransmission||``}></dbp-form-date-view>
<dbp-form-enum-view
subscribe="lang"
name="dataProtectionChecked"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label`)}"
.items=${{"yes-at":e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label-yes-at`),not:e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label-not`)}}
.value=${t.dataProtectionChecked||``}></dbp-form-enum-view>
${t.dataProtectionChecked===`yes-at`?l`
<dbp-form-date-view
subscribe="lang"
name="dataProtectionDate"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-date-label`)}"
value=${t.dataProtectionDate||``}></dbp-form-date-view>
`:t.dataProtectionChecked===`not`?l`
<dbp-form-string-view
subscribe="lang"
name="dataProtectionComment"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-comment-label`)}"
value=${t.dataProtectionComment||``}></dbp-form-string-view>
`:``}
`:``}
<dbp-form-string-view
subscribe="lang"
name="shortDescription"
label="${e.t(`render-form.forms.ethics-commission-form.short-description-label`)}"
value=${t.shortDescription||``}></dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="dataSource"
label="${e.t(`render-form.forms.ethics-commission-form.data-source-label`)}"
value=${t.dataSource||``}></dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="numberOfTestPersons"
label="${e.t(`render-form.forms.ethics-commission-form.number-of-test-persons-label`)}"
value=${t.numberOfTestPersons||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="acquisitionOfTestSubjects"
label="${e.t(`render-form.forms.ethics-commission-form.acquisition-of-test-subjects-label`)}"
value=${t.acquisitionOfTestSubjects||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="volunteersCompensation"
label="${e.t(`render-form.forms.ethics-commission-form.volunteers-compensation-label`)}"
value=${t.volunteersCompensation||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="volunteersCompensationEarlyEnd"
label="${e.t(`render-form.forms.ethics-commission-form.volunteers-compensation-early-end-label`)}"
value=${t.volunteersCompensationEarlyEnd||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="participationCriteria"
label="${e.t(`render-form.forms.ethics-commission-form.participation-criteria-label`)}"
value=${t.participationCriteria||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="subjectsDependencies"
label="${e.t(`render-form.forms.ethics-commission-form.subjects-dependencies-label`)}"
value=${t.subjectsDependencies||``}>
</dbp-form-string-view>
<p class="field-note">${e.t(`render-form.forms.ethics-commission-form.subjects-dependencies-description`)}</p>
<dbp-form-string-view
subscribe="lang"
name="founding"
label="${e.t(`render-form.forms.ethics-commission-form.founding-label`)}"
value=${t.founding||``}>
</dbp-form-string-view>
<dbp-form-date-view
subscribe="lang"
name="projectStartDate"
label="${e.t(`render-form.forms.ethics-commission-form.project-start-date-label`)}"
value=${t.projectStartDate||``}>
</dbp-form-date-view>
<dbp-form-string-view
subscribe="lang"
name="projectDuration"
label="${e.t(`render-form.forms.ethics-commission-form.project-duration-label`)}"
value=${t.projectDuration||``}>
</dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="reasonOfSubmission"
label="${e.t(`render-form.forms.ethics-commission-form.reason-of-submission-label`)}"
value=${t.reasonOfSubmission||``}>
</dbp-form-string-view>
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-research-description-title`)}</h3>
<div class="description">
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-1`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-2`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-3`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-4`)}</p>
</div>
<dbp-form-string-view
subscribe="lang"
name="researchProjectDescription"
label="${e.t(`render-form.forms.ethics-commission-form.research-project-description-label`)}"
value=${t.researchProjectDescription||``}>
</dbp-form-string-view>
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-self-assessment-title`)}</h3>
<div class="description">
<p>${e.t(`render-form.forms.ethics-commission-form.section-self-assessment-description`)}</p>
<dbp-translated subscribe="lang">
<div slot="de">
<p class="field-note">Angelehnt an den Kriterienkatalog der Europäischen Kommission im Zusammenhang von EU-Grants/Horizon Europe aus dem Jahr 2021.</p>
</div>
<div slot="en">
<p class="field-note">Based on the European Commission's list of criteria in connection with EU grants/Horizon Europe from 2021.</p>
</div>
</dbp-translated>
</div>
<h4 class="section-sub-title">1. ${e.t(`render-form.forms.ethics-commission-form.section-people-title`)}</h4>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="testSubjects"
label="${e.t(`render-form.forms.ethics-commission-form.test-subjects-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.test-subject-description`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjects||``}>
</dbp-form-enum-view>
${this.conditionalFields.testSubjects?l`
<div class="question-group">
<h5 class="question-group-title">
1.1.
${e.t(`render-form.forms.ethics-commission-form.human-participants-subtitle`)}
</h5>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsVoluntary"
label="1.1.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-voluntary-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsVoluntary||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="isSelfExperiment"
label="1.1.2. ${e.t(`render-form.forms.ethics-commission-form.is-self-experiment-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isSelfExperiment||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsInformedConsent"
label="1.1.3. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-informed-consent-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsInformedConsent||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsConsentSigned"
label="1.1.4. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-consent-signed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsConsentSigned||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsWithdrawPossible"
label="1.1.5. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-withdraw-possible-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsWithdrawPossible||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsDependent"
label="1.1.6. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-dependent-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsDependent||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsVulnerable"
label="1.1.7. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-vulnerable-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsVulnerable||``}></dbp-form-enum-view>
</div>
<div class="question-group">
<h5 class="question-group-title">
1.2.
${e.t(`render-form.forms.ethics-commission-form.interventions-subtitle`)}
</h5>
<dbp-form-enum-view
subscribe="lang"
name="invasiveTechniquesUsed"
label="1.2.1. ${e.t(`render-form.forms.ethics-commission-form.invasive-techniques-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.invasiveTechniquesUsed||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="influenceOnBrainActivity"
label="1.2.2. ${e.t(`render-form.forms.ethics-commission-form.influence-on-brain-activity-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.influenceOnBrainActivity||``}></dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="testSubjectsTortured"
label="1.2.3. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-tortured-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsTortured||``}></dbp-form-enum-view>
${this.conditionalFields.testSubjectsTortured?l`
<dbp-form-string-view
subscribe="lang"
name="testSubjectsTorturedExamples"
label="1.2.3.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-tortured-example-label`)}"
value=${t.testSubjectsTorturedExamples||``}
required></dbp-form-string-view>
`:``}
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsHarmed"
label="1.2.4. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-harmed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsHarmed||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsRisksJustified"
label="1.2.5. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-risks-justified-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsRisksJustified||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsRiskMinimized"
data-condition="yes"
label="1.2.6. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-risk-minimized-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsRiskMinimized||``}></dbp-form-enum-view>
${this.conditionalFields.testSubjectsRiskMinimized?l`
<dbp-form-string-view
class="${g({"fade-in":this.conditionalFields.testSubjectsRiskMinimized})}"
subscribe="lang"
name="riskMinimizationSteps"
label="1.2.6.1. ${e.t(`render-form.forms.ethics-commission-form.risk-minimization-steps-label`)}"
value=${t.riskMinimizationSteps||``}></dbp-form-string-view>
`:``}
</div>
<div class="question-group">
<h5 class="question-group-title">
1.3.
${e.t(`render-form.forms.ethics-commission-form.reasonableness-subtitle`)}
</h5>
<dbp-form-enum-view
subscribe="lang"
name="testSubjectsReasonableToParticipate"
label="1.3.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-reasonable-to-participate-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsReasonableToParticipate||``}></dbp-form-enum-view>
</div>
`:``}
<h5 class="question-group-title">
1.4. ${e.t(`render-form.forms.ethics-commission-form.dead-bodies-subtitle`)}
</h5>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="deadBodies"
label="${e.t(`render-form.forms.ethics-commission-form.dead-bodies-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.deadBodies||``}>
</dbp-form-enum-view>
${this.conditionalFields.deadBodies?l`
<div class="question-group">
<dbp-form-enum-view
subscribe="lang"
name="legalDocumentsAvailable"
label="1.4.1. ${e.t(`render-form.forms.ethics-commission-form.legal-documents-available-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.legalDocumentsAvailable||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="disturbanceOfPeaceOfDead"
label="1.4.2. ${e.t(`render-form.forms.ethics-commission-form.disturbance-of-peace-of-dead-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.disturbanceOfPeaceOfDead||``}></dbp-form-enum-view>
</div>
`:``}
<h5 class="question-group-title">
1.5. ${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-subtitle`)}
</h5>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="humanStemCells"
label="${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanStemCells||``}>
</dbp-form-enum-view>
${this.conditionalFields.humanStemCells?l`
<div class="question-group">
<dbp-form-enum-view
subscribe="lang"
name="humanTissueUsed"
label="1.5.1. ${e.t(`render-form.forms.ethics-commission-form.human-tissue-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanTissueUsed||``}></dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="humanStemCellsUsed"
label="1.5.2. ${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanStemCellsUsed||``}></dbp-form-enum-view>
${this.conditionalFields.humanStemCellsUsed?l`
<dbp-form-enum-view
subscribe="lang"
name="stemCellsFromEmbryos"
label="1.5.2.1. ${e.t(`render-form.forms.ethics-commission-form.stem-cells-from-embryos-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stemCellsFromEmbryos||``}></dbp-form-enum-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="useOfHumanEmbryos"
label="1.5.3. ${e.t(`render-form.forms.ethics-commission-form.use-of-human-embryos-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.useOfHumanEmbryos||``}></dbp-form-enum-view>
${this.conditionalFields.useOfHumanEmbryos?l`
<dbp-form-enum-view
subscribe="lang"
name="stemCellsFromEmbryosDestroyed"
label="1.5.3.1. ${e.t(`render-form.forms.ethics-commission-form.stem-cells-from-embryos-destroyed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stemCellsFromEmbryosDestroyed||``}></dbp-form-enum-view>
`:``}
<dbp-form-enum-view
subscribe="lang"
name="commerciallyAvailableCells"
label="1.5.4. ${e.t(`render-form.forms.ethics-commission-form.commercially-available-cells-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.commerciallyAvailableCells||``}></dbp-form-enum-view>
<dbp-form-enum-view
data-condition="no"
subscribe="lang"
name="cellsObtainedInResearch"
label="1.5.5. ${e.t(`render-form.forms.ethics-commission-form.cells-obtained-in-research-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.cellsObtainedInResearch||``}></dbp-form-enum-view>
${this.conditionalFields.cellsObtainedInResearch?l`
<dbp-form-string-view
subscribe="lang"
name="tissueOrCellsSource"
label="1.5.5.1. ${e.t(`render-form.forms.ethics-commission-form.tissue-or-cells-source-label`)}"
value=${t.tissueOrCellsSource||``}></dbp-form-string-view>
`:``}
</div>
`:``}
</article>
<article>
<h4 class="section-sub-title">2. ${e.t(`render-form.forms.ethics-commission-form.section-animals-title`)}</h4>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="animalsInvolved"
label="${e.t(`render-form.forms.ethics-commission-form.section-animals-involved-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.animalsInvolved||``}>
</dbp-form-enum-view>
${this.conditionalFields.animalsInvolved?l`
<div class="question-group ">
<h5 class="question-group-title">
2.1.
${e.t(`render-form.forms.ethics-commission-form.section-animals-in-research-subtitle`)}
</h5>
<dbp-form-enum-view
subscribe="lang"
name="isAnimalVertebrate"
label="2.1.1. ${e.t(`render-form.forms.ethics-commission-form.is-animal-vertebrate-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isAnimalVertebrate||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="nonHumanPrimates"
label="2.1.2. ${e.t(`render-form.forms.ethics-commission-form.non-human-primates-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.nonHumanPrimates||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="geneticallyModifiedAnimals"
label="2.1.3. ${e.t(`render-form.forms.ethics-commission-form.genetically-modified-animals-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.geneticallyModifiedAnimals||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="endangeredSpecies"
label="2.1.4. ${e.t(`render-form.forms.ethics-commission-form.endangered-species-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.endangeredSpecies||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="alternativesToUseLaboratoryAnimals"
label="2.1.5. ${e.t(`render-form.forms.ethics-commission-form.alternatives-to-use-laboratory-animals-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.alternativesToUseLaboratoryAnimals||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="laboratoryAnimalsHarmed"
label="2.1.6. ${e.t(`render-form.forms.ethics-commission-form.laboratory-animals-harmed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.laboratoryAnimalsHarmed||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="isRiskJustified"
label="2.1.7. ${e.t(`render-form.forms.ethics-commission-form.is-risk-justified-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isRiskJustified||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="relevantLegalDocumentAvailable"
label="2.1.8. ${e.t(`render-form.forms.ethics-commission-form.relevant-legal-document-available-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.relevantLegalDocumentAvailable||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="authorizedForOrganRemoval"
label="2.1.9. ${e.t(`render-form.forms.ethics-commission-form.authorized-for-organ-removal-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.authorizedForOrganRemoval||``}></dbp-form-enum-view>
</div>
`:``}
</article>
<article>
<h4 class="section-sub-title">3. ${e.t(`render-form.forms.ethics-commission-form.section-sustainability-title`)}</h4>
<dbp-form-enum-view
subscribe="lang"
name="harmfulSubstances"
label="3.1. ${e.t(`render-form.forms.ethics-commission-form.harmful-substances-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.harmfulSubstances||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="negativeImpactsOnNature"
label="3.2. ${e.t(`render-form.forms.ethics-commission-form.negative-impacts-on-nature-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.negativeImpactsOnNature||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="harmfulSubstancesOnSubjects"
label="3.3. ${e.t(`render-form.forms.ethics-commission-form.harmful-substances-on-subjects-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.harmfulSubstancesOnSubjects||``}>
</dbp-form-enum-view>
${this.conditionalFields.harmfulSubstancesOnSubjects?l`
<dbp-form-string-view
subscribe="lang"
name="adequateSafetyMeasures"
label="3.3.1. ${e.t(`render-form.forms.ethics-commission-form.adequate-safety-measures-label`)}"
.value=${t.adequateSafetyMeasures||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="complyWithSustainabilityStrategy"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.complyWithSustainabilityStrategy||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
3.4. Entspricht Ihr Forschungsvorhaben der <a href='https://www.tugraz.at/tu-graz/universitaet/klimaneutrale-tu-graz/roadmap/' target='_blank'>Nachhaltigkeitsstrategie</a> der TU Graz?
</div>
<div slot="en">
3.4. Does your research project comply with the (<a href='https://www.tugraz.at/en/tu-graz/university/climate-neutral-tu-graz/roadmap/' target='_blank'>TU Graz sustainability strategy</a>)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-view>
${this.conditionalFields.complyWithSustainabilityStrategy?l`
<dbp-form-string-view
class="question-group"
subscribe="lang"
name="appropriateUseOfResources"
label="3.4.1. ${e.t(`render-form.forms.ethics-commission-form.appropriate-use-of-resources-label`)}"
value=${t.appropriateUseOfResources||``}></dbp-form-string-view>
`:``}
</div>
</article>
<article>
<h4 class="section-sub-title">4. ${e.t(`render-form.forms.ethics-commission-form.section-non-eu-states-title`)}</h4>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="nonEuCountries"
label="${e.t(`render-form.forms.ethics-commission-form.non-eu-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.nonEuCountries||``}>
</dbp-form-enum-view>
${this.conditionalFields.nonEuCountries?l`
<div class="question-group">
<h5 class="question-group-title">
4.1
${e.t(`render-form.forms.ethics-commission-form.section-non-eu-countries-subtitle`)}
</h5>
<dbp-form-enum-view
subscribe="lang"
name="ethicalIssues"
label="4.1.1. ${e.t(`render-form.forms.ethics-commission-form.ethical-issues-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.ethicalIssues||``}></dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="thirdCountriesLocalResources"
label="4.1.2. ${e.t(`render-form.forms.ethics-commission-form.third-countries-local-resources-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.thirdCountriesLocalResources||``}></dbp-form-enum-view>
${this.conditionalFields.thirdCountriesLocalResources?l`
<dbp-form-enum-view
subscribe="lang"
name="questionResearchFounds"
label="4.1.2.1. ${e.t(`render-form.forms.ethics-commission-form.question-research-founds-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.questionResearchFounds||``}></dbp-form-enum-view>
`:``}
<dbp-form-enum-view
subscribe="lang"
name="importMaterialFromThirdCountries"
label="4.1.3. ${e.t(`render-form.forms.ethics-commission-form.import-material-from-third-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.importMaterialFromThirdCountries||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="lowIncomeCountries"
data-condition="yes"
label="4.1.4. ${e.t(`render-form.forms.ethics-commission-form.low-income-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.lowIncomeCountries||``}></dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="exposeParticipantsToRisk"
label="4.1.5. ${e.t(`render-form.forms.ethics-commission-form.expose-participants-to-risk-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.exposeParticipantsToRisk||``}></dbp-form-enum-view>
<dbp-form-string-view
subscribe="lang"
name="riskCountries"
label="4.1.6. ${e.t(`render-form.forms.ethics-commission-form.risk-countries-label`)}"
value=${t.riskCountries||``}></dbp-form-string-view>
</div>
`:``}
</article>
<article>
<h4 class="section-sub-title">5. ${e.t(`render-form.forms.ethics-commission-form.section-information-systems-title`)}</h4>
<div class="question-group">
<dbp-form-enum-view
subscribe="lang"
data-condition="yes"
name="replaceHumanDecisionMaking"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.replaceHumanDecisionMaking||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
5.1. Können die im Forschungsvorhaben eingesetzten informationsverarbeitenden Systeme menschliche ethisch relevante Entscheidungen im Projekt beeinflussen, ersetzen oder umgehen?
</div>
<div slot="en">
5.1. Can the information processing systems used in the research project influence, replace, or circumvent human decisions of ethical relevance?
</div>
</dbp-translated>
</span>
</dbp-form-enum-view>
${this.conditionalFields.replaceHumanDecisionMaking?l`
<dbp-form-string-view
class="${g({"fade-in":this.conditionalFields.replaceHumanDecisionMaking})}"
subscribe="lang"
name="replaceHumanDecisionMakingExamples"
label="5.1.1. ${e.t(`render-form.forms.ethics-commission-form.replace-human-decision-making-examples-label`)}"
value=${t.replaceHumanDecisionMakingExamples||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
subscribe="lang"
name="potentiallyStigmatizePeople"
data-condition="yes"
label="5.2. ${e.t(`render-form.forms.ethics-commission-form.potentially-stigmatize-people-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.potentiallyStigmatizePeople||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
data-condition="yes"
name="negativeSocialConsequences"
label="5.3. ${e.t(`render-form.forms.ethics-commission-form.negative-social-consequences-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.negativeSocialConsequences||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
data-condition="yes"
name="informationProcessingWeaponSystem"
label="5.4. ${e.t(`render-form.forms.ethics-commission-form.information-processing-weapon-system-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.informationProcessingWeaponSystem||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="hasEthicalIssues"
label="5.5. ${e.t(`render-form.forms.ethics-commission-form.has-ethical-issues-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasEthicalIssues||``}>
</dbp-form-enum-view>
${this.conditionalFields.replaceHumanDecisionMaking||this.conditionalFields.potentiallyStigmatizePeople||this.conditionalFields.negativeSocialConsequences||this.conditionalFields.informationProcessingWeaponSystem||this.conditionalFields.hasEthicalIssues?l`
<dbp-form-string-view
subscribe="lang"
name="ethicalIssuesList"
label="5.6. ${e.t(`render-form.forms.ethics-commission-form.ethical-issues-list-label`)}"
value=${t.ethicalIssuesList||``}></dbp-form-string-view>
`:``}
</div>
</article>
<article>
<h4 class="section-sub-title">6. ${e.t(`render-form.forms.ethics-commission-form.section-conflicts-of-interest-title`)}</h4>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="hasConflictOfInterest"
label="6.1. ${e.t(`render-form.forms.ethics-commission-form.has-conflict-of-interest-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConflictOfInterest||``}>
</dbp-form-enum-view>
${this.conditionalFields.hasConflictOfInterest?l`
<dbp-form-string-view
subscribe="lang"
name="conflictOfInterestList"
label="6.1.1. ${e.t(`render-form.forms.ethics-commission-form.conflict-of-interest-list-label`)}"
value=${t.conflictOfInterestList||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="hasConfidentialPart"
label="6.2. ${e.t(`render-form.forms.ethics-commission-form.has-confidential-part-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConfidentialPart||``}>
</dbp-form-enum-view>
${this.conditionalFields.hasConfidentialPart?l`
<dbp-form-string-view
subscribe="lang"
name="natureOfBlocking"
label="6.2.1. ${e.t(`render-form.forms.ethics-commission-form.nature-of-blocking-label`)}"
value=${t.natureOfBlocking||``}></dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="reasonOfBlocking"
label="6.2.2. ${e.t(`render-form.forms.ethics-commission-form.reason-of-blocking-label`)}"
value=${t.reasonOfBlocking||``}></dbp-form-string-view>
<dbp-form-string-view
subscribe="lang"
name="consequencesOfBlocking"
label="6.2.3. ${e.t(`render-form.forms.ethics-commission-form.consequences-of-blocking-label`)}"
value=${t.consequencesOfBlocking||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="hasConflictInContentControl"
label="6.3. ${e.t(`render-form.forms.ethics-commission-form.has-conflict-in-content-control-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConflictInContentControl||``}>
</dbp-form-enum-view>
${this.conditionalFields.hasConflictInContentControl?l`
<dbp-form-string-view
subscribe="lang"
name="conflictInContentControlList"
label="6.3.1. ${e.t(`render-form.forms.ethics-commission-form.conflict-in-content-control-list-label`)}"
value=${t.conflictInContentControlList||``}></dbp-form-string-view>
`:``}
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="stakeholderParticipationPlanned"
label="6.4. ${e.t(`render-form.forms.ethics-commission-form.stakeholder-participation-planned-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stakeholderParticipationPlanned||``}>
</dbp-form-enum-view>
${this.conditionalFields.stakeholderParticipationPlanned?l`
<dbp-form-enum-view
subscribe="lang"
name="hasProvisionForAppropriateRecognition"
label="6.4.1. ${e.t(`render-form.forms.ethics-commission-form.provision-for-appropriate-recognition-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasProvisionForAppropriateRecognition||``}></dbp-form-enum-view>
`:``}
</article>
<article>
<h4 class="section-sub-title">7. ${e.t(`render-form.forms.ethics-commission-form.section-working-conditions-title`)}</h4>
<dbp-form-enum-view
subscribe="lang"
name="employmentContract"
label="7.1. ${e.t(`render-form.forms.ethics-commission-form.employment-contract-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.employmentContract||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="workLifeBalance"
label="7.2. ${e.t(`render-form.forms.ethics-commission-form.work-life-balance-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.workLifeBalance||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="fairCompensation"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.fairCompensation||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
7.3. Gibt es eine angemessene und faire Entlohnung für unterschiedliche Tätigkeiten im Projekt (z.B.: auch für die Annotierung und Bearbeitung von Datensätzen)?
</div>
<div slot="en">
7.3. Is there appropriate and fair remuneration for different activities in the project (e.g. also for annotating and processing data records)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-view>
<dbp-form-enum-view
data-condition="yes"
subscribe="lang"
name="diversityAspects"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.diversityAspects||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
7.4. Werden im Projekt diversitäts- und gendersensible Aspekte (z.B.: transparente Kriterien für Bewerber*innen, Chancengleichheit bei der Mitarbeit im Projekt) berücksichtigt (<a href='https://tu4u.tugraz.at/fileadmin/public/Studierende_und_Bedienstete/Anleitungen/Diversity-Gender_in_Forschungsprojekten_Checkliste_Deutsch.pdf?sword_list%5B0%5D=gender&sword_list%5B1%5D=forschung&no_cache=1' target='_blank'>siehe Leitfaden der TU Graz</a>)?
</div>
<div slot="en">
7.4. Are diversity and gender-sensitive aspects (such as transparent criteria for applicants, equal opportunities for participation in the project) considered in the project (<a href='https://tu4u.tugraz.at/fileadmin/public/Studierende_und_Bedienstete/Anleitungen/Diversity-Gender_in_Forschungsprojekten_Checkliste_Deutsch.pdf?sword_list%5B0%5D=gender&sword_list%5B1%5D=forschung&no_cache=1' target='_blank'>see guidelines from TU Graz</a>)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-view>
${this.conditionalFields.diversityAspects?l`
<dbp-form-string-view
subscribe="lang"
name="diversityAspectsExamples"
label="7.4.1. ${e.t(`render-form.forms.ethics-commission-form.diversity-aspects-examples-label`)}"
value=${t.diversityAspectsExamples||``}></dbp-form-string-view>
`:``}
</article>
<article>
<h4 class="section-sub-title">8. ${e.t(`render-form.forms.ethics-commission-form.section-ethics-compass-title`)}</h4>
<dbp-form-enum-view
subscribe="lang"
name="humanDecisionInfluence"
data-condition="yes"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanDecisionInfluence||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
8.1. Können die im Forschungsvorhaben entwickelten informationsverarbeitenden Systeme menschliche, ethisch relevante Entscheidungen beeinflussen, ersetzen oder umgehen?
</div>
<div slot="en">
8.1. Can the information processing systems developed in the research project influence, replace, or circumvent human decisions that have ethical implications?
</div>
</dbp-translated>
</span>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="hasNegativeEffects"
data-condition="yes"
label="8.2. ${e.t(`render-form.forms.ethics-commission-form.has-negative-effects-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasNegativeEffects||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="technologyAssessment"
data-condition="yes"
label="8.3. ${e.t(`render-form.forms.ethics-commission-form.technology-assessment-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.technologyAssessment||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="weaponSystem"
data-condition="yes"
label="8.4. ${e.t(`render-form.forms.ethics-commission-form.weapon-system-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.weaponSystem||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="hasDualUse"
data-condition="yes"
label="8.5. ${e.t(`render-form.forms.ethics-commission-form.has-dual-use-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasDualUse||``}>
</dbp-form-enum-view>
<dbp-form-enum-view
subscribe="lang"
name="reputationalDamage"
data-condition="yes"
display-mode="list"
label="8.6. ${e.t(`render-form.forms.ethics-commission-form.reputational-damage-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.reputationalDamage||``}>
</dbp-form-enum-view>
${this.conditionalFields.humanDecisionInfluence||this.conditionalFields.hasNegativeEffects||this.conditionalFields.technologyAssessment||this.conditionalFields.weaponSystem||this.conditionalFields.hasDualUse||this.conditionalFields.reputationalDamage?l`
<dbp-form-string-view
class="${g({"fade-in":this.conditionalFields.humanDecisionInfluence||this.conditionalFields.hasNegativeEffects||this.conditionalFields.technologyAssessment||this.conditionalFields.weaponSystem||this.conditionalFields.hasDualUse||this.conditionalFields.reputationalDamage})}"
subscribe="lang"
name="hasNegativeEffectsList"
label="8.7. ${e.t(`render-form.forms.ethics-commission-form.has-negative-effects-list-label`)}"
value=${t.hasNegativeEffectsList||``}></dbp-form-string-view>
`:``}
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-documents-title`)}</h3>
<div class="description">
<dbp-translated subscribe="lang">
<div slot="en">
<p>If applicable: Please enclose all documents intended for study participants (informed consent forms, questionnaires, survey forms, or task instructions) with your application.</p>
<p>If necessary, you can enclose further documents that you consider relevant for the assessment of your research project as a whole.</p>
</div>
<div slot="de">
<p>Falls zutreffend: Bitte legen Sie alle an Proband*innen gerichtete Dokumente (Einverständniserklärung/Informed Consent, Fragebögen, Erhebungsbögen oder Aufgabenstellungen) Ihrem Antrag bei.</p>
<p>Allenfalls können Sie weitere Dokumente beilegen, die aus Ihrer Sicht von Relevanz für die Beurteilung Ihres Forschungsvorhabens im Gesamten sind.</p>
</div>
</dbp-translated>
</div>
<div class="file-upload-container">
<h4 class="attachments-title">${e.t(`render-form.download-widget.attachments-title`)}</h4>
<div class="uploaded-files">
${this.renderAttachedFilesHtml(`attachments`)}
</div>
</div>
<dbp-form-string-view
subscribe="lang"
name="comments"
label="${e.t(`render-form.forms.ethics-commission-form.comments-label`)}"
value=${t.comments||``}></dbp-form-string-view>
</article>
<article class="article-consent">
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-consent-title`)}</h3>
<div class="description">
<dbp-translated subscribe="lang">
<div slot="de">
<p>Wenn Menschen als Proband*innen mitwirken:</p>
<p>Die Proband*innen sollen von der Studienleitung über folgende Punkte informiert werden (beispielsweise durch eine Proband*innen-Information und Einwilligungserklärung zur Teilnahme am Forschungsvorhaben):</p>
<ol class="lettered-list">
<li><p>Genaue Angabe von Titel, Zweck und Dauer Ihres Forschungsvorhabens sowie Erklärung des Ablaufs für die Proband*innen in einfacher und klarer Sprache (bitte vermeiden Sie nach Möglichkeit Fremdwörter)</p></li>
<li><p>Angaben zur durchführenden Forschungseinrichtung und zu einer verantwortlichen Kontaktperson (Vor- und Nachname, E-Mail-Adresse und evtl. Telefonnummer) für weitere Fragen, Anregungen oder Beschwerden</p></li>
<li><p>Angabe möglicher Risiken für die Proband*innen (Unannehmlichkeiten, Gefahren, Belastungen) und etwaiger Folgen</p></li>
<li>
<p>Angaben über die Höhe der Aufwandsentschädigung (auch im Falle eines vorzeitigen Abbruchs) sowie eines sonstigen Nutzens für die Proband*innen</p>
<div class="info-box">
<p>Bitte kümmern Sie sich frühzeitig um ein entsprechendes Budget für Aufwandsentschädigungen für die Proband*innen Ihrer Studie (Budgetierung in Forschungsanträgen)!</p>
<p>Die Angemessenheit der Aufwandsentschädigung hängt zunächst davon ab, ob es für die Durchführung der Studie eine Finanzierung gibt oder nicht. </p>
<p>Wenn es eine Finanzierung gibt, empfehlen wir in Abhängigkeit der folgenden Kriterien eine Aufwandsentschädigung <b>in Höhe von EUR 10 bis 25 pro Stunde</b> in Form von Holding-GrazGutscheinen oder Supermarkt-Gutscheinen:</p>
<ol>
<li><p><b>Je nach Art der Studienteilnahme und Aufwand für die Proband*innen:</b> Füllen Proband*innen einen Fragebogen aus, führen sie ein Tagebuch, erfüllen sie Aufgaben und/oder kommt es zu psychophysiologischen Datenerhebungen?</p></li>
<li><p><b>Je nach Dauer der Studienteilnahme:</b> Einmalig, wiederholt, aufgewandte Zeit gesamt </p></li>
<li><p><b>Je nach Qualität und Quantität der Daten von Proband*innen:</b> sociodemographische Daten oder zusätzlich auch Gesundheitsdaten?</p></li>
</ol>
<p>Wenn es keine Finanzierung gibt, empfehlen wir, die Proband*innen für die Teilnahme an Ihrer Studie mit einer symbolischen Anerkennung, zB in Form von Schokolade, Verlosung von Goodies oder individuelle Rückmeldung zu ihren Datenauswertungen, zu bedenken.</p>
<p>Unabhängig von der Finanzierung bitten wir Sie, Aufwandsentschädigungen auch für jene Proband*innen aliquot vorzusehen, die ihre Studienteilnahme aus welchem Grund auch immer frühzeitig abbrechen.</p>
<p>In erster Linie werden aufgrund der Regionalität Holding-GrazGutscheine oder Supermarkt-Gutscheine empfohlen. Gemäß TU Graz-Richtlinie zur Beschaffung, RL 96000 RLBS 172-01, dürfen Mitarbeitende der TU Graz keine Bargeld-Leistung als Aufwandsentschädigung für Ihre Studienteilnahme erhalten.</p>
</div>
</li>
<li><p>Hinweis auf die Freiwilligkeit der Teilnahme inklusive des Rechts, die Einwilligung jederzeit ohne Angabe von Gründen widerrufen und die Teilnahme vorzeitig abbrechen zu können, ohne dass den Proband*innen dadurch ein Nachteil entsteht</p></li>
<li><p>Hinweis auf die erfolgte Behandlung durch die Ethikkommission</p></li>
<li><p><a target="_blank" href="https://www.tugraz.at/ueber-diese-seite/elektronischer-briefkasten-fuer-anonyme-hinweise-whistleblowing">Hinweis auf die Richtlinie für Hinweisgeber*innen und den elektronischen Briefkasten für anonyme Hinweise an der TU Graz</a></p></li>
<li><p>Hinweis auf die Datenspeicherung (z.B.: welcher Server, wer hat Zugriff), die Aufbewahrungsdauer sowie auf die Frage des Personenbezugs</p></li>
<li><p>Einwilligungserklärung der Proband*innen (bzw. von deren gesetzlichen Vertreter*innen) zur Teilnahme an der Studie</p></li>
</ol>
</div>
<div slot="en">
<p>Should humans engage as participants:</p>
<p>The participants should be informed by the study management about the following points (e.g.: by means of a participant information sheet and declaration of consent to participate in the research project):</p>
<ol class="lettered-list">
<li><p>Precisely state the title, purpose and duration of your research project and explain the procedure to the participants in simple and clear language (please avoid technical terms if possible)</p></li>
<li><p>Details of the research institution conducting the study and a responsible contact person (first and last name, e-mail address and telephone number if applicable) for further questions, suggestions or complaints </p></li>
<li><p>Indication of possible risks for the participants (inconvenience, danger, stress) and possible consequences</p></li>
<li>
<p>Information on the amount of the compensation (including in the event of premature termination) and other benefits for the participants</p>
<div class="info-box">
<p>Please ensure that funding for the participant compensation is secured at an early stage of the planning (budgeting in research proposals)!</p>
<p>The appropriateness of the compensation depends first and foremost on whether or not funding is available for the study.</p>
<p>If funding is available, we recommend a <b>compensation of EUR 10 to 25 per hour</b> in the form of Holding-Graz vouchers or supermarket vouchers, depending on the following criteria:</p>
<ol>
<li><p><b>Depending on the type of study participation and effort required of the participants:</b> Do participants fill out a questionnaire, keep a diary, perform tasks, and/or undergo psychophysiological data collection?</p></li>
<li><p><b>Depending on the duration of study participation:</b> One-time, repeated, total time spent</p></li>
<li><p><b>Depending on the quality and quantity of the data provided by the participants:</b> sociodemographic data or additional health data?</p></li>
</ol>
<p>If no funding is available, we recommend rewarding the participants for participating in your study with a symbolic token of appreciation, e.g., a raffle for goodies or individual feedback on their data evaluations or information on the study results.</p>
<p>Regardless of funding, we ask that you also provide pro rata compensation for those participants who withdraw from the study early for any reason. In any case, we recommend sharing the study results with participants.</p>
<p>Due to regional considerations, Holding Graz vouchers or supermarket vouchers are recommended. In accordance with TU Graz procurement guidelines RL 96000 RLBS 172-01, TU Graz employees may not receive cash payments as expense allowances for participating in studies.</p>
</div>
</li>
<li><p>Reference to the voluntary nature of participation, including the right to withdraw consent at any time without giving reasons and to terminate participation prematurely without any disadvantage to the participants</p></li>
<li><p>Reference to the Ethics Committee’s decision</p></li>
<li><p><a target="_blank" href="https://www.tugraz.at/en/about-this-page/electronic-mailbox-for-anonymous-tips-whistleblowing">Reference to the TU Graz Whistleblowing Policy and the Electronic Mailbox for Anonymous Tips</a>.</p></li>
<li><p>Reference regarding data storage (e.g., which server, who has access), the retention period, and whether the data is personally identifiable</p></li>
<li><p>Declaration of consent of the participants (or their legal representatives) to participate in the study </p></li>
</ol>
</div>
</dbp-translated>
</div>
</article>
<article class="article-votum-file-attachments">
<h3 class="section-title section-title--top-margin">${e.t(`render-form.forms.ethics-commission-form.admin-voting-results-title`)}</h3>
<div class="file-upload-container">
<h4 class="attachments-title">${e.t(`render-form.download-widget.attachments-title`)}</h4>
<div class="uploaded-files">
${this.renderAttachedFilesHtml(`voting`)}
</div>
</div>
</article>
</form>
<dbp-file-sink
id="file-sink"
class="file-sink"
lang="${this.lang}"
allowed-mime-types="application/pdf,.pdf"
decompress-zip
enabled-targets="local,clipboard,nextcloud"
filename="ethics-commission-form-${this.submissionId||``}-attachments.zip"
subscribe="nextcloud-auth-url,nextcloud-web-dav-url,nextcloud-name,nextcloud-file-url"></dbp-file-sink>
<dbp-modal
id="pdf-view-modal"
class="pdf-view-modal"
modal-id="pdf-viewer-modal"
subscribe="lang">
<div slot="content">
<dbp-pdf-viewer
id="dbp-pdf-viewer"
lang="${this.lang}"
auto-resize="cover"></dbp-pdf-viewer>
</div>
</dbp-modal>
<dbp-grant-permission-dialog
id="grant-permission-dialog"
lang="${this.lang}"
modal-title="${e.t(`manage-forms.edit-permission-modal-title`)}"
subscribe="auth"
entry-point-url="${this.entryPointUrl}"
resource-identifier="${this.submissionId}"
resource-class-identifier="DbpRelayFormalizeSubmission"></dbp-grant-permission-dialog>
<!-- Deletion Confirmation Modal -->
<dbp-modal
id="deletion-confirmation-modal--formalize"
class="modal modal--confirmation"
modal-id="deletion-confirmation-modal"
title="${e.t(`manage-forms.delete-confirmation-title`)}"
subscribe="lang">
<div slot="content">
<p>${e.t(`manage-forms.delete-confirmation-message`)}</p>
</div>
<menu slot="footer" class="footer-menu">
<dbp-button
type="is-secondary"
no-spinner-on-click
@click="${()=>i(this)}">
${e.t(`manage-forms.abort`)}
</dbp-button>
<dbp-button
type="is-danger"
no-spinner-on-click
@click="${()=>r(this)}">
${e.t(`manage-forms.delete`)}
</dbp-button>
</menu>
</dbp-modal>
${this.renderResult(this.submitted)}
`}renderFormElements(){let e=this._i18n,t=this.formData||{};return l`
<form id="ethics-commission-form" aria-labelledby="form-title" class="${g({hidden:this.hideForm,"formalize-form":!0,"readonly-mode":this.readOnly,"edit-mode":!this.readOnly})}">
<div class="form-header">
${this.getButtonRowHtml()}
</div>
<h2 class="form-title">${e.t(`render-form.forms.ethics-commission-form.title`)}</h2>
<p class="form-description">
${e.t(`render-form.forms.ethics-commission-form.description-part1`)}
<a href="mailto:ethikkommission@tugraz.at" target="_blank">ethikkommission@tugraz.at</a>
${e.t(`render-form.forms.ethics-commission-form.description-part2`)}
</p>
<p>
<span class="red-marked-asterisk">
${e.t(`render-form.required-files-asterisk`)}
</span>
${e.t(`render-form.required-files-text`)}
</p>
<dbp-form-enum-element
subscribe="lang"
name="type"
label="${e.t(`render-form.forms.ethics-commission-form.type-label`)}"
display-mode="list"
multiple
.items=${{study:e.t(`render-form.forms.ethics-commission-form.study`),publication:e.t(`render-form.forms.ethics-commission-form.publication`)}}
.value=${t.type||``}
required>
</dbp-form-enum-element>
<article>
<dbp-form-string-element
subscribe="lang"
name="registryNumber"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.registry-number-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.registry-number-description`)}"
value=${t.registryNumber||``}></dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="userTitle"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.user-title`)}"
required
value=${t.userTitle||``}>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="userTitleShort"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.user-title-short`)}"
required
value=${t.userTitleShort||``}>
</dbp-form-string-element>
<dbp-form-person-select-element
subscribe="lang"
name="applicant"
label="${e.t(`render-form.forms.ethics-commission-form.applicant-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.applicant-description`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
.value=${t.applicant||``}
required>
</dbp-form-person-select-element>
<dbp-form-resource-select-element
subscribe="lang"
name="contactDetails"
label="${e.t(`render-form.forms.ethics-commission-form.contact-details-label`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
resource-path="/base/organizations"
.value=${t.contactDetails||``}
required>
</dbp-form-resource-select-element>
<dbp-form-string-element
subscribe="lang"
name="jobPosition"
maxlength="1000"
required
label="${e.t(`render-form.forms.ethics-commission-form.job-position-label`)}"
value=${t.jobPosition||``}>
</dbp-form-string-element>
<dbp-form-person-select-element
subscribe="lang"
name="coApplicants"
label="${e.t(`render-form.forms.ethics-commission-form.co-applicants-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.co-applicants-description`)}"
.auth=${this.auth??{}}
.entryPointUrl=${this.entryPointUrl}
.value=${Array.isArray(t.coApplicants)?t.coApplicants:[]}
multiple>
</dbp-form-person-select-element>
<dbp-form-string-element
subscribe="lang"
name="externalCoApplicants"
maxlength="1000"
rows="3"
label="${e.t(`render-form.forms.ethics-commission-form.external-co-applicants-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.external-co-applicants-description`)}"
value=${t.externalCoApplicants||``}>
</dbp-form-string-element>
<dbp-form-enum-element
subscribe="lang"
name="fieldsOfExpertise"
display-mode="list"
multiple
required
label="${e.t(`render-form.forms.ethics-commission-form.fields-of-expertise-label`)}"
.items=${{"advanced-material-sciences":e.t(`render-form.forms.ethics-commission-form.advanced-material-sciences`),"human-and-biotechnology":e.t(`render-form.forms.ethics-commission-form.human-and-biotechnology`),"information-communication-and-computing":e.t(`render-form.forms.ethics-commission-form.information-communication-and-computing`),"mobility-and-production":e.t(`render-form.forms.ethics-commission-form.mobility-and-production`),"sustainable-systems":e.t(`render-form.forms.ethics-commission-form.sustainable-systems`),none:e.t(`render-form.forms.ethics-commission-form.none`)}}
@change=${e=>this.handleFieldsOfExpertiseItems(e)}
.value=${t.fieldsOfExpertise||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
data-condition="no"
name="isNewSubmission"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.is-new-submission-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isNewSubmission||``}></dbp-form-enum-element>
${this.conditionalFields.isNewSubmission?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.isNewSubmission})}"
subscribe="lang"
name="applicationReferenceNumber"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.application-reference-number-label`)}"
value=${t.applicationReferenceNumber||``}
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
data-condition="yes"
subscribe="lang"
name="requestedFromAnotherCommittee"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.requested-from-another-committee-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.requestedFromAnotherCommittee||``}>
</dbp-form-enum-element>
${this.conditionalFields.requestedFromAnotherCommittee?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.requestedFromAnotherCommittee})}"
subscribe="lang"
name="anotherCommittee"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.another-committee-label`)}"
value=${t.anotherCommittee||``}
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="isResearchProject"
data-condition="yes"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.is-research-project-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isResearchProject||``}>
</dbp-form-enum-element>
${this.conditionalFields.isResearchProject?l`
<dbp-form-enum-element
class="${g({"fade-in":this.conditionalFields.isResearchProject})}"
subscribe="lang"
name="qualificationWork"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.qualification-work-label`)}"
.items=${{bachelor:e.t(`render-form.forms.ethics-commission-form.bachelor-label`),master:e.t(`render-form.forms.ethics-commission-form.master-label`),doctorat:e.t(`render-form.forms.ethics-commission-form.doctorat-label`)}}
multiple
.value=${t.qualificationWork||``}></dbp-form-enum-element>
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.isResearchProject})}"
subscribe="lang"
name="namesOfSupervisingPersons"
maxlength="1000"
rows="4"
label="${e.t(`render-form.forms.ethics-commission-form.names-of-supervising-persons-label`)}"
value=${t.namesOfSupervisingPersons||``}
required></dbp-form-string-element>
<dbp-form-enum-element
subscribe="lang"
name="isPublicationPlanned"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.is-publication-planned-label`)}"
.items=${{"no-publication":e.t(`render-form.forms.ethics-commission-form.no-publication-label`),"one-publication":e.t(`render-form.forms.ethics-commission-form.one-publication-label`)}}
.value=${t.isPublicationPlanned||``}></dbp-form-enum-element>
`:``}
${this.isAdmin?l`
<div class="admin-fields">
<dbp-form-date-element
subscribe="lang"
name="studyDescription"
label="${e.t(`render-form.forms.ethics-commission-form.study-description-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.filled-by-admins-warning`)}"
value=${t.studyDescription||``}
rows="5"></dbp-form-date-element>
<dbp-form-date-element
subscribe="lang"
name="studyDescriptionDateOfTransmission"
label="${e.t(`render-form.forms.ethics-commission-form.date-of-transmission-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.filled-by-admins-warning`)}"
value=${t.studyDescriptionDateOfTransmission||``}></dbp-form-date-element>
<div class="data-protection-wrapper">
<dbp-form-enum-element
subscribe="lang"
name="dataProtectionChecked"
display-mode="list"
data-condition="yes-at"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label`)}"
.items=${{"yes-at":e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label-yes-at`),not:e.t(`render-form.forms.ethics-commission-form.data-protection-checked-label-not`)}}
.value=${t.dataProtectionChecked||``}></dbp-form-enum-element>
${this.formData?.dataProtectionChecked===`yes-at`?l`
<dbp-form-date-element
subscribe="lang"
name="dataProtectionDate"
class="fade-in"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-date-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.filled-by-admins-warning`)}"
value=${t.dataProtectionDate||``}></dbp-form-date-element>
`:this.formData?.dataProtectionChecked===`not`?l`
<dbp-form-string-element
subscribe="lang"
name="dataProtectionComment"
class="fade-in"
label="${e.t(`render-form.forms.ethics-commission-form.data-protection-comment-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.filled-by-admins-warning`)}"
maxlength="1000"
value=${t.dataProtectionComment||``}></dbp-form-string-element>
`:``}
</div>
</div>
`:``}
<dbp-form-string-element
subscribe="lang"
name="shortDescription"
maxlength="2500"
label="${e.t(`render-form.forms.ethics-commission-form.short-description-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.short-description-description`)}"
value=${t.shortDescription||``}
rows="5"
required></dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="dataSource"
maxlength="1500"
label="${e.t(`render-form.forms.ethics-commission-form.data-source-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.data-source-description`)}"
value=${t.dataSource||``}
rows="5"
required></dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="numberOfTestPersons"
maxlength="100"
label="${e.t(`render-form.forms.ethics-commission-form.number-of-test-persons-label`)}"
value=${t.numberOfTestPersons||``}
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="acquisitionOfTestSubjects"
maxlength="1500"
label="${e.t(`render-form.forms.ethics-commission-form.acquisition-of-test-subjects-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.acquisition-of-test-subjects-description`)}"
value=${t.acquisitionOfTestSubjects||``}
rows="5"
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="volunteersCompensation"
maxlength="1500"
label="${e.t(`render-form.forms.ethics-commission-form.volunteers-compensation-label`)}"
value=${t.volunteersCompensation||``}
rows="5"
required>
<div slot="description">
<dbp-translated subscribe="lang">
<div slot="de">
Mitarbeiter*innen der TU Graz können laut Beschaffungsrichtlinie keine Entschädigung für die Mitwirkung an Studien als Proband*innen erhalten.
Grundsätzlich wird empfohlen, Proband*innen für ihre Studienteilnahme zu entschädigen (siehe grüne Box unter IV. in den Antragsunterlagen).
Angabe über die Art und Höhe der <a href="#info-box">Aufwandsentschädigung</a> für Proband*innen für deren Teilnahme an der Studie.
Siehe Hinweis im grünen Feld am Formularende.
</div>
<div slot="en">
According to the procurement guidelines, employees of TU Graz cannot receive compensation for participating in studies as participants.
It is recommended that participants get compensated for their participation in the study (see also the green box under IV. in the application materials).
Information on the type and amount of <a href="#info-box">compensation</a> for participants for their participation in the study.
For more information, see the green box at the bottom of the form.
</div>
</dbp-translated>
</div>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="volunteersCompensationEarlyEnd"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.volunteers-compensation-early-end-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.volunteers-compensation-early-end-description`)}"
value=${t.volunteersCompensationEarlyEnd||``}
rows="5"
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="participationCriteria"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.participation-criteria-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.participation-criteria-description`)}"
value=${t.participationCriteria||``}
rows="5"
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="subjectsDependencies"
maxlength="1500"
label="${e.t(`render-form.forms.ethics-commission-form.subjects-dependencies-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.subjects-dependencies-description`)}
${e.t(`render-form.forms.ethics-commission-form.subjects-dependencies-description-2`)}"
value=${t.subjectsDependencies||``}
rows="5"
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
name="founding"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.founding-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.founding-description`)}"
value=${t.founding||``}
rows="5"
required>
</dbp-form-string-element>
<dbp-form-date-element
subscribe="lang"
name="projectStartDate"
label="${e.t(`render-form.forms.ethics-commission-form.project-start-date-label`)}"
value=${t.projectStartDate||``}
required>
</dbp-form-date-element>
<dbp-form-string-element
subscribe="lang"
name="projectDuration"
maxlength="100"
label="${e.t(`render-form.forms.ethics-commission-form.project-duration-label`)}"
value=${t.projectDuration||``}
required>
</dbp-form-string-element>
<dbp-form-string-element
subscribe="lang"
rows="5"
name="reasonOfSubmission"
maxlength="1000"
label="${e.t(`render-form.forms.ethics-commission-form.reason-of-submission-label`)}"
value=${t.reasonOfSubmission||``}
required>
</dbp-form-string-element>
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-research-description-title`)}</h3>
<div class="description">
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-1`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-2`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-3`)}</p>
<p>${e.t(`render-form.forms.ethics-commission-form.section-research-description-description-4`)}</p>
</div>
<dbp-form-string-element
subscribe="lang"
name="researchProjectDescription"
maxlength="10000"
label="${e.t(`render-form.forms.ethics-commission-form.research-project-description-label`)}"
value=${t.researchProjectDescription||``}
rows="10"
required>
</dbp-form-string-element>
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-self-assessment-title`)}</h3>
<div class="description">
<p>${e.t(`render-form.forms.ethics-commission-form.section-self-assessment-description`)}</p>
<dbp-translated subscribe="lang">
<div slot="de">
<p class="field-note">Angelehnt an den Kriterienkatalog der Europäischen Kommission im Zusammenhang von EU-Grants/Horizon Europe aus dem Jahr 2021.</p>
</div>
<div slot="en">
<p class="field-note">Based on the European Commission's list of criteria in connection with EU grants/Horizon Europe from 2021.</p>
</div>
</dbp-translated>
</div>
<h4 class="section-sub-title">1. ${e.t(`render-form.forms.ethics-commission-form.section-people-title`)}</h4>
<dbp-form-enum-element
data-condition="yes"
subscribe="lang"
name="testSubjects"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.test-subjects-label`)}"
description="${e.t(`render-form.forms.ethics-commission-form.test-subject-description`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjects||``}>
</dbp-form-enum-element>
${this.conditionalFields.testSubjects?l`
<div
class="question-group ${g({"fade-in":this.conditionalFields.testSubjects})}">
<h5 class="question-group-title">
1.1.
${e.t(`render-form.forms.ethics-commission-form.human-participants-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsVoluntary"
display-mode="list"
required
label="1.1.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-voluntary-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsVoluntary||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="isSelfExperiment"
display-mode="list"
required
label="1.1.2. ${e.t(`render-form.forms.ethics-commission-form.is-self-experiment-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isSelfExperiment||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsInformedConsent"
display-mode="list"
required
label="1.1.3. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-informed-consent-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsInformedConsent||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsConsentSigned"
display-mode="list"
required
label="1.1.4. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-consent-signed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsConsentSigned||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsWithdrawPossible"
display-mode="list"
required
label="1.1.5. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-withdraw-possible-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsWithdrawPossible||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsDependent"
display-mode="list"
required
label="1.1.6. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-dependent-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsDependent||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsVulnerable"
display-mode="list"
required
label="1.1.7. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-vulnerable-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsVulnerable||``}></dbp-form-enum-element>
</div>
<div class="question-group">
<h5 class="question-group-title">
1.2.
${e.t(`render-form.forms.ethics-commission-form.interventions-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="invasiveTechniquesUsed"
display-mode="list"
required
label="1.2.1. ${e.t(`render-form.forms.ethics-commission-form.invasive-techniques-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.invasiveTechniquesUsed||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="influenceOnBrainActivity"
display-mode="list"
required
label="1.2.2. ${e.t(`render-form.forms.ethics-commission-form.influence-on-brain-activity-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.influenceOnBrainActivity||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsTortured"
data-condition="yes"
display-mode="list"
required
label="1.2.3. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-tortured-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsTortured||``}></dbp-form-enum-element>
${this.conditionalFields.testSubjectsTortured?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.testSubjectsTortured})}"
subscribe="lang"
name="testSubjectsTorturedExamples"
maxlength="1000"
rows="3"
label="1.2.3.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-tortured-example-label`)}"
value=${t.testSubjectsTorturedExamples||``}
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsHarmed"
display-mode="list"
required
label="1.2.4. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-harmed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsHarmed||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsRisksJustified"
display-mode="list"
required
label="1.2.5. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-risks-justified-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsRisksJustified||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsRiskMinimized"
data-condition="yes"
display-mode="list"
required
label="1.2.6. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-risk-minimized-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsRiskMinimized||``}></dbp-form-enum-element>
${this.conditionalFields.testSubjectsRiskMinimized?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.testSubjectsRiskMinimized})}"
subscribe="lang"
name="riskMinimizationSteps"
label="1.2.6.1. ${e.t(`render-form.forms.ethics-commission-form.risk-minimization-steps-label`)}"
maxlength="1000"
rows="3"
required
value=${t.riskMinimizationSteps||``}></dbp-form-string-element>
`:``}
</div>
<div class="question-group">
<h5 class="question-group-title">
1.3.
${e.t(`render-form.forms.ethics-commission-form.reasonableness-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="testSubjectsReasonableToParticipate"
display-mode="list"
required
label="1.3.1. ${e.t(`render-form.forms.ethics-commission-form.test-subjects-reasonable-to-participate-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.testSubjectsReasonableToParticipate||``}></dbp-form-enum-element>
</div>
`:``}
<div class="question-group">
<h5 class="question-group-title">
1.4. ${e.t(`render-form.forms.ethics-commission-form.dead-bodies-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="deadBodies"
data-condition="yes"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.dead-bodies-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.deadBodies||``}>
</dbp-form-enum-element>
${this.conditionalFields.deadBodies?l`
<div
class="question-group ${g({"fade-in":this.conditionalFields.deadBodies})}">
<dbp-form-enum-element
subscribe="lang"
name="legalDocumentsAvailable"
display-mode="list"
required
label="1.4.1. ${e.t(`render-form.forms.ethics-commission-form.legal-documents-available-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.legalDocumentsAvailable||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="disturbanceOfPeaceOfDead"
display-mode="list"
required
label="1.4.2. ${e.t(`render-form.forms.ethics-commission-form.disturbance-of-peace-of-dead-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.disturbanceOfPeaceOfDead||``}></dbp-form-enum-element>
</div>
`:``}
</div>
<div class="question-group">
<h5 class="question-group-title">
1.5. ${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="humanStemCells"
data-condition="yes"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanStemCells||``}>
</dbp-form-enum-element>
${this.conditionalFields.humanStemCells?l`
<div
class="question-group ${g({"fade-in":this.conditionalFields.humanStemCells})}">
<dbp-form-enum-element
subscribe="lang"
name="humanTissueUsed"
display-mode="list"
required
label="1.5.1. ${e.t(`render-form.forms.ethics-commission-form.human-tissue-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanTissueUsed||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="humanStemCellsUsed"
data-condition="yes"
display-mode="list"
required
label="1.5.2. ${e.t(`render-form.forms.ethics-commission-form.human-stem-cells-used-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanStemCellsUsed||``}></dbp-form-enum-element>
${this.conditionalFields.humanStemCellsUsed?l`
<dbp-form-enum-element
class="${g({"fade-in":this.conditionalFields.humanStemCellsUsed})}"
subscribe="lang"
name="stemCellsFromEmbryos"
display-mode="list"
required
label="1.5.2.1. ${e.t(`render-form.forms.ethics-commission-form.stem-cells-from-embryos-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stemCellsFromEmbryos||``}></dbp-form-enum-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="useOfHumanEmbryos"
data-condition="yes"
display-mode="list"
required
label="1.5.3. ${e.t(`render-form.forms.ethics-commission-form.use-of-human-embryos-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.useOfHumanEmbryos||``}></dbp-form-enum-element>
${this.conditionalFields.useOfHumanEmbryos?l`
<dbp-form-enum-element
class="${g({"fade-in":this.conditionalFields.useOfHumanEmbryos})}"
subscribe="lang"
name="stemCellsFromEmbryosDestroyed"
display-mode="list"
required
label="1.5.3.1. ${e.t(`render-form.forms.ethics-commission-form.stem-cells-from-embryos-destroyed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stemCellsFromEmbryosDestroyed||``}></dbp-form-enum-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="commerciallyAvailableCells"
display-mode="list"
required
label="1.5.4. ${e.t(`render-form.forms.ethics-commission-form.commercially-available-cells-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.commerciallyAvailableCells||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="cellsObtainedInResearch"
data-condition="no"
display-mode="list"
required
label="1.5.5. ${e.t(`render-form.forms.ethics-commission-form.cells-obtained-in-research-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.cellsObtainedInResearch||``}></dbp-form-enum-element>
${this.conditionalFields.cellsObtainedInResearch?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.cellsObtainedInResearch})}"
subscribe="lang"
name="tissueOrCellsSource"
maxlength="1000"
rows="3"
label="1.5.5.1. ${e.t(`render-form.forms.ethics-commission-form.tissue-or-cells-source-label`)}"
value=${t.tissueOrCellsSource||``}
required></dbp-form-string-element>
`:``}
</div>
`:``}
</div>
</article>
<article>
<h4 class="section-sub-title">2. ${e.t(`render-form.forms.ethics-commission-form.section-animals-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="animalsInvolved"
data-condition="yes"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.section-animals-involved-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.animalsInvolved||``}>
</dbp-form-enum-element>
${this.conditionalFields.animalsInvolved?l`
<div
class="question-group ${g({"fade-in":this.conditionalFields.animalsInvolved})}">
<h5 class="question-group-title">
2.1.
${e.t(`render-form.forms.ethics-commission-form.section-animals-in-research-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="isAnimalVertebrate"
display-mode="list"
required
label="2.1.1. ${e.t(`render-form.forms.ethics-commission-form.is-animal-vertebrate-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isAnimalVertebrate||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="nonHumanPrimates"
display-mode="list"
required
label="2.1.2. ${e.t(`render-form.forms.ethics-commission-form.non-human-primates-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.nonHumanPrimates||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="geneticallyModifiedAnimals"
display-mode="list"
required
label="2.1.3. ${e.t(`render-form.forms.ethics-commission-form.genetically-modified-animals-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.geneticallyModifiedAnimals||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="endangeredSpecies"
display-mode="list"
required
label="2.1.4. ${e.t(`render-form.forms.ethics-commission-form.endangered-species-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.endangeredSpecies||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="alternativesToUseLaboratoryAnimals"
display-mode="list"
required
label="2.1.5. ${e.t(`render-form.forms.ethics-commission-form.alternatives-to-use-laboratory-animals-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.alternativesToUseLaboratoryAnimals||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="laboratoryAnimalsHarmed"
display-mode="list"
required
label="2.1.6. ${e.t(`render-form.forms.ethics-commission-form.laboratory-animals-harmed-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.laboratoryAnimalsHarmed||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="isRiskJustified"
display-mode="list"
required
label="2.1.7. ${e.t(`render-form.forms.ethics-commission-form.is-risk-justified-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.isRiskJustified||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="relevantLegalDocumentAvailable"
display-mode="list"
required
label="2.1.8. ${e.t(`render-form.forms.ethics-commission-form.relevant-legal-document-available-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.relevantLegalDocumentAvailable||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="authorizedForOrganRemoval"
display-mode="list"
required
label="2.1.9. ${e.t(`render-form.forms.ethics-commission-form.authorized-for-organ-removal-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.authorizedForOrganRemoval||``}></dbp-form-enum-element>
</div>
`:``}
</article>
<article>
<h4 class="section-sub-title">3. ${e.t(`render-form.forms.ethics-commission-form.section-sustainability-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="harmfulSubstances"
display-mode="list"
required
label="3.1. ${e.t(`render-form.forms.ethics-commission-form.harmful-substances-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.harmfulSubstances||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="negativeImpactsOnNature"
display-mode="list"
required
label="3.2. ${e.t(`render-form.forms.ethics-commission-form.negative-impacts-on-nature-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.negativeImpactsOnNature||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="harmfulSubstancesOnSubjects"
data-condition="yes"
display-mode="list"
required
label="3.3. ${e.t(`render-form.forms.ethics-commission-form.harmful-substances-on-subjects-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.harmfulSubstancesOnSubjects||``}>
</dbp-form-enum-element>
${this.conditionalFields.harmfulSubstancesOnSubjects?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.harmfulSubstancesOnSubjects})}"
subscribe="lang"
name="adequateSafetyMeasures"
rows="3"
required
label="3.3.1. ${e.t(`render-form.forms.ethics-commission-form.adequate-safety-measures-label`)}"
.value=${t.adequateSafetyMeasures||``}></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="complyWithSustainabilityStrategy"
data-condition="yes"
display-mode="list"
required
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.complyWithSustainabilityStrategy||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
3.4. Entspricht Ihr Forschungsvorhaben der <a href='https://www.tugraz.at/tu-graz/universitaet/klimaneutrale-tu-graz/roadmap/' target='_blank'>Nachhaltigkeitsstrategie</a> der TU Graz?
</div>
<div slot="en">
3.4. Does your research project comply with the (<a href='https://www.tugraz.at/en/tu-graz/university/climate-neutral-tu-graz/roadmap/' target='_blank'>TU Graz sustainability strategy</a>)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-element>
${this.conditionalFields.complyWithSustainabilityStrategy?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.complyWithSustainabilityStrategy})}"
subscribe="lang"
name="appropriateUseOfResources"
maxlength="1000"
label="3.4.1. ${e.t(`render-form.forms.ethics-commission-form.appropriate-use-of-resources-label`)}"
placeholder="${e.t(`render-form.forms.ethics-commission-form.appropriate-use-of-resources-placeholder`)}"
value=${t.appropriateUseOfResources||``}
rows="4"
required></dbp-form-string-element>
`:``}
</div>
</article>
<article>
<h4 class="section-sub-title">4. ${e.t(`render-form.forms.ethics-commission-form.section-non-eu-states-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="nonEuCountries"
data-condition="yes"
display-mode="list"
required
label="${e.t(`render-form.forms.ethics-commission-form.non-eu-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.nonEuCountries||``}>
</dbp-form-enum-element>
${this.conditionalFields.nonEuCountries?l`
<div
class="question-group ${g({"fade-in":this.conditionalFields.nonEuCountries})}">
<h5 class="question-group-title">
4.1
${e.t(`render-form.forms.ethics-commission-form.section-non-eu-countries-subtitle`)}
</h5>
<dbp-form-enum-element
subscribe="lang"
name="ethicalIssues"
display-mode="list"
required
label="4.1.1. ${e.t(`render-form.forms.ethics-commission-form.ethical-issues-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.ethicalIssues||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="thirdCountriesLocalResources"
data-condition="yes"
display-mode="list"
required
label="4.1.2. ${e.t(`render-form.forms.ethics-commission-form.third-countries-local-resources-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.thirdCountriesLocalResources||``}></dbp-form-enum-element>
${this.conditionalFields.thirdCountriesLocalResources?l`
<dbp-form-enum-element
class="${g({"fade-in":this.conditionalFields.thirdCountriesLocalResources})}"
subscribe="lang"
name="questionResearchFounds"
display-mode="list"
required
label="4.1.2.1. ${e.t(`render-form.forms.ethics-commission-form.question-research-founds-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.questionResearchFounds||``}></dbp-form-enum-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="importMaterialFromThirdCountries"
display-mode="list"
required
label="4.1.3. ${e.t(`render-form.forms.ethics-commission-form.import-material-from-third-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.importMaterialFromThirdCountries||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="lowIncomeCountries"
data-condition="yes"
display-mode="list"
required
label="4.1.4. ${e.t(`render-form.forms.ethics-commission-form.low-income-countries-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.lowIncomeCountries||``}></dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="exposeParticipantsToRisk"
display-mode="list"
required
label="4.1.5. ${e.t(`render-form.forms.ethics-commission-form.expose-participants-to-risk-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.exposeParticipantsToRisk||``}></dbp-form-enum-element>
<dbp-form-string-element
subscribe="lang"
name="riskCountries"
maxlength="1000"
rows="3"
label="4.1.6. ${e.t(`render-form.forms.ethics-commission-form.risk-countries-label`)}"
value=${t.riskCountries||``}
required></dbp-form-string-element>
</div>
`:``}
</article>
<article>
<h4 class="section-sub-title">5. ${e.t(`render-form.forms.ethics-commission-form.section-information-systems-title`)}</h4>
<div class="question-group">
<p>
${e.t(`render-form.forms.ethics-commission-form.section-information-systems-subtitle`)}
</p>
<dbp-form-enum-element
subscribe="lang"
data-condition="yes"
name="replaceHumanDecisionMaking"
display-mode="list"
required
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.replaceHumanDecisionMaking||``}>
<span slot="label">
<dbp-translated subscribe="lang">
<div slot="de">
5.1. Können die im Forschungsvorhaben eingesetzten informationsverarbeitenden Systeme menschliche ethisch relevante Entscheidungen im Projekt beeinflussen, ersetzen oder umgehen?
</div>
<div slot="en">
5.1. Can the information processing systems used in the research project influence, replace, or circumvent human decisions of ethical relevance?
</div>
</dbp-translated>
</span>
</dbp-form-enum-element>
${this.conditionalFields.replaceHumanDecisionMaking?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.replaceHumanDecisionMaking})}"
subscribe="lang"
name="replaceHumanDecisionMakingExamples"
maxlength="1000"
rows="3"
label="5.1.1. ${e.t(`render-form.forms.ethics-commission-form.replace-human-decision-making-examples-label`)}"
value=${t.replaceHumanDecisionMakingExamples||``}
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="potentiallyStigmatizePeople"
data-condition="yes"
data-condition="yes"
display-mode="list"
required
label="5.2. ${e.t(`render-form.forms.ethics-commission-form.potentially-stigmatize-people-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.potentiallyStigmatizePeople||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="negativeSocialConsequences"
data-condition="yes"
display-mode="list"
required
label="5.3. ${e.t(`render-form.forms.ethics-commission-form.negative-social-consequences-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.negativeSocialConsequences||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="informationProcessingWeaponSystem"
data-condition="yes"
display-mode="list"
required
label="5.4. ${e.t(`render-form.forms.ethics-commission-form.information-processing-weapon-system-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.informationProcessingWeaponSystem||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
data-condition="yes"
name="hasEthicalIssues"
display-mode="list"
required
label="5.5. ${e.t(`render-form.forms.ethics-commission-form.has-ethical-issues-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasEthicalIssues||``}>
</dbp-form-enum-element>
${this.conditionalFields.potentiallyStigmatizePeople||this.conditionalFields.negativeSocialConsequences||this.conditionalFields.informationProcessingWeaponSystem||this.conditionalFields.hasEthicalIssues?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.potentiallyStigmatizePeople||this.conditionalFields.negativeSocialConsequences||this.conditionalFields.informationProcessingWeaponSystem||this.conditionalFields.hasEthicalIssues})}"
subscribe="lang"
name="ethicalIssuesList"
maxlength="1000"
label="5.6. ${e.t(`render-form.forms.ethics-commission-form.ethical-issues-list-label`)}"
value=${t.ethicalIssuesList||``}
rows="5"
required></dbp-form-string-element>
`:``}
</div>
</article>
<article>
<h4 class="section-sub-title">6. ${e.t(`render-form.forms.ethics-commission-form.section-conflicts-of-interest-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="hasConflictOfInterest"
data-condition="yes"
display-mode="list"
required
label="6.1. ${e.t(`render-form.forms.ethics-commission-form.has-conflict-of-interest-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConflictOfInterest||``}>
</dbp-form-enum-element>
${this.conditionalFields.hasConflictOfInterest?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.hasConflictOfInterest})}"
subscribe="lang"
name="conflictOfInterestList"
maxlength="1000"
label="6.1.1. ${e.t(`render-form.forms.ethics-commission-form.conflict-of-interest-list-label`)}"
placeholder="Liste der Interessenskonflikten hier"
value=${t.conflictOfInterestList||``}
rows="5"
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="hasConfidentialPart"
data-condition="yes"
display-mode="list"
required
label="6.2. ${e.t(`render-form.forms.ethics-commission-form.has-confidential-part-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConfidentialPart||``}>
</dbp-form-enum-element>
${this.conditionalFields.hasConfidentialPart?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.hasConfidentialPart})}"
subscribe="lang"
name="natureOfBlocking"
maxlength="1000"
label="6.2.1. ${e.t(`render-form.forms.ethics-commission-form.nature-of-blocking-label`)}"
placeholder=""
value=${t.natureOfBlocking||``}
rows="3"
required></dbp-form-string-element>
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.hasConfidentialPart})}"
subscribe="lang"
name="reasonOfBlocking"
maxlength="1000"
label="6.2.2. ${e.t(`render-form.forms.ethics-commission-form.reason-of-blocking-label`)}"
placeholder=""
value=${t.reasonOfBlocking||``}
rows="3"
required></dbp-form-string-element>
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.hasConfidentialPart})}"
subscribe="lang"
name="consequencesOfBlocking"
maxlength="1000"
label="6.2.3. ${e.t(`render-form.forms.ethics-commission-form.consequences-of-blocking-label`)}"
placeholder=""
value=${t.consequencesOfBlocking||``}
rows="3"
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="hasConflictInContentControl"
data-condition="yes"
display-mode="list"
required
label="6.3. ${e.t(`render-form.forms.ethics-commission-form.has-conflict-in-content-control-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasConflictInContentControl||``}>
</dbp-form-enum-element>
${this.conditionalFields.hasConflictInContentControl?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.hasConflictInContentControl})}"
subscribe="lang"
name="conflictInContentControlList"
maxlength="1000"
label="6.3.1. ${e.t(`render-form.forms.ethics-commission-form.conflict-in-content-control-list-label`)}"
placeholder="Liste der Interessenskonflikten hier"
value=${t.conflictInContentControlList||``}
rows="5"
required></dbp-form-string-element>
`:``}
<dbp-form-enum-element
subscribe="lang"
name="stakeholderParticipationPlanned"
data-condition="yes"
display-mode="list"
required
label="6.4. ${e.t(`render-form.forms.ethics-commission-form.stakeholder-participation-planned-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.stakeholderParticipationPlanned||``}>
</dbp-form-enum-element>
${this.conditionalFields.stakeholderParticipationPlanned?l`
<dbp-form-enum-element
class="${g({"fade-in":this.conditionalFields.stakeholderParticipationPlanned})}"
subscribe="lang"
name="hasProvisionForAppropriateRecognition"
display-mode="list"
required
label="6.4.1. ${e.t(`render-form.forms.ethics-commission-form.provision-for-appropriate-recognition-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasProvisionForAppropriateRecognition||``}></dbp-form-enum-element>
`:``}
</article>
<article>
<h4 class="section-sub-title">7. ${e.t(`render-form.forms.ethics-commission-form.section-working-conditions-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="employmentContract"
display-mode="list"
required
label="7.1. ${e.t(`render-form.forms.ethics-commission-form.employment-contract-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.employmentContract||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="workLifeBalance"
display-mode="list"
required
label="7.2. ${e.t(`render-form.forms.ethics-commission-form.work-life-balance-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.workLifeBalance||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="fairCompensation"
display-mode="list"
required
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.fairCompensation||``}>
<span slot="label">
<dbp-translated inline subscribe="lang">
<div slot="de">
7.3. Gibt es eine angemessene und faire Entlohnung für unterschiedliche Tätigkeiten im Projekt (z.B.: auch für die Annotierung und Bearbeitung von Datensätzen)?
</div>
<div slot="en">
7.3. Is there appropriate and fair remuneration for different activities in the project (e.g. also for annotating and processing data records)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="diversityAspects"
data-condition="yes"
display-mode="list"
required
label=""
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.diversityAspects||``}>
<span slot="label">
<dbp-translated inline subscribe="lang">
<div slot="de">
7.4. Werden im Projekt diversitäts- und gendersensible Aspekte (z.B.: transparente Kriterien für Bewerber*innen, Chancengleichheit bei der Mitarbeit im Projekt) berücksichtigt (<a href='https://tu4u.tugraz.at/fileadmin/public/Studierende_und_Bedienstete/Anleitungen/Diversity-Gender_in_Forschungsprojekten_Checkliste_Deutsch.pdf?sword_list%5B0%5D=gender&sword_list%5B1%5D=forschung&no_cache=1' target='_blank'>siehe Leitfaden der TU Graz</a>)?
</div>
<div slot="en">
7.4. Are diversity and gender-sensitive aspects (such as transparent criteria for applicants, equal opportunities for participation in the project) considered in the project (<a href='https://tu4u.tugraz.at/fileadmin/public/Studierende_und_Bedienstete/Anleitungen/Diversity-Gender_in_Forschungsprojekten_Checkliste_Deutsch.pdf?sword_list%5B0%5D=gender&sword_list%5B1%5D=forschung&no_cache=1' target='_blank'>see guidelines from TU Graz</a>)?
</div>
</dbp-translated>
</span>
</dbp-form-enum-element>
${this.conditionalFields.diversityAspects?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.diversityAspects})}"
subscribe="lang"
name="diversityAspectsExamples"
maxlength="1000"
label="7.4.1. ${e.t(`render-form.forms.ethics-commission-form.diversity-aspects-examples-label`)}"
value=${t.diversityAspectsExamples||``}
rows="3"
required></dbp-form-string-element>
`:``}
</article>
<article>
<h4 class="section-sub-title">8. ${e.t(`render-form.forms.ethics-commission-form.section-ethics-compass-title`)}</h4>
<dbp-form-enum-element
subscribe="lang"
name="humanDecisionInfluence"
data-condition="yes"
display-mode="list"
required
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.humanDecisionInfluence||``}>
<span slot="label">
<dbp-translated inline subscribe="lang">
<div slot="de">
8.1. Können die im Forschungsvorhaben entwickelten informationsverarbeitenden Systeme menschliche, ethisch relevante Entscheidungen beeinflussen, ersetzen oder umgehen?
</div>
<div slot="en">
8.1. Can the information processing systems developed in the research project influence, replace, or circumvent human decisions that have ethical implications?
</div>
</dbp-translated>
</span>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="hasNegativeEffects"
data-condition="yes"
display-mode="list"
required
label="8.2. ${e.t(`render-form.forms.ethics-commission-form.has-negative-effects-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasNegativeEffects||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="technologyAssessment"
data-condition="yes"
display-mode="list"
required
label="8.3. ${e.t(`render-form.forms.ethics-commission-form.technology-assessment-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.technologyAssessment||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="weaponSystem"
data-condition="yes"
display-mode="list"
required
label="8.4. ${e.t(`render-form.forms.ethics-commission-form.weapon-system-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.weaponSystem||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="hasDualUse"
data-condition="yes"
display-mode="list"
required
label="8.5. ${e.t(`render-form.forms.ethics-commission-form.has-dual-use-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.hasDualUse||``}>
</dbp-form-enum-element>
<dbp-form-enum-element
subscribe="lang"
name="reputationalDamage"
data-condition="yes"
display-mode="list"
required
label="8.6. ${e.t(`render-form.forms.ethics-commission-form.reputational-damage-label`)}"
.items=${{yes:e.t(`render-form.forms.ethics-commission-form.yes`),no:e.t(`render-form.forms.ethics-commission-form.no`)}}
.value=${t.reputationalDamage||``}>
</dbp-form-enum-element>
${this.conditionalFields.humanDecisionInfluence||this.conditionalFields.hasNegativeEffects||this.conditionalFields.technologyAssessment||this.conditionalFields.weaponSystem||this.conditionalFields.hasDualUse||this.conditionalFields.reputationalDamage?l`
<dbp-form-string-element
class="${g({"fade-in":this.conditionalFields.humanDecisionInfluence||this.conditionalFields.hasNegativeEffects||this.conditionalFields.technologyAssessment||this.conditionalFields.weaponSystem||this.conditionalFields.hasDualUse||this.conditionalFields.reputationalDamage})}"
subscribe="lang"
name="hasNegativeEffectsList"
maxlength="1000"
label="8.7. ${e.t(`render-form.forms.ethics-commission-form.has-negative-effects-list-label`)}"
rows="3"
required
value=${t.hasNegativeEffectsList||``}></dbp-form-string-element>
`:``}
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-documents-title`)}</h3>
<div class="description">
<dbp-translated subscribe="lang">
<div slot="en">
<p>If applicable: Please enclose questionnaires, survey forms or tasks addressed to participants with your application.</p>
<p>If necessary, you can enclose further documents that you consider relevant for the assessment of your research project as a whole.</p>
</div>
<div slot="de">
<p>Falls zutreffend: Bitte legen Sie an Proband*innen gerichtete Fragebögen, Erhebungsbögen oder Aufgabenstellungen Ihrem Antrag bei.</p>
<p>Allenfalls können Sie weitere Dokumente beilegen, die aus Ihrer Sicht von Relevanz für die Beurteilung Ihres Forschungsvorhabens im Gesamten sind.</p>
</div>
</dbp-translated>
</div>
<div class="file-upload-container">
<div class="file-upload-title-container">
<h4 class="attachments-title">
${e.t(`render-form.download-widget.attachments-title`)}
</h4>
<span class="file-upload-limit-warning">
${e.t(`render-form.download-widget.file-upload-count-limit-warning`,{count:this.fileUploadLimits?.allowedFileUploadCount?.attachments})}
${e.t(`render-form.download-widget.file-upload-size-limit-warning`,{size:this.fileUploadLimits?.fileSizeLimit?.attachments})}
</span>
</div>
<div class="uploaded-files">
${this.renderAttachedFilesHtml(`attachments`)}
</div>
<button
class="button is-secondary upload-button upload-button--attachment"
.disabled=${this.fileUploadCounts.attachments>=this.fileUploadLimits?.allowedFileUploadCount?.attachments&&this.filesByGroup.attachments?.filesToRemove?.size===0}
@click="${e=>{this.currentUploadGroup=`attachments`,this.openFilePicker(e)}}">
<dbp-icon name="upload" aria-hidden="true"></dbp-icon>
${e.t(`render-form.download-widget.upload-file-button-label`,{count:this.fileUploadLimits?.allowedFileUploadCount?.attachments})}
</button>
</div>
<dbp-form-string-element
subscribe="lang"
name="comments"
maxlength="5000"
label="${e.t(`render-form.forms.ethics-commission-form.comments-label`)}"
value=${t.comments||``}
placeholder="${e.t(`render-form.forms.ethics-commission-form.comments-placeholder`)}"
rows="3"></dbp-form-string-element>
</article>
<article>
<h3 class="section-title">${e.t(`render-form.forms.ethics-commission-form.section-consent-title`)}</h3>
<div class="description" id="section-consent-description">
<dbp-translated subscribe="lang">
<div slot="de">
<p>Wenn Menschen als Proband*innen mitwirken:</p>
<p>Die Proband*innen sollen von der Studienleitung über folgende Punkte informiert werden (beispielsweise durch eine Proband*innen-Information und Einwilligungserklärung zur Teilnahme am Forschungsvorhaben):</p>
<ol class="lettered-list">
<li><p>Genaue Angabe von Titel, Zweck und Dauer Ihres Forschungsvorhabens sowie Erklärung des Ablaufs für die Proband*innen in einfacher und klarer Sprache (bitte vermeiden Sie nach Möglichkeit Fremdwörter)</p></li>
<li><p>Angaben zur durchführenden Forschungseinrichtung und zu einer verantwortlichen Kontaktperson (Vor- und Nachname, E-Mail-Adresse und evtl. Telefonnummer) für weitere Fragen, Anregungen oder Beschwerden</p></li>
<li><p>Angabe möglicher Risiken für die Proband*innen (Unannehmlichkeiten, Gefahren, Belastungen) und etwaiger Folgen</p></li>
<li>
<p>Angaben über die Höhe der Aufwandsentschädigung (auch im Falle eines vorzeitigen Abbruchs) sowie eines sonstigen Nutzens für die Proband*innen</p>
<div class="info-box" id="info-box">
<p>Bitte kümmern Sie sich frühzeitig um ein entsprechendes Budget für Aufwandsentschädigungen für die Proband*innen Ihrer Studie (Budgetierung in Forschungsanträgen)!</p>
<p>Die Angemessenheit der Aufwandsentschädigung hängt zunächst davon ab, ob es für die Durchführung der Studie eine Finanzierung gibt oder nicht. </p>
<p>Wenn es eine Finanzierung gibt, empfehlen wir in Abhängigkeit der folgenden Kriterien eine Aufwandsentschädigung <b>in Höhe von EUR 10 bis 25 pro Stunde</b> in Form von Holding-GrazGutscheinen oder Supermarkt-Gutscheinen:</p>
<ol>
<li><p><b>Je nach Art der Studienteilnahme und Aufwand für die Proband*innen:</b> Füllen Proband*innen einen Fragebogen aus, führen sie ein Tagebuch, erfüllen sie Aufgaben und/oder kommt es zu psychophysiologischen Datenerhebungen?</p></li>
<li><p><b>Je nach Dauer der Studienteilnahme:</b> Einmalig, wiederholt, aufgewandte Zeit gesamt </p></li>
<li><p><b>Je nach Qualität und Quantität der Daten von Proband*innen:</b> sociodemographische Daten oder zusätzlich auch Gesundheitsdaten?</p></li>
</ol>
<p>Wenn es keine Finanzierung gibt, empfehlen wir, die Proband*innen für die Teilnahme an Ihrer Studie mit einer symbolischen Anerkennung, zB in Form von Schokolade, Verlosung von Goodies oder individuelle Rückmeldung zu ihren Datenauswertungen, zu bedenken.</p>
<p>Unabhängig von der Finanzierung bitten wir Sie, Aufwandsentschädigungen auch für jene Proband*innen aliquot vorzusehen, die ihre Studienteilnahme aus welchem Grund auch immer frühzeitig abbrechen.</p>
<p>In erster Linie werden aufgrund der Regionalität Holding-GrazGutscheine oder Supermarkt-Gutscheine empfohlen. Gemäß TU Graz-Richtlinie zur Beschaffung, RL 96000 RLBS 172-01, dürfen Mitarbeitende der TU Graz keine Bargeld-Leistung als Aufwandsentschädigung für Ihre Studienteilnahme erhalten.</p>
</div>
</li>
<li><p>Hinweis auf die Freiwilligkeit der Teilnahme inklusive des Rechts, die Einwilligung jederzeit ohne Angabe von Gründen widerrufen und die Teilnahme vorzeitig abbrechen zu können, ohne dass den Proband*innen dadurch ein Nachteil entsteht</p></li>
<li><p>Hinweis auf die erfolgte Behandlung durch die Ethikkommission</p></li>
<li><p><a target="_blank" href="https://www.tugraz.at/ueber-diese-seite/elektronischer-briefkasten-fuer-anonyme-hinweise-whistleblowing">Hinweis auf die Richtlinie für Hinweisgeber*innen und den elektronischen Briefkasten für anonyme Hinweise an der TU Graz</a></p></li>
<li><p>Hinweis auf die Datenspeicherung (z.B.: welcher Server, wer hat Zugriff), die Aufbewahrungsdauer sowie auf die Frage des Personenbezugs</p></li>
<li><p>Einwilligungserklärung der Proband*innen (bzw. von deren gesetzlichen Vertreter*innen) zur Teilnahme an der Studie</p></li>
</ol>
</div>
<div slot="en">
<p>Should humans engage as participants:</p>
<p>The participants should be informed by the study management about the following points (e.g.: by means of a participant information sheet and declaration of consent to participate in the research project):</p>
<ol class="lettered-list">
<li><p>Precisely state the title, purpose and duration of your research project and explain the procedure to the participants in simple and clear language (please avoid technical terms if possible)</p></li>
<li><p>Details of the research institution conducting the study and a responsible contact person (first and last name, e-mail address and telephone number if applicable) for further questions, suggestions or complaints </p></li>
<li><p>Indication of possible risks for the participants (inconvenience, danger, stress) and possible consequences</p></li>
<li>
<p>Information on the amount of the compensation (including in the event of premature termination) and other benefits for the participants</p>
<div class="info-box" id="info-box">
<p>Please ensure that funding for the participant compensation is secured at an early stage of the planning (budgeting in research proposals)!</p>
<p>The appropriateness of the compensation depends first and foremost on whether or not funding is available for the study.</p>
<p>If funding is available, we recommend a <b>compensation of EUR 10 to 25 per hour</b> in the form of Holding-Graz vouchers or supermarket vouchers, depending on the following criteria:</p>
<ol>
<li><p><b>Depending on the type of study participation and effort required of the participants:</b> Do participants fill out a questionnaire, keep a diary, perform tasks, and/or undergo psychophysiological data collection?</p></li>
<li><p><b>Depending on the duration of study participation:</b> One-time, repeated, total time spent</p></li>
<li><p><b>Depending on the quality and quantity of the data provided by the participants:</b> sociodemographic data or additional health data?</p></li>
</ol>
<p>If no funding is available, we recommend rewarding the participants for participating in your study with a symbolic token of appreciation, e.g., a raffle for goodies or individual feedback on their data evaluations or information on the study results.</p>
<p>Regardless of funding, we ask that you also provide pro rata compensation for those participants who withdraw from the study early for any reason. In any case, we recommend sharing the study results with participants.</p>
<p>Due to regional considerations, Holding Graz vouchers or supermarket vouchers are recommended. In accordance with TU Graz procurement guidelines RL 96000 RLBS 172-01, TU Graz employees may not receive cash payments as expense allowances for participating in studies.</p>
</div>
</li>
<li><p>Reference to the voluntary nature of participation, including the right to withdraw consent at any time without giving reasons and to terminate participation prematurely without any disadvantage to the participants</p></li>
<li><p>Reference to the Ethics Committee’s decision</p></li>
<li><p><a target="_blank" href="https://www.tugraz.at/en/about-this-page/electronic-mailbox-for-anonymous-tips-whistleblowing">Reference to the TU Graz Whistleblowing Policy and the Electronic Mailbox for Anonymous Tips</a>.</p></li>
<li><p>Reference regarding data storage (e.g., which server, who has access), the retention period, and whether the data is personally identifiable</p></li>
<li><p>Declaration of consent of the participants (or their legal representatives) to participate in the study </p></li>
</ol>
</div>
</dbp-translated>
</div>
</article>
<article>
${this.isAdmin?l`
<h3 class="section-title">
${e.t(`render-form.download-widget.admin-voting-file-upload`)}
</h3>
<div class="description">
<dbp-translated subscribe="lang">
<div slot="en">
<p>
This field is filled in by the administrative
office.
</p>
</div>
<div slot="de">
<p>
Dieses Feld wird von der Geschäftsstelle
ausgefüllt.
</p>
</div>
</dbp-translated>
</div>
<div class="file-upload-container">
<div class="file-upload-title-container">
<h4 class="attachments-title">
${e.t(`render-form.forms.ethics-commission-form.admin-voting-results-title`)}
</h4>
<span class="file-upload-limit-warning">
${e.t(`render-form.download-widget.file-upload-count-limit-warning`,{count:this.fileUploadLimits?.allowedFileUploadCount?.voting})}
</span>
</div>
<div class="uploaded-files">
${this.renderAttachedFilesHtml(`voting`)}
</div>
<button
class="button is-secondary upload-button upload-button--voting"
.disabled=${this.fileUploadCounts.voting>=this.fileUploadLimits?.allowedFileUploadCount?.voting&&this.filesByGroup.voting?.filesToRemove?.size===0}
@click="${e=>{this.currentUploadGroup=`voting`,this.openFilePicker(e)}}">
<dbp-icon name="upload" aria-hidden="true"></dbp-icon>
${e.t(`render-form.download-widget.upload-file-button-label`,{count:this.fileUploadLimits?.allowedFileUploadCount?.voting})}
</button>
</div>
`:``}
</article>
</form>
<!-- Skip link to navigation -->
<a
href="#action-buttons"
class="skip-link"
@click=${this.skipToFormActions}
@keydown=${this.handleSkipLinkKeydown}>
${e.t(`render-form.forms.ethics-commission-form.skip-to-form-actions`)}
</a>
<dbp-file-source
id="file-source"
class="file-source"
lang="${this.lang}"
allowed-mime-types='application/pdf'
max-file-size="10000"
enabled-targets="local,clipboard,nextcloud"
subscribe="nextcloud-auth-url,nextcloud-web-dav-url,nextcloud-name,nextcloud-file-url"></dbp-file-source>
<dbp-file-sink
id="file-sink"
class="file-sink"
lang="${this.lang}"
allowed-mime-types="application/pdf,.pdf"
decompress-zip
enabled-targets="local,clipboard,nextcloud"
filename="ethics-commission-form-${this.formData?.id||``}-attachments.zip"
subscribe="nextcloud-auth-url,nextcloud-web-dav-url,nextcloud-name,nextcloud-file-url"></dbp-file-sink>
<dbp-modal
id="pdf-view-modal"
class="pdf-view-modal"
modal-id="pdf-viewer-modal"
subscribe="lang">
<div slot="content">
<dbp-pdf-viewer
id="dbp-pdf-viewer"
lang="${this.lang}"
auto-resize="cover"></dbp-pdf-viewer>
</div>
</dbp-modal>
<dbp-grant-permission-dialog
id="grant-permission-dialog"
lang="${this.lang}"
subscribe="auth"
entry-point-url="${this.entryPointUrl}"
resource-identifier="${this.submissionId}"
resource-class-identifier="DbpRelayFormalizeSubmission"></dbp-grant-permission-dialog>
${this.renderResult(this.submitted)}
`}renderResult(e){let t=this._i18n;return e?l`
<div class="container">
<h2>
${t.t(`render-form.forms.ethics-commission-form.submission-result-thanks`)}
</h2>
<p>
${t.t(`render-form.forms.ethics-commission-form.submission-result-notification`)}
</p>
</div>
`:l``}};export{U as default};
//# sourceMappingURL=ethicsCommissionForm.js.map