r2-explorer 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -47
- package/dashboard/assets/AuthLayout.47bc4d6b.js +1 -0
- package/dashboard/assets/EmailFilePage.5146dfaa.js +2 -0
- package/dashboard/assets/{ErrorNotFound.a0d3ece6.js → ErrorNotFound.2be1d090.js} +1 -1
- package/dashboard/assets/LoginPage.e449cd8d.js +1 -0
- package/dashboard/assets/auth-store.1a4593f8.js +1 -0
- package/dashboard/assets/auth.a5ffeab6.js +1 -0
- package/dashboard/assets/{bus.def2db9e.js → bus.67913454.js} +1 -1
- package/dashboard/assets/{index.073c3cc5.css → index.7e109f1f.css} +2 -2
- package/dashboard/assets/index.ddf53a58.js +104 -0
- package/dashboard/index.html +46 -3
- package/dashboard/spa/assets/AuthLayout.47bc4d6b.js +1 -0
- package/dashboard/spa/assets/EmailFilePage.5146dfaa.js +2 -0
- package/dashboard/spa/assets/EmailFilePage.c4890c9c.css +1 -0
- package/dashboard/spa/assets/ErrorNotFound.2be1d090.js +1 -0
- package/dashboard/spa/assets/KFOkCnqEu92Fr1MmgVxIIzQ.d240a9ae.woff +0 -0
- package/dashboard/spa/assets/KFOlCnqEu92Fr1MmEU9fBBc-.6ba203eb.woff +0 -0
- package/dashboard/spa/assets/KFOlCnqEu92Fr1MmSU5fBBc-.80684728.woff +0 -0
- package/dashboard/spa/assets/KFOlCnqEu92Fr1MmWUlfBBc-.2df244f6.woff +0 -0
- package/dashboard/spa/assets/KFOlCnqEu92Fr1MmYUtfBBc-.742ce02b.woff +0 -0
- package/dashboard/spa/assets/KFOmCnqEu92Fr1Mu4mxM.f00fa16d.woff +0 -0
- package/dashboard/spa/assets/LoginPage.e449cd8d.js +1 -0
- package/dashboard/spa/assets/auth-store.1a4593f8.js +1 -0
- package/dashboard/spa/assets/auth.a5ffeab6.js +1 -0
- package/dashboard/spa/assets/bus.67913454.js +1 -0
- package/dashboard/spa/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff +0 -0
- package/dashboard/spa/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 +0 -0
- package/dashboard/spa/assets/index.7e109f1f.css +5 -0
- package/dashboard/spa/assets/index.ddf53a58.js +104 -0
- package/dashboard/spa/favicon.ico +0 -0
- package/dashboard/spa/icons/favicon-128x128.png +0 -0
- package/dashboard/spa/icons/favicon-16x16.png +0 -0
- package/dashboard/spa/icons/favicon-32x32.png +0 -0
- package/dashboard/spa/icons/favicon-96x96.png +0 -0
- package/dashboard/spa/icons/logo.png +0 -0
- package/dashboard/spa/index.html +46 -0
- package/dashboard/spa/logo-white.svg +5 -0
- package/dashboard/spa/logo.png +0 -0
- package/dashboard/spa/robots.txt +2 -0
- package/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.js +45 -64
- package/dist/index.mjs +37 -56
- package/package.json +67 -66
- package/dashboard/assets/AuthLayout.828e1213.js +0 -1
- package/dashboard/assets/EmailFilePage.148b4f84.js +0 -2
- package/dashboard/assets/EmailFolderPage.0c5be156.js +0 -1
- package/dashboard/assets/EmailFolderPage.25044e0a.css +0 -1
- package/dashboard/assets/FilesFolderPage.7cadc3fd.js +0 -72
- package/dashboard/assets/FilesFolderPage.ecacd99f.css +0 -1
- package/dashboard/assets/HomePage.fd1efdb0.js +0 -1
- package/dashboard/assets/LoginPage.5e2746c3.js +0 -1
- package/dashboard/assets/MainLayout.05d49d78.css +0 -1
- package/dashboard/assets/MainLayout.54c624c6.js +0 -1
- package/dashboard/assets/QCard.9ca85696.js +0 -1
- package/dashboard/assets/QCardActions.3d6ece78.js +0 -1
- package/dashboard/assets/QForm.1a0fa8bd.js +0 -1
- package/dashboard/assets/QInput.dbc14c53.js +0 -1
- package/dashboard/assets/QLayout.7c9341c3.js +0 -1
- package/dashboard/assets/QPage.1736cadc.js +0 -1
- package/dashboard/assets/QSeparator.d0c0fb0f.js +0 -1
- package/dashboard/assets/QSpace.3225ba0f.js +0 -1
- package/dashboard/assets/QTable.3fe6867d.js +0 -1
- package/dashboard/assets/QTd.32b217d9.js +0 -1
- package/dashboard/assets/auth-store.10a6215e.js +0 -1
- package/dashboard/assets/auth.3fb1cfd3.js +0 -1
- package/dashboard/assets/axios.d3fa833b.js +0 -6
- package/dashboard/assets/focus-manager.1ddae684.js +0 -1
- package/dashboard/assets/index.31a4681e.js +0 -25
- package/dashboard/assets/main-store.ee636e78.js +0 -1
- package/dashboard/assets/scroll.6727d3ea.js +0 -1
- package/dashboard/assets/use-checkbox.687a19bf.js +0 -1
- package/dashboard/assets/use-dark.6e19ce43.js +0 -1
- package/dashboard/assets/use-quasar.0c0b766f.js +0 -1
- package/dashboard/assets/use-transition.19980487.js +0 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const scriptRel=function(){const d=document.createElement("link").relList;return d&&d.supports&&d.supports("modulepreload")?"modulepreload":"preload"}(),seen={},base="/",__vitePreload=function(d,g){return!g||g.length===0?d():Promise.all(g.map(f=>{if(f=`${base}${f}`,f in seen)return;seen[f]=!0;const b=f.endsWith(".css"),m=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=b?"stylesheet":scriptRel,b||(y.as="script",y.crossOrigin=""),y.href=f,document.head.appendChild(y),b)return new Promise((k,a)=>{y.addEventListener("load",k),y.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>d())};/**
|
|
2
|
+
* @vue/shared v3.5.13
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(u){const d=Object.create(null);for(const g of u.split(","))d[g]=1;return g=>g in d}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=u=>u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&(u.charCodeAt(2)>122||u.charCodeAt(2)<97),isModelListener=u=>u.startsWith("onUpdate:"),extend$1=Object.assign,remove=(u,d)=>{const g=u.indexOf(d);g>-1&&u.splice(g,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn=(u,d)=>hasOwnProperty$2.call(u,d),isArray$2=Array.isArray,isMap=u=>toTypeString(u)==="[object Map]",isSet=u=>toTypeString(u)==="[object Set]",isFunction$1=u=>typeof u=="function",isString$1=u=>typeof u=="string",isSymbol=u=>typeof u=="symbol",isObject$2=u=>u!==null&&typeof u=="object",isPromise=u=>(isObject$2(u)||isFunction$1(u))&&isFunction$1(u.then)&&isFunction$1(u.catch),objectToString=Object.prototype.toString,toTypeString=u=>objectToString.call(u),toRawType=u=>toTypeString(u).slice(8,-1),isPlainObject$2=u=>toTypeString(u)==="[object Object]",isIntegerKey=u=>isString$1(u)&&u!=="NaN"&&u[0]!=="-"&&""+parseInt(u,10)===u,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=u=>{const d=Object.create(null);return g=>d[g]||(d[g]=u(g))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(u=>u.replace(camelizeRE,(d,g)=>g?g.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(u=>u.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(u=>u.charAt(0).toUpperCase()+u.slice(1)),toHandlerKey=cacheStringFunction(u=>u?`on${capitalize(u)}`:""),hasChanged=(u,d)=>!Object.is(u,d),invokeArrayFns=(u,...d)=>{for(let g=0;g<u.length;g++)u[g](...d)},def=(u,d,g,f=!1)=>{Object.defineProperty(u,d,{configurable:!0,enumerable:!1,writable:f,value:g})},looseToNumber=u=>{const d=parseFloat(u);return isNaN(d)?u:d},toNumber=u=>{const d=isString$1(u)?Number(u):NaN;return isNaN(d)?u:d};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function normalizeStyle(u){if(isArray$2(u)){const d={};for(let g=0;g<u.length;g++){const f=u[g],b=isString$1(f)?parseStringStyle(f):normalizeStyle(f);if(b)for(const m in b)d[m]=b[m]}return d}else if(isString$1(u)||isObject$2(u))return u}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(u){const d={};return u.replace(styleCommentRE,"").split(listDelimiterRE).forEach(g=>{if(g){const f=g.split(propertyDelimiterRE);f.length>1&&(d[f[0].trim()]=f[1].trim())}}),d}function normalizeClass(u){let d="";if(isString$1(u))d=u;else if(isArray$2(u))for(let g=0;g<u.length;g++){const f=normalizeClass(u[g]);f&&(d+=f+" ")}else if(isObject$2(u))for(const g in u)u[g]&&(d+=g+" ");return d.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(u){return!!u||u===""}const isRef$1=u=>!!(u&&u.__v_isRef===!0),toDisplayString=u=>isString$1(u)?u:u==null?"":isArray$2(u)||isObject$2(u)&&(u.toString===objectToString||!isFunction$1(u.toString))?isRef$1(u)?toDisplayString(u.value):JSON.stringify(u,replacer,2):String(u),replacer=(u,d)=>isRef$1(d)?replacer(u,d.value):isMap(d)?{[`Map(${d.size})`]:[...d.entries()].reduce((g,[f,b],m)=>(g[stringifySymbol(f,m)+" =>"]=b,g),{})}:isSet(d)?{[`Set(${d.size})`]:[...d.values()].map(g=>stringifySymbol(g))}:isSymbol(d)?stringifySymbol(d):isObject$2(d)&&!isArray$2(d)&&!isPlainObject$2(d)?String(d):d,stringifySymbol=(u,d="")=>{var g;return isSymbol(u)?`Symbol(${(g=u.description)!=null?g:d})`:u};/**
|
|
6
|
+
* @vue/reactivity v3.5.13
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let activeEffectScope;class EffectScope{constructor(d=!1){this.detached=d,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!d&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let d,g;if(this.scopes)for(d=0,g=this.scopes.length;d<g;d++)this.scopes[d].pause();for(d=0,g=this.effects.length;d<g;d++)this.effects[d].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let d,g;if(this.scopes)for(d=0,g=this.scopes.length;d<g;d++)this.scopes[d].resume();for(d=0,g=this.effects.length;d<g;d++)this.effects[d].resume()}}run(d){if(this._active){const g=activeEffectScope;try{return activeEffectScope=this,d()}finally{activeEffectScope=g}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(d){if(this._active){this._active=!1;let g,f;for(g=0,f=this.effects.length;g<f;g++)this.effects[g].stop();for(this.effects.length=0,g=0,f=this.cleanups.length;g<f;g++)this.cleanups[g]();if(this.cleanups.length=0,this.scopes){for(g=0,f=this.scopes.length;g<f;g++)this.scopes[g].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!d){const b=this.parent.scopes.pop();b&&b!==this&&(this.parent.scopes[this.index]=b,b.index=this.index)}this.parent=void 0}}}function effectScope(u){return new EffectScope(u)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(u,d=!1){activeEffectScope&&activeEffectScope.cleanups.push(u)}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(d){this.fn=d,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const d=activeSub,g=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=d,shouldTrack=g,this.flags&=-3}}stop(){if(this.flags&1){for(let d=this.deps;d;d=d.nextDep)removeSub(d);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(u,d=!1){if(u.flags|=8,d){u.next=batchedComputed,batchedComputed=u;return}u.next=batchedSub,batchedSub=u}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let d=batchedComputed;for(batchedComputed=void 0;d;){const g=d.next;d.next=void 0,d.flags&=-9,d=g}}let u;for(;batchedSub;){let d=batchedSub;for(batchedSub=void 0;d;){const g=d.next;if(d.next=void 0,d.flags&=-9,d.flags&1)try{d.trigger()}catch(f){u||(u=f)}d=g}}if(u)throw u}function prepareDeps(u){for(let d=u.deps;d;d=d.nextDep)d.version=-1,d.prevActiveLink=d.dep.activeLink,d.dep.activeLink=d}function cleanupDeps(u){let d,g=u.depsTail,f=g;for(;f;){const b=f.prevDep;f.version===-1?(f===g&&(g=b),removeSub(f),removeDep(f)):d=f,f.dep.activeLink=f.prevActiveLink,f.prevActiveLink=void 0,f=b}u.deps=d,u.depsTail=g}function isDirty(u){for(let d=u.deps;d;d=d.nextDep)if(d.dep.version!==d.version||d.dep.computed&&(refreshComputed(d.dep.computed)||d.dep.version!==d.version))return!0;return!!u._dirty}function refreshComputed(u){if(u.flags&4&&!(u.flags&16)||(u.flags&=-17,u.globalVersion===globalVersion))return;u.globalVersion=globalVersion;const d=u.dep;if(u.flags|=2,d.version>0&&!u.isSSR&&u.deps&&!isDirty(u)){u.flags&=-3;return}const g=activeSub,f=shouldTrack;activeSub=u,shouldTrack=!0;try{prepareDeps(u);const b=u.fn(u._value);(d.version===0||hasChanged(b,u._value))&&(u._value=b,d.version++)}catch(b){throw d.version++,b}finally{activeSub=g,shouldTrack=f,cleanupDeps(u),u.flags&=-3}}function removeSub(u,d=!1){const{dep:g,prevSub:f,nextSub:b}=u;if(f&&(f.nextSub=b,u.prevSub=void 0),b&&(b.prevSub=f,u.nextSub=void 0),g.subs===u&&(g.subs=f,!f&&g.computed)){g.computed.flags&=-5;for(let m=g.computed.deps;m;m=m.nextDep)removeSub(m,!0)}!d&&!--g.sc&&g.map&&g.map.delete(g.key)}function removeDep(u){const{prevDep:d,nextDep:g}=u;d&&(d.nextDep=g,u.prevDep=void 0),g&&(g.prevDep=d,u.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const u=trackStack.pop();shouldTrack=u===void 0?!0:u}function cleanupEffect(u){const{cleanup:d}=u;if(u.cleanup=void 0,d){const g=activeSub;activeSub=void 0;try{d()}finally{activeSub=g}}}let globalVersion=0;class Link{constructor(d,g){this.sub=d,this.dep=g,this.version=g.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(d){this.computed=d,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(d){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let g=this.activeLink;if(g===void 0||g.sub!==activeSub)g=this.activeLink=new Link(activeSub,this),activeSub.deps?(g.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=g,activeSub.depsTail=g):activeSub.deps=activeSub.depsTail=g,addSub(g);else if(g.version===-1&&(g.version=this.version,g.nextDep)){const f=g.nextDep;f.prevDep=g.prevDep,g.prevDep&&(g.prevDep.nextDep=f),g.prevDep=activeSub.depsTail,g.nextDep=void 0,activeSub.depsTail.nextDep=g,activeSub.depsTail=g,activeSub.deps===g&&(activeSub.deps=f)}return g}trigger(d){this.version++,globalVersion++,this.notify(d)}notify(d){startBatch();try{for(let g=this.subs;g;g=g.prevSub)g.sub.notify()&&g.sub.dep.notify()}finally{endBatch()}}}function addSub(u){if(u.dep.sc++,u.sub.flags&4){const d=u.dep.computed;if(d&&!u.dep.subs){d.flags|=20;for(let f=d.deps;f;f=f.nextDep)addSub(f)}const g=u.dep.subs;g!==u&&(u.prevSub=g,g&&(g.nextSub=u)),u.dep.subs=u}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(u,d,g){if(shouldTrack&&activeSub){let f=targetMap.get(u);f||targetMap.set(u,f=new Map);let b=f.get(g);b||(f.set(g,b=new Dep),b.map=f,b.key=g),b.track()}}function trigger$1(u,d,g,f,b,m){const y=targetMap.get(u);if(!y){globalVersion++;return}const k=a=>{a&&a.trigger()};if(startBatch(),d==="clear")y.forEach(k);else{const a=isArray$2(u),q=a&&isIntegerKey(g);if(a&&g==="length"){const w=Number(f);y.forEach(($,Q)=>{(Q==="length"||Q===ARRAY_ITERATE_KEY||!isSymbol(Q)&&Q>=w)&&k($)})}else switch((g!==void 0||y.has(void 0))&&k(y.get(g)),q&&k(y.get(ARRAY_ITERATE_KEY)),d){case"add":a?q&&k(y.get("length")):(k(y.get(ITERATE_KEY)),isMap(u)&&k(y.get(MAP_KEY_ITERATE_KEY)));break;case"delete":a||(k(y.get(ITERATE_KEY)),isMap(u)&&k(y.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(u)&&k(y.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(u,d){const g=targetMap.get(u);return g&&g.get(d)}function reactiveReadArray(u){const d=toRaw(u);return d===u?d:(track(d,"iterate",ARRAY_ITERATE_KEY),isShallow(u)?d:d.map(toReactive))}function shallowReadArray(u){return track(u=toRaw(u),"iterate",ARRAY_ITERATE_KEY),u}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...u){return reactiveReadArray(this).concat(...u.map(d=>isArray$2(d)?reactiveReadArray(d):d))},entries(){return iterator(this,"entries",u=>(u[1]=toReactive(u[1]),u))},every(u,d){return apply$1(this,"every",u,d,void 0,arguments)},filter(u,d){return apply$1(this,"filter",u,d,g=>g.map(toReactive),arguments)},find(u,d){return apply$1(this,"find",u,d,toReactive,arguments)},findIndex(u,d){return apply$1(this,"findIndex",u,d,void 0,arguments)},findLast(u,d){return apply$1(this,"findLast",u,d,toReactive,arguments)},findLastIndex(u,d){return apply$1(this,"findLastIndex",u,d,void 0,arguments)},forEach(u,d){return apply$1(this,"forEach",u,d,void 0,arguments)},includes(...u){return searchProxy(this,"includes",u)},indexOf(...u){return searchProxy(this,"indexOf",u)},join(u){return reactiveReadArray(this).join(u)},lastIndexOf(...u){return searchProxy(this,"lastIndexOf",u)},map(u,d){return apply$1(this,"map",u,d,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...u){return noTracking(this,"push",u)},reduce(u,...d){return reduce(this,"reduce",u,d)},reduceRight(u,...d){return reduce(this,"reduceRight",u,d)},shift(){return noTracking(this,"shift")},some(u,d){return apply$1(this,"some",u,d,void 0,arguments)},splice(...u){return noTracking(this,"splice",u)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(u){return reactiveReadArray(this).toSorted(u)},toSpliced(...u){return reactiveReadArray(this).toSpliced(...u)},unshift(...u){return noTracking(this,"unshift",u)},values(){return iterator(this,"values",toReactive)}};function iterator(u,d,g){const f=shallowReadArray(u),b=f[d]();return f!==u&&!isShallow(u)&&(b._next=b.next,b.next=()=>{const m=b._next();return m.value&&(m.value=g(m.value)),m}),b}const arrayProto=Array.prototype;function apply$1(u,d,g,f,b,m){const y=shallowReadArray(u),k=y!==u&&!isShallow(u),a=y[d];if(a!==arrayProto[d]){const $=a.apply(u,m);return k?toReactive($):$}let q=g;y!==u&&(k?q=function($,Q){return g.call(this,toReactive($),Q,u)}:g.length>2&&(q=function($,Q){return g.call(this,$,Q,u)}));const w=a.call(y,q,f);return k&&b?b(w):w}function reduce(u,d,g,f){const b=shallowReadArray(u);let m=g;return b!==u&&(isShallow(u)?g.length>3&&(m=function(y,k,a){return g.call(this,y,k,a,u)}):m=function(y,k,a){return g.call(this,y,toReactive(k),a,u)}),b[d](m,...f)}function searchProxy(u,d,g){const f=toRaw(u);track(f,"iterate",ARRAY_ITERATE_KEY);const b=f[d](...g);return(b===-1||b===!1)&&isProxy(g[0])?(g[0]=toRaw(g[0]),f[d](...g)):b}function noTracking(u,d,g=[]){pauseTracking(),startBatch();const f=toRaw(u)[d].apply(u,g);return endBatch(),resetTracking(),f}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(u=>u!=="arguments"&&u!=="caller").map(u=>Symbol[u]).filter(isSymbol));function hasOwnProperty$1(u){isSymbol(u)||(u=String(u));const d=toRaw(this);return track(d,"has",u),d.hasOwnProperty(u)}class BaseReactiveHandler{constructor(d=!1,g=!1){this._isReadonly=d,this._isShallow=g}get(d,g,f){if(g==="__v_skip")return d.__v_skip;const b=this._isReadonly,m=this._isShallow;if(g==="__v_isReactive")return!b;if(g==="__v_isReadonly")return b;if(g==="__v_isShallow")return m;if(g==="__v_raw")return f===(b?m?shallowReadonlyMap:readonlyMap:m?shallowReactiveMap:reactiveMap).get(d)||Object.getPrototypeOf(d)===Object.getPrototypeOf(f)?d:void 0;const y=isArray$2(d);if(!b){let a;if(y&&(a=arrayInstrumentations[g]))return a;if(g==="hasOwnProperty")return hasOwnProperty$1}const k=Reflect.get(d,g,isRef(d)?d:f);return(isSymbol(g)?builtInSymbols.has(g):isNonTrackableKeys(g))||(b||track(d,"get",g),m)?k:isRef(k)?y&&isIntegerKey(g)?k:k.value:isObject$2(k)?b?readonly(k):reactive(k):k}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(d=!1){super(!1,d)}set(d,g,f,b){let m=d[g];if(!this._isShallow){const a=isReadonly(m);if(!isShallow(f)&&!isReadonly(f)&&(m=toRaw(m),f=toRaw(f)),!isArray$2(d)&&isRef(m)&&!isRef(f))return a?!1:(m.value=f,!0)}const y=isArray$2(d)&&isIntegerKey(g)?Number(g)<d.length:hasOwn(d,g),k=Reflect.set(d,g,f,isRef(d)?d:b);return d===toRaw(b)&&(y?hasChanged(f,m)&&trigger$1(d,"set",g,f):trigger$1(d,"add",g,f)),k}deleteProperty(d,g){const f=hasOwn(d,g);d[g];const b=Reflect.deleteProperty(d,g);return b&&f&&trigger$1(d,"delete",g,void 0),b}has(d,g){const f=Reflect.has(d,g);return(!isSymbol(g)||!builtInSymbols.has(g))&&track(d,"has",g),f}ownKeys(d){return track(d,"iterate",isArray$2(d)?"length":ITERATE_KEY),Reflect.ownKeys(d)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(d=!1){super(!0,d)}set(d,g){return!0}deleteProperty(d,g){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=u=>u,getProto=u=>Reflect.getPrototypeOf(u);function createIterableMethod(u,d,g){return function(...f){const b=this.__v_raw,m=toRaw(b),y=isMap(m),k=u==="entries"||u===Symbol.iterator&&y,a=u==="keys"&&y,q=b[u](...f),w=g?toShallow:d?toReadonly:toReactive;return!d&&track(m,"iterate",a?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:$,done:Q}=q.next();return Q?{value:$,done:Q}:{value:k?[w($[0]),w($[1])]:w($),done:Q}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(u){return function(...d){return u==="delete"?!1:u==="clear"?void 0:this}}function createInstrumentations(u,d){const g={get(b){const m=this.__v_raw,y=toRaw(m),k=toRaw(b);u||(hasChanged(b,k)&&track(y,"get",b),track(y,"get",k));const{has:a}=getProto(y),q=d?toShallow:u?toReadonly:toReactive;if(a.call(y,b))return q(m.get(b));if(a.call(y,k))return q(m.get(k));m!==y&&m.get(b)},get size(){const b=this.__v_raw;return!u&&track(toRaw(b),"iterate",ITERATE_KEY),Reflect.get(b,"size",b)},has(b){const m=this.__v_raw,y=toRaw(m),k=toRaw(b);return u||(hasChanged(b,k)&&track(y,"has",b),track(y,"has",k)),b===k?m.has(b):m.has(b)||m.has(k)},forEach(b,m){const y=this,k=y.__v_raw,a=toRaw(k),q=d?toShallow:u?toReadonly:toReactive;return!u&&track(a,"iterate",ITERATE_KEY),k.forEach((w,$)=>b.call(m,q(w),q($),y))}};return extend$1(g,u?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(b){!d&&!isShallow(b)&&!isReadonly(b)&&(b=toRaw(b));const m=toRaw(this);return getProto(m).has.call(m,b)||(m.add(b),trigger$1(m,"add",b,b)),this},set(b,m){!d&&!isShallow(m)&&!isReadonly(m)&&(m=toRaw(m));const y=toRaw(this),{has:k,get:a}=getProto(y);let q=k.call(y,b);q||(b=toRaw(b),q=k.call(y,b));const w=a.call(y,b);return y.set(b,m),q?hasChanged(m,w)&&trigger$1(y,"set",b,m):trigger$1(y,"add",b,m),this},delete(b){const m=toRaw(this),{has:y,get:k}=getProto(m);let a=y.call(m,b);a||(b=toRaw(b),a=y.call(m,b)),k&&k.call(m,b);const q=m.delete(b);return a&&trigger$1(m,"delete",b,void 0),q},clear(){const b=toRaw(this),m=b.size!==0,y=b.clear();return m&&trigger$1(b,"clear",void 0,void 0),y}}),["keys","values","entries",Symbol.iterator].forEach(b=>{g[b]=createIterableMethod(b,u,d)}),g}function createInstrumentationGetter(u,d){const g=createInstrumentations(u,d);return(f,b,m)=>b==="__v_isReactive"?!u:b==="__v_isReadonly"?u:b==="__v_raw"?f:Reflect.get(hasOwn(g,b)&&b in f?g:f,b,m)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(u){switch(u){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(u){return u.__v_skip||!Object.isExtensible(u)?0:targetTypeMap(toRawType(u))}function reactive(u){return isReadonly(u)?u:createReactiveObject(u,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(u){return createReactiveObject(u,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(u){return createReactiveObject(u,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(u){return createReactiveObject(u,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(u,d,g,f,b){if(!isObject$2(u)||u.__v_raw&&!(d&&u.__v_isReactive))return u;const m=b.get(u);if(m)return m;const y=getTargetType(u);if(y===0)return u;const k=new Proxy(u,y===2?f:g);return b.set(u,k),k}function isReactive(u){return isReadonly(u)?isReactive(u.__v_raw):!!(u&&u.__v_isReactive)}function isReadonly(u){return!!(u&&u.__v_isReadonly)}function isShallow(u){return!!(u&&u.__v_isShallow)}function isProxy(u){return u?!!u.__v_raw:!1}function toRaw(u){const d=u&&u.__v_raw;return d?toRaw(d):u}function markRaw(u){return!hasOwn(u,"__v_skip")&&Object.isExtensible(u)&&def(u,"__v_skip",!0),u}const toReactive=u=>isObject$2(u)?reactive(u):u,toReadonly=u=>isObject$2(u)?readonly(u):u;function isRef(u){return u?u.__v_isRef===!0:!1}function ref(u){return createRef(u,!1)}function shallowRef(u){return createRef(u,!0)}function createRef(u,d){return isRef(u)?u:new RefImpl(u,d)}class RefImpl{constructor(d,g){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=g?d:toRaw(d),this._value=g?d:toReactive(d),this.__v_isShallow=g}get value(){return this.dep.track(),this._value}set value(d){const g=this._rawValue,f=this.__v_isShallow||isShallow(d)||isReadonly(d);d=f?d:toRaw(d),hasChanged(d,g)&&(this._rawValue=d,this._value=f?d:toReactive(d),this.dep.trigger())}}function unref(u){return isRef(u)?u.value:u}const shallowUnwrapHandlers={get:(u,d,g)=>d==="__v_raw"?u:unref(Reflect.get(u,d,g)),set:(u,d,g,f)=>{const b=u[d];return isRef(b)&&!isRef(g)?(b.value=g,!0):Reflect.set(u,d,g,f)}};function proxyRefs(u){return isReactive(u)?u:new Proxy(u,shallowUnwrapHandlers)}function toRefs(u){const d=isArray$2(u)?new Array(u.length):{};for(const g in u)d[g]=propertyToRef(u,g);return d}class ObjectRefImpl{constructor(d,g,f){this._object=d,this._key=g,this._defaultValue=f,this.__v_isRef=!0,this._value=void 0}get value(){const d=this._object[this._key];return this._value=d===void 0?this._defaultValue:d}set value(d){this._object[this._key]=d}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function propertyToRef(u,d,g){const f=u[d];return isRef(f)?f:new ObjectRefImpl(u,d,g)}class ComputedRefImpl{constructor(d,g,f){this.fn=d,this.setter=g,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!g,this.isSSR=f}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const d=this.dep.track();return refreshComputed(this),d&&(d.version=this.dep.version),this._value}set value(d){this.setter&&this.setter(d)}}function computed$1(u,d,g=!1){let f,b;return isFunction$1(u)?f=u:(f=u.get,b=u.set),new ComputedRefImpl(f,b,g)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(u,d=!1,g=activeWatcher){if(g){let f=cleanupMap.get(g);f||cleanupMap.set(g,f=[]),f.push(u)}}function watch$1(u,d,g=EMPTY_OBJ){const{immediate:f,deep:b,once:m,scheduler:y,augmentJob:k,call:a}=g,q=j=>b?j:isShallow(j)||b===!1||b===0?traverse(j,1):traverse(j);let w,$,Q,C,v=!1,J=!1;if(isRef(u)?($=()=>u.value,v=isShallow(u)):isReactive(u)?($=()=>q(u),v=!0):isArray$2(u)?(J=!0,v=u.some(j=>isReactive(j)||isShallow(j)),$=()=>u.map(j=>{if(isRef(j))return j.value;if(isReactive(j))return q(j);if(isFunction$1(j))return a?a(j,2):j()})):isFunction$1(u)?d?$=a?()=>a(u,2):u:$=()=>{if(Q){pauseTracking();try{Q()}finally{resetTracking()}}const j=activeWatcher;activeWatcher=w;try{return a?a(u,3,[C]):u(C)}finally{activeWatcher=j}}:$=NOOP,d&&b){const j=$,L=b===!0?1/0:b;$=()=>traverse(j(),L)}const ae=getCurrentScope(),H=()=>{w.stop(),ae&&ae.active&&remove(ae.effects,w)};if(m&&d){const j=d;d=(...L)=>{j(...L),H()}}let Y=J?new Array(u.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const G=j=>{if(!(!(w.flags&1)||!w.dirty&&!j))if(d){const L=w.run();if(b||v||(J?L.some((R,T)=>hasChanged(R,Y[T])):hasChanged(L,Y))){Q&&Q();const R=activeWatcher;activeWatcher=w;try{const T=[L,Y===INITIAL_WATCHER_VALUE?void 0:J&&Y[0]===INITIAL_WATCHER_VALUE?[]:Y,C];a?a(d,3,T):d(...T),Y=L}finally{activeWatcher=R}}}else w.run()};return k&&k(G),w=new ReactiveEffect($),w.scheduler=y?()=>y(G,!1):G,C=j=>onWatcherCleanup(j,!1,w),Q=w.onStop=()=>{const j=cleanupMap.get(w);if(j){if(a)a(j,4);else for(const L of j)L();cleanupMap.delete(w)}},d?f?G(!0):Y=w.run():y?y(G.bind(null,!0),!0):w.run(),H.pause=w.pause.bind(w),H.resume=w.resume.bind(w),H.stop=H,H}function traverse(u,d=1/0,g){if(d<=0||!isObject$2(u)||u.__v_skip||(g=g||new Set,g.has(u)))return u;if(g.add(u),d--,isRef(u))traverse(u.value,d,g);else if(isArray$2(u))for(let f=0;f<u.length;f++)traverse(u[f],d,g);else if(isSet(u)||isMap(u))u.forEach(f=>{traverse(f,d,g)});else if(isPlainObject$2(u)){for(const f in u)traverse(u[f],d,g);for(const f of Object.getOwnPropertySymbols(u))Object.prototype.propertyIsEnumerable.call(u,f)&&traverse(u[f],d,g)}return u}/**
|
|
10
|
+
* @vue/runtime-core v3.5.13
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/const stack=[];let isWarning=!1;function warn$1(u,...d){if(isWarning)return;isWarning=!0,pauseTracking();const g=stack.length?stack[stack.length-1].component:null,f=g&&g.appContext.config.warnHandler,b=getComponentTrace();if(f)callWithErrorHandling(f,g,11,[u+d.map(m=>{var y,k;return(k=(y=m.toString)==null?void 0:y.call(m))!=null?k:JSON.stringify(m)}).join(""),g&&g.proxy,b.map(({vnode:m})=>`at <${formatComponentName(g,m.type)}>`).join(`
|
|
14
|
+
`),b]);else{const m=[`[Vue warn]: ${u}`,...d];b.length&&m.push(`
|
|
15
|
+
`,...formatTrace(b)),console.warn(...m)}resetTracking(),isWarning=!1}function getComponentTrace(){let u=stack[stack.length-1];if(!u)return[];const d=[];for(;u;){const g=d[0];g&&g.vnode===u?g.recurseCount++:d.push({vnode:u,recurseCount:0});const f=u.component&&u.component.parent;u=f&&f.vnode}return d}function formatTrace(u){const d=[];return u.forEach((g,f)=>{d.push(...f===0?[]:[`
|
|
16
|
+
`],...formatTraceEntry(g))}),d}function formatTraceEntry({vnode:u,recurseCount:d}){const g=d>0?`... (${d} recursive calls)`:"",f=u.component?u.component.parent==null:!1,b=` at <${formatComponentName(u.component,u.type,f)}`,m=">"+g;return u.props?[b,...formatProps(u.props),m]:[b+m]}function formatProps(u){const d=[],g=Object.keys(u);return g.slice(0,3).forEach(f=>{d.push(...formatProp(f,u[f]))}),g.length>3&&d.push(" ..."),d}function formatProp(u,d,g){return isString$1(d)?(d=JSON.stringify(d),g?d:[`${u}=${d}`]):typeof d=="number"||typeof d=="boolean"||d==null?g?d:[`${u}=${d}`]:isRef(d)?(d=formatProp(u,toRaw(d.value),!0),g?d:[`${u}=Ref<`,d,">"]):isFunction$1(d)?[`${u}=fn${d.name?`<${d.name}>`:""}`]:(d=toRaw(d),g?d:[`${u}=`,d])}function callWithErrorHandling(u,d,g,f){try{return f?u(...f):u()}catch(b){handleError(b,d,g)}}function callWithAsyncErrorHandling(u,d,g,f){if(isFunction$1(u)){const b=callWithErrorHandling(u,d,g,f);return b&&isPromise(b)&&b.catch(m=>{handleError(m,d,g)}),b}if(isArray$2(u)){const b=[];for(let m=0;m<u.length;m++)b.push(callWithAsyncErrorHandling(u[m],d,g,f));return b}}function handleError(u,d,g,f=!0){const b=d?d.vnode:null,{errorHandler:m,throwUnhandledErrorInProduction:y}=d&&d.appContext.config||EMPTY_OBJ;if(d){let k=d.parent;const a=d.proxy,q=`https://vuejs.org/error-reference/#runtime-${g}`;for(;k;){const w=k.ec;if(w){for(let $=0;$<w.length;$++)if(w[$](u,a,q)===!1)return}k=k.parent}if(m){pauseTracking(),callWithErrorHandling(m,null,10,[u,a,q]),resetTracking();return}}logError$1(u,g,b,f,y)}function logError$1(u,d,g,f=!0,b=!1){if(b)throw u;console.error(u)}const queue$1=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(u){const d=currentFlushPromise||resolvedPromise;return u?d.then(this?u.bind(this):u):d}function findInsertionIndex$1(u){let d=flushIndex+1,g=queue$1.length;for(;d<g;){const f=d+g>>>1,b=queue$1[f],m=getId$1(b);m<u||m===u&&b.flags&2?d=f+1:g=f}return d}function queueJob(u){if(!(u.flags&1)){const d=getId$1(u),g=queue$1[queue$1.length-1];!g||!(u.flags&2)&&d>=getId$1(g)?queue$1.push(u):queue$1.splice(findInsertionIndex$1(d),0,u),u.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(u){isArray$2(u)?pendingPostFlushCbs.push(...u):activePostFlushCbs&&u.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,u):u.flags&1||(pendingPostFlushCbs.push(u),u.flags|=1),queueFlush()}function flushPreFlushCbs(u,d,g=flushIndex+1){for(;g<queue$1.length;g++){const f=queue$1[g];if(f&&f.flags&2){if(u&&f.id!==u.uid)continue;queue$1.splice(g,1),g--,f.flags&4&&(f.flags&=-2),f(),f.flags&4||(f.flags&=-2)}}}function flushPostFlushCbs(u){if(pendingPostFlushCbs.length){const d=[...new Set(pendingPostFlushCbs)].sort((g,f)=>getId$1(g)-getId$1(f));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...d);return}for(activePostFlushCbs=d,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const g=activePostFlushCbs[postFlushIndex];g.flags&4&&(g.flags&=-2),g.flags&8||g(),g.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId$1=u=>u.id==null?u.flags&2?-1:1/0:u.id;function flushJobs(u){const d=NOOP;try{for(flushIndex=0;flushIndex<queue$1.length;flushIndex++){const g=queue$1[flushIndex];g&&!(g.flags&8)&&(g.flags&4&&(g.flags&=-2),callWithErrorHandling(g,g.i,g.i?15:14),g.flags&4||(g.flags&=-2))}}finally{for(;flushIndex<queue$1.length;flushIndex++){const g=queue$1[flushIndex];g&&(g.flags&=-2)}flushIndex=-1,queue$1.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue$1.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(u){const d=currentRenderingInstance;return currentRenderingInstance=u,currentScopeId=u&&u.type.__scopeId||null,d}function withCtx(u,d=currentRenderingInstance,g){if(!d||u._n)return u;const f=(...b)=>{f._d&&setBlockTracking(-1);const m=setCurrentRenderingInstance(d);let y;try{y=u(...b)}finally{setCurrentRenderingInstance(m),f._d&&setBlockTracking(1)}return y};return f._n=!0,f._c=!0,f._d=!0,f}function withDirectives(u,d){if(currentRenderingInstance===null)return u;const g=getComponentPublicInstance(currentRenderingInstance),f=u.dirs||(u.dirs=[]);for(let b=0;b<d.length;b++){let[m,y,k,a=EMPTY_OBJ]=d[b];m&&(isFunction$1(m)&&(m={mounted:m,updated:m}),m.deep&&traverse(y),f.push({dir:m,instance:g,value:y,oldValue:void 0,arg:k,modifiers:a}))}return u}function invokeDirectiveHook(u,d,g,f){const b=u.dirs,m=d&&d.dirs;for(let y=0;y<b.length;y++){const k=b[y];m&&(k.oldValue=m[y].value);let a=k.dir[f];a&&(pauseTracking(),callWithAsyncErrorHandling(a,g,8,[u.el,k,u,d]),resetTracking())}}const TeleportEndKey=Symbol("_vte"),isTeleport=u=>u.__isTeleport,isTeleportDisabled=u=>u&&(u.disabled||u.disabled===""),isTeleportDeferred=u=>u&&(u.defer||u.defer===""),isTargetSVG=u=>typeof SVGElement!="undefined"&&u instanceof SVGElement,isTargetMathML=u=>typeof MathMLElement=="function"&&u instanceof MathMLElement,resolveTarget=(u,d)=>{const g=u&&u.to;return isString$1(g)?d?d(g):null:g},TeleportImpl={name:"Teleport",__isTeleport:!0,process(u,d,g,f,b,m,y,k,a,q){const{mc:w,pc:$,pbc:Q,o:{insert:C,querySelector:v,createText:J,createComment:ae}}=q,H=isTeleportDisabled(d.props);let{shapeFlag:Y,children:G,dynamicChildren:j}=d;if(u==null){const L=d.el=J(""),R=d.anchor=J("");C(L,g,f),C(R,g,f);const T=(P,B)=>{Y&16&&(b&&b.isCE&&(b.ce._teleportTarget=P),w(G,P,B,b,m,y,k,a))},O=()=>{const P=d.target=resolveTarget(d.props,v),B=prepareAnchor(P,d,J,C);P&&(y!=="svg"&&isTargetSVG(P)?y="svg":y!=="mathml"&&isTargetMathML(P)&&(y="mathml"),H||(T(P,B),updateCssVars(d,!1)))};H&&(T(g,R),updateCssVars(d,!0)),isTeleportDeferred(d.props)?queuePostRenderEffect(()=>{O(),d.el.__isMounted=!0},m):O()}else{if(isTeleportDeferred(d.props)&&!u.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(u,d,g,f,b,m,y,k,a,q),delete u.el.__isMounted},m);return}d.el=u.el,d.targetStart=u.targetStart;const L=d.anchor=u.anchor,R=d.target=u.target,T=d.targetAnchor=u.targetAnchor,O=isTeleportDisabled(u.props),P=O?g:R,B=O?L:T;if(y==="svg"||isTargetSVG(R)?y="svg":(y==="mathml"||isTargetMathML(R))&&(y="mathml"),j?(Q(u.dynamicChildren,j,P,b,m,y,k),traverseStaticChildren(u,d,!0)):a||$(u,d,P,B,b,m,y,k,!1),H)O?d.props&&u.props&&d.props.to!==u.props.to&&(d.props.to=u.props.to):moveTeleport(d,g,L,q,1);else if((d.props&&d.props.to)!==(u.props&&u.props.to)){const M=d.target=resolveTarget(d.props,v);M&&moveTeleport(d,M,null,q,0)}else O&&moveTeleport(d,R,T,q,1);updateCssVars(d,H)}},remove(u,d,g,{um:f,o:{remove:b}},m){const{shapeFlag:y,children:k,anchor:a,targetStart:q,targetAnchor:w,target:$,props:Q}=u;if($&&(b(q),b(w)),m&&b(a),y&16){const C=m||!isTeleportDisabled(Q);for(let v=0;v<k.length;v++){const J=k[v];f(J,d,g,C,!!J.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(u,d,g,{o:{insert:f},m:b},m=2){m===0&&f(u.targetAnchor,d,g);const{el:y,anchor:k,shapeFlag:a,children:q,props:w}=u,$=m===2;if($&&f(y,d,g),(!$||isTeleportDisabled(w))&&a&16)for(let Q=0;Q<q.length;Q++)b(q[Q],d,g,2);$&&f(k,d,g)}function hydrateTeleport(u,d,g,f,b,m,{o:{nextSibling:y,parentNode:k,querySelector:a,insert:q,createText:w}},$){const Q=d.target=resolveTarget(d.props,a);if(Q){const C=isTeleportDisabled(d.props),v=Q._lpa||Q.firstChild;if(d.shapeFlag&16)if(C)d.anchor=$(y(u),d,k(u),g,f,b,m),d.targetStart=v,d.targetAnchor=v&&y(v);else{d.anchor=y(u);let J=v;for(;J;){if(J&&J.nodeType===8){if(J.data==="teleport start anchor")d.targetStart=J;else if(J.data==="teleport anchor"){d.targetAnchor=J,Q._lpa=d.targetAnchor&&y(d.targetAnchor);break}}J=y(J)}d.targetAnchor||prepareAnchor(Q,d,w,q),$(v&&y(v),d,Q,g,f,b,m)}updateCssVars(d,C)}return d.anchor&&y(d.anchor)}const Teleport=TeleportImpl;function updateCssVars(u,d){const g=u.ctx;if(g&&g.ut){let f,b;for(d?(f=u.el,b=u.anchor):(f=u.targetStart,b=u.targetAnchor);f&&f!==b;)f.nodeType===1&&f.setAttribute("data-v-owner",g.uid),f=f.nextSibling;g.ut()}}function prepareAnchor(u,d,g,f){const b=d.targetStart=g(""),m=d.targetAnchor=g("");return b[TeleportEndKey]=m,u&&(f(b,u),f(m,u)),m}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const u={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{u.isMounted=!0}),onBeforeUnmount(()=>{u.isUnmounting=!0}),u}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=u=>{const d=u.subTree;return d.component?recursiveGetSubtree(d.component):d},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(u,{slots:d}){const g=getCurrentInstance(),f=useTransitionState();return()=>{const b=d.default&&getTransitionRawChildren(d.default(),!0);if(!b||!b.length)return;const m=findNonCommentChild(b),y=toRaw(u),{mode:k}=y;if(f.isLeaving)return emptyPlaceholder(m);const a=getInnerChild$1(m);if(!a)return emptyPlaceholder(m);let q=resolveTransitionHooks(a,y,f,g,$=>q=$);a.type!==Comment$2&&setTransitionHooks(a,q);let w=g.subTree&&getInnerChild$1(g.subTree);if(w&&w.type!==Comment$2&&!isSameVNodeType(a,w)&&recursiveGetSubtree(g).type!==Comment$2){let $=resolveTransitionHooks(w,y,f,g);if(setTransitionHooks(w,$),k==="out-in"&&a.type!==Comment$2)return f.isLeaving=!0,$.afterLeave=()=>{f.isLeaving=!1,g.job.flags&8||g.update(),delete $.afterLeave,w=void 0},emptyPlaceholder(m);k==="in-out"&&a.type!==Comment$2?$.delayLeave=(Q,C,v)=>{const J=getLeavingNodesForType(f,w);J[String(w.key)]=w,Q[leaveCbKey]=()=>{C(),Q[leaveCbKey]=void 0,delete q.delayedLeave,w=void 0},q.delayedLeave=()=>{v(),delete q.delayedLeave,w=void 0}}:w=void 0}else w&&(w=void 0);return m}}};function findNonCommentChild(u){let d=u[0];if(u.length>1){for(const g of u)if(g.type!==Comment$2){d=g;break}}return d}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(u,d){const{leavingVNodes:g}=u;let f=g.get(d.type);return f||(f=Object.create(null),g.set(d.type,f)),f}function resolveTransitionHooks(u,d,g,f,b){const{appear:m,mode:y,persisted:k=!1,onBeforeEnter:a,onEnter:q,onAfterEnter:w,onEnterCancelled:$,onBeforeLeave:Q,onLeave:C,onAfterLeave:v,onLeaveCancelled:J,onBeforeAppear:ae,onAppear:H,onAfterAppear:Y,onAppearCancelled:G}=d,j=String(u.key),L=getLeavingNodesForType(g,u),R=(P,B)=>{P&&callWithAsyncErrorHandling(P,f,9,B)},T=(P,B)=>{const M=B[1];R(P,B),isArray$2(P)?P.every(F=>F.length<=1)&&M():P.length<=1&&M()},O={mode:y,persisted:k,beforeEnter(P){let B=a;if(!g.isMounted)if(m)B=ae||a;else return;P[leaveCbKey]&&P[leaveCbKey](!0);const M=L[j];M&&isSameVNodeType(u,M)&&M.el[leaveCbKey]&&M.el[leaveCbKey](),R(B,[P])},enter(P){let B=q,M=w,F=$;if(!g.isMounted)if(m)B=H||q,M=Y||w,F=G||$;else return;let S=!1;const A=P[enterCbKey$1]=E=>{S||(S=!0,E?R(F,[P]):R(M,[P]),O.delayedLeave&&O.delayedLeave(),P[enterCbKey$1]=void 0)};B?T(B,[P,A]):A()},leave(P,B){const M=String(u.key);if(P[enterCbKey$1]&&P[enterCbKey$1](!0),g.isUnmounting)return B();R(Q,[P]);let F=!1;const S=P[leaveCbKey]=A=>{F||(F=!0,B(),A?R(J,[P]):R(v,[P]),P[leaveCbKey]=void 0,L[M]===u&&delete L[M])};L[M]=u,C?T(C,[P,S]):S()},clone(P){const B=resolveTransitionHooks(P,d,g,f,b);return b&&b(B),B}};return O}function emptyPlaceholder(u){if(isKeepAlive(u))return u=cloneVNode(u),u.children=null,u}function getInnerChild$1(u){if(!isKeepAlive(u))return isTeleport(u.type)&&u.children?findNonCommentChild(u.children):u;const{shapeFlag:d,children:g}=u;if(g){if(d&16)return g[0];if(d&32&&isFunction$1(g.default))return g.default()}}function setTransitionHooks(u,d){u.shapeFlag&6&&u.component?(u.transition=d,setTransitionHooks(u.component.subTree,d)):u.shapeFlag&128?(u.ssContent.transition=d.clone(u.ssContent),u.ssFallback.transition=d.clone(u.ssFallback)):u.transition=d}function getTransitionRawChildren(u,d=!1,g){let f=[],b=0;for(let m=0;m<u.length;m++){let y=u[m];const k=g==null?y.key:String(g)+String(y.key!=null?y.key:m);y.type===Fragment?(y.patchFlag&128&&b++,f=f.concat(getTransitionRawChildren(y.children,d,k))):(d||y.type!==Comment$2)&&f.push(k!=null?cloneVNode(y,{key:k}):y)}if(b>1)for(let m=0;m<f.length;m++)f[m].patchFlag=-2;return f}/*! #__NO_SIDE_EFFECTS__ */function defineComponent(u,d){return isFunction$1(u)?(()=>extend$1({name:u.name},d,{setup:u}))():u}function markAsyncBoundary(u){u.ids=[u.ids[0]+u.ids[2]+++"-",0,0]}function setRef(u,d,g,f,b=!1){if(isArray$2(u)){u.forEach((v,J)=>setRef(v,d&&(isArray$2(d)?d[J]:d),g,f,b));return}if(isAsyncWrapper(f)&&!b){f.shapeFlag&512&&f.type.__asyncResolved&&f.component.subTree.component&&setRef(u,d,g,f.component.subTree);return}const m=f.shapeFlag&4?getComponentPublicInstance(f.component):f.el,y=b?null:m,{i:k,r:a}=u,q=d&&d.r,w=k.refs===EMPTY_OBJ?k.refs={}:k.refs,$=k.setupState,Q=toRaw($),C=$===EMPTY_OBJ?()=>!1:v=>hasOwn(Q,v);if(q!=null&&q!==a&&(isString$1(q)?(w[q]=null,C(q)&&($[q]=null)):isRef(q)&&(q.value=null)),isFunction$1(a))callWithErrorHandling(a,k,12,[y,w]);else{const v=isString$1(a),J=isRef(a);if(v||J){const ae=()=>{if(u.f){const H=v?C(a)?$[a]:w[a]:a.value;b?isArray$2(H)&&remove(H,m):isArray$2(H)?H.includes(m)||H.push(m):v?(w[a]=[m],C(a)&&($[a]=w[a])):(a.value=[m],u.k&&(w[u.k]=a.value))}else v?(w[a]=y,C(a)&&($[a]=y)):J&&(a.value=y,u.k&&(w[u.k]=y))};y?(ae.id=-1,queuePostRenderEffect(ae,g)):ae()}}}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=u=>!!u.type.__asyncLoader,isKeepAlive=u=>u.type.__isKeepAlive;function onActivated(u,d){registerKeepAliveHook(u,"a",d)}function onDeactivated(u,d){registerKeepAliveHook(u,"da",d)}function registerKeepAliveHook(u,d,g=currentInstance){const f=u.__wdc||(u.__wdc=()=>{let b=g;for(;b;){if(b.isDeactivated)return;b=b.parent}return u()});if(injectHook(d,f,g),g){let b=g.parent;for(;b&&b.parent;)isKeepAlive(b.parent.vnode)&&injectToKeepAliveRoot(f,d,g,b),b=b.parent}}function injectToKeepAliveRoot(u,d,g,f){const b=injectHook(d,u,f,!0);onUnmounted(()=>{remove(f[d],b)},g)}function injectHook(u,d,g=currentInstance,f=!1){if(g){const b=g[u]||(g[u]=[]),m=d.__weh||(d.__weh=(...y)=>{pauseTracking();const k=setCurrentInstance(g),a=callWithAsyncErrorHandling(d,g,u,y);return k(),resetTracking(),a});return f?b.unshift(m):b.push(m),m}}const createHook=u=>(d,g=currentInstance)=>{(!isInSSRComponentSetup||u==="sp")&&injectHook(u,(...f)=>d(...f),g)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(u,d=currentInstance){injectHook("ec",u,d)}const COMPONENTS="components";function resolveComponent(u,d){return resolveAsset(COMPONENTS,u,!0,d)||u}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveAsset(u,d,g=!0,f=!1){const b=currentRenderingInstance||currentInstance;if(b){const m=b.type;if(u===COMPONENTS){const k=getComponentName(m,!1);if(k&&(k===d||k===camelize(d)||k===capitalize(camelize(d))))return m}const y=resolve(b[u]||m[u],d)||resolve(b.appContext[u],d);return!y&&f?m:y}}function resolve(u,d){return u&&(u[d]||u[camelize(d)]||u[capitalize(camelize(d))])}function renderList(u,d,g,f){let b;const m=g&&g[f],y=isArray$2(u);if(y||isString$1(u)){const k=y&&isReactive(u);let a=!1;k&&(a=!isShallow(u),u=shallowReadArray(u)),b=new Array(u.length);for(let q=0,w=u.length;q<w;q++)b[q]=d(a?toReactive(u[q]):u[q],q,void 0,m&&m[q])}else if(typeof u=="number"){b=new Array(u);for(let k=0;k<u;k++)b[k]=d(k+1,k,void 0,m&&m[k])}else if(isObject$2(u))if(u[Symbol.iterator])b=Array.from(u,(k,a)=>d(k,a,void 0,m&&m[a]));else{const k=Object.keys(u);b=new Array(k.length);for(let a=0,q=k.length;a<q;a++){const w=k[a];b[a]=d(u[w],w,a,m&&m[a])}}else b=[];return g&&(g[f]=b),b}function renderSlot(u,d,g={},f,b){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return d!=="default"&&(g.name=d),openBlock(),createBlock(Fragment,null,[createVNode("slot",g,f&&f())],64);let m=u[d];m&&m._c&&(m._d=!1),openBlock();const y=m&&ensureValidVNode(m(g)),k=g.key||y&&y.key,a=createBlock(Fragment,{key:(k&&!isSymbol(k)?k:`_${d}`)+(!y&&f?"_fb":"")},y||(f?f():[]),y&&u._===1?64:-2);return!b&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),m&&m._c&&(m._d=!0),a}function ensureValidVNode(u){return u.some(d=>isVNode(d)?!(d.type===Comment$2||d.type===Fragment&&!ensureValidVNode(d.children)):!0)?u:null}const getPublicInstance=u=>u?isStatefulComponent(u)?getComponentPublicInstance(u):getPublicInstance(u.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:u=>u,$el:u=>u.vnode.el,$data:u=>u.data,$props:u=>u.props,$attrs:u=>u.attrs,$slots:u=>u.slots,$refs:u=>u.refs,$parent:u=>getPublicInstance(u.parent),$root:u=>getPublicInstance(u.root),$host:u=>u.ce,$emit:u=>u.emit,$options:u=>resolveMergedOptions(u),$forceUpdate:u=>u.f||(u.f=()=>{queueJob(u.update)}),$nextTick:u=>u.n||(u.n=nextTick.bind(u.proxy)),$watch:u=>instanceWatch.bind(u)}),hasSetupBinding=(u,d)=>u!==EMPTY_OBJ&&!u.__isScriptSetup&&hasOwn(u,d),PublicInstanceProxyHandlers={get({_:u},d){if(d==="__v_skip")return!0;const{ctx:g,setupState:f,data:b,props:m,accessCache:y,type:k,appContext:a}=u;let q;if(d[0]!=="$"){const C=y[d];if(C!==void 0)switch(C){case 1:return f[d];case 2:return b[d];case 4:return g[d];case 3:return m[d]}else{if(hasSetupBinding(f,d))return y[d]=1,f[d];if(b!==EMPTY_OBJ&&hasOwn(b,d))return y[d]=2,b[d];if((q=u.propsOptions[0])&&hasOwn(q,d))return y[d]=3,m[d];if(g!==EMPTY_OBJ&&hasOwn(g,d))return y[d]=4,g[d];shouldCacheAccess&&(y[d]=0)}}const w=publicPropertiesMap[d];let $,Q;if(w)return d==="$attrs"&&track(u.attrs,"get",""),w(u);if(($=k.__cssModules)&&($=$[d]))return $;if(g!==EMPTY_OBJ&&hasOwn(g,d))return y[d]=4,g[d];if(Q=a.config.globalProperties,hasOwn(Q,d))return Q[d]},set({_:u},d,g){const{data:f,setupState:b,ctx:m}=u;return hasSetupBinding(b,d)?(b[d]=g,!0):f!==EMPTY_OBJ&&hasOwn(f,d)?(f[d]=g,!0):hasOwn(u.props,d)||d[0]==="$"&&d.slice(1)in u?!1:(m[d]=g,!0)},has({_:{data:u,setupState:d,accessCache:g,ctx:f,appContext:b,propsOptions:m}},y){let k;return!!g[y]||u!==EMPTY_OBJ&&hasOwn(u,y)||hasSetupBinding(d,y)||(k=m[0])&&hasOwn(k,y)||hasOwn(f,y)||hasOwn(publicPropertiesMap,y)||hasOwn(b.config.globalProperties,y)},defineProperty(u,d,g){return g.get!=null?u._.accessCache[d]=0:hasOwn(g,"value")&&this.set(u,d,g.value,null),Reflect.defineProperty(u,d,g)}};function normalizePropsOrEmits(u){return isArray$2(u)?u.reduce((d,g)=>(d[g]=null,d),{}):u}let shouldCacheAccess=!0;function applyOptions(u){const d=resolveMergedOptions(u),g=u.proxy,f=u.ctx;shouldCacheAccess=!1,d.beforeCreate&&callHook$1(d.beforeCreate,u,"bc");const{data:b,computed:m,methods:y,watch:k,provide:a,inject:q,created:w,beforeMount:$,mounted:Q,beforeUpdate:C,updated:v,activated:J,deactivated:ae,beforeDestroy:H,beforeUnmount:Y,destroyed:G,unmounted:j,render:L,renderTracked:R,renderTriggered:T,errorCaptured:O,serverPrefetch:P,expose:B,inheritAttrs:M,components:F,directives:S,filters:A}=d;if(q&&resolveInjections(q,f,null),y)for(const D in y){const N=y[D];isFunction$1(N)&&(f[D]=N.bind(g))}if(b){const D=b.call(g,g);isObject$2(D)&&(u.data=reactive(D))}if(shouldCacheAccess=!0,m)for(const D in m){const N=m[D],U=isFunction$1(N)?N.bind(g,g):isFunction$1(N.get)?N.get.bind(g,g):NOOP,z=!isFunction$1(N)&&isFunction$1(N.set)?N.set.bind(g):NOOP,te=computed({get:U,set:z});Object.defineProperty(f,D,{enumerable:!0,configurable:!0,get:()=>te.value,set:W=>te.value=W})}if(k)for(const D in k)createWatcher(k[D],f,g,D);if(a){const D=isFunction$1(a)?a.call(g):a;Reflect.ownKeys(D).forEach(N=>{provide(N,D[N])})}w&&callHook$1(w,u,"c");function _(D,N){isArray$2(N)?N.forEach(U=>D(U.bind(g))):N&&D(N.bind(g))}if(_(onBeforeMount,$),_(onMounted,Q),_(onBeforeUpdate,C),_(onUpdated,v),_(onActivated,J),_(onDeactivated,ae),_(onErrorCaptured,O),_(onRenderTracked,R),_(onRenderTriggered,T),_(onBeforeUnmount,Y),_(onUnmounted,j),_(onServerPrefetch,P),isArray$2(B))if(B.length){const D=u.exposed||(u.exposed={});B.forEach(N=>{Object.defineProperty(D,N,{get:()=>g[N],set:U=>g[N]=U})})}else u.exposed||(u.exposed={});L&&u.render===NOOP&&(u.render=L),M!=null&&(u.inheritAttrs=M),F&&(u.components=F),S&&(u.directives=S),P&&markAsyncBoundary(u)}function resolveInjections(u,d,g=NOOP){isArray$2(u)&&(u=normalizeInject(u));for(const f in u){const b=u[f];let m;isObject$2(b)?"default"in b?m=inject(b.from||f,b.default,!0):m=inject(b.from||f):m=inject(b),isRef(m)?Object.defineProperty(d,f,{enumerable:!0,configurable:!0,get:()=>m.value,set:y=>m.value=y}):d[f]=m}}function callHook$1(u,d,g){callWithAsyncErrorHandling(isArray$2(u)?u.map(f=>f.bind(d.proxy)):u.bind(d.proxy),d,g)}function createWatcher(u,d,g,f){let b=f.includes(".")?createPathGetter(g,f):()=>g[f];if(isString$1(u)){const m=d[u];isFunction$1(m)&&watch(b,m)}else if(isFunction$1(u))watch(b,u.bind(g));else if(isObject$2(u))if(isArray$2(u))u.forEach(m=>createWatcher(m,d,g,f));else{const m=isFunction$1(u.handler)?u.handler.bind(g):d[u.handler];isFunction$1(m)&&watch(b,m,u)}}function resolveMergedOptions(u){const d=u.type,{mixins:g,extends:f}=d,{mixins:b,optionsCache:m,config:{optionMergeStrategies:y}}=u.appContext,k=m.get(d);let a;return k?a=k:!b.length&&!g&&!f?a=d:(a={},b.length&&b.forEach(q=>mergeOptions$1(a,q,y,!0)),mergeOptions$1(a,d,y)),isObject$2(d)&&m.set(d,a),a}function mergeOptions$1(u,d,g,f=!1){const{mixins:b,extends:m}=d;m&&mergeOptions$1(u,m,g,!0),b&&b.forEach(y=>mergeOptions$1(u,y,g,!0));for(const y in d)if(!(f&&y==="expose")){const k=internalOptionMergeStrats[y]||g&&g[y];u[y]=k?k(u[y],d[y]):d[y]}return u}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(u,d){return d?u?function(){return extend$1(isFunction$1(u)?u.call(this,this):u,isFunction$1(d)?d.call(this,this):d)}:d:u}function mergeInject(u,d){return mergeObjectOptions(normalizeInject(u),normalizeInject(d))}function normalizeInject(u){if(isArray$2(u)){const d={};for(let g=0;g<u.length;g++)d[u[g]]=u[g];return d}return u}function mergeAsArray(u,d){return u?[...new Set([].concat(u,d))]:d}function mergeObjectOptions(u,d){return u?extend$1(Object.create(null),u,d):d}function mergeEmitsOrPropsOptions(u,d){return u?isArray$2(u)&&isArray$2(d)?[...new Set([...u,...d])]:extend$1(Object.create(null),normalizePropsOrEmits(u),normalizePropsOrEmits(d!=null?d:{})):d}function mergeWatchOptions(u,d){if(!u)return d;if(!d)return u;const g=extend$1(Object.create(null),u);for(const f in d)g[f]=mergeAsArray(u[f],d[f]);return g}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1$1=0;function createAppAPI(u,d){return function(f,b=null){isFunction$1(f)||(f=extend$1({},f)),b!=null&&!isObject$2(b)&&(b=null);const m=createAppContext(),y=new WeakSet,k=[];let a=!1;const q=m.app={_uid:uid$1$1++,_component:f,_props:b,_container:null,_context:m,_instance:null,version,get config(){return m.config},set config(w){},use(w,...$){return y.has(w)||(w&&isFunction$1(w.install)?(y.add(w),w.install(q,...$)):isFunction$1(w)&&(y.add(w),w(q,...$))),q},mixin(w){return m.mixins.includes(w)||m.mixins.push(w),q},component(w,$){return $?(m.components[w]=$,q):m.components[w]},directive(w,$){return $?(m.directives[w]=$,q):m.directives[w]},mount(w,$,Q){if(!a){const C=q._ceVNode||createVNode(f,b);return C.appContext=m,Q===!0?Q="svg":Q===!1&&(Q=void 0),$&&d?d(C,w):u(C,w,Q),a=!0,q._container=w,w.__vue_app__=q,getComponentPublicInstance(C.component)}},onUnmount(w){k.push(w)},unmount(){a&&(callWithAsyncErrorHandling(k,q._instance,16),u(null,q._container),delete q._container.__vue_app__)},provide(w,$){return m.provides[w]=$,q},runWithContext(w){const $=currentApp;currentApp=q;try{return w()}finally{currentApp=$}}};return q}}let currentApp=null;function provide(u,d){if(currentInstance){let g=currentInstance.provides;const f=currentInstance.parent&¤tInstance.parent.provides;f===g&&(g=currentInstance.provides=Object.create(f)),g[u]=d}}function inject(u,d,g=!1){const f=currentInstance||currentRenderingInstance;if(f||currentApp){const b=currentApp?currentApp._context.provides:f?f.parent==null?f.vnode.appContext&&f.vnode.appContext.provides:f.parent.provides:void 0;if(b&&u in b)return b[u];if(arguments.length>1)return g&&isFunction$1(d)?d.call(f&&f.proxy):d}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=u=>Object.getPrototypeOf(u)===internalObjectProto;function initProps(u,d,g,f=!1){const b={},m=createInternalObject();u.propsDefaults=Object.create(null),setFullProps(u,d,b,m);for(const y in u.propsOptions[0])y in b||(b[y]=void 0);g?u.props=f?b:shallowReactive(b):u.type.props?u.props=b:u.props=m,u.attrs=m}function updateProps(u,d,g,f){const{props:b,attrs:m,vnode:{patchFlag:y}}=u,k=toRaw(b),[a]=u.propsOptions;let q=!1;if((f||y>0)&&!(y&16)){if(y&8){const w=u.vnode.dynamicProps;for(let $=0;$<w.length;$++){let Q=w[$];if(isEmitListener(u.emitsOptions,Q))continue;const C=d[Q];if(a)if(hasOwn(m,Q))C!==m[Q]&&(m[Q]=C,q=!0);else{const v=camelize(Q);b[v]=resolvePropValue(a,k,v,C,u,!1)}else C!==m[Q]&&(m[Q]=C,q=!0)}}}else{setFullProps(u,d,b,m)&&(q=!0);let w;for(const $ in k)(!d||!hasOwn(d,$)&&((w=hyphenate($))===$||!hasOwn(d,w)))&&(a?g&&(g[$]!==void 0||g[w]!==void 0)&&(b[$]=resolvePropValue(a,k,$,void 0,u,!0)):delete b[$]);if(m!==k)for(const $ in m)(!d||!hasOwn(d,$)&&!0)&&(delete m[$],q=!0)}q&&trigger$1(u.attrs,"set","")}function setFullProps(u,d,g,f){const[b,m]=u.propsOptions;let y=!1,k;if(d)for(let a in d){if(isReservedProp(a))continue;const q=d[a];let w;b&&hasOwn(b,w=camelize(a))?!m||!m.includes(w)?g[w]=q:(k||(k={}))[w]=q:isEmitListener(u.emitsOptions,a)||(!(a in f)||q!==f[a])&&(f[a]=q,y=!0)}if(m){const a=toRaw(g),q=k||EMPTY_OBJ;for(let w=0;w<m.length;w++){const $=m[w];g[$]=resolvePropValue(b,a,$,q[$],u,!hasOwn(q,$))}}return y}function resolvePropValue(u,d,g,f,b,m){const y=u[g];if(y!=null){const k=hasOwn(y,"default");if(k&&f===void 0){const a=y.default;if(y.type!==Function&&!y.skipFactory&&isFunction$1(a)){const{propsDefaults:q}=b;if(g in q)f=q[g];else{const w=setCurrentInstance(b);f=q[g]=a.call(null,d),w()}}else f=a;b.ce&&b.ce._setProp(g,f)}y[0]&&(m&&!k?f=!1:y[1]&&(f===""||f===hyphenate(g))&&(f=!0))}return f}const mixinPropsCache=new WeakMap;function normalizePropsOptions(u,d,g=!1){const f=g?mixinPropsCache:d.propsCache,b=f.get(u);if(b)return b;const m=u.props,y={},k=[];let a=!1;if(!isFunction$1(u)){const w=$=>{a=!0;const[Q,C]=normalizePropsOptions($,d,!0);extend$1(y,Q),C&&k.push(...C)};!g&&d.mixins.length&&d.mixins.forEach(w),u.extends&&w(u.extends),u.mixins&&u.mixins.forEach(w)}if(!m&&!a)return isObject$2(u)&&f.set(u,EMPTY_ARR),EMPTY_ARR;if(isArray$2(m))for(let w=0;w<m.length;w++){const $=camelize(m[w]);validatePropName($)&&(y[$]=EMPTY_OBJ)}else if(m)for(const w in m){const $=camelize(w);if(validatePropName($)){const Q=m[w],C=y[$]=isArray$2(Q)||isFunction$1(Q)?{type:Q}:extend$1({},Q),v=C.type;let J=!1,ae=!0;if(isArray$2(v))for(let H=0;H<v.length;++H){const Y=v[H],G=isFunction$1(Y)&&Y.name;if(G==="Boolean"){J=!0;break}else G==="String"&&(ae=!1)}else J=isFunction$1(v)&&v.name==="Boolean";C[0]=J,C[1]=ae,(J||hasOwn(C,"default"))&&k.push($)}}const q=[y,k];return isObject$2(u)&&f.set(u,q),q}function validatePropName(u){return u[0]!=="$"&&!isReservedProp(u)}const isInternalKey=u=>u[0]==="_"||u==="$stable",normalizeSlotValue=u=>isArray$2(u)?u.map(normalizeVNode):[normalizeVNode(u)],normalizeSlot$1=(u,d,g)=>{if(d._n)return d;const f=withCtx((...b)=>normalizeSlotValue(d(...b)),g);return f._c=!1,f},normalizeObjectSlots=(u,d,g)=>{const f=u._ctx;for(const b in u){if(isInternalKey(b))continue;const m=u[b];if(isFunction$1(m))d[b]=normalizeSlot$1(b,m,f);else if(m!=null){const y=normalizeSlotValue(m);d[b]=()=>y}}},normalizeVNodeSlots=(u,d)=>{const g=normalizeSlotValue(d);u.slots.default=()=>g},assignSlots=(u,d,g)=>{for(const f in d)(g||f!=="_")&&(u[f]=d[f])},initSlots=(u,d,g)=>{const f=u.slots=createInternalObject();if(u.vnode.shapeFlag&32){const b=d._;b?(assignSlots(f,d,g),g&&def(f,"_",b,!0)):normalizeObjectSlots(d,f)}else d&&normalizeVNodeSlots(u,d)},updateSlots=(u,d,g)=>{const{vnode:f,slots:b}=u;let m=!0,y=EMPTY_OBJ;if(f.shapeFlag&32){const k=d._;k?g&&k===1?m=!1:assignSlots(b,d,g):(m=!d.$stable,normalizeObjectSlots(d,b)),y=d}else d&&(normalizeVNodeSlots(u,d),y={default:1});if(m)for(const k in b)!isInternalKey(k)&&y[k]==null&&delete b[k]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(u){return baseCreateRenderer(u)}function baseCreateRenderer(u,d){const g=getGlobalThis();g.__VUE__=!0;const{insert:f,remove:b,patchProp:m,createElement:y,createText:k,createComment:a,setText:q,setElementText:w,parentNode:$,nextSibling:Q,setScopeId:C=NOOP,insertStaticContent:v}=u,J=(oe,ne,ue,le=null,fe=null,pe=null,ve=void 0,xe=null,Ce=!!ne.dynamicChildren)=>{if(oe===ne)return;oe&&!isSameVNodeType(oe,ne)&&(le=Z(oe),W(oe,fe,pe,!0),oe=null),ne.patchFlag===-2&&(Ce=!1,ne.dynamicChildren=null);const{type:be,ref:me,shapeFlag:ge}=ne;switch(be){case Text$2:ae(oe,ne,ue,le);break;case Comment$2:H(oe,ne,ue,le);break;case Static:oe==null&&Y(ne,ue,le,ve);break;case Fragment:F(oe,ne,ue,le,fe,pe,ve,xe,Ce);break;default:ge&1?L(oe,ne,ue,le,fe,pe,ve,xe,Ce):ge&6?S(oe,ne,ue,le,fe,pe,ve,xe,Ce):(ge&64||ge&128)&&be.process(oe,ne,ue,le,fe,pe,ve,xe,Ce,de)}me!=null&&fe&&setRef(me,oe&&oe.ref,pe,ne||oe,!ne)},ae=(oe,ne,ue,le)=>{if(oe==null)f(ne.el=k(ne.children),ue,le);else{const fe=ne.el=oe.el;ne.children!==oe.children&&q(fe,ne.children)}},H=(oe,ne,ue,le)=>{oe==null?f(ne.el=a(ne.children||""),ue,le):ne.el=oe.el},Y=(oe,ne,ue,le)=>{[oe.el,oe.anchor]=v(oe.children,ne,ue,le,oe.el,oe.anchor)},G=({el:oe,anchor:ne},ue,le)=>{let fe;for(;oe&&oe!==ne;)fe=Q(oe),f(oe,ue,le),oe=fe;f(ne,ue,le)},j=({el:oe,anchor:ne})=>{let ue;for(;oe&&oe!==ne;)ue=Q(oe),b(oe),oe=ue;b(ne)},L=(oe,ne,ue,le,fe,pe,ve,xe,Ce)=>{ne.type==="svg"?ve="svg":ne.type==="math"&&(ve="mathml"),oe==null?R(ne,ue,le,fe,pe,ve,xe,Ce):P(oe,ne,fe,pe,ve,xe,Ce)},R=(oe,ne,ue,le,fe,pe,ve,xe)=>{let Ce,be;const{props:me,shapeFlag:ge,transition:ye,dirs:Se}=oe;if(Ce=oe.el=y(oe.type,pe,me&&me.is,me),ge&8?w(Ce,oe.children):ge&16&&O(oe.children,Ce,null,le,fe,resolveChildrenNamespace(oe,pe),ve,xe),Se&&invokeDirectiveHook(oe,null,le,"created"),T(Ce,oe,oe.scopeId,ve,le),me){for(const De in me)De!=="value"&&!isReservedProp(De)&&m(Ce,De,null,me[De],pe,le);"value"in me&&m(Ce,"value",null,me.value,pe),(be=me.onVnodeBeforeMount)&&invokeVNodeHook(be,le,oe)}Se&&invokeDirectiveHook(oe,null,le,"beforeMount");const Ee=needTransition(fe,ye);Ee&&ye.beforeEnter(Ce),f(Ce,ne,ue),((be=me&&me.onVnodeMounted)||Ee||Se)&&queuePostRenderEffect(()=>{be&&invokeVNodeHook(be,le,oe),Ee&&ye.enter(Ce),Se&&invokeDirectiveHook(oe,null,le,"mounted")},fe)},T=(oe,ne,ue,le,fe)=>{if(ue&&C(oe,ue),le)for(let pe=0;pe<le.length;pe++)C(oe,le[pe]);if(fe){let pe=fe.subTree;if(ne===pe||isSuspense(pe.type)&&(pe.ssContent===ne||pe.ssFallback===ne)){const ve=fe.vnode;T(oe,ve,ve.scopeId,ve.slotScopeIds,fe.parent)}}},O=(oe,ne,ue,le,fe,pe,ve,xe,Ce=0)=>{for(let be=Ce;be<oe.length;be++){const me=oe[be]=xe?cloneIfMounted(oe[be]):normalizeVNode(oe[be]);J(null,me,ne,ue,le,fe,pe,ve,xe)}},P=(oe,ne,ue,le,fe,pe,ve)=>{const xe=ne.el=oe.el;let{patchFlag:Ce,dynamicChildren:be,dirs:me}=ne;Ce|=oe.patchFlag&16;const ge=oe.props||EMPTY_OBJ,ye=ne.props||EMPTY_OBJ;let Se;if(ue&&toggleRecurse(ue,!1),(Se=ye.onVnodeBeforeUpdate)&&invokeVNodeHook(Se,ue,ne,oe),me&&invokeDirectiveHook(ne,oe,ue,"beforeUpdate"),ue&&toggleRecurse(ue,!0),(ge.innerHTML&&ye.innerHTML==null||ge.textContent&&ye.textContent==null)&&w(xe,""),be?B(oe.dynamicChildren,be,xe,ue,le,resolveChildrenNamespace(ne,fe),pe):ve||N(oe,ne,xe,null,ue,le,resolveChildrenNamespace(ne,fe),pe,!1),Ce>0){if(Ce&16)M(xe,ge,ye,ue,fe);else if(Ce&2&&ge.class!==ye.class&&m(xe,"class",null,ye.class,fe),Ce&4&&m(xe,"style",ge.style,ye.style,fe),Ce&8){const Ee=ne.dynamicProps;for(let De=0;De<Ee.length;De++){const _e=Ee[De],Be=ge[_e],Te=ye[_e];(Te!==Be||_e==="value")&&m(xe,_e,Be,Te,fe,ue)}}Ce&1&&oe.children!==ne.children&&w(xe,ne.children)}else!ve&&be==null&&M(xe,ge,ye,ue,fe);((Se=ye.onVnodeUpdated)||me)&&queuePostRenderEffect(()=>{Se&&invokeVNodeHook(Se,ue,ne,oe),me&&invokeDirectiveHook(ne,oe,ue,"updated")},le)},B=(oe,ne,ue,le,fe,pe,ve)=>{for(let xe=0;xe<ne.length;xe++){const Ce=oe[xe],be=ne[xe],me=Ce.el&&(Ce.type===Fragment||!isSameVNodeType(Ce,be)||Ce.shapeFlag&70)?$(Ce.el):ue;J(Ce,be,me,null,le,fe,pe,ve,!0)}},M=(oe,ne,ue,le,fe)=>{if(ne!==ue){if(ne!==EMPTY_OBJ)for(const pe in ne)!isReservedProp(pe)&&!(pe in ue)&&m(oe,pe,ne[pe],null,fe,le);for(const pe in ue){if(isReservedProp(pe))continue;const ve=ue[pe],xe=ne[pe];ve!==xe&&pe!=="value"&&m(oe,pe,xe,ve,fe,le)}"value"in ue&&m(oe,"value",ne.value,ue.value,fe)}},F=(oe,ne,ue,le,fe,pe,ve,xe,Ce)=>{const be=ne.el=oe?oe.el:k(""),me=ne.anchor=oe?oe.anchor:k("");let{patchFlag:ge,dynamicChildren:ye,slotScopeIds:Se}=ne;Se&&(xe=xe?xe.concat(Se):Se),oe==null?(f(be,ue,le),f(me,ue,le),O(ne.children||[],ue,me,fe,pe,ve,xe,Ce)):ge>0&&ge&64&&ye&&oe.dynamicChildren?(B(oe.dynamicChildren,ye,ue,fe,pe,ve,xe),(ne.key!=null||fe&&ne===fe.subTree)&&traverseStaticChildren(oe,ne,!0)):N(oe,ne,ue,me,fe,pe,ve,xe,Ce)},S=(oe,ne,ue,le,fe,pe,ve,xe,Ce)=>{ne.slotScopeIds=xe,oe==null?ne.shapeFlag&512?fe.ctx.activate(ne,ue,le,ve,Ce):A(ne,ue,le,fe,pe,ve,Ce):E(oe,ne,Ce)},A=(oe,ne,ue,le,fe,pe,ve)=>{const xe=oe.component=createComponentInstance(oe,le,fe);if(isKeepAlive(oe)&&(xe.ctx.renderer=de),setupComponent(xe,!1,ve),xe.asyncDep){if(fe&&fe.registerDep(xe,_,ve),!oe.el){const Ce=xe.subTree=createVNode(Comment$2);H(null,Ce,ne,ue)}}else _(xe,oe,ne,ue,fe,pe,ve)},E=(oe,ne,ue)=>{const le=ne.component=oe.component;if(shouldUpdateComponent(oe,ne,ue))if(le.asyncDep&&!le.asyncResolved){D(le,ne,ue);return}else le.next=ne,le.update();else ne.el=oe.el,le.vnode=ne},_=(oe,ne,ue,le,fe,pe,ve)=>{const xe=()=>{if(oe.isMounted){let{next:ge,bu:ye,u:Se,parent:Ee,vnode:De}=oe;{const we=locateNonHydratedAsyncRoot(oe);if(we){ge&&(ge.el=De.el,D(oe,ge,ve)),we.asyncDep.then(()=>{oe.isUnmounted||xe()});return}}let _e=ge,Be;toggleRecurse(oe,!1),ge?(ge.el=De.el,D(oe,ge,ve)):ge=De,ye&&invokeArrayFns(ye),(Be=ge.props&&ge.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Be,Ee,ge,De),toggleRecurse(oe,!0);const Te=renderComponentRoot(oe),Fe=oe.subTree;oe.subTree=Te,J(Fe,Te,$(Fe.el),Z(Fe),oe,fe,pe),ge.el=Te.el,_e===null&&updateHOCHostEl(oe,Te.el),Se&&queuePostRenderEffect(Se,fe),(Be=ge.props&&ge.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Be,Ee,ge,De),fe)}else{let ge;const{el:ye,props:Se}=ne,{bm:Ee,m:De,parent:_e,root:Be,type:Te}=oe,Fe=isAsyncWrapper(ne);if(toggleRecurse(oe,!1),Ee&&invokeArrayFns(Ee),!Fe&&(ge=Se&&Se.onVnodeBeforeMount)&&invokeVNodeHook(ge,_e,ne),toggleRecurse(oe,!0),ye&&he){const we=()=>{oe.subTree=renderComponentRoot(oe),he(ye,oe.subTree,oe,fe,null)};Fe&&Te.__asyncHydrate?Te.__asyncHydrate(ye,oe,we):we()}else{Be.ce&&Be.ce._injectChildStyle(Te);const we=oe.subTree=renderComponentRoot(oe);J(null,we,ue,le,oe,fe,pe),ne.el=we.el}if(De&&queuePostRenderEffect(De,fe),!Fe&&(ge=Se&&Se.onVnodeMounted)){const we=ne;queuePostRenderEffect(()=>invokeVNodeHook(ge,_e,we),fe)}(ne.shapeFlag&256||_e&&isAsyncWrapper(_e.vnode)&&_e.vnode.shapeFlag&256)&&oe.a&&queuePostRenderEffect(oe.a,fe),oe.isMounted=!0,ne=ue=le=null}};oe.scope.on();const Ce=oe.effect=new ReactiveEffect(xe);oe.scope.off();const be=oe.update=Ce.run.bind(Ce),me=oe.job=Ce.runIfDirty.bind(Ce);me.i=oe,me.id=oe.uid,Ce.scheduler=()=>queueJob(me),toggleRecurse(oe,!0),be()},D=(oe,ne,ue)=>{ne.component=oe;const le=oe.vnode.props;oe.vnode=ne,oe.next=null,updateProps(oe,ne.props,le,ue),updateSlots(oe,ne.children,ue),pauseTracking(),flushPreFlushCbs(oe),resetTracking()},N=(oe,ne,ue,le,fe,pe,ve,xe,Ce=!1)=>{const be=oe&&oe.children,me=oe?oe.shapeFlag:0,ge=ne.children,{patchFlag:ye,shapeFlag:Se}=ne;if(ye>0){if(ye&128){z(be,ge,ue,le,fe,pe,ve,xe,Ce);return}else if(ye&256){U(be,ge,ue,le,fe,pe,ve,xe,Ce);return}}Se&8?(me&16&&K(be,fe,pe),ge!==be&&w(ue,ge)):me&16?Se&16?z(be,ge,ue,le,fe,pe,ve,xe,Ce):K(be,fe,pe,!0):(me&8&&w(ue,""),Se&16&&O(ge,ue,le,fe,pe,ve,xe,Ce))},U=(oe,ne,ue,le,fe,pe,ve,xe,Ce)=>{oe=oe||EMPTY_ARR,ne=ne||EMPTY_ARR;const be=oe.length,me=ne.length,ge=Math.min(be,me);let ye;for(ye=0;ye<ge;ye++){const Se=ne[ye]=Ce?cloneIfMounted(ne[ye]):normalizeVNode(ne[ye]);J(oe[ye],Se,ue,null,fe,pe,ve,xe,Ce)}be>me?K(oe,fe,pe,!0,!1,ge):O(ne,ue,le,fe,pe,ve,xe,Ce,ge)},z=(oe,ne,ue,le,fe,pe,ve,xe,Ce)=>{let be=0;const me=ne.length;let ge=oe.length-1,ye=me-1;for(;be<=ge&&be<=ye;){const Se=oe[be],Ee=ne[be]=Ce?cloneIfMounted(ne[be]):normalizeVNode(ne[be]);if(isSameVNodeType(Se,Ee))J(Se,Ee,ue,null,fe,pe,ve,xe,Ce);else break;be++}for(;be<=ge&&be<=ye;){const Se=oe[ge],Ee=ne[ye]=Ce?cloneIfMounted(ne[ye]):normalizeVNode(ne[ye]);if(isSameVNodeType(Se,Ee))J(Se,Ee,ue,null,fe,pe,ve,xe,Ce);else break;ge--,ye--}if(be>ge){if(be<=ye){const Se=ye+1,Ee=Se<me?ne[Se].el:le;for(;be<=ye;)J(null,ne[be]=Ce?cloneIfMounted(ne[be]):normalizeVNode(ne[be]),ue,Ee,fe,pe,ve,xe,Ce),be++}}else if(be>ye)for(;be<=ge;)W(oe[be],fe,pe,!0),be++;else{const Se=be,Ee=be,De=new Map;for(be=Ee;be<=ye;be++){const Pe=ne[be]=Ce?cloneIfMounted(ne[be]):normalizeVNode(ne[be]);Pe.key!=null&&De.set(Pe.key,be)}let _e,Be=0;const Te=ye-Ee+1;let Fe=!1,we=0;const Ae=new Array(Te);for(be=0;be<Te;be++)Ae[be]=0;for(be=Se;be<=ge;be++){const Pe=oe[be];if(Be>=Te){W(Pe,fe,pe,!0);continue}let Le;if(Pe.key!=null)Le=De.get(Pe.key);else for(_e=Ee;_e<=ye;_e++)if(Ae[_e-Ee]===0&&isSameVNodeType(Pe,ne[_e])){Le=_e;break}Le===void 0?W(Pe,fe,pe,!0):(Ae[Le-Ee]=be+1,Le>=we?we=Le:Fe=!0,J(Pe,ne[Le],ue,null,fe,pe,ve,xe,Ce),Be++)}const ke=Fe?getSequence(Ae):EMPTY_ARR;for(_e=ke.length-1,be=Te-1;be>=0;be--){const Pe=Ee+be,Le=ne[Pe],Ne=Pe+1<me?ne[Pe+1].el:le;Ae[be]===0?J(null,Le,ue,Ne,fe,pe,ve,xe,Ce):Fe&&(_e<0||be!==ke[_e]?te(Le,ue,Ne,2):_e--)}}},te=(oe,ne,ue,le,fe=null)=>{const{el:pe,type:ve,transition:xe,children:Ce,shapeFlag:be}=oe;if(be&6){te(oe.component.subTree,ne,ue,le);return}if(be&128){oe.suspense.move(ne,ue,le);return}if(be&64){ve.move(oe,ne,ue,de);return}if(ve===Fragment){f(pe,ne,ue);for(let ge=0;ge<Ce.length;ge++)te(Ce[ge],ne,ue,le);f(oe.anchor,ne,ue);return}if(ve===Static){G(oe,ne,ue);return}if(le!==2&&be&1&&xe)if(le===0)xe.beforeEnter(pe),f(pe,ne,ue),queuePostRenderEffect(()=>xe.enter(pe),fe);else{const{leave:ge,delayLeave:ye,afterLeave:Se}=xe,Ee=()=>f(pe,ne,ue),De=()=>{ge(pe,()=>{Ee(),Se&&Se()})};ye?ye(pe,Ee,De):De()}else f(pe,ne,ue)},W=(oe,ne,ue,le=!1,fe=!1)=>{const{type:pe,props:ve,ref:xe,children:Ce,dynamicChildren:be,shapeFlag:me,patchFlag:ge,dirs:ye,cacheIndex:Se}=oe;if(ge===-2&&(fe=!1),xe!=null&&setRef(xe,null,ue,oe,!0),Se!=null&&(ne.renderCache[Se]=void 0),me&256){ne.ctx.deactivate(oe);return}const Ee=me&1&&ye,De=!isAsyncWrapper(oe);let _e;if(De&&(_e=ve&&ve.onVnodeBeforeUnmount)&&invokeVNodeHook(_e,ne,oe),me&6)X(oe.component,ue,le);else{if(me&128){oe.suspense.unmount(ue,le);return}Ee&&invokeDirectiveHook(oe,null,ne,"beforeUnmount"),me&64?oe.type.remove(oe,ne,ue,de,le):be&&!be.hasOnce&&(pe!==Fragment||ge>0&&ge&64)?K(be,ne,ue,!1,!0):(pe===Fragment&&ge&384||!fe&&me&16)&&K(Ce,ne,ue),le&&re(oe)}(De&&(_e=ve&&ve.onVnodeUnmounted)||Ee)&&queuePostRenderEffect(()=>{_e&&invokeVNodeHook(_e,ne,oe),Ee&&invokeDirectiveHook(oe,null,ne,"unmounted")},ue)},re=oe=>{const{type:ne,el:ue,anchor:le,transition:fe}=oe;if(ne===Fragment){ee(ue,le);return}if(ne===Static){j(oe);return}const pe=()=>{b(ue),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(oe.shapeFlag&1&&fe&&!fe.persisted){const{leave:ve,delayLeave:xe}=fe,Ce=()=>ve(ue,pe);xe?xe(oe.el,pe,Ce):Ce()}else pe()},ee=(oe,ne)=>{let ue;for(;oe!==ne;)ue=Q(oe),b(oe),oe=ue;b(ne)},X=(oe,ne,ue)=>{const{bum:le,scope:fe,job:pe,subTree:ve,um:xe,m:Ce,a:be}=oe;invalidateMount(Ce),invalidateMount(be),le&&invokeArrayFns(le),fe.stop(),pe&&(pe.flags|=8,W(ve,oe,ne,ue)),xe&&queuePostRenderEffect(xe,ne),queuePostRenderEffect(()=>{oe.isUnmounted=!0},ne),ne&&ne.pendingBranch&&!ne.isUnmounted&&oe.asyncDep&&!oe.asyncResolved&&oe.suspenseId===ne.pendingId&&(ne.deps--,ne.deps===0&&ne.resolve())},K=(oe,ne,ue,le=!1,fe=!1,pe=0)=>{for(let ve=pe;ve<oe.length;ve++)W(oe[ve],ne,ue,le,fe)},Z=oe=>{if(oe.shapeFlag&6)return Z(oe.component.subTree);if(oe.shapeFlag&128)return oe.suspense.next();const ne=Q(oe.anchor||oe.el),ue=ne&&ne[TeleportEndKey];return ue?Q(ue):ne};let se=!1;const ie=(oe,ne,ue)=>{oe==null?ne._vnode&&W(ne._vnode,null,null,!0):J(ne._vnode||null,oe,ne,null,null,null,ue),ne._vnode=oe,se||(se=!0,flushPreFlushCbs(),flushPostFlushCbs(),se=!1)},de={p:J,um:W,m:te,r:re,mt:A,mc:O,pc:N,pbc:B,n:Z,o:u};let ce,he;return d&&([ce,he]=d(de)),{render:ie,hydrate:ce,createApp:createAppAPI(ie,ce)}}function resolveChildrenNamespace({type:u,props:d},g){return g==="svg"&&u==="foreignObject"||g==="mathml"&&u==="annotation-xml"&&d&&d.encoding&&d.encoding.includes("html")?void 0:g}function toggleRecurse({effect:u,job:d},g){g?(u.flags|=32,d.flags|=4):(u.flags&=-33,d.flags&=-5)}function needTransition(u,d){return(!u||u&&!u.pendingBranch)&&d&&!d.persisted}function traverseStaticChildren(u,d,g=!1){const f=u.children,b=d.children;if(isArray$2(f)&&isArray$2(b))for(let m=0;m<f.length;m++){const y=f[m];let k=b[m];k.shapeFlag&1&&!k.dynamicChildren&&((k.patchFlag<=0||k.patchFlag===32)&&(k=b[m]=cloneIfMounted(b[m]),k.el=y.el),!g&&k.patchFlag!==-2&&traverseStaticChildren(y,k)),k.type===Text$2&&(k.el=y.el)}}function getSequence(u){const d=u.slice(),g=[0];let f,b,m,y,k;const a=u.length;for(f=0;f<a;f++){const q=u[f];if(q!==0){if(b=g[g.length-1],u[b]<q){d[f]=b,g.push(f);continue}for(m=0,y=g.length-1;m<y;)k=m+y>>1,u[g[k]]<q?m=k+1:y=k;q<u[g[m]]&&(m>0&&(d[f]=g[m-1]),g[m]=f)}}for(m=g.length,y=g[m-1];m-- >0;)g[m]=y,y=d[y];return g}function locateNonHydratedAsyncRoot(u){const d=u.subTree.component;if(d)return d.asyncDep&&!d.asyncResolved?d:locateNonHydratedAsyncRoot(d)}function invalidateMount(u){if(u)for(let d=0;d<u.length;d++)u[d].flags|=8}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watch(u,d,g){return doWatch(u,d,g)}function doWatch(u,d,g=EMPTY_OBJ){const{immediate:f,deep:b,flush:m,once:y}=g,k=extend$1({},g),a=d&&f||!d&&m!=="post";let q;if(isInSSRComponentSetup){if(m==="sync"){const C=useSSRContext();q=C.__watcherHandles||(C.__watcherHandles=[])}else if(!a){const C=()=>{};return C.stop=NOOP,C.resume=NOOP,C.pause=NOOP,C}}const w=currentInstance;k.call=(C,v,J)=>callWithAsyncErrorHandling(C,w,v,J);let $=!1;m==="post"?k.scheduler=C=>{queuePostRenderEffect(C,w&&w.suspense)}:m!=="sync"&&($=!0,k.scheduler=(C,v)=>{v?C():queueJob(C)}),k.augmentJob=C=>{d&&(C.flags|=4),$&&(C.flags|=2,w&&(C.id=w.uid,C.i=w))};const Q=watch$1(u,d,k);return isInSSRComponentSetup&&(q?q.push(Q):a&&Q()),Q}function instanceWatch(u,d,g){const f=this.proxy,b=isString$1(u)?u.includes(".")?createPathGetter(f,u):()=>f[u]:u.bind(f,f);let m;isFunction$1(d)?m=d:(m=d.handler,g=d);const y=setCurrentInstance(this),k=doWatch(b,m.bind(f),g);return y(),k}function createPathGetter(u,d){const g=d.split(".");return()=>{let f=u;for(let b=0;b<g.length&&f;b++)f=f[g[b]];return f}}const getModelModifiers=(u,d)=>d==="modelValue"||d==="model-value"?u.modelModifiers:u[`${d}Modifiers`]||u[`${camelize(d)}Modifiers`]||u[`${hyphenate(d)}Modifiers`];function emit(u,d,...g){if(u.isUnmounted)return;const f=u.vnode.props||EMPTY_OBJ;let b=g;const m=d.startsWith("update:"),y=m&&getModelModifiers(f,d.slice(7));y&&(y.trim&&(b=g.map(w=>isString$1(w)?w.trim():w)),y.number&&(b=g.map(looseToNumber)));let k,a=f[k=toHandlerKey(d)]||f[k=toHandlerKey(camelize(d))];!a&&m&&(a=f[k=toHandlerKey(hyphenate(d))]),a&&callWithAsyncErrorHandling(a,u,6,b);const q=f[k+"Once"];if(q){if(!u.emitted)u.emitted={};else if(u.emitted[k])return;u.emitted[k]=!0,callWithAsyncErrorHandling(q,u,6,b)}}function normalizeEmitsOptions(u,d,g=!1){const f=d.emitsCache,b=f.get(u);if(b!==void 0)return b;const m=u.emits;let y={},k=!1;if(!isFunction$1(u)){const a=q=>{const w=normalizeEmitsOptions(q,d,!0);w&&(k=!0,extend$1(y,w))};!g&&d.mixins.length&&d.mixins.forEach(a),u.extends&&a(u.extends),u.mixins&&u.mixins.forEach(a)}return!m&&!k?(isObject$2(u)&&f.set(u,null),null):(isArray$2(m)?m.forEach(a=>y[a]=null):extend$1(y,m),isObject$2(u)&&f.set(u,y),y)}function isEmitListener(u,d){return!u||!isOn(d)?!1:(d=d.slice(2).replace(/Once$/,""),hasOwn(u,d[0].toLowerCase()+d.slice(1))||hasOwn(u,hyphenate(d))||hasOwn(u,d))}function markAttrsAccessed(){}function renderComponentRoot(u){const{type:d,vnode:g,proxy:f,withProxy:b,propsOptions:[m],slots:y,attrs:k,emit:a,render:q,renderCache:w,props:$,data:Q,setupState:C,ctx:v,inheritAttrs:J}=u,ae=setCurrentRenderingInstance(u);let H,Y;try{if(g.shapeFlag&4){const j=b||f,L=j;H=normalizeVNode(q.call(L,j,w,$,C,Q,v)),Y=k}else{const j=d;H=normalizeVNode(j.length>1?j($,{attrs:k,slots:y,emit:a}):j($,null)),Y=d.props?k:getFunctionalFallthrough(k)}}catch(j){blockStack.length=0,handleError(j,u,1),H=createVNode(Comment$2)}let G=H;if(Y&&J!==!1){const j=Object.keys(Y),{shapeFlag:L}=G;j.length&&L&7&&(m&&j.some(isModelListener)&&(Y=filterModelListeners(Y,m)),G=cloneVNode(G,Y,!1,!0))}return g.dirs&&(G=cloneVNode(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(g.dirs):g.dirs),g.transition&&setTransitionHooks(G,g.transition),H=G,setCurrentRenderingInstance(ae),H}const getFunctionalFallthrough=u=>{let d;for(const g in u)(g==="class"||g==="style"||isOn(g))&&((d||(d={}))[g]=u[g]);return d},filterModelListeners=(u,d)=>{const g={};for(const f in u)(!isModelListener(f)||!(f.slice(9)in d))&&(g[f]=u[f]);return g};function shouldUpdateComponent(u,d,g){const{props:f,children:b,component:m}=u,{props:y,children:k,patchFlag:a}=d,q=m.emitsOptions;if(d.dirs||d.transition)return!0;if(g&&a>=0){if(a&1024)return!0;if(a&16)return f?hasPropsChanged(f,y,q):!!y;if(a&8){const w=d.dynamicProps;for(let $=0;$<w.length;$++){const Q=w[$];if(y[Q]!==f[Q]&&!isEmitListener(q,Q))return!0}}}else return(b||k)&&(!k||!k.$stable)?!0:f===y?!1:f?y?hasPropsChanged(f,y,q):!0:!!y;return!1}function hasPropsChanged(u,d,g){const f=Object.keys(d);if(f.length!==Object.keys(u).length)return!0;for(let b=0;b<f.length;b++){const m=f[b];if(d[m]!==u[m]&&!isEmitListener(g,m))return!0}return!1}function updateHOCHostEl({vnode:u,parent:d},g){for(;d;){const f=d.subTree;if(f.suspense&&f.suspense.activeBranch===u&&(f.el=u.el),f===u)(u=d.vnode).el=g,d=d.parent;else break}}const isSuspense=u=>u.__isSuspense;function queueEffectWithSuspense(u,d){d&&d.pendingBranch?isArray$2(u)?d.effects.push(...u):d.effects.push(u):queuePostFlushCb(u)}const Fragment=Symbol.for("v-fgt"),Text$2=Symbol.for("v-txt"),Comment$2=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(u=!1){blockStack.push(currentBlock=u?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(u,d=!1){isBlockTreeEnabled+=u,u<0&¤tBlock&&d&&(currentBlock.hasOnce=!0)}function setupBlock(u){return u.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(u),u}function createElementBlock(u,d,g,f,b,m){return setupBlock(createBaseVNode(u,d,g,f,b,m,!0))}function createBlock(u,d,g,f,b){return setupBlock(createVNode(u,d,g,f,b,!0))}function isVNode(u){return u?u.__v_isVNode===!0:!1}function isSameVNodeType(u,d){return u.type===d.type&&u.key===d.key}const normalizeKey=({key:u})=>u!=null?u:null,normalizeRef=({ref:u,ref_key:d,ref_for:g})=>(typeof u=="number"&&(u=""+u),u!=null?isString$1(u)||isRef(u)||isFunction$1(u)?{i:currentRenderingInstance,r:u,k:d,f:!!g}:u:null);function createBaseVNode(u,d=null,g=null,f=0,b=null,m=u===Fragment?0:1,y=!1,k=!1){const a={__v_isVNode:!0,__v_skip:!0,type:u,props:d,key:d&&normalizeKey(d),ref:d&&normalizeRef(d),scopeId:currentScopeId,slotScopeIds:null,children:g,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:m,patchFlag:f,dynamicProps:b,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return k?(normalizeChildren(a,g),m&128&&u.normalize(a)):g&&(a.shapeFlag|=isString$1(g)?8:16),isBlockTreeEnabled>0&&!y&¤tBlock&&(a.patchFlag>0||m&6)&&a.patchFlag!==32&¤tBlock.push(a),a}const createVNode=_createVNode;function _createVNode(u,d=null,g=null,f=0,b=null,m=!1){if((!u||u===NULL_DYNAMIC_COMPONENT)&&(u=Comment$2),isVNode(u)){const k=cloneVNode(u,d,!0);return g&&normalizeChildren(k,g),isBlockTreeEnabled>0&&!m&¤tBlock&&(k.shapeFlag&6?currentBlock[currentBlock.indexOf(u)]=k:currentBlock.push(k)),k.patchFlag=-2,k}if(isClassComponent(u)&&(u=u.__vccOpts),d){d=guardReactiveProps(d);let{class:k,style:a}=d;k&&!isString$1(k)&&(d.class=normalizeClass(k)),isObject$2(a)&&(isProxy(a)&&!isArray$2(a)&&(a=extend$1({},a)),d.style=normalizeStyle(a))}const y=isString$1(u)?1:isSuspense(u)?128:isTeleport(u)?64:isObject$2(u)?4:isFunction$1(u)?2:0;return createBaseVNode(u,d,g,f,b,y,m,!0)}function guardReactiveProps(u){return u?isProxy(u)||isInternalObject(u)?extend$1({},u):u:null}function cloneVNode(u,d,g=!1,f=!1){const{props:b,ref:m,patchFlag:y,children:k,transition:a}=u,q=d?mergeProps(b||{},d):b,w={__v_isVNode:!0,__v_skip:!0,type:u.type,props:q,key:q&&normalizeKey(q),ref:d&&d.ref?g&&m?isArray$2(m)?m.concat(normalizeRef(d)):[m,normalizeRef(d)]:normalizeRef(d):m,scopeId:u.scopeId,slotScopeIds:u.slotScopeIds,children:k,target:u.target,targetStart:u.targetStart,targetAnchor:u.targetAnchor,staticCount:u.staticCount,shapeFlag:u.shapeFlag,patchFlag:d&&u.type!==Fragment?y===-1?16:y|16:y,dynamicProps:u.dynamicProps,dynamicChildren:u.dynamicChildren,appContext:u.appContext,dirs:u.dirs,transition:a,component:u.component,suspense:u.suspense,ssContent:u.ssContent&&cloneVNode(u.ssContent),ssFallback:u.ssFallback&&cloneVNode(u.ssFallback),el:u.el,anchor:u.anchor,ctx:u.ctx,ce:u.ce};return a&&f&&setTransitionHooks(w,a.clone(w)),w}function createTextVNode(u=" ",d=0){return createVNode(Text$2,null,u,d)}function createCommentVNode(u="",d=!1){return d?(openBlock(),createBlock(Comment$2,null,u)):createVNode(Comment$2,null,u)}function normalizeVNode(u){return u==null||typeof u=="boolean"?createVNode(Comment$2):isArray$2(u)?createVNode(Fragment,null,u.slice()):isVNode(u)?cloneIfMounted(u):createVNode(Text$2,null,String(u))}function cloneIfMounted(u){return u.el===null&&u.patchFlag!==-1||u.memo?u:cloneVNode(u)}function normalizeChildren(u,d){let g=0;const{shapeFlag:f}=u;if(d==null)d=null;else if(isArray$2(d))g=16;else if(typeof d=="object")if(f&65){const b=d.default;b&&(b._c&&(b._d=!1),normalizeChildren(u,b()),b._c&&(b._d=!0));return}else{g=32;const b=d._;!b&&!isInternalObject(d)?d._ctx=currentRenderingInstance:b===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?d._=1:(d._=2,u.patchFlag|=1024))}else isFunction$1(d)?(d={default:d,_ctx:currentRenderingInstance},g=32):(d=String(d),f&64?(g=16,d=[createTextVNode(d)]):g=8);u.children=d,u.shapeFlag|=g}function mergeProps(...u){const d={};for(let g=0;g<u.length;g++){const f=u[g];for(const b in f)if(b==="class")d.class!==f.class&&(d.class=normalizeClass([d.class,f.class]));else if(b==="style")d.style=normalizeStyle([d.style,f.style]);else if(isOn(b)){const m=d[b],y=f[b];y&&m!==y&&!(isArray$2(m)&&m.includes(y))&&(d[b]=m?[].concat(m,y):y)}else b!==""&&(d[b]=f[b])}return d}function invokeVNodeHook(u,d,g,f=null){callWithAsyncErrorHandling(u,d,7,[g,f])}const emptyAppContext=createAppContext();let uid$3=0;function createComponentInstance(u,d,g){const f=u.type,b=(d?d.appContext:u.appContext)||emptyAppContext,m={uid:uid$3++,vnode:u,type:f,parent:d,appContext:b,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:d?d.provides:Object.create(b.provides),ids:d?d.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(f,b),emitsOptions:normalizeEmitsOptions(f,b),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:f.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:g,suspenseId:g?g.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return m.ctx={_:m},m.root=d?d.root:m,m.emit=emit.bind(null,m),u.ce&&u.ce(m),m}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const u=getGlobalThis(),d=(g,f)=>{let b;return(b=u[g])||(b=u[g]=[]),b.push(f),m=>{b.length>1?b.forEach(y=>y(m)):b[0](m)}};internalSetCurrentInstance=d("__VUE_INSTANCE_SETTERS__",g=>currentInstance=g),setInSSRSetupState=d("__VUE_SSR_SETTERS__",g=>isInSSRComponentSetup=g)}const setCurrentInstance=u=>{const d=currentInstance;return internalSetCurrentInstance(u),u.scope.on(),()=>{u.scope.off(),internalSetCurrentInstance(d)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(u){return u.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(u,d=!1,g=!1){d&&setInSSRSetupState(d);const{props:f,children:b}=u.vnode,m=isStatefulComponent(u);initProps(u,f,m,d),initSlots(u,b,g);const y=m?setupStatefulComponent(u,d):void 0;return d&&setInSSRSetupState(!1),y}function setupStatefulComponent(u,d){const g=u.type;u.accessCache=Object.create(null),u.proxy=new Proxy(u.ctx,PublicInstanceProxyHandlers);const{setup:f}=g;if(f){pauseTracking();const b=u.setupContext=f.length>1?createSetupContext(u):null,m=setCurrentInstance(u),y=callWithErrorHandling(f,u,0,[u.props,b]),k=isPromise(y);if(resetTracking(),m(),(k||u.sp)&&!isAsyncWrapper(u)&&markAsyncBoundary(u),k){if(y.then(unsetCurrentInstance,unsetCurrentInstance),d)return y.then(a=>{handleSetupResult(u,a,d)}).catch(a=>{handleError(a,u,0)});u.asyncDep=y}else handleSetupResult(u,y,d)}else finishComponentSetup(u,d)}function handleSetupResult(u,d,g){isFunction$1(d)?u.type.__ssrInlineRender?u.ssrRender=d:u.render=d:isObject$2(d)&&(u.setupState=proxyRefs(d)),finishComponentSetup(u,g)}let compile$2;function finishComponentSetup(u,d,g){const f=u.type;if(!u.render){if(!d&&compile$2&&!f.render){const b=f.template||resolveMergedOptions(u).template;if(b){const{isCustomElement:m,compilerOptions:y}=u.appContext.config,{delimiters:k,compilerOptions:a}=f,q=extend$1(extend$1({isCustomElement:m,delimiters:k},y),a);f.render=compile$2(b,q)}}u.render=f.render||NOOP}{const b=setCurrentInstance(u);pauseTracking();try{applyOptions(u)}finally{resetTracking(),b()}}}const attrsProxyHandlers={get(u,d){return track(u,"get",""),u[d]}};function createSetupContext(u){const d=g=>{u.exposed=g||{}};return{attrs:new Proxy(u.attrs,attrsProxyHandlers),slots:u.slots,emit:u.emit,expose:d}}function getComponentPublicInstance(u){return u.exposed?u.exposeProxy||(u.exposeProxy=new Proxy(proxyRefs(markRaw(u.exposed)),{get(d,g){if(g in d)return d[g];if(g in publicPropertiesMap)return publicPropertiesMap[g](u)},has(d,g){return g in d||g in publicPropertiesMap}})):u.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=u=>u.replace(classifyRE,d=>d.toUpperCase()).replace(/[-_]/g,"");function getComponentName(u,d=!0){return isFunction$1(u)?u.displayName||u.name:u.name||d&&u.__name}function formatComponentName(u,d,g=!1){let f=getComponentName(d);if(!f&&d.__file){const b=d.__file.match(/([^/\\]+)\.\w+$/);b&&(f=b[1])}if(!f&&u&&u.parent){const b=m=>{for(const y in m)if(m[y]===d)return y};f=b(u.components||u.parent.type.components)||b(u.appContext.components)}return f?classify(f):g?"App":"Anonymous"}function isClassComponent(u){return isFunction$1(u)&&"__vccOpts"in u}const computed=(u,d)=>computed$1(u,d,isInSSRComponentSetup);function h(u,d,g){const f=arguments.length;return f===2?isObject$2(d)&&!isArray$2(d)?isVNode(d)?createVNode(u,null,[d]):createVNode(u,d):createVNode(u,null,d):(f>3?g=Array.prototype.slice.call(arguments,2):f===3&&isVNode(g)&&(g=[g]),createVNode(u,d,g))}const version="3.5.13";/**
|
|
17
|
+
* @vue/runtime-dom v3.5.13
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**/let policy;const tt=typeof window!="undefined"&&window.trustedTypes;if(tt)try{policy=tt.createPolicy("vue",{createHTML:u=>u})}catch{}const unsafeToTrustedHTML=policy?u=>policy.createHTML(u):u=>u,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(u,d,g)=>{d.insertBefore(u,g||null)},remove:u=>{const d=u.parentNode;d&&d.removeChild(u)},createElement:(u,d,g,f)=>{const b=d==="svg"?doc.createElementNS(svgNS,u):d==="mathml"?doc.createElementNS(mathmlNS,u):g?doc.createElement(u,{is:g}):doc.createElement(u);return u==="select"&&f&&f.multiple!=null&&b.setAttribute("multiple",f.multiple),b},createText:u=>doc.createTextNode(u),createComment:u=>doc.createComment(u),setText:(u,d)=>{u.nodeValue=d},setElementText:(u,d)=>{u.textContent=d},parentNode:u=>u.parentNode,nextSibling:u=>u.nextSibling,querySelector:u=>doc.querySelector(u),setScopeId(u,d){u.setAttribute(d,"")},insertStaticContent(u,d,g,f,b,m){const y=g?g.previousSibling:d.lastChild;if(b&&(b===m||b.nextSibling))for(;d.insertBefore(b.cloneNode(!0),g),!(b===m||!(b=b.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(f==="svg"?`<svg>${u}</svg>`:f==="mathml"?`<math>${u}</math>`:u);const k=templateContainer.content;if(f==="svg"||f==="mathml"){const a=k.firstChild;for(;a.firstChild;)k.appendChild(a.firstChild);k.removeChild(a)}d.insertBefore(k,g)}return[y?y.nextSibling:d.firstChild,g?g.previousSibling:d.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=u=>(u.displayName="Transition",u.props=TransitionPropsValidators,u),Transition=decorate$1((u,{slots:d})=>h(BaseTransition,resolveTransitionProps(u),d)),callHook=(u,d=[])=>{isArray$2(u)?u.forEach(g=>g(...d)):u&&u(...d)},hasExplicitCallback=u=>u?isArray$2(u)?u.some(d=>d.length>1):u.length>1:!1;function resolveTransitionProps(u){const d={};for(const F in u)F in DOMTransitionPropsValidators||(d[F]=u[F]);if(u.css===!1)return d;const{name:g="v",type:f,duration:b,enterFromClass:m=`${g}-enter-from`,enterActiveClass:y=`${g}-enter-active`,enterToClass:k=`${g}-enter-to`,appearFromClass:a=m,appearActiveClass:q=y,appearToClass:w=k,leaveFromClass:$=`${g}-leave-from`,leaveActiveClass:Q=`${g}-leave-active`,leaveToClass:C=`${g}-leave-to`}=u,v=normalizeDuration(b),J=v&&v[0],ae=v&&v[1],{onBeforeEnter:H,onEnter:Y,onEnterCancelled:G,onLeave:j,onLeaveCancelled:L,onBeforeAppear:R=H,onAppear:T=Y,onAppearCancelled:O=G}=d,P=(F,S,A,E)=>{F._enterCancelled=E,removeTransitionClass(F,S?w:k),removeTransitionClass(F,S?q:y),A&&A()},B=(F,S)=>{F._isLeaving=!1,removeTransitionClass(F,$),removeTransitionClass(F,C),removeTransitionClass(F,Q),S&&S()},M=F=>(S,A)=>{const E=F?T:Y,_=()=>P(S,F,A);callHook(E,[S,_]),nextFrame(()=>{removeTransitionClass(S,F?a:m),addTransitionClass(S,F?w:k),hasExplicitCallback(E)||whenTransitionEnds(S,f,J,_)})};return extend$1(d,{onBeforeEnter(F){callHook(H,[F]),addTransitionClass(F,m),addTransitionClass(F,y)},onBeforeAppear(F){callHook(R,[F]),addTransitionClass(F,a),addTransitionClass(F,q)},onEnter:M(!1),onAppear:M(!0),onLeave(F,S){F._isLeaving=!0;const A=()=>B(F,S);addTransitionClass(F,$),F._enterCancelled?(addTransitionClass(F,Q),forceReflow()):(forceReflow(),addTransitionClass(F,Q)),nextFrame(()=>{!F._isLeaving||(removeTransitionClass(F,$),addTransitionClass(F,C),hasExplicitCallback(j)||whenTransitionEnds(F,f,ae,A))}),callHook(j,[F,A])},onEnterCancelled(F){P(F,!1,void 0,!0),callHook(G,[F])},onAppearCancelled(F){P(F,!0,void 0,!0),callHook(O,[F])},onLeaveCancelled(F){B(F),callHook(L,[F])}})}function normalizeDuration(u){if(u==null)return null;if(isObject$2(u))return[NumberOf(u.enter),NumberOf(u.leave)];{const d=NumberOf(u);return[d,d]}}function NumberOf(u){return toNumber(u)}function addTransitionClass(u,d){d.split(/\s+/).forEach(g=>g&&u.classList.add(g)),(u[vtcKey]||(u[vtcKey]=new Set)).add(d)}function removeTransitionClass(u,d){d.split(/\s+/).forEach(f=>f&&u.classList.remove(f));const g=u[vtcKey];g&&(g.delete(d),g.size||(u[vtcKey]=void 0))}function nextFrame(u){requestAnimationFrame(()=>{requestAnimationFrame(u)})}let endId=0;function whenTransitionEnds(u,d,g,f){const b=u._endId=++endId,m=()=>{b===u._endId&&f()};if(g!=null)return setTimeout(m,g);const{type:y,timeout:k,propCount:a}=getTransitionInfo(u,d);if(!y)return f();const q=y+"end";let w=0;const $=()=>{u.removeEventListener(q,Q),m()},Q=C=>{C.target===u&&++w>=a&&$()};setTimeout(()=>{w<a&&$()},k+1),u.addEventListener(q,Q)}function getTransitionInfo(u,d){const g=window.getComputedStyle(u),f=v=>(g[v]||"").split(", "),b=f(`${TRANSITION}Delay`),m=f(`${TRANSITION}Duration`),y=getTimeout(b,m),k=f(`${ANIMATION}Delay`),a=f(`${ANIMATION}Duration`),q=getTimeout(k,a);let w=null,$=0,Q=0;d===TRANSITION?y>0&&(w=TRANSITION,$=y,Q=m.length):d===ANIMATION?q>0&&(w=ANIMATION,$=q,Q=a.length):($=Math.max(y,q),w=$>0?y>q?TRANSITION:ANIMATION:null,Q=w?w===TRANSITION?m.length:a.length:0);const C=w===TRANSITION&&/\b(transform|all)(,|$)/.test(f(`${TRANSITION}Property`).toString());return{type:w,timeout:$,propCount:Q,hasTransform:C}}function getTimeout(u,d){for(;u.length<d.length;)u=u.concat(u);return Math.max(...d.map((g,f)=>toMs(g)+toMs(u[f])))}function toMs(u){return u==="auto"?0:Number(u.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(u,d,g){const f=u[vtcKey];f&&(d=(d?[d,...f]:[...f]).join(" ")),d==null?u.removeAttribute("class"):g?u.setAttribute("class",d):u.className=d}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(u,d,g){const f=u.style,b=isString$1(g);let m=!1;if(g&&!b){if(d)if(isString$1(d))for(const y of d.split(";")){const k=y.slice(0,y.indexOf(":")).trim();g[k]==null&&setStyle(f,k,"")}else for(const y in d)g[y]==null&&setStyle(f,y,"");for(const y in g)y==="display"&&(m=!0),setStyle(f,y,g[y])}else if(b){if(d!==g){const y=f[CSS_VAR_TEXT];y&&(g+=";"+y),f.cssText=g,m=displayRE.test(g)}}else d&&u.removeAttribute("style");vShowOriginalDisplay in u&&(u[vShowOriginalDisplay]=m?f.display:"",u[vShowHidden]&&(f.display="none"))}const importantRE=/\s*!important$/;function setStyle(u,d,g){if(isArray$2(g))g.forEach(f=>setStyle(u,d,f));else if(g==null&&(g=""),d.startsWith("--"))u.setProperty(d,g);else{const f=autoPrefix(u,d);importantRE.test(g)?u.setProperty(hyphenate(f),g.replace(importantRE,""),"important"):u[f]=g}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(u,d){const g=prefixCache[d];if(g)return g;let f=camelize(d);if(f!=="filter"&&f in u)return prefixCache[d]=f;f=capitalize(f);for(let b=0;b<prefixes.length;b++){const m=prefixes[b]+f;if(m in u)return prefixCache[d]=m}return d}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(u,d,g,f,b,m=isSpecialBooleanAttr(d)){f&&d.startsWith("xlink:")?g==null?u.removeAttributeNS(xlinkNS,d.slice(6,d.length)):u.setAttributeNS(xlinkNS,d,g):g==null||m&&!includeBooleanAttr(g)?u.removeAttribute(d):u.setAttribute(d,m?"":isSymbol(g)?String(g):g)}function patchDOMProp(u,d,g,f,b){if(d==="innerHTML"||d==="textContent"){g!=null&&(u[d]=d==="innerHTML"?unsafeToTrustedHTML(g):g);return}const m=u.tagName;if(d==="value"&&m!=="PROGRESS"&&!m.includes("-")){const k=m==="OPTION"?u.getAttribute("value")||"":u.value,a=g==null?u.type==="checkbox"?"on":"":String(g);(k!==a||!("_value"in u))&&(u.value=a),g==null&&u.removeAttribute(d),u._value=g;return}let y=!1;if(g===""||g==null){const k=typeof u[d];k==="boolean"?g=includeBooleanAttr(g):g==null&&k==="string"?(g="",y=!0):k==="number"&&(g=0,y=!0)}try{u[d]=g}catch{}y&&u.removeAttribute(b||d)}function addEventListener(u,d,g,f){u.addEventListener(d,g,f)}function removeEventListener(u,d,g,f){u.removeEventListener(d,g,f)}const veiKey=Symbol("_vei");function patchEvent(u,d,g,f,b=null){const m=u[veiKey]||(u[veiKey]={}),y=m[d];if(f&&y)y.value=f;else{const[k,a]=parseName(d);if(f){const q=m[d]=createInvoker(f,b);addEventListener(u,k,q,a)}else y&&(removeEventListener(u,k,y,a),m[d]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(u){let d;if(optionsModifierRE.test(u)){d={};let f;for(;f=u.match(optionsModifierRE);)u=u.slice(0,u.length-f[0].length),d[f[0].toLowerCase()]=!0}return[u[2]===":"?u.slice(3):hyphenate(u.slice(2)),d]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(u,d){const g=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=g.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(f,g.value),d,5,[f])};return g.value=u,g.attached=getNow(),g}function patchStopImmediatePropagation(u,d){if(isArray$2(d)){const g=u.stopImmediatePropagation;return u.stopImmediatePropagation=()=>{g.call(u),u._stopped=!0},d.map(f=>b=>!b._stopped&&f&&f(b))}else return d}const isNativeOn=u=>u.charCodeAt(0)===111&&u.charCodeAt(1)===110&&u.charCodeAt(2)>96&&u.charCodeAt(2)<123,patchProp=(u,d,g,f,b,m)=>{const y=b==="svg";d==="class"?patchClass(u,f,y):d==="style"?patchStyle(u,g,f):isOn(d)?isModelListener(d)||patchEvent(u,d,g,f,m):(d[0]==="."?(d=d.slice(1),!0):d[0]==="^"?(d=d.slice(1),!1):shouldSetAsProp(u,d,f,y))?(patchDOMProp(u,d,f),!u.tagName.includes("-")&&(d==="value"||d==="checked"||d==="selected")&&patchAttr(u,d,f,y,m,d!=="value")):u._isVueCE&&(/[A-Z]/.test(d)||!isString$1(f))?patchDOMProp(u,camelize(d),f,m,d):(d==="true-value"?u._trueValue=f:d==="false-value"&&(u._falseValue=f),patchAttr(u,d,f,y))};function shouldSetAsProp(u,d,g,f){if(f)return!!(d==="innerHTML"||d==="textContent"||d in u&&isNativeOn(d)&&isFunction$1(g));if(d==="spellcheck"||d==="draggable"||d==="translate"||d==="form"||d==="list"&&u.tagName==="INPUT"||d==="type"&&u.tagName==="TEXTAREA")return!1;if(d==="width"||d==="height"){const b=u.tagName;if(b==="IMG"||b==="VIDEO"||b==="CANVAS"||b==="SOURCE")return!1}return isNativeOn(d)&&isString$1(g)?!1:d in u}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=u=>(delete u.props.mode,u),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(u,{slots:d}){const g=getCurrentInstance(),f=useTransitionState();let b,m;return onUpdated(()=>{if(!b.length)return;const y=u.moveClass||`${u.name||"v"}-move`;if(!hasCSSTransform(b[0].el,g.vnode.el,y))return;b.forEach(callPendingCbs),b.forEach(recordPosition);const k=b.filter(applyTranslation);forceReflow(),k.forEach(a=>{const q=a.el,w=q.style;addTransitionClass(q,y),w.transform=w.webkitTransform=w.transitionDuration="";const $=q[moveCbKey]=Q=>{Q&&Q.target!==q||(!Q||/transform$/.test(Q.propertyName))&&(q.removeEventListener("transitionend",$),q[moveCbKey]=null,removeTransitionClass(q,y))};q.addEventListener("transitionend",$)})}),()=>{const y=toRaw(u),k=resolveTransitionProps(y);let a=y.tag||Fragment;if(b=[],m)for(let q=0;q<m.length;q++){const w=m[q];w.el&&w.el instanceof Element&&(b.push(w),setTransitionHooks(w,resolveTransitionHooks(w,k,f,g)),positionMap.set(w,w.el.getBoundingClientRect()))}m=d.default?getTransitionRawChildren(d.default()):[];for(let q=0;q<m.length;q++){const w=m[q];w.key!=null&&setTransitionHooks(w,resolveTransitionHooks(w,k,f,g))}return createVNode(a,null,m)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(u){const d=u.el;d[moveCbKey]&&d[moveCbKey](),d[enterCbKey]&&d[enterCbKey]()}function recordPosition(u){newPositionMap.set(u,u.el.getBoundingClientRect())}function applyTranslation(u){const d=positionMap.get(u),g=newPositionMap.get(u),f=d.left-g.left,b=d.top-g.top;if(f||b){const m=u.el.style;return m.transform=m.webkitTransform=`translate(${f}px,${b}px)`,m.transitionDuration="0s",u}}function hasCSSTransform(u,d,g){const f=u.cloneNode(),b=u[vtcKey];b&&b.forEach(k=>{k.split(/\s+/).forEach(a=>a&&f.classList.remove(a))}),g.split(/\s+/).forEach(k=>k&&f.classList.add(k)),f.style.display="none";const m=d.nodeType===1?d:d.parentNode;m.appendChild(f);const{hasTransform:y}=getTransitionInfo(f);return m.removeChild(f),y}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:u=>u.stopPropagation(),prevent:u=>u.preventDefault(),self:u=>u.target!==u.currentTarget,ctrl:u=>!u.ctrlKey,shift:u=>!u.shiftKey,alt:u=>!u.altKey,meta:u=>!u.metaKey,left:u=>"button"in u&&u.button!==0,middle:u=>"button"in u&&u.button!==1,right:u=>"button"in u&&u.button!==2,exact:(u,d)=>systemModifiers.some(g=>u[`${g}Key`]&&!d.includes(g))},withModifiers=(u,d)=>{const g=u._withMods||(u._withMods={}),f=d.join(".");return g[f]||(g[f]=(b,...m)=>{for(let y=0;y<d.length;y++){const k=modifierGuards[d[y]];if(k&&k(b,d))return}return u(b,...m)})},rendererOptions=extend$1({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(...u)=>{const d=ensureRenderer().createApp(...u),{mount:g}=d;return d.mount=f=>{const b=normalizeContainer(f);if(!b)return;const m=d._component;!isFunction$1(m)&&!m.render&&!m.template&&(m.template=b.innerHTML),b.nodeType===1&&(b.textContent="");const y=g(b,!1,resolveRootNamespace(b));return b instanceof Element&&(b.removeAttribute("v-cloak"),b.setAttribute("data-v-app","")),y},d};function resolveRootNamespace(u){if(u instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&u instanceof MathMLElement)return"mathml"}function normalizeContainer(u){return isString$1(u)?document.querySelector(u):u}var robotoFont="",materialIcons$1="",quasar="",app="";function injectProp(u,d,g,f){return Object.defineProperty(u,d,{get:g,set:f,enumerable:!0}),u}function injectMultipleProps(u,d){for(const g in d)injectProp(u,g,d[g]);return u}const isRuntimeSsrPreHydration=ref(!1);let preHydrationBrowser;function getMatch(u,d){const g=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(u)||/(opr)[\/]([\w.]+)/.exec(u)||/(vivaldi)[\/]([\w.]+)/.exec(u)||/(chrome|crios)[\/]([\w.]+)/.exec(u)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(firefox|fxios)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+)/.exec(u)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(u)||[];return{browser:g[5]||g[3]||g[1]||"",version:g[4]||g[2]||"0",platform:d[0]||""}}function getPlatformMatch(u){return/(ipad)/.exec(u)||/(ipod)/.exec(u)||/(windows phone)/.exec(u)||/(iphone)/.exec(u)||/(kindle)/.exec(u)||/(silk)/.exec(u)||/(android)/.exec(u)||/(win)/.exec(u)||/(mac)/.exec(u)||/(linux)/.exec(u)||/(cros)/.exec(u)||/(playbook)/.exec(u)||/(bb)/.exec(u)||/(blackberry)/.exec(u)||[]}const hasTouch="ontouchstart"in window||window.navigator.maxTouchPoints>0;function getPlatform(u){const d=u.toLowerCase(),g=getPlatformMatch(d),f=getMatch(d,g),b={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};f.browser&&(b[f.browser]=!0,b.version=f.version,b.versionNumber=parseInt(f.version,10)),f.platform&&(b[f.platform]=!0);const m=b.android||b.ios||b.bb||b.blackberry||b.ipad||b.iphone||b.ipod||b.kindle||b.playbook||b.silk||b["windows phone"];if(m===!0||d.indexOf("mobile")!==-1?b.mobile=!0:b.desktop=!0,b["windows phone"]&&(b.winphone=!0,delete b["windows phone"]),b.edga||b.edgios||b.edg?(b.edge=!0,f.browser="edge"):b.crios?(b.chrome=!0,f.browser="chrome"):b.fxios&&(b.firefox=!0,f.browser="firefox"),(b.ipod||b.ipad||b.iphone)&&(b.ios=!0),b.vivaldi&&(f.browser="vivaldi",b.vivaldi=!0),(b.chrome||b.opr||b.safari||b.vivaldi||b.mobile===!0&&b.ios!==!0&&m!==!0)&&(b.webkit=!0),b.opr&&(f.browser="opera",b.opera=!0),b.safari&&(b.blackberry||b.bb?(f.browser="blackberry",b.blackberry=!0):b.playbook?(f.browser="playbook",b.playbook=!0):b.android?(f.browser="android",b.android=!0):b.kindle?(f.browser="kindle",b.kindle=!0):b.silk&&(f.browser="silk",b.silk=!0)),b.name=f.browser,b.platform=f.platform,d.indexOf("electron")!==-1)b.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)b.bex=!0;else{if(window.Capacitor!==void 0?(b.capacitor=!0,b.nativeMobile=!0,b.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(b.cordova=!0,b.nativeMobile=!0,b.nativeMobileWrapper="cordova"),isRuntimeSsrPreHydration.value===!0&&(preHydrationBrowser={is:{...b}}),hasTouch===!0&&b.mac===!0&&(b.desktop===!0&&b.safari===!0||b.nativeMobile===!0&&b.android!==!0&&b.ios!==!0&&b.ipad!==!0)){delete b.mac,delete b.desktop;const y=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(b,{mobile:!0,ios:!0,platform:y,[y]:!0})}b.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete b.desktop,b.mobile=!0)}return b}const userAgent=navigator.userAgent||navigator.vendor||window.opera,ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client={userAgent,is:getPlatform(userAgent),has:{touch:hasTouch},within:{iframe:window.self!==window.top}},Platform={install(u){const{$q:d}=u;isRuntimeSsrPreHydration.value===!0?(u.onSSRHydrated.push(()=>{Object.assign(d.platform,client),isRuntimeSsrPreHydration.value=!1}),d.platform=reactive(this)):d.platform=this}};{let u;injectProp(client.has,"webStorage",()=>{if(u!==void 0)return u;try{if(window.localStorage)return u=!0,!0}catch{}return u=!1,!1}),Object.assign(Platform,client),isRuntimeSsrPreHydration.value===!0&&(Object.assign(Platform,preHydrationBrowser,ssrClient),preHydrationBrowser=null)}function createComponent(u){return markRaw(defineComponent(u))}function createDirective(u){return markRaw(u)}const createReactivePlugin=(u,d)=>{const g=reactive(u);for(const f in u)injectProp(d,f,()=>g[f],b=>{g[f]=b});return d},listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const u=Object.defineProperty({},"passive",{get(){Object.assign(listenOpts,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,u),window.removeEventListener("qtest",null,u)}catch{}function noop$3(){}function leftClick(u){return u.button===0}function position(u){return u.touches&&u.touches[0]?u=u.touches[0]:u.changedTouches&&u.changedTouches[0]?u=u.changedTouches[0]:u.targetTouches&&u.targetTouches[0]&&(u=u.targetTouches[0]),{top:u.clientY,left:u.clientX}}function getEventPath(u){if(u.path)return u.path;if(u.composedPath)return u.composedPath();const d=[];let g=u.target;for(;g;){if(d.push(g),g.tagName==="HTML")return d.push(document),d.push(window),d;g=g.parentElement}}function stop(u){u.stopPropagation()}function prevent(u){u.cancelable!==!1&&u.preventDefault()}function stopAndPrevent(u){u.cancelable!==!1&&u.preventDefault(),u.stopPropagation()}function preventDraggable(u,d){if(u===void 0||d===!0&&u.__dragPrevented===!0)return;const g=d===!0?f=>{f.__dragPrevented=!0,f.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:f=>{delete f.__dragPrevented,f.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};u.querySelectorAll("a, img").forEach(g)}function addEvt(u,d,g){const f=`__q_${d}_evt`;u[f]=u[f]!==void 0?u[f].concat(g):g,g.forEach(b=>{b[0].addEventListener(b[1],u[b[2]],listenOpts[b[3]])})}function cleanEvt(u,d){const g=`__q_${d}_evt`;u[g]!==void 0&&(u[g].forEach(f=>{f[0].removeEventListener(f[1],u[f[2]],listenOpts[f[3]])}),u[g]=void 0)}function debounce(u,d=250,g){let f=null;function b(){const m=arguments,y=()=>{f=null,g!==!0&&u.apply(this,m)};f!==null?clearTimeout(f):g===!0&&u.apply(this,m),f=setTimeout(y,d)}return b.cancel=()=>{f!==null&&clearTimeout(f)},b}const SIZE_LIST=["sm","md","lg","xl"],{passive:passive$2}=listenOpts;var Screen=createReactivePlugin({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:noop$3,setDebounce:noop$3,install({$q:u,onSSRHydrated:d}){if(u.screen=this,this.__installed===!0){u.config.screen!==void 0&&(u.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:g}=window,f=g||window,b=document.scrollingElement||document.documentElement,m=g===void 0||client.is.mobile===!0?()=>[Math.max(window.innerWidth,b.clientWidth),Math.max(window.innerHeight,b.clientHeight)]:()=>[g.width*g.scale+window.innerWidth-b.clientWidth,g.height*g.scale+window.innerHeight-b.clientHeight],y=u.config.screen!==void 0&&u.config.screen.bodyClasses===!0;this.__update=$=>{const[Q,C]=m();if(C!==this.height&&(this.height=C),Q!==this.width)this.width=Q;else if($!==!0)return;let v=this.sizes;this.gt.xs=Q>=v.sm,this.gt.sm=Q>=v.md,this.gt.md=Q>=v.lg,this.gt.lg=Q>=v.xl,this.lt.sm=Q<v.sm,this.lt.md=Q<v.md,this.lt.lg=Q<v.lg,this.lt.xl=Q<v.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,v=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",v!==this.name&&(y===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${v}`)),this.name=v)};let k,a={},q=16;this.setSizes=$=>{SIZE_LIST.forEach(Q=>{$[Q]!==void 0&&(a[Q]=$[Q])})},this.setDebounce=$=>{q=$};const w=()=>{const $=getComputedStyle(document.body);$.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(Q=>{this.sizes[Q]=parseInt($.getPropertyValue(`--q-size-${Q}`),10)}),this.setSizes=Q=>{SIZE_LIST.forEach(C=>{Q[C]&&(this.sizes[C]=Q[C])}),this.__update(!0)},this.setDebounce=Q=>{k!==void 0&&f.removeEventListener("resize",k,passive$2),k=Q>0?debounce(this.__update,Q):this.__update,f.addEventListener("resize",k,passive$2)},this.setDebounce(q),Object.keys(a).length!==0?(this.setSizes(a),a=void 0):this.__update(),y===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};isRuntimeSsrPreHydration.value===!0?d.push(w):w()}});const Plugin$2=createReactivePlugin({isActive:!1,mode:!1},{__media:void 0,set(u){Plugin$2.mode=u,u==="auto"?(Plugin$2.__media===void 0&&(Plugin$2.__media=window.matchMedia("(prefers-color-scheme: dark)"),Plugin$2.__updateMedia=()=>{Plugin$2.set("auto")},Plugin$2.__media.addListener(Plugin$2.__updateMedia)),u=Plugin$2.__media.matches):Plugin$2.__media!==void 0&&(Plugin$2.__media.removeListener(Plugin$2.__updateMedia),Plugin$2.__media=void 0),Plugin$2.isActive=u===!0,document.body.classList.remove(`body--${u===!0?"light":"dark"}`),document.body.classList.add(`body--${u===!0?"dark":"light"}`)},toggle(){Plugin$2.set(Plugin$2.isActive===!1)},install({$q:u,ssrContext:d}){const{dark:g}=u.config;u.dark=this,this.__installed!==!0&&this.set(g!==void 0?g:!1)}});function setCssVar(u,d,g=document.body){if(typeof u!="string")throw new TypeError("Expected a string as propName");if(typeof d!="string")throw new TypeError("Expected a string as value");if(!(g instanceof Element))throw new TypeError("Expected a DOM element");g.style.setProperty(`--q-${u}`,d)}let lastKeyCompositionStatus=!1;function onKeyDownComposition(u){lastKeyCompositionStatus=u.isComposing===!0}function shouldIgnoreKey(u){return lastKeyCompositionStatus===!0||u!==Object(u)||u.isComposing===!0||u.qKeyEvent===!0}function isKeyCode(u,d){return shouldIgnoreKey(u)===!0?!1:[].concat(d).includes(u.keyCode)}function getMobilePlatform(u){if(u.ios===!0)return"ios";if(u.android===!0)return"android"}function getBodyClasses({is:u,has:d,within:g},f){const b=[u.desktop===!0?"desktop":"mobile",`${d.touch===!1?"no-":""}touch`];if(u.mobile===!0){const m=getMobilePlatform(u);m!==void 0&&b.push("platform-"+m)}if(u.nativeMobile===!0){const m=u.nativeMobileWrapper;b.push(m),b.push("native-mobile"),u.ios===!0&&(f[m]===void 0||f[m].iosStatusBarPadding!==!1)&&b.push("q-ios-padding")}else u.electron===!0?b.push("electron"):u.bex===!0&&b.push("bex");return g.iframe===!0&&b.push("within-iframe"),b}function applyClientSsrCorrections(){const{is:u}=client,d=document.body.className,g=new Set(d.replace(/ {2}/g," ").split(" "));if(u.nativeMobile!==!0&&u.electron!==!0&&u.bex!==!0){if(u.desktop===!0)g.delete("mobile"),g.delete("platform-ios"),g.delete("platform-android"),g.add("desktop");else if(u.mobile===!0){g.delete("desktop"),g.add("mobile"),g.delete("platform-ios"),g.delete("platform-android");const b=getMobilePlatform(u);b!==void 0&&g.add(`platform-${b}`)}}client.has.touch===!0&&(g.delete("no-touch"),g.add("touch")),client.within.iframe===!0&&g.add("within-iframe");const f=Array.from(g).join(" ");d!==f&&(document.body.className=f)}function setColors(u){for(const d in u)setCssVar(d,u[d])}var Body={install(u){if(this.__installed!==!0){if(isRuntimeSsrPreHydration.value===!0)applyClientSsrCorrections();else{const{$q:d}=u;d.config.brand!==void 0&&setColors(d.config.brand);const g=getBodyClasses(client,d.config);document.body.classList.add.apply(document.body.classList,g)}client.is.ios===!0&&document.body.addEventListener("touchstart",noop$3),window.addEventListener("keydown",onKeyDownComposition,!0)}}};const getTrue=()=>!0;function filterInvalidPath(u){return typeof u=="string"&&u!==""&&u!=="/"&&u!=="#/"}function normalizeExitPath(u){return u.startsWith("#")===!0&&(u=u.substring(1)),u.startsWith("/")===!1&&(u="/"+u),u.endsWith("/")===!0&&(u=u.substring(0,u.length-1)),"#"+u}function getShouldExitFn(u){if(u.backButtonExit===!1)return()=>!1;if(u.backButtonExit==="*")return getTrue;const d=["#/"];return Array.isArray(u.backButtonExit)===!0&&d.push(...u.backButtonExit.filter(filterInvalidPath).map(normalizeExitPath)),()=>d.includes(window.location.hash)}var History={__history:[],add:noop$3,remove:noop$3,install({$q:u}){if(this.__installed===!0)return;const{cordova:d,capacitor:g}=client.is;if(d!==!0&&g!==!0)return;const f=u.config[d===!0?"cordova":"capacitor"];if(f!==void 0&&f.backButton===!1||g===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=y=>{y.condition===void 0&&(y.condition=getTrue),this.__history.push(y)},this.remove=y=>{const k=this.__history.indexOf(y);k>=0&&this.__history.splice(k,1)};const b=getShouldExitFn(Object.assign({backButtonExit:!0},f)),m=()=>{if(this.__history.length){const y=this.__history[this.__history.length-1];y.condition()===!0&&(this.__history.pop(),y.handler())}else b()===!0?navigator.app.exitApp():window.history.back()};d===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",m,!1)}):window.Capacitor.Plugins.App.addListener("backButton",m)}},defaultLang={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:u=>u?`Expand "${u}"`:"Expand",collapse:u=>u?`Collapse "${u}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:u=>u===1?"1 record selected.":(u===0?"No":u)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(u,d,g)=>u+"-"+d+" of "+g,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function getLocale(){const u=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof u=="string")return u.split(/[-_]/).map((d,g)=>g===0?d.toLowerCase():g>1||d.length<4?d.toUpperCase():d[0].toUpperCase()+d.slice(1).toLowerCase()).join("-")}const Plugin$1=createReactivePlugin({__qLang:{}},{getLocale,set(u=defaultLang,d){const g={...u,rtl:u.rtl===!0,getLocale};{if(g.set=Plugin$1.set,Plugin$1.__langConfig===void 0||Plugin$1.__langConfig.noHtmlAttrs!==!0){const f=document.documentElement;f.setAttribute("dir",g.rtl===!0?"rtl":"ltr"),f.setAttribute("lang",g.isoName)}Object.assign(Plugin$1.__qLang,g)}},install({$q:u,lang:d,ssrContext:g}){u.lang=Plugin$1.__qLang,Plugin$1.__langConfig=u.config.lang,this.__installed===!0?d!==void 0&&this.set(d):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(f){return Reflect.ownKeys(f).filter(b=>b!=="set"&&b!=="getLocale")}}),this.set(d||defaultLang))}});var materialIcons={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}};const Plugin=createReactivePlugin({iconMapFn:null,__qIconSet:{}},{set(u,d){const g={...u};g.set=Plugin.set,Object.assign(Plugin.__qIconSet,g)},install({$q:u,iconSet:d,ssrContext:g}){u.config.iconMapFn!==void 0&&(this.iconMapFn=u.config.iconMapFn),u.iconSet=this.__qIconSet,injectProp(u,"iconMapFn",()=>this.iconMapFn,f=>{this.iconMapFn=f}),this.__installed===!0?d!==void 0&&this.set(d):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(f){return Reflect.ownKeys(f).filter(b=>b!=="set")}}),this.set(d||materialIcons))}}),quasarKey="_q_",layoutKey="_q_l_",pageContainerKey="_q_pc_",formKey="_q_fo_";function emptyRenderFn(){}const globalConfig={};let globalConfigIsFrozen=!1;function freezeGlobalConfig(){globalConfigIsFrozen=!0}function isDeepEqual(u,d){if(u===d)return!0;if(u!==null&&d!==null&&typeof u=="object"&&typeof d=="object"){if(u.constructor!==d.constructor)return!1;let g,f;if(u.constructor===Array){if(g=u.length,g!==d.length)return!1;for(f=g;f--!==0;)if(isDeepEqual(u[f],d[f])!==!0)return!1;return!0}if(u.constructor===Map){if(u.size!==d.size)return!1;let m=u.entries();for(f=m.next();f.done!==!0;){if(d.has(f.value[0])!==!0)return!1;f=m.next()}for(m=u.entries(),f=m.next();f.done!==!0;){if(isDeepEqual(f.value[1],d.get(f.value[0]))!==!0)return!1;f=m.next()}return!0}if(u.constructor===Set){if(u.size!==d.size)return!1;const m=u.entries();for(f=m.next();f.done!==!0;){if(d.has(f.value[0])!==!0)return!1;f=m.next()}return!0}if(u.buffer!=null&&u.buffer.constructor===ArrayBuffer){if(g=u.length,g!==d.length)return!1;for(f=g;f--!==0;)if(u[f]!==d[f])return!1;return!0}if(u.constructor===RegExp)return u.source===d.source&&u.flags===d.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===d.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===d.toString();const b=Object.keys(u).filter(m=>u[m]!==void 0);if(g=b.length,g!==Object.keys(d).filter(m=>d[m]!==void 0).length)return!1;for(f=g;f--!==0;){const m=b[f];if(isDeepEqual(u[m],d[m])!==!0)return!1}return!0}return u!==u&&d!==d}function isObject$1(u){return u!==null&&typeof u=="object"&&Array.isArray(u)!==!0}function isDate$1(u){return Object.prototype.toString.call(u)==="[object Date]"}function isNumber$3(u){return typeof u=="number"&&isFinite(u)}const autoInstalledPlugins=[Platform,Body,Plugin$2,Screen,History,Plugin$1,Plugin];function createChildApp(u,d){const g=createApp(u);g.config.globalProperties=d.config.globalProperties;const{reload:f,...b}=d._context;return Object.assign(g._context,b),g}function installPlugins(u,d){d.forEach(g=>{g.install(u),g.__installed=!0})}function prepareApp(u,d,g){u.config.globalProperties.$q=g.$q,u.provide(quasarKey,g.$q),installPlugins(g,autoInstalledPlugins),d.components!==void 0&&Object.values(d.components).forEach(f=>{isObject$1(f)===!0&&f.name!==void 0&&u.component(f.name,f)}),d.directives!==void 0&&Object.values(d.directives).forEach(f=>{isObject$1(f)===!0&&f.name!==void 0&&u.directive(f.name,f)}),d.plugins!==void 0&&installPlugins(g,Object.values(d.plugins).filter(f=>typeof f.install=="function"&&autoInstalledPlugins.includes(f)===!1)),isRuntimeSsrPreHydration.value===!0&&(g.$q.onSSRHydrated=()=>{g.onSSRHydrated.forEach(f=>{f()}),g.$q.onSSRHydrated=()=>{}})}var installQuasar=function(u,d={}){const g={version:"2.17.5"};globalConfigIsFrozen===!1?(d.config!==void 0&&Object.assign(globalConfig,d.config),g.config={...globalConfig},freezeGlobalConfig()):g.config=d.config||{},prepareApp(u,d,{parentApp:u,$q:g,lang:d.lang,iconSet:d.iconSet,onSSRHydrated:[]})},Quasar={name:"Quasar",version:"2.17.5",install:installQuasar,lang:Plugin$1,iconSet:Plugin},_export_sfc=(u,d)=>{const g=u.__vccOpts||u;for(const[f,b]of d)g[f]=b;return g};const _sfc_main$j=defineComponent({name:"App"});function _sfc_render$i(u,d,g,f,b,m){const y=resolveComponent("router-view");return openBlock(),createBlock(y)}var App=_export_sfc(_sfc_main$j,[["render",_sfc_render$i]]),isVue2=!1;/*!
|
|
21
|
+
* pinia v2.2.8
|
|
22
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
23
|
+
* @license MIT
|
|
24
|
+
*/let activePinia;const setActivePinia=u=>activePinia=u,piniaSymbol=Symbol();function isPlainObject$1(u){return u&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Object]"&&typeof u.toJSON!="function"}var MutationType;(function(u){u.direct="direct",u.patchObject="patch object",u.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const u=effectScope(!0),d=u.run(()=>ref({}));let g=[],f=[];const b=markRaw({install(m){setActivePinia(b),b._a=m,m.provide(piniaSymbol,b),m.config.globalProperties.$pinia=b,f.forEach(y=>g.push(y)),f=[]},use(m){return!this._a&&!isVue2?f.push(m):g.push(m),this},_p:g,_a:null,_e:u,_s:new Map,state:d});return b}const noop$2=()=>{};function addSubscription(u,d,g,f=noop$2){u.push(d);const b=()=>{const m=u.indexOf(d);m>-1&&(u.splice(m,1),f())};return!g&&getCurrentScope()&&onScopeDispose(b),b}function triggerSubscriptions(u,...d){u.slice().forEach(g=>{g(...d)})}const fallbackRunWithContext=u=>u(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(u,d){u instanceof Map&&d instanceof Map?d.forEach((g,f)=>u.set(f,g)):u instanceof Set&&d instanceof Set&&d.forEach(u.add,u);for(const g in d){if(!d.hasOwnProperty(g))continue;const f=d[g],b=u[g];isPlainObject$1(b)&&isPlainObject$1(f)&&u.hasOwnProperty(g)&&!isRef(f)&&!isReactive(f)?u[g]=mergeReactiveObjects(b,f):u[g]=f}return u}const skipHydrateSymbol=Symbol();function shouldHydrate(u){return!isPlainObject$1(u)||!u.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(u){return!!(isRef(u)&&u.effect)}function createOptionsStore(u,d,g,f){const{state:b,actions:m,getters:y}=d,k=g.state.value[u];let a;function q(){k||(g.state.value[u]=b?b():{});const w=toRefs(g.state.value[u]);return assign$1(w,m,Object.keys(y||{}).reduce(($,Q)=>($[Q]=markRaw(computed(()=>{setActivePinia(g);const C=g._s.get(u);return y[Q].call(C,C)})),$),{}))}return a=createSetupStore(u,q,d,g,f,!0),a}function createSetupStore(u,d,g={},f,b,m){let y;const k=assign$1({actions:{}},g),a={deep:!0};let q,w,$=[],Q=[],C;const v=f.state.value[u];!m&&!v&&(f.state.value[u]={}),ref({});let J;function ae(O){let P;q=w=!1,typeof O=="function"?(O(f.state.value[u]),P={type:MutationType.patchFunction,storeId:u,events:C}):(mergeReactiveObjects(f.state.value[u],O),P={type:MutationType.patchObject,payload:O,storeId:u,events:C});const B=J=Symbol();nextTick().then(()=>{J===B&&(q=!0)}),w=!0,triggerSubscriptions($,P,f.state.value[u])}const H=m?function(){const{state:P}=g,B=P?P():{};this.$patch(M=>{assign$1(M,B)})}:noop$2;function Y(){y.stop(),$=[],Q=[],f._s.delete(u)}const G=(O,P="")=>{if(ACTION_MARKER in O)return O[ACTION_NAME]=P,O;const B=function(){setActivePinia(f);const M=Array.from(arguments),F=[],S=[];function A(D){F.push(D)}function E(D){S.push(D)}triggerSubscriptions(Q,{args:M,name:B[ACTION_NAME],store:L,after:A,onError:E});let _;try{_=O.apply(this&&this.$id===u?this:L,M)}catch(D){throw triggerSubscriptions(S,D),D}return _ instanceof Promise?_.then(D=>(triggerSubscriptions(F,D),D)).catch(D=>(triggerSubscriptions(S,D),Promise.reject(D))):(triggerSubscriptions(F,_),_)};return B[ACTION_MARKER]=!0,B[ACTION_NAME]=P,B},j={_p:f,$id:u,$onAction:addSubscription.bind(null,Q),$patch:ae,$reset:H,$subscribe(O,P={}){const B=addSubscription($,O,P.detached,()=>M()),M=y.run(()=>watch(()=>f.state.value[u],F=>{(P.flush==="sync"?w:q)&&O({storeId:u,type:MutationType.direct,events:C},F)},assign$1({},a,P)));return B},$dispose:Y},L=reactive(j);f._s.set(u,L);const T=(f._a&&f._a.runWithContext||fallbackRunWithContext)(()=>f._e.run(()=>(y=effectScope()).run(()=>d({action:G}))));for(const O in T){const P=T[O];if(isRef(P)&&!isComputed(P)||isReactive(P))m||(v&&shouldHydrate(P)&&(isRef(P)?P.value=v[O]:mergeReactiveObjects(P,v[O])),f.state.value[u][O]=P);else if(typeof P=="function"){const B=G(P,O);T[O]=B,k.actions[O]=P}}return assign$1(L,T),assign$1(toRaw(L),T),Object.defineProperty(L,"$state",{get:()=>f.state.value[u],set:O=>{ae(P=>{assign$1(P,O)})}}),f._p.forEach(O=>{assign$1(L,y.run(()=>O({store:L,app:f._a,pinia:f,options:k})))}),v&&m&&g.hydrate&&g.hydrate(L.$state,v),q=!0,w=!0,L}/*! #__NO_SIDE_EFFECTS__ */function defineStore(u,d,g){let f,b;const m=typeof d=="function";typeof u=="string"?(f=u,b=m?g:d):(b=u,f=u.id);function y(k,a){const q=hasInjectionContext();return k=k||(q?inject(piniaSymbol,null):null),k&&setActivePinia(k),k=activePinia,k._s.has(f)||(m?createSetupStore(f,d,b,k):createOptionsStore(f,b,k)),k._s.get(f)}return y.$id=f,y}function boot(u){return u}function route(u){return u}function store(u){return u}var createStore=()=>createPinia();/*!
|
|
25
|
+
* vue-router v4.5.0
|
|
26
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
27
|
+
* @license MIT
|
|
28
|
+
*/const isBrowser=typeof document!="undefined";function isRouteComponent(u){return typeof u=="object"||"displayName"in u||"props"in u||"__vccOpts"in u}function isESModule(u){return u.__esModule||u[Symbol.toStringTag]==="Module"||u.default&&isRouteComponent(u.default)}const assign=Object.assign;function applyToParams(u,d){const g={};for(const f in d){const b=d[f];g[f]=isArray$1(b)?b.map(u):u(b)}return g}const noop$1=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(u){return encodeURI(""+u).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(u){return commonEncode(u).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(u){return commonEncode(u).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(u){return encodeQueryValue(u).replace(EQUAL_RE,"%3D")}function encodePath(u){return commonEncode(u).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(u){return u==null?"":encodePath(u).replace(SLASH_RE,"%2F")}function decode$1(u){try{return decodeURIComponent(""+u)}catch{}return""+u}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=u=>u.replace(TRAILING_SLASH_RE,"");function parseURL(u,d,g="/"){let f,b={},m="",y="";const k=d.indexOf("#");let a=d.indexOf("?");return k<a&&k>=0&&(a=-1),a>-1&&(f=d.slice(0,a),m=d.slice(a+1,k>-1?k:d.length),b=u(m)),k>-1&&(f=f||d.slice(0,k),y=d.slice(k,d.length)),f=resolveRelativePath(f!=null?f:d,g),{fullPath:f+(m&&"?")+m+y,path:f,query:b,hash:decode$1(y)}}function stringifyURL(u,d){const g=d.query?u(d.query):"";return d.path+(g&&"?")+g+(d.hash||"")}function stripBase(u,d){return!d||!u.toLowerCase().startsWith(d.toLowerCase())?u:u.slice(d.length)||"/"}function isSameRouteLocation(u,d,g){const f=d.matched.length-1,b=g.matched.length-1;return f>-1&&f===b&&isSameRouteRecord$1(d.matched[f],g.matched[b])&&isSameRouteLocationParams$1(d.params,g.params)&&u(d.query)===u(g.query)&&d.hash===g.hash}function isSameRouteRecord$1(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function isSameRouteLocationParams$1(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(!isSameRouteLocationParamsValue$1(u[g],d[g]))return!1;return!0}function isSameRouteLocationParamsValue$1(u,d){return isArray$1(u)?isEquivalentArray$1(u,d):isArray$1(d)?isEquivalentArray$1(d,u):u===d}function isEquivalentArray$1(u,d){return isArray$1(d)?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function resolveRelativePath(u,d){if(u.startsWith("/"))return u;if(!u)return d;const g=d.split("/"),f=u.split("/"),b=f[f.length-1];(b===".."||b===".")&&f.push("");let m=g.length-1,y,k;for(y=0;y<f.length;y++)if(k=f[y],k!==".")if(k==="..")m>1&&m--;else break;return g.slice(0,m).join("/")+"/"+f.slice(y).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(u){u.pop="pop",u.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(u){u.back="back",u.forward="forward",u.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(u){if(!u)if(isBrowser){const d=document.querySelector("base");u=d&&d.getAttribute("href")||"/",u=u.replace(/^\w+:\/\/[^\/]+/,"")}else u="/";return u[0]!=="/"&&u[0]!=="#"&&(u="/"+u),removeTrailingSlash(u)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(u,d){return u.replace(BEFORE_HASH_RE,"#")+d}function getElementPosition(u,d){const g=document.documentElement.getBoundingClientRect(),f=u.getBoundingClientRect();return{behavior:d.behavior,left:f.left-g.left-(d.left||0),top:f.top-g.top-(d.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(u){let d;if("el"in u){const g=u.el,f=typeof g=="string"&&g.startsWith("#"),b=typeof g=="string"?f?document.getElementById(g.slice(1)):document.querySelector(g):g;if(!b)return;d=getElementPosition(b,u)}else d=u;"scrollBehavior"in document.documentElement.style?window.scrollTo(d):window.scrollTo(d.left!=null?d.left:window.scrollX,d.top!=null?d.top:window.scrollY)}function getScrollKey(u,d){return(history.state?history.state.position-d:-1)+u}const scrollPositions=new Map;function saveScrollPosition(u,d){scrollPositions.set(u,d)}function getSavedScrollPosition(u){const d=scrollPositions.get(u);return scrollPositions.delete(u),d}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(u,d){const{pathname:g,search:f,hash:b}=d,m=u.indexOf("#");if(m>-1){let k=b.includes(u.slice(m))?u.slice(m).length:1,a=b.slice(k);return a[0]!=="/"&&(a="/"+a),stripBase(a,"")}return stripBase(g,u)+f+b}function useHistoryListeners(u,d,g,f){let b=[],m=[],y=null;const k=({state:Q})=>{const C=createCurrentLocation(u,location),v=g.value,J=d.value;let ae=0;if(Q){if(g.value=C,d.value=Q,y&&y===v){y=null;return}ae=J?Q.position-J.position:0}else f(C);b.forEach(H=>{H(g.value,v,{delta:ae,type:NavigationType.pop,direction:ae?ae>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function a(){y=g.value}function q(Q){b.push(Q);const C=()=>{const v=b.indexOf(Q);v>-1&&b.splice(v,1)};return m.push(C),C}function w(){const{history:Q}=window;!Q.state||Q.replaceState(assign({},Q.state,{scroll:computeScrollPosition()}),"")}function $(){for(const Q of m)Q();m=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",w)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",w,{passive:!0}),{pauseListeners:a,listen:q,destroy:$}}function buildState(u,d,g,f=!1,b=!1){return{back:u,current:d,forward:g,replaced:f,position:window.history.length,scroll:b?computeScrollPosition():null}}function useHistoryStateNavigation(u){const{history:d,location:g}=window,f={value:createCurrentLocation(u,g)},b={value:d.state};b.value||m(f.value,{back:null,current:f.value,forward:null,position:d.length-1,replaced:!0,scroll:null},!0);function m(a,q,w){const $=u.indexOf("#"),Q=$>-1?(g.host&&document.querySelector("base")?u:u.slice($))+a:createBaseLocation()+u+a;try{d[w?"replaceState":"pushState"](q,"",Q),b.value=q}catch(C){console.error(C),g[w?"replace":"assign"](Q)}}function y(a,q){const w=assign({},d.state,buildState(b.value.back,a,b.value.forward,!0),q,{position:b.value.position});m(a,w,!0),f.value=a}function k(a,q){const w=assign({},b.value,d.state,{forward:a,scroll:computeScrollPosition()});m(w.current,w,!0);const $=assign({},buildState(f.value,a,null),{position:w.position+1},q);m(a,$,!1),f.value=a}return{location:f,state:b,push:k,replace:y}}function createWebHistory(u){u=normalizeBase(u);const d=useHistoryStateNavigation(u),g=useHistoryListeners(u,d.state,d.location,d.replace);function f(m,y=!0){y||g.pauseListeners(),history.go(m)}const b=assign({location:"",base:u,go:f,createHref:createHref.bind(null,u)},d,g);return Object.defineProperty(b,"location",{enumerable:!0,get:()=>d.location.value}),Object.defineProperty(b,"state",{enumerable:!0,get:()=>d.state.value}),b}function isRouteLocation(u){return typeof u=="string"||u&&typeof u=="object"}function isRouteName(u){return typeof u=="string"||typeof u=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(u){u[u.aborted=4]="aborted",u[u.cancelled=8]="cancelled",u[u.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(u,d){return assign(new Error,{type:u,[NavigationFailureSymbol]:!0},d)}function isNavigationFailure(u,d){return u instanceof Error&&NavigationFailureSymbol in u&&(d==null||!!(u.type&d))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(u,d){const g=assign({},BASE_PATH_PARSER_OPTIONS,d),f=[];let b=g.start?"^":"";const m=[];for(const q of u){const w=q.length?[]:[90];g.strict&&!q.length&&(b+="/");for(let $=0;$<q.length;$++){const Q=q[$];let C=40+(g.sensitive?.25:0);if(Q.type===0)$||(b+="/"),b+=Q.value.replace(REGEX_CHARS_RE,"\\$&"),C+=40;else if(Q.type===1){const{value:v,repeatable:J,optional:ae,regexp:H}=Q;m.push({name:v,repeatable:J,optional:ae});const Y=H||BASE_PARAM_PATTERN;if(Y!==BASE_PARAM_PATTERN){C+=10;try{new RegExp(`(${Y})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${v}" (${Y}): `+j.message)}}let G=J?`((?:${Y})(?:/(?:${Y}))*)`:`(${Y})`;$||(G=ae&&q.length<2?`(?:/${G})`:"/"+G),ae&&(G+="?"),b+=G,C+=20,ae&&(C+=-8),J&&(C+=-20),Y===".*"&&(C+=-50)}w.push(C)}f.push(w)}if(g.strict&&g.end){const q=f.length-1;f[q][f[q].length-1]+=.7000000000000001}g.strict||(b+="/?"),g.end?b+="$":g.strict&&!b.endsWith("/")&&(b+="(?:/|$)");const y=new RegExp(b,g.sensitive?"":"i");function k(q){const w=q.match(y),$={};if(!w)return null;for(let Q=1;Q<w.length;Q++){const C=w[Q]||"",v=m[Q-1];$[v.name]=C&&v.repeatable?C.split("/"):C}return $}function a(q){let w="",$=!1;for(const Q of u){(!$||!w.endsWith("/"))&&(w+="/"),$=!1;for(const C of Q)if(C.type===0)w+=C.value;else if(C.type===1){const{value:v,repeatable:J,optional:ae}=C,H=v in q?q[v]:"";if(isArray$1(H)&&!J)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const Y=isArray$1(H)?H.join("/"):H;if(!Y)if(ae)Q.length<2&&(w.endsWith("/")?w=w.slice(0,-1):$=!0);else throw new Error(`Missing required param "${v}"`);w+=Y}}return w||"/"}return{re:y,score:f,keys:m,parse:k,stringify:a}}function compareScoreArray(u,d){let g=0;for(;g<u.length&&g<d.length;){const f=d[g]-u[g];if(f)return f;g++}return u.length<d.length?u.length===1&&u[0]===40+40?-1:1:u.length>d.length?d.length===1&&d[0]===40+40?1:-1:0}function comparePathParserScore(u,d){let g=0;const f=u.score,b=d.score;for(;g<f.length&&g<b.length;){const m=compareScoreArray(f[g],b[g]);if(m)return m;g++}if(Math.abs(b.length-f.length)===1){if(isLastScoreNegative(f))return 1;if(isLastScoreNegative(b))return-1}return b.length-f.length}function isLastScoreNegative(u){const d=u[u.length-1];return u.length>0&&d[d.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(u){if(!u)return[[]];if(u==="/")return[[ROOT_TOKEN]];if(!u.startsWith("/"))throw new Error(`Invalid path "${u}"`);function d(C){throw new Error(`ERR (${g})/"${q}": ${C}`)}let g=0,f=g;const b=[];let m;function y(){m&&b.push(m),m=[]}let k=0,a,q="",w="";function $(){!q||(g===0?m.push({type:0,value:q}):g===1||g===2||g===3?(m.length>1&&(a==="*"||a==="+")&&d(`A repeatable param (${q}) must be alone in its segment. eg: '/:ids+.`),m.push({type:1,value:q,regexp:w,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):d("Invalid state to consume buffer"),q="")}function Q(){q+=a}for(;k<u.length;){if(a=u[k++],a==="\\"&&g!==2){f=g,g=4;continue}switch(g){case 0:a==="/"?(q&&$(),y()):a===":"?($(),g=1):Q();break;case 4:Q(),g=f;break;case 1:a==="("?g=2:VALID_PARAM_RE.test(a)?Q():($(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--);break;case 2:a===")"?w[w.length-1]=="\\"?w=w.slice(0,-1)+a:g=3:w+=a;break;case 3:$(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--,w="";break;default:d("Unknown state");break}}return g===2&&d(`Unfinished custom RegExp for param "${q}"`),$(),y(),b}function createRouteRecordMatcher(u,d,g){const f=tokensToParser(tokenizePath(u.path),g),b=assign(f,{record:u,parent:d,children:[],alias:[]});return d&&!b.record.aliasOf==!d.record.aliasOf&&d.children.push(b),b}function createRouterMatcher(u,d){const g=[],f=new Map;d=mergeOptions({strict:!1,end:!0,sensitive:!1},d);function b($){return f.get($)}function m($,Q,C){const v=!C,J=normalizeRouteRecord($);J.aliasOf=C&&C.record;const ae=mergeOptions(d,$),H=[J];if("alias"in $){const j=typeof $.alias=="string"?[$.alias]:$.alias;for(const L of j)H.push(normalizeRouteRecord(assign({},J,{components:C?C.record.components:J.components,path:L,aliasOf:C?C.record:J})))}let Y,G;for(const j of H){const{path:L}=j;if(Q&&L[0]!=="/"){const R=Q.record.path,T=R[R.length-1]==="/"?"":"/";j.path=Q.record.path+(L&&T+L)}if(Y=createRouteRecordMatcher(j,Q,ae),C?C.alias.push(Y):(G=G||Y,G!==Y&&G.alias.push(Y),v&&$.name&&!isAliasRecord(Y)&&y($.name)),isMatchable(Y)&&a(Y),J.children){const R=J.children;for(let T=0;T<R.length;T++)m(R[T],Y,C&&C.children[T])}C=C||Y}return G?()=>{y(G)}:noop$1}function y($){if(isRouteName($)){const Q=f.get($);Q&&(f.delete($),g.splice(g.indexOf(Q),1),Q.children.forEach(y),Q.alias.forEach(y))}else{const Q=g.indexOf($);Q>-1&&(g.splice(Q,1),$.record.name&&f.delete($.record.name),$.children.forEach(y),$.alias.forEach(y))}}function k(){return g}function a($){const Q=findInsertionIndex($,g);g.splice(Q,0,$),$.record.name&&!isAliasRecord($)&&f.set($.record.name,$)}function q($,Q){let C,v={},J,ae;if("name"in $&&$.name){if(C=f.get($.name),!C)throw createRouterError(1,{location:$});ae=C.record.name,v=assign(paramsFromLocation(Q.params,C.keys.filter(G=>!G.optional).concat(C.parent?C.parent.keys.filter(G=>G.optional):[]).map(G=>G.name)),$.params&¶msFromLocation($.params,C.keys.map(G=>G.name))),J=C.stringify(v)}else if($.path!=null)J=$.path,C=g.find(G=>G.re.test(J)),C&&(v=C.parse(J),ae=C.record.name);else{if(C=Q.name?f.get(Q.name):g.find(G=>G.re.test(Q.path)),!C)throw createRouterError(1,{location:$,currentLocation:Q});ae=C.record.name,v=assign({},Q.params,$.params),J=C.stringify(v)}const H=[];let Y=C;for(;Y;)H.unshift(Y.record),Y=Y.parent;return{name:ae,path:J,params:v,matched:H,meta:mergeMetaFields(H)}}u.forEach($=>m($));function w(){g.length=0,f.clear()}return{addRoute:m,resolve:q,removeRoute:y,clearRoutes:w,getRoutes:k,getRecordMatcher:b}}function paramsFromLocation(u,d){const g={};for(const f of d)f in u&&(g[f]=u[f]);return g}function normalizeRouteRecord(u){const d={path:u.path,redirect:u.redirect,name:u.name,meta:u.meta||{},aliasOf:u.aliasOf,beforeEnter:u.beforeEnter,props:normalizeRecordProps(u),children:u.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in u?u.components||null:u.component&&{default:u.component}};return Object.defineProperty(d,"mods",{value:{}}),d}function normalizeRecordProps(u){const d={},g=u.props||!1;if("component"in u)d.default=g;else for(const f in u.components)d[f]=typeof g=="object"?g[f]:g;return d}function isAliasRecord(u){for(;u;){if(u.record.aliasOf)return!0;u=u.parent}return!1}function mergeMetaFields(u){return u.reduce((d,g)=>assign(d,g.meta),{})}function mergeOptions(u,d){const g={};for(const f in u)g[f]=f in d?d[f]:u[f];return g}function findInsertionIndex(u,d){let g=0,f=d.length;for(;g!==f;){const m=g+f>>1;comparePathParserScore(u,d[m])<0?f=m:g=m+1}const b=getInsertionAncestor(u);return b&&(f=d.lastIndexOf(b,f-1)),f}function getInsertionAncestor(u){let d=u;for(;d=d.parent;)if(isMatchable(d)&&comparePathParserScore(u,d)===0)return d}function isMatchable({record:u}){return!!(u.name||u.components&&Object.keys(u.components).length||u.redirect)}function parseQuery(u){const d={};if(u===""||u==="?")return d;const f=(u[0]==="?"?u.slice(1):u).split("&");for(let b=0;b<f.length;++b){const m=f[b].replace(PLUS_RE," "),y=m.indexOf("="),k=decode$1(y<0?m:m.slice(0,y)),a=y<0?null:decode$1(m.slice(y+1));if(k in d){let q=d[k];isArray$1(q)||(q=d[k]=[q]),q.push(a)}else d[k]=a}return d}function stringifyQuery(u){let d="";for(let g in u){const f=u[g];if(g=encodeQueryKey(g),f==null){f!==void 0&&(d+=(d.length?"&":"")+g);continue}(isArray$1(f)?f.map(m=>m&&encodeQueryValue(m)):[f&&encodeQueryValue(f)]).forEach(m=>{m!==void 0&&(d+=(d.length?"&":"")+g,m!=null&&(d+="="+m))})}return d}function normalizeQuery(u){const d={};for(const g in u){const f=u[g];f!==void 0&&(d[g]=isArray$1(f)?f.map(b=>b==null?null:""+b):f==null?f:""+f)}return d}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let u=[];function d(f){return u.push(f),()=>{const b=u.indexOf(f);b>-1&&u.splice(b,1)}}function g(){u=[]}return{add:d,list:()=>u.slice(),reset:g}}function guardToPromiseFn(u,d,g,f,b,m=y=>y()){const y=f&&(f.enterCallbacks[b]=f.enterCallbacks[b]||[]);return()=>new Promise((k,a)=>{const q=Q=>{Q===!1?a(createRouterError(4,{from:g,to:d})):Q instanceof Error?a(Q):isRouteLocation(Q)?a(createRouterError(2,{from:d,to:Q})):(y&&f.enterCallbacks[b]===y&&typeof Q=="function"&&y.push(Q),k())},w=m(()=>u.call(f&&f.instances[b],d,g,q));let $=Promise.resolve(w);u.length<3&&($=$.then(q)),$.catch(Q=>a(Q))})}function extractComponentsGuards(u,d,g,f,b=m=>m()){const m=[];for(const y of u)for(const k in y.components){let a=y.components[k];if(!(d!=="beforeRouteEnter"&&!y.instances[k]))if(isRouteComponent(a)){const w=(a.__vccOpts||a)[d];w&&m.push(guardToPromiseFn(w,g,f,y,k,b))}else{let q=a();m.push(()=>q.then(w=>{if(!w)throw new Error(`Couldn't resolve component "${k}" at "${y.path}"`);const $=isESModule(w)?w.default:w;y.mods[k]=w,y.components[k]=$;const C=($.__vccOpts||$)[d];return C&&guardToPromiseFn(C,g,f,y,k,b)()}))}}return m}function useLink(u){const d=inject(routerKey),g=inject(routeLocationKey),f=computed(()=>{const a=unref(u.to);return d.resolve(a)}),b=computed(()=>{const{matched:a}=f.value,{length:q}=a,w=a[q-1],$=g.matched;if(!w||!$.length)return-1;const Q=$.findIndex(isSameRouteRecord$1.bind(null,w));if(Q>-1)return Q;const C=getOriginalPath$1(a[q-2]);return q>1&&getOriginalPath$1(w)===C&&$[$.length-1].path!==C?$.findIndex(isSameRouteRecord$1.bind(null,a[q-2])):Q}),m=computed(()=>b.value>-1&&includesParams$1(g.params,f.value.params)),y=computed(()=>b.value>-1&&b.value===g.matched.length-1&&isSameRouteLocationParams$1(g.params,f.value.params));function k(a={}){if(guardEvent(a)){const q=d[unref(u.replace)?"replace":"push"](unref(u.to)).catch(noop$1);return u.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>q),q}return Promise.resolve()}return{route:f,href:computed(()=>f.value.href),isActive:m,isExactActive:y,navigate:k}}function preferSingleVNode(u){return u.length===1?u[0]:u}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(u,{slots:d}){const g=reactive(useLink(u)),{options:f}=inject(routerKey),b=computed(()=>({[getLinkClass(u.activeClass,f.linkActiveClass,"router-link-active")]:g.isActive,[getLinkClass(u.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:g.isExactActive}));return()=>{const m=d.default&&preferSingleVNode(d.default(g));return u.custom?m:h("a",{"aria-current":g.isExactActive?u.ariaCurrentValue:null,href:g.href,onClick:g.navigate,class:b.value},m)}}}),RouterLink=RouterLinkImpl;function guardEvent(u){if(!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)&&!u.defaultPrevented&&!(u.button!==void 0&&u.button!==0)){if(u.currentTarget&&u.currentTarget.getAttribute){const d=u.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(d))return}return u.preventDefault&&u.preventDefault(),!0}}function includesParams$1(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(!isArray$1(b)||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function getOriginalPath$1(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}const getLinkClass=(u,d,g)=>u!=null?u:d!=null?d:g,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(u,{attrs:d,slots:g}){const f=inject(routerViewLocationKey),b=computed(()=>u.route||f.value),m=inject(viewDepthKey,0),y=computed(()=>{let q=unref(m);const{matched:w}=b.value;let $;for(;($=w[q])&&!$.components;)q++;return q}),k=computed(()=>b.value.matched[y.value]);provide(viewDepthKey,computed(()=>y.value+1)),provide(matchedRouteKey,k),provide(routerViewLocationKey,b);const a=ref();return watch(()=>[a.value,k.value,u.name],([q,w,$],[Q,C,v])=>{w&&(w.instances[$]=q,C&&C!==w&&q&&q===Q&&(w.leaveGuards.size||(w.leaveGuards=C.leaveGuards),w.updateGuards.size||(w.updateGuards=C.updateGuards))),q&&w&&(!C||!isSameRouteRecord$1(w,C)||!Q)&&(w.enterCallbacks[$]||[]).forEach(J=>J(q))},{flush:"post"}),()=>{const q=b.value,w=u.name,$=k.value,Q=$&&$.components[w];if(!Q)return normalizeSlot(g.default,{Component:Q,route:q});const C=$.props[w],v=C?C===!0?q.params:typeof C=="function"?C(q):C:null,ae=h(Q,assign({},v,d,{onVnodeUnmounted:H=>{H.component.isUnmounted&&($.instances[w]=null)},ref:a}));return normalizeSlot(g.default,{Component:ae,route:q})||ae}}});function normalizeSlot(u,d){if(!u)return null;const g=u(d);return g.length===1?g[0]:g}const RouterView=RouterViewImpl;function createRouter$1(u){const d=createRouterMatcher(u.routes,u),g=u.parseQuery||parseQuery,f=u.stringifyQuery||stringifyQuery,b=u.history,m=useCallbacks(),y=useCallbacks(),k=useCallbacks(),a=shallowRef(START_LOCATION_NORMALIZED);let q=START_LOCATION_NORMALIZED;isBrowser&&u.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=applyToParams.bind(null,Z=>""+Z),$=applyToParams.bind(null,encodeParam),Q=applyToParams.bind(null,decode$1);function C(Z,se){let ie,de;return isRouteName(Z)?(ie=d.getRecordMatcher(Z),de=se):de=Z,d.addRoute(de,ie)}function v(Z){const se=d.getRecordMatcher(Z);se&&d.removeRoute(se)}function J(){return d.getRoutes().map(Z=>Z.record)}function ae(Z){return!!d.getRecordMatcher(Z)}function H(Z,se){if(se=assign({},se||a.value),typeof Z=="string"){const ne=parseURL(g,Z,se.path),ue=d.resolve({path:ne.path},se),le=b.createHref(ne.fullPath);return assign(ne,ue,{params:Q(ue.params),hash:decode$1(ne.hash),redirectedFrom:void 0,href:le})}let ie;if(Z.path!=null)ie=assign({},Z,{path:parseURL(g,Z.path,se.path).path});else{const ne=assign({},Z.params);for(const ue in ne)ne[ue]==null&&delete ne[ue];ie=assign({},Z,{params:$(ne)}),se.params=$(se.params)}const de=d.resolve(ie,se),ce=Z.hash||"";de.params=w(Q(de.params));const he=stringifyURL(f,assign({},Z,{hash:encodeHash(ce),path:de.path})),oe=b.createHref(he);return assign({fullPath:he,hash:ce,query:f===stringifyQuery?normalizeQuery(Z.query):Z.query||{}},de,{redirectedFrom:void 0,href:oe})}function Y(Z){return typeof Z=="string"?parseURL(g,Z,a.value.path):assign({},Z)}function G(Z,se){if(q!==Z)return createRouterError(8,{from:se,to:Z})}function j(Z){return T(Z)}function L(Z){return j(assign(Y(Z),{replace:!0}))}function R(Z){const se=Z.matched[Z.matched.length-1];if(se&&se.redirect){const{redirect:ie}=se;let de=typeof ie=="function"?ie(Z):ie;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=Y(de):{path:de},de.params={}),assign({query:Z.query,hash:Z.hash,params:de.path!=null?{}:Z.params},de)}}function T(Z,se){const ie=q=H(Z),de=a.value,ce=Z.state,he=Z.force,oe=Z.replace===!0,ne=R(ie);if(ne)return T(assign(Y(ne),{state:typeof ne=="object"?assign({},ce,ne.state):ce,force:he,replace:oe}),se||ie);const ue=ie;ue.redirectedFrom=se;let le;return!he&&isSameRouteLocation(f,de,ie)&&(le=createRouterError(16,{to:ue,from:de}),te(de,de,!0,!1)),(le?Promise.resolve(le):B(ue,de)).catch(fe=>isNavigationFailure(fe)?isNavigationFailure(fe,2)?fe:z(fe):N(fe,ue,de)).then(fe=>{if(fe){if(isNavigationFailure(fe,2))return T(assign({replace:oe},Y(fe.to),{state:typeof fe.to=="object"?assign({},ce,fe.to.state):ce,force:he}),se||ue)}else fe=F(ue,de,!0,oe,ce);return M(ue,de,fe),fe})}function O(Z,se){const ie=G(Z,se);return ie?Promise.reject(ie):Promise.resolve()}function P(Z){const se=ee.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(Z):Z()}function B(Z,se){let ie;const[de,ce,he]=extractChangingRecords(Z,se);ie=extractComponentsGuards(de.reverse(),"beforeRouteLeave",Z,se);for(const ne of de)ne.leaveGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});const oe=O.bind(null,Z,se);return ie.push(oe),K(ie).then(()=>{ie=[];for(const ne of m.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).then(()=>{ie=extractComponentsGuards(ce,"beforeRouteUpdate",Z,se);for(const ne of ce)ne.updateGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});return ie.push(oe),K(ie)}).then(()=>{ie=[];for(const ne of he)if(ne.beforeEnter)if(isArray$1(ne.beforeEnter))for(const ue of ne.beforeEnter)ie.push(guardToPromiseFn(ue,Z,se));else ie.push(guardToPromiseFn(ne.beforeEnter,Z,se));return ie.push(oe),K(ie)}).then(()=>(Z.matched.forEach(ne=>ne.enterCallbacks={}),ie=extractComponentsGuards(he,"beforeRouteEnter",Z,se,P),ie.push(oe),K(ie))).then(()=>{ie=[];for(const ne of y.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).catch(ne=>isNavigationFailure(ne,8)?ne:Promise.reject(ne))}function M(Z,se,ie){k.list().forEach(de=>P(()=>de(Z,se,ie)))}function F(Z,se,ie,de,ce){const he=G(Z,se);if(he)return he;const oe=se===START_LOCATION_NORMALIZED,ne=isBrowser?history.state:{};ie&&(de||oe?b.replace(Z.fullPath,assign({scroll:oe&&ne&&ne.scroll},ce)):b.push(Z.fullPath,ce)),a.value=Z,te(Z,se,ie,oe),z()}let S;function A(){S||(S=b.listen((Z,se,ie)=>{if(!X.listening)return;const de=H(Z),ce=R(de);if(ce){T(assign(ce,{replace:!0,force:!0}),de).catch(noop$1);return}q=de;const he=a.value;isBrowser&&saveScrollPosition(getScrollKey(he.fullPath,ie.delta),computeScrollPosition()),B(de,he).catch(oe=>isNavigationFailure(oe,12)?oe:isNavigationFailure(oe,2)?(T(assign(Y(oe.to),{force:!0}),de).then(ne=>{isNavigationFailure(ne,20)&&!ie.delta&&ie.type===NavigationType.pop&&b.go(-1,!1)}).catch(noop$1),Promise.reject()):(ie.delta&&b.go(-ie.delta,!1),N(oe,de,he))).then(oe=>{oe=oe||F(de,he,!1),oe&&(ie.delta&&!isNavigationFailure(oe,8)?b.go(-ie.delta,!1):ie.type===NavigationType.pop&&isNavigationFailure(oe,20)&&b.go(-1,!1)),M(de,he,oe)}).catch(noop$1)}))}let E=useCallbacks(),_=useCallbacks(),D;function N(Z,se,ie){z(Z);const de=_.list();return de.length?de.forEach(ce=>ce(Z,se,ie)):console.error(Z),Promise.reject(Z)}function U(){return D&&a.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Z,se)=>{E.add([Z,se])})}function z(Z){return D||(D=!Z,A(),E.list().forEach(([se,ie])=>Z?ie(Z):se()),E.reset()),Z}function te(Z,se,ie,de){const{scrollBehavior:ce}=u;if(!isBrowser||!ce)return Promise.resolve();const he=!ie&&getSavedScrollPosition(getScrollKey(Z.fullPath,0))||(de||!ie)&&history.state&&history.state.scroll||null;return nextTick().then(()=>ce(Z,se,he)).then(oe=>oe&&scrollToPosition(oe)).catch(oe=>N(oe,Z,se))}const W=Z=>b.go(Z);let re;const ee=new Set,X={currentRoute:a,listening:!0,addRoute:C,removeRoute:v,clearRoutes:d.clearRoutes,hasRoute:ae,getRoutes:J,resolve:H,options:u,push:j,replace:L,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:m.add,beforeResolve:y.add,afterEach:k.add,onError:_.add,isReady:U,install(Z){const se=this;Z.component("RouterLink",RouterLink),Z.component("RouterView",RouterView),Z.config.globalProperties.$router=se,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(a)}),isBrowser&&!re&&a.value===START_LOCATION_NORMALIZED&&(re=!0,j(b.location).catch(ce=>{}));const ie={};for(const ce in START_LOCATION_NORMALIZED)Object.defineProperty(ie,ce,{get:()=>a.value[ce],enumerable:!0});Z.provide(routerKey,se),Z.provide(routeLocationKey,shallowReactive(ie)),Z.provide(routerViewLocationKey,a);const de=Z.unmount;ee.add(Z),Z.unmount=function(){ee.delete(Z),ee.size<1&&(q=START_LOCATION_NORMALIZED,S&&S(),S=null,a.value=START_LOCATION_NORMALIZED,re=!1,D=!1),de()}}};function K(Z){return Z.reduce((se,ie)=>se.then(()=>P(ie)),Promise.resolve())}return X}function extractChangingRecords(u,d){const g=[],f=[],b=[],m=Math.max(d.matched.length,u.matched.length);for(let y=0;y<m;y++){const k=d.matched[y];k&&(u.matched.find(q=>isSameRouteRecord$1(q,k))?f.push(k):g.push(k));const a=u.matched[y];a&&(d.matched.find(q=>isSameRouteRecord$1(q,a))||b.push(a))}return[g,f,b]}function hSlot(u,d){return u!==void 0&&u()||d}function hUniqueSlot(u,d){if(u!==void 0){const g=u();if(g!=null)return g.slice()}return d}function hMergeSlot(u,d){return u!==void 0?d.concat(u()):d}function hMergeSlotSafely(u,d){return u===void 0?d:d!==void 0?d.concat(u()):u()}function hDir(u,d,g,f,b,m){d.key=f+b;const y=h(u,d,g);return b===!0?withDirectives(y,m()):y}var QToolbar=createComponent({name:"QToolbar",props:{inset:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar row no-wrap items-center"+(u.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:g.value,role:"toolbar"},hSlot(d.default))}});function useHydration(){const u=ref(!isRuntimeSsrPreHydration.value);return u.value===!1&&onMounted(()=>{u.value=!0}),{isHydrated:u}}const hasObserver=typeof ResizeObserver!="undefined",resizeProps=hasObserver===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var QResizeObserver=createComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(u,{emit:d}){let g=null,f,b={width:-1,height:-1};function m(a){a===!0||u.debounce===0||u.debounce==="0"?y():g===null&&(g=setTimeout(y,u.debounce))}function y(){if(g!==null&&(clearTimeout(g),g=null),f){const{offsetWidth:a,offsetHeight:q}=f;(a!==b.width||q!==b.height)&&(b={width:a,height:q},d("resize",b))}}const{proxy:k}=getCurrentInstance();if(k.trigger=m,hasObserver===!0){let a;const q=w=>{f=k.$el.parentNode,f?(a=new ResizeObserver(m),a.observe(f),y()):w!==!0&&nextTick(()=>{q(!0)})};return onMounted(()=>{q()}),onBeforeUnmount(()=>{g!==null&&clearTimeout(g),a!==void 0&&(a.disconnect!==void 0?a.disconnect():f&&a.unobserve(f))}),noop$3}else{let w=function(){g!==null&&(clearTimeout(g),g=null),q!==void 0&&(q.removeEventListener!==void 0&&q.removeEventListener("resize",m,listenOpts.passive),q=void 0)},$=function(){w(),f&&f.contentDocument&&(q=f.contentDocument.defaultView,q.addEventListener("resize",m,listenOpts.passive),y())};const{isHydrated:a}=useHydration();let q;return onMounted(()=>{nextTick(()=>{f=k.$el,f&&$()})}),onBeforeUnmount(w),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:resizeProps.style,tabindex:-1,type:"text/html",data:resizeProps.url,"aria-hidden":"true",onLoad:$})}}}}),QHeader=createComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=inject(layoutKey,emptyRenderFn);if(b===emptyRenderFn)return console.error("QHeader needs to be child of QLayout"),emptyRenderFn;const m=ref(parseInt(u.heightHint,10)),y=ref(!0),k=computed(()=>u.reveal===!0||b.view.value.indexOf("H")!==-1||f.platform.is.ios&&b.isContainer.value===!0),a=computed(()=>{if(u.modelValue!==!0)return 0;if(k.value===!0)return y.value===!0?m.value:0;const Y=m.value-b.scroll.value.position;return Y>0?Y:0}),q=computed(()=>u.modelValue!==!0||k.value===!0&&y.value!==!0),w=computed(()=>u.modelValue===!0&&q.value===!0&&u.reveal===!0),$=computed(()=>"q-header q-layout__section--marginal "+(k.value===!0?"fixed":"absolute")+"-top"+(u.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus":"")),Q=computed(()=>{const Y=b.rows.value.top,G={};return Y[0]==="l"&&b.left.space===!0&&(G[f.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),Y[2]==="r"&&b.right.space===!0&&(G[f.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),G});function C(Y,G){b.update("header",Y,G)}function v(Y,G){Y.value!==G&&(Y.value=G)}function J({height:Y}){v(m,Y),C("size",Y)}function ae(Y){w.value===!0&&v(y,!0),g("focusin",Y)}watch(()=>u.modelValue,Y=>{C("space",Y),v(y,!0),b.animate()}),watch(a,Y=>{C("offset",Y)}),watch(()=>u.reveal,Y=>{Y===!1&&v(y,u.modelValue)}),watch(y,Y=>{b.animate(),g("reveal",Y)}),watch(b.scroll,Y=>{u.reveal===!0&&v(y,Y.direction==="up"||Y.position<=u.revealOffset||Y.position-Y.inflectionPoint<100)});const H={};return b.instances.header=H,u.modelValue===!0&&C("size",m.value),C("space",u.modelValue),C("offset",a.value),onBeforeUnmount(()=>{b.instances.header===H&&(b.instances.header=void 0,C("size",0),C("offset",0),C("space",!1))}),()=>{const Y=hUniqueSlot(d.default,[]);return u.elevated===!0&&Y.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),Y.push(h(QResizeObserver,{debounce:0,onResize:J})),h("header",{class:$.value,style:Q.value,onFocusin:ae},Y)}}});function useHistory(u,d,g){let f;function b(){f!==void 0&&(History.remove(f),f=void 0)}return onBeforeUnmount(()=>{u.value===!0&&b()}),{removeFromHistory:b,addToHistory(){f={condition:()=>g.value===!0,handler:d},History.add(f)}}}function getParentProxy(u){if(Object(u.$parent)===u.$parent)return u.$parent;let{parent:d}=u.$;for(;Object(d)===d;){if(Object(d.proxy)===d.proxy)return d.proxy;d=d.parent}}function fillNormalizedVNodes(u,d){typeof d.type=="symbol"?Array.isArray(d.children)===!0&&d.children.forEach(g=>{fillNormalizedVNodes(u,g)}):u.add(d)}function getNormalizedVNodes(u){const d=new Set;return u.forEach(g=>{fillNormalizedVNodes(d,g)}),Array.from(d)}function vmHasRouter(u){return u.appContext.config.globalProperties.$router!==void 0}function vmIsDestroyed(u){return u.isUnmounted===!0||u.isDeactivated===!0}const useModelToggleProps={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},useModelToggleEmits=["beforeShow","show","beforeHide","hide"];function useModelToggle({showing:u,canShow:d,hideOnRouteChange:g,handleShow:f,handleHide:b,processOnMount:m}){const y=getCurrentInstance(),{props:k,emit:a,proxy:q}=y;let w;function $(Y){u.value===!0?v(Y):Q(Y)}function Q(Y){if(k.disable===!0||Y!==void 0&&Y.qAnchorHandled===!0||d!==void 0&&d(Y)!==!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!0),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&C(Y)}function C(Y){u.value!==!0&&(u.value=!0,a("beforeShow",Y),f!==void 0?f(Y):a("show",Y))}function v(Y){if(k.disable===!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!1),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&J(Y)}function J(Y){u.value!==!1&&(u.value=!1,a("beforeHide",Y),b!==void 0?b(Y):a("hide",Y))}function ae(Y){k.disable===!0&&Y===!0?k["onUpdate:modelValue"]!==void 0&&a("update:modelValue",!1):Y===!0!==u.value&&(Y===!0?C:J)(w)}watch(()=>k.modelValue,ae),g!==void 0&&vmHasRouter(y)===!0&&watch(()=>q.$route.fullPath,()=>{g.value===!0&&u.value===!0&&v()}),m===!0&&onMounted(()=>{ae(k.modelValue)});const H={show:Q,hide:v,toggle:$};return Object.assign(q,H),H}function height(u){return u===window?window.innerHeight:u.getBoundingClientRect().height}function css(u,d){const g=u.style;for(const f in d)g[f]=d[f]}function getElement(u){if(u==null)return;if(typeof u=="string")try{return document.querySelector(u)||void 0}catch{return}const d=unref(u);if(d)return d.$el||d}function childHasFocus(u,d){if(u==null||u.contains(d)===!0)return!0;for(let g=u.nextElementSibling;g!==null;g=g.nextElementSibling)if(g.contains(d))return!0;return!1}const scrollTargetProp=[Element,String],scrollTargets=[null,document,document.body,document.scrollingElement,document.documentElement];function getScrollTarget(u,d){let g=getElement(d);if(g===void 0){if(u==null)return window;g=u.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(g)?window:g}function getScrollHeight(u){return(u===window?document.body:u).scrollHeight}function getVerticalScrollPosition(u){return u===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:u.scrollTop}function getHorizontalScrollPosition(u){return u===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:u.scrollLeft}function animVerticalScrollTo(u,d,g=0){const f=arguments[3]===void 0?performance.now():arguments[3],b=getVerticalScrollPosition(u);if(g<=0){b!==d&&setScroll$1(u,d);return}requestAnimationFrame(m=>{const y=m-f,k=b+(d-b)/Math.max(y,g)*y;setScroll$1(u,k),k!==d&&animVerticalScrollTo(u,d,g-y,m)})}function setScroll$1(u,d){if(u===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d);return}u.scrollTop=d}function setVerticalScrollPosition(u,d,g){if(g){animVerticalScrollTo(u,d,g);return}setScroll$1(u,d)}let size;function getScrollbarWidth(){if(size!==void 0)return size;const u=document.createElement("p"),d=document.createElement("div");css(u,{width:"100%",height:"200px"}),css(d,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),d.appendChild(u),document.body.appendChild(d);const g=u.offsetWidth;d.style.overflow="scroll";let f=u.offsetWidth;return g===f&&(f=d.clientWidth),d.remove(),size=g-f,size}function hasScrollbar(u,d=!0){return!u||u.nodeType!==Node.ELEMENT_NODE?!1:d?u.scrollHeight>u.clientHeight&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-y"])):u.scrollWidth>u.clientWidth&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-x"]))}let registered=0,scrollPositionX,scrollPositionY,maxScrollTop,vpPendingUpdate=!1,bodyLeft,bodyTop,href,closeTimer=null;function onWheel(u){shouldPreventScroll(u)&&stopAndPrevent(u)}function shouldPreventScroll(u){if(u.target===document.body||u.target.classList.contains("q-layout__backdrop"))return!0;const d=getEventPath(u),g=u.shiftKey&&!u.deltaX,f=!g&&Math.abs(u.deltaX)<=Math.abs(u.deltaY),b=g||f?u.deltaY:u.deltaX;for(let m=0;m<d.length;m++){const y=d[m];if(hasScrollbar(y,f))return f?b<0&&y.scrollTop===0?!0:b>0&&y.scrollTop+y.clientHeight===y.scrollHeight:b<0&&y.scrollLeft===0?!0:b>0&&y.scrollLeft+y.clientWidth===y.scrollWidth}return!0}function onAppleScroll(u){u.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(u){vpPendingUpdate!==!0&&(vpPendingUpdate=!0,requestAnimationFrame(()=>{vpPendingUpdate=!1;const{height:d}=u.target,{clientHeight:g,scrollTop:f}=document.scrollingElement;(maxScrollTop===void 0||d!==window.innerHeight)&&(maxScrollTop=g-d,document.scrollingElement.scrollTop=f),f>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((f-maxScrollTop)/8))}))}function apply(u){const d=document.body,g=window.visualViewport!==void 0;if(u==="add"){const{overflowY:f,overflowX:b}=window.getComputedStyle(d);scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getVerticalScrollPosition(window),bodyLeft=d.style.left,bodyTop=d.style.top,href=window.location.href,d.style.left=`-${scrollPositionX}px`,d.style.top=`-${scrollPositionY}px`,b!=="hidden"&&(b==="scroll"||d.scrollWidth>window.innerWidth)&&d.classList.add("q-body--force-scrollbar-x"),f!=="hidden"&&(f==="scroll"||d.scrollHeight>window.innerHeight)&&d.classList.add("q-body--force-scrollbar-y"),d.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,client.is.ios===!0&&(g===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}client.is.desktop===!0&&client.is.mac===!0&&window[`${u}EventListener`]("wheel",onWheel,listenOpts.notPassive),u==="remove"&&(client.is.ios===!0&&(g===!0?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),d.classList.remove("q-body--prevent-scroll"),d.classList.remove("q-body--force-scrollbar-x"),d.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,d.style.left=bodyLeft,d.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function preventScroll(u){let d="add";if(u===!0){if(registered++,closeTimer!==null){clearTimeout(closeTimer),closeTimer=null;return}if(registered>1)return}else{if(registered===0||(registered--,registered>0))return;if(d="remove",client.is.ios===!0&&client.is.nativeMobile===!0){closeTimer!==null&&clearTimeout(closeTimer),closeTimer=setTimeout(()=>{apply(d),closeTimer=null},100);return}}apply(d)}function usePreventScroll(){let u;return{preventBodyScroll(d){d!==u&&(u!==void 0||d===!0)&&(u=d,preventScroll(d))}}}function useTimeout(){let u=null;const d=getCurrentInstance();function g(){u!==null&&(clearTimeout(u),u=null)}return onDeactivated(g),onBeforeUnmount(g),{removeTimeout:g,registerTimeout(f,b){g(),vmIsDestroyed(d)===!1&&(u=setTimeout(()=>{u=null,f()},b))}}}const useDarkProps={dark:{type:Boolean,default:null}};function useDark(u,d){return computed(()=>u.dark===null?d.dark.isActive:u.dark)}const modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},directionList=Object.keys(modifiersAll);modifiersAll.all=!0;function getModifierDirections(u){const d={};for(const g of directionList)u[g]===!0&&(d[g]=!0);return Object.keys(d).length===0?modifiersAll:(d.horizontal===!0?d.left=d.right=!0:d.left===!0&&d.right===!0&&(d.horizontal=!0),d.vertical===!0?d.up=d.down=!0:d.up===!0&&d.down===!0&&(d.vertical=!0),d.horizontal===!0&&d.vertical===!0&&(d.all=!0),d)}const avoidNodeNamesList=["INPUT","TEXTAREA"];function shouldStart(u,d){return d.event===void 0&&u.target!==void 0&&u.target.draggable!==!0&&typeof d.handler=="function"&&avoidNodeNamesList.includes(u.target.nodeName.toUpperCase())===!1&&(u.qClonedBy===void 0||u.qClonedBy.indexOf(d.uid)===-1)}function clearSelection(){if(window.getSelection!==void 0){const u=window.getSelection();u.empty!==void 0?u.empty():u.removeAllRanges!==void 0&&(u.removeAllRanges(),Platform.is.mobile!==!0&&u.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function getChanges(u,d,g){const f=position(u);let b,m=f.left-d.event.x,y=f.top-d.event.y,k=Math.abs(m),a=Math.abs(y);const q=d.direction;q.horizontal===!0&&q.vertical!==!0?b=m<0?"left":"right":q.horizontal!==!0&&q.vertical===!0?b=y<0?"up":"down":q.up===!0&&y<0?(b="up",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.down===!0&&y>0?(b="down",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.left===!0&&m<0?(b="left",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down"))):q.right===!0&&m>0&&(b="right",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down")));let w=!1;if(b===void 0&&g===!1){if(d.event.isFirst===!0||d.event.lastDir===void 0)return{};b=d.event.lastDir,w=!0,b==="left"||b==="right"?(f.left-=m,k=0,m=0):(f.top-=y,a=0,y=0)}return{synthetic:w,payload:{evt:u,touch:d.event.mouse!==!0,mouse:d.event.mouse===!0,position:f,direction:b,isFirst:d.event.isFirst,isFinal:g===!0,duration:Date.now()-d.event.time,distance:{x:k,y:a},offset:{x:m,y},delta:{x:f.left-d.event.lastX,y:f.top-d.event.lastY}}}}let uid$2=0;var TouchPan=createDirective({name:"touch-pan",beforeMount(u,{value:d,modifiers:g}){if(g.mouse!==!0&&client.has.touch!==!0)return;function f(m,y){g.mouse===!0&&y===!0?stopAndPrevent(m):(g.stop===!0&&stop(m),g.prevent===!0&&prevent(m))}const b={uid:"qvtp_"+uid$2++,handler:d,modifiers:g,direction:getModifierDirections(g),noop:noop$3,mouseStart(m){shouldStart(m,b)&&leftClick(m)&&(addEvt(b,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),b.start(m,!0))},touchStart(m){if(shouldStart(m,b)){const y=m.target;addEvt(b,"temp",[[y,"touchmove","move","notPassiveCapture"],[y,"touchcancel","end","passiveCapture"],[y,"touchend","end","passiveCapture"]]),b.start(m)}},start(m,y){if(client.is.firefox===!0&&preventDraggable(u,!0),b.lastEvt=m,y===!0||g.stop===!0){if(b.direction.all!==!0&&(y!==!0||b.modifiers.mouseAllDir!==!0&&b.modifiers.mousealldir!==!0)){const q=m.type.indexOf("mouse")!==-1?new MouseEvent(m.type,m):new TouchEvent(m.type,m);m.defaultPrevented===!0&&prevent(q),m.cancelBubble===!0&&stop(q),Object.assign(q,{qKeyEvent:m.qKeyEvent,qClickOutside:m.qClickOutside,qAnchorHandled:m.qAnchorHandled,qClonedBy:m.qClonedBy===void 0?[b.uid]:m.qClonedBy.concat(b.uid)}),b.initialEvent={target:m.target,event:q}}stop(m)}const{left:k,top:a}=position(m);b.event={x:k,y:a,time:Date.now(),mouse:y===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:k,lastY:a}},move(m){if(b.event===void 0)return;const y=position(m),k=y.left-b.event.x,a=y.top-b.event.y;if(k===0&&a===0)return;b.lastEvt=m;const q=b.event.mouse===!0,w=()=>{f(m,q);let C;g.preserveCursor!==!0&&g.preservecursor!==!0&&(C=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),q===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),b.styleCleanup=v=>{if(b.styleCleanup=void 0,C!==void 0&&(document.documentElement.style.cursor=C),document.body.classList.remove("non-selectable"),q===!0){const J=()=>{document.body.classList.remove("no-pointer-events--children")};v!==void 0?setTimeout(()=>{J(),v()},50):J()}else v!==void 0&&v()}};if(b.event.detected===!0){b.event.isFirst!==!0&&f(m,b.event.mouse);const{payload:C,synthetic:v}=getChanges(m,b,!1);C!==void 0&&(b.handler(C)===!1?b.end(m):(b.styleCleanup===void 0&&b.event.isFirst===!0&&w(),b.event.lastX=C.position.left,b.event.lastY=C.position.top,b.event.lastDir=v===!0?void 0:C.direction,b.event.isFirst=!1));return}if(b.direction.all===!0||q===!0&&(b.modifiers.mouseAllDir===!0||b.modifiers.mousealldir===!0)){w(),b.event.detected=!0,b.move(m);return}const $=Math.abs(k),Q=Math.abs(a);$!==Q&&(b.direction.horizontal===!0&&$>Q||b.direction.vertical===!0&&$<Q||b.direction.up===!0&&$<Q&&a<0||b.direction.down===!0&&$<Q&&a>0||b.direction.left===!0&&$>Q&&k<0||b.direction.right===!0&&$>Q&&k>0?(b.event.detected=!0,b.move(m)):b.end(m,!0))},end(m,y){if(b.event!==void 0){if(cleanEvt(b,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),y===!0)b.styleCleanup!==void 0&&b.styleCleanup(),b.event.detected!==!0&&b.initialEvent!==void 0&&b.initialEvent.target.dispatchEvent(b.initialEvent.event);else if(b.event.detected===!0){b.event.isFirst===!0&&b.handler(getChanges(m===void 0?b.lastEvt:m,b).payload);const{payload:k}=getChanges(m===void 0?b.lastEvt:m,b,!0),a=()=>{b.handler(k)};b.styleCleanup!==void 0?b.styleCleanup(a):a()}b.event=void 0,b.initialEvent=void 0,b.lastEvt=void 0}}};if(u.__qtouchpan=b,g.mouse===!0){const m=g.mouseCapture===!0||g.mousecapture===!0?"Capture":"";addEvt(b,"main",[[u,"mousedown","mouseStart",`passive${m}`]])}client.has.touch===!0&&addEvt(b,"main",[[u,"touchstart","touchStart",`passive${g.capture===!0?"Capture":""}`],[u,"touchmove","noop","notPassiveCapture"]])},updated(u,d){const g=u.__qtouchpan;g!==void 0&&(d.oldValue!==d.value&&(typeof value!="function"&&g.end(),g.handler=d.value),g.direction=getModifierDirections(d.modifiers))},beforeUnmount(u){const d=u.__qtouchpan;d!==void 0&&(d.event!==void 0&&d.end(),cleanEvt(d,"main"),cleanEvt(d,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),d.styleCleanup!==void 0&&d.styleCleanup(),delete u.__qtouchpan)}});function between(u,d,g){return g<=d?d:Math.min(g,Math.max(d,u))}function normalizeToInterval(u,d,g){if(g<=d)return d;const f=g-d+1;let b=d+(u-d)%f;return b<d&&(b=f+b),b===0?0:b}const duration=150;var QDrawer=createComponent({name:"QDrawer",inheritAttrs:!1,props:{...useModelToggleProps,...useDarkProps,side:{type:String,default:"left",validator:u=>["left","right"].includes(u)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:u=>["default","desktop","mobile"].includes(u),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...useModelToggleEmits,"onLayout","miniState"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),{proxy:{$q:m}}=b,y=useDark(u,m),{preventBodyScroll:k}=usePreventScroll(),{registerTimeout:a,removeTimeout:q}=useTimeout(),w=inject(layoutKey,emptyRenderFn);if(w===emptyRenderFn)return console.error("QDrawer needs to be child of QLayout"),emptyRenderFn;let $,Q=null,C;const v=ref(u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint),J=computed(()=>u.mini===!0&&v.value!==!0),ae=computed(()=>J.value===!0?u.miniWidth:u.width),H=ref(u.showIfAbove===!0&&v.value===!1?!0:u.modelValue===!0),Y=computed(()=>u.persistent!==!0&&(v.value===!0||z.value===!0));function G(me,ge){if(T(),me!==!1&&w.animate(),oe(0),v.value===!0){const ye=w.instances[_.value];ye!==void 0&&ye.belowBreakpoint===!0&&ye.hide(!1),ne(1),w.isContainer.value!==!0&&k(!0)}else ne(0),me!==!1&&ue(!1);a(()=>{me!==!1&&ue(!0),ge!==!0&&g("show",me)},duration)}function j(me,ge){O(),me!==!1&&w.animate(),ne(0),oe(M.value*ae.value),ve(),ge!==!0?a(()=>{g("hide",me)},duration):q()}const{show:L,hide:R}=useModelToggle({showing:H,hideOnRouteChange:Y,handleShow:G,handleHide:j}),{addToHistory:T,removeFromHistory:O}=useHistory(H,R,Y),P={belowBreakpoint:v,hide:R},B=computed(()=>u.side==="right"),M=computed(()=>(m.lang.rtl===!0?-1:1)*(B.value===!0?1:-1)),F=ref(0),S=ref(!1),A=ref(!1),E=ref(ae.value*M.value),_=computed(()=>B.value===!0?"left":"right"),D=computed(()=>H.value===!0&&v.value===!1&&u.overlay===!1?u.miniToOverlay===!0?u.miniWidth:ae.value:0),N=computed(()=>u.overlay===!0||u.miniToOverlay===!0||w.view.value.indexOf(B.value?"R":"L")!==-1||m.platform.is.ios===!0&&w.isContainer.value===!0),U=computed(()=>u.overlay===!1&&H.value===!0&&v.value===!1),z=computed(()=>u.overlay===!0&&H.value===!0&&v.value===!1),te=computed(()=>"fullscreen q-drawer__backdrop"+(H.value===!1&&S.value===!1?" hidden":"")),W=computed(()=>({backgroundColor:`rgba(0,0,0,${F.value*.4})`})),re=computed(()=>B.value===!0?w.rows.value.top[2]==="r":w.rows.value.top[0]==="l"),ee=computed(()=>B.value===!0?w.rows.value.bottom[2]==="r":w.rows.value.bottom[0]==="l"),X=computed(()=>{const me={};return w.header.space===!0&&re.value===!1&&(N.value===!0?me.top=`${w.header.offset}px`:w.header.space===!0&&(me.top=`${w.header.size}px`)),w.footer.space===!0&&ee.value===!1&&(N.value===!0?me.bottom=`${w.footer.offset}px`:w.footer.space===!0&&(me.bottom=`${w.footer.size}px`)),me}),K=computed(()=>{const me={width:`${ae.value}px`,transform:`translateX(${E.value}px)`};return v.value===!0?me:Object.assign(me,X.value)}),Z=computed(()=>"q-drawer__content fit "+(w.isContainer.value!==!0?"scroll":"overflow-auto")),se=computed(()=>`q-drawer q-drawer--${u.side}`+(A.value===!0?" q-drawer--mini-animate":"")+(u.bordered===!0?" q-drawer--bordered":"")+(y.value===!0?" q-drawer--dark q-dark":"")+(S.value===!0?" no-transition":H.value===!0?"":" q-layout--prevent-focus")+(v.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${J.value===!0?"mini":"standard"}`+(N.value===!0||U.value!==!0?" fixed":"")+(u.overlay===!0||u.miniToOverlay===!0?" q-drawer--on-top":"")+(re.value===!0?" q-drawer--top-padding":""))),ie=computed(()=>{const me=m.lang.rtl===!0?u.side:_.value;return[[TouchPan,fe,void 0,{[me]:!0,mouse:!0}]]}),de=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0}]]}),ce=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0,mouseAllDir:!0}]]});function he(){Ce(v,u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint)}watch(v,me=>{me===!0?($=H.value,H.value===!0&&R(!1)):u.overlay===!1&&u.behavior!=="mobile"&&$!==!1&&(H.value===!0?(oe(0),ne(0),ve()):L(!1))}),watch(()=>u.side,(me,ge)=>{w.instances[ge]===P&&(w.instances[ge]=void 0,w[ge].space=!1,w[ge].offset=0),w.instances[me]=P,w[me].size=ae.value,w[me].space=U.value,w[me].offset=D.value}),watch(w.totalWidth,()=>{(w.isContainer.value===!0||document.qScrollPrevented!==!0)&&he()}),watch(()=>u.behavior+u.breakpoint,he),watch(w.isContainer,me=>{H.value===!0&&k(me!==!0),me===!0&&he()}),watch(w.scrollbarWidth,()=>{oe(H.value===!0?0:void 0)}),watch(D,me=>{xe("offset",me)}),watch(U,me=>{g("onLayout",me),xe("space",me)}),watch(B,()=>{oe()}),watch(ae,me=>{oe(),be(u.miniToOverlay,me)}),watch(()=>u.miniToOverlay,me=>{be(me,ae.value)}),watch(()=>m.lang.rtl,()=>{oe()}),watch(()=>u.mini,()=>{u.noMiniAnimation||u.modelValue===!0&&(le(),w.animate())}),watch(J,me=>{g("miniState",me)});function oe(me){me===void 0?nextTick(()=>{me=H.value===!0?0:ae.value,oe(M.value*me)}):(w.isContainer.value===!0&&B.value===!0&&(v.value===!0||Math.abs(me)===ae.value)&&(me+=M.value*w.scrollbarWidth.value),E.value=me)}function ne(me){F.value=me}function ue(me){const ge=me===!0?"remove":w.isContainer.value!==!0?"add":"";ge!==""&&document.body.classList[ge]("q-body--drawer-toggle")}function le(){Q!==null&&clearTimeout(Q),b.proxy&&b.proxy.$el&&b.proxy.$el.classList.add("q-drawer--mini-animate"),A.value=!0,Q=setTimeout(()=>{Q=null,A.value=!1,b&&b.proxy&&b.proxy.$el&&b.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function fe(me){if(H.value!==!1)return;const ge=ae.value,ye=between(me.distance.x,0,ge);if(me.isFinal===!0){ye>=Math.min(75,ge)===!0?L():(w.animate(),ne(0),oe(M.value*ge)),S.value=!1;return}oe((m.lang.rtl===!0?B.value!==!0:B.value)?Math.max(ge-ye,0):Math.min(0,ye-ge)),ne(between(ye/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function pe(me){if(H.value!==!0)return;const ge=ae.value,ye=me.direction===u.side,Se=(m.lang.rtl===!0?ye!==!0:ye)?between(me.distance.x,0,ge):0;if(me.isFinal===!0){Math.abs(Se)<Math.min(75,ge)===!0?(w.animate(),ne(1),oe(0)):R(),S.value=!1;return}oe(M.value*Se),ne(between(1-Se/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function ve(){k(!1),ue(!0)}function xe(me,ge){w.update(u.side,me,ge)}function Ce(me,ge){me.value!==ge&&(me.value=ge)}function be(me,ge){xe("size",me===!0?u.miniWidth:ge)}return w.instances[u.side]=P,be(u.miniToOverlay,ae.value),xe("space",U.value),xe("offset",D.value),u.showIfAbove===!0&&u.modelValue!==!0&&H.value===!0&&u["onUpdate:modelValue"]!==void 0&&g("update:modelValue",!0),onMounted(()=>{g("onLayout",U.value),g("miniState",J.value),$=u.showIfAbove===!0;const me=()=>{(H.value===!0?G:j)(!1,!0)};if(w.totalWidth.value!==0){nextTick(me);return}C=watch(w.totalWidth,()=>{C(),C=void 0,H.value===!1&&u.showIfAbove===!0&&v.value===!1?L(!1):me()})}),onBeforeUnmount(()=>{C!==void 0&&C(),Q!==null&&(clearTimeout(Q),Q=null),H.value===!0&&ve(),w.instances[u.side]===P&&(w.instances[u.side]=void 0,xe("size",0),xe("offset",0),xe("space",!1))}),()=>{const me=[];v.value===!0&&(u.noSwipeOpen===!1&&me.push(withDirectives(h("div",{key:"open",class:`q-drawer__opener fixed-${u.side}`,"aria-hidden":"true"}),ie.value)),me.push(hDir("div",{ref:"backdrop",class:te.value,style:W.value,"aria-hidden":"true",onClick:R},void 0,"backdrop",u.noSwipeBackdrop!==!0&&H.value===!0,()=>ce.value)));const ge=J.value===!0&&d.mini!==void 0,ye=[h("div",{...f,key:""+ge,class:[Z.value,f.class]},ge===!0?d.mini():hSlot(d.default))];return u.elevated===!0&&H.value===!0&&ye.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),me.push(hDir("aside",{ref:"content",class:se.value,style:K.value},ye,"contentclose",u.noSwipeClose!==!0&&v.value===!0,()=>de.value)),h("div",{class:"q-drawer-container"},me)}}}),QPageContainer=createComponent({name:"QPageContainer",setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPageContainer needs to be child of QLayout"),emptyRenderFn;provide(pageContainerKey,!0);const b=computed(()=>{const m={};return f.header.space===!0&&(m.paddingTop=`${f.header.size}px`),f.right.space===!0&&(m[`padding${g.lang.rtl===!0?"Left":"Right"}`]=`${f.right.size}px`),f.footer.space===!0&&(m.paddingBottom=`${f.footer.size}px`),f.left.space===!0&&(m[`padding${g.lang.rtl===!0?"Right":"Left"}`]=`${f.left.size}px`),m});return()=>h("div",{class:"q-page-container",style:b.value},hSlot(d.default))}});const{passive:passive$1}=listenOpts,axisValues=["both","horizontal","vertical"];var QScrollObserver=createComponent({name:"QScrollObserver",props:{axis:{type:String,validator:u=>axisValues.includes(u),default:"vertical"},debounce:[String,Number],scrollTarget:scrollTargetProp},emits:["scroll"],setup(u,{emit:d}){const g={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let f=null,b,m;watch(()=>u.scrollTarget,()=>{a(),k()});function y(){f!==null&&f();const $=Math.max(0,getVerticalScrollPosition(b)),Q=getHorizontalScrollPosition(b),C={top:$-g.position.top,left:Q-g.position.left};if(u.axis==="vertical"&&C.top===0||u.axis==="horizontal"&&C.left===0)return;const v=Math.abs(C.top)>=Math.abs(C.left)?C.top<0?"up":"down":C.left<0?"left":"right";g.position={top:$,left:Q},g.directionChanged=g.direction!==v,g.delta=C,g.directionChanged===!0&&(g.direction=v,g.inflectionPoint=g.position),d("scroll",{...g})}function k(){b=getScrollTarget(m,u.scrollTarget),b.addEventListener("scroll",q,passive$1),q(!0)}function a(){b!==void 0&&(b.removeEventListener("scroll",q,passive$1),b=void 0)}function q($){if($===!0||u.debounce===0||u.debounce==="0")y();else if(f===null){const[Q,C]=u.debounce?[setTimeout(y,u.debounce),clearTimeout]:[requestAnimationFrame(y),cancelAnimationFrame];f=()=>{C(Q),f=null}}}const{proxy:w}=getCurrentInstance();return watch(()=>w.$q.lang.rtl,y),onMounted(()=>{m=w.$el.parentNode,k()}),onBeforeUnmount(()=>{f!==null&&f(),a()}),Object.assign(w,{trigger:q,getPosition:()=>g}),noop$3}}),QLayout=createComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:u=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(u.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=ref(null),m=ref(f.screen.height),y=ref(u.container===!0?0:f.screen.width),k=ref({position:0,direction:"down",inflectionPoint:0}),a=ref(0),q=ref(isRuntimeSsrPreHydration.value===!0?0:getScrollbarWidth()),w=computed(()=>"q-layout q-layout--"+(u.container===!0?"containerized":"standard")),$=computed(()=>u.container===!1?{minHeight:f.screen.height+"px"}:null),Q=computed(()=>q.value!==0?{[f.lang.rtl===!0?"left":"right"]:`${q.value}px`}:null),C=computed(()=>q.value!==0?{[f.lang.rtl===!0?"right":"left"]:0,[f.lang.rtl===!0?"left":"right"]:`-${q.value}px`,width:`calc(100% + ${q.value}px)`}:null);function v(j){if(u.container===!0||document.qScrollPrevented!==!0){const L={position:j.position.top,direction:j.direction,directionChanged:j.directionChanged,inflectionPoint:j.inflectionPoint.top,delta:j.delta.top};k.value=L,u.onScroll!==void 0&&g("scroll",L)}}function J(j){const{height:L,width:R}=j;let T=!1;m.value!==L&&(T=!0,m.value=L,u.onScrollHeight!==void 0&&g("scrollHeight",L),H()),y.value!==R&&(T=!0,y.value=R),T===!0&&u.onResize!==void 0&&g("resize",j)}function ae({height:j}){a.value!==j&&(a.value=j,H())}function H(){if(u.container===!0){const j=m.value>a.value?getScrollbarWidth():0;q.value!==j&&(q.value=j)}}let Y=null;const G={instances:{},view:computed(()=>u.view),isContainer:computed(()=>u.container),rootRef:b,height:m,containerHeight:a,scrollbarWidth:q,totalWidth:computed(()=>y.value+q.value),rows:computed(()=>{const j=u.view.toLowerCase().split(" ");return{top:j[0].split(""),middle:j[1].split(""),bottom:j[2].split("")}}),header:reactive({size:0,offset:0,space:!1}),right:reactive({size:300,offset:0,space:!1}),footer:reactive({size:0,offset:0,space:!1}),left:reactive({size:300,offset:0,space:!1}),scroll:k,animate(){Y!==null?clearTimeout(Y):document.body.classList.add("q-body--layout-animate"),Y=setTimeout(()=>{Y=null,document.body.classList.remove("q-body--layout-animate")},155)},update(j,L,R){G[j][L]=R}};if(provide(layoutKey,G),getScrollbarWidth()>0){let R=function(){j=null,L.classList.remove("hide-scrollbar")},T=function(){if(j===null){if(L.scrollHeight>f.screen.height)return;L.classList.add("hide-scrollbar")}else clearTimeout(j);j=setTimeout(R,300)},O=function(P){j!==null&&P==="remove"&&(clearTimeout(j),R()),window[`${P}EventListener`]("resize",T)},j=null;const L=document.body;watch(()=>u.container!==!0?"add":"remove",O),u.container!==!0&&O("add"),onUnmounted(()=>{O("remove")})}return()=>{const j=hMergeSlot(d.default,[h(QScrollObserver,{onScroll:v}),h(QResizeObserver,{onResize:J})]),L=h("div",{class:w.value,style:$.value,ref:u.container===!0?void 0:b,tabindex:-1},j);return u.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:b},[h(QResizeObserver,{onResize:ae}),h("div",{class:"absolute-full",style:Q.value},[h("div",{class:"scroll",style:C.value},[L])])]):L}}});const useSizeDefaults={xs:18,sm:24,md:32,lg:38,xl:46},useSizeProps={size:String};function useSize(u,d=useSizeDefaults){return computed(()=>u.size!==void 0?{fontSize:u.size in d?`${d[u.size]}px`:u.size}:null)}const defaultViewBox="0 0 24 24",sameFn=u=>u,ionFn=u=>`ionicons ${u}`,libMap={"mdi-":u=>`mdi ${u}`,"icon-":sameFn,"bt-":u=>`bt ${u}`,"eva-":u=>`eva ${u}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":u=>`themify-icon ${u}`,"bi-":u=>`bootstrap-icons ${u}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=createComponent({name:"QIcon",props:{...useSizeProps,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useSize(u),b=computed(()=>"q-icon"+(u.left===!0?" on-left":"")+(u.right===!0?" on-right":"")+(u.color!==void 0?` text-${u.color}`:"")),m=computed(()=>{let y,k=u.name;if(k==="none"||!k)return{none:!0};if(g.iconMapFn!==null){const w=g.iconMapFn(k);if(w!==void 0)if(w.icon!==void 0){if(k=w.icon,k==="none"||!k)return{none:!0}}else return{cls:w.cls,content:w.content!==void 0?w.content:" "}}if(mRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svg:!0,viewBox:$,nodes:w.split("&&").map(Q=>{const[C,v,J]=Q.split("@@");return h("path",{style:v,d:C,transform:J})})}}if(imgRE.test(k)===!0)return{img:!0,src:k.substring(4)};if(svgUseRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svguse:!0,src:w.substring(7),viewBox:$}}let a=" ";const q=k.match(libRE);if(q!==null)y=libMap[q[1]](k);else if(faRE.test(k)===!0)y=k;else if(ionRE.test(k)===!0)y=`ionicons ion-${g.platform.is.ios===!0?"ios":"md"}${k.substring(3)}`;else if(symRE.test(k)===!0){y="notranslate material-symbols";const w=k.match(symRE);w!==null&&(k=k.substring(6),y+=symMap[w[1]]),a=k}else{y="notranslate material-icons";const w=k.match(matRE);w!==null&&(k=k.substring(2),y+=matMap[w[1]]),a=k}return{cls:y,content:a}});return()=>{const y={class:b.value,style:f.value,"aria-hidden":"true",role:"presentation"};return m.value.none===!0?h(u.tag,y,hSlot(d.default)):m.value.img===!0?h(u.tag,y,hMergeSlot(d.default,[h("img",{src:m.value.src})])):m.value.svg===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox||"0 0 24 24"},m.value.nodes)])):m.value.svguse===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox},[h("use",{"xlink:href":m.value.src})])])):(m.value.cls!==void 0&&(y.class+=" "+m.value.cls),h(u.tag,y,hMergeSlot(d.default,[m.value.content])))}}}),QItemLabel=createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(u,{slots:d}){const g=computed(()=>parseInt(u.lines,10)),f=computed(()=>"q-item__label"+(u.overline===!0?" q-item__label--overline text-overline":"")+(u.caption===!0?" q-item__label--caption text-caption":"")+(u.header===!0?" q-item__label--header":"")+(g.value===1?" ellipsis":"")),b=computed(()=>u.lines!==void 0&&g.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":g.value}:null);return()=>h("div",{style:b.value,class:f.value},hSlot(d.default))}}),QItemSection=createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-item__section column q-item__section--${u.avatar===!0||u.side===!0||u.thumbnail===!0?"side":"main"}`+(u.top===!0?" q-item__section--top justify-start":" justify-center")+(u.avatar===!0?" q-item__section--avatar":"")+(u.thumbnail===!0?" q-item__section--thumbnail":"")+(u.noWrap===!0?" q-item__section--nowrap":""));return()=>h("div",{class:g.value},hSlot(d.default))}});function getOriginalPath(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}function isSameRouteRecord(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function includesParams(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(Array.isArray(b)===!1||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function isEquivalentArray(u,d){return Array.isArray(d)===!0?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function isSameRouteLocationParamsValue(u,d){return Array.isArray(u)===!0?isEquivalentArray(u,d):Array.isArray(d)===!0?isEquivalentArray(d,u):u===d}function isSameRouteLocationParams(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(isSameRouteLocationParamsValue(u[g],d[g])===!1)return!1;return!0}const useRouterLinkNonMatchingProps={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},useRouterLinkProps={...useRouterLinkNonMatchingProps,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function useRouterLink({fallbackTag:u,useDisableForRouterLinkProps:d=!0}={}){const g=getCurrentInstance(),{props:f,proxy:b,emit:m}=g,y=vmHasRouter(g),k=computed(()=>f.disable!==!0&&f.href!==void 0),a=computed(d===!0?()=>y===!0&&f.disable!==!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!=="":()=>y===!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!==""),q=computed(()=>a.value===!0?Y(f.to):null),w=computed(()=>q.value!==null),$=computed(()=>k.value===!0||w.value===!0),Q=computed(()=>f.type==="a"||$.value===!0?"a":f.tag||u||"div"),C=computed(()=>k.value===!0?{href:f.href,target:f.target}:w.value===!0?{href:q.value.href,target:f.target}:{}),v=computed(()=>{if(w.value===!1)return-1;const{matched:L}=q.value,{length:R}=L,T=L[R-1];if(T===void 0)return-1;const O=b.$route.matched;if(O.length===0)return-1;const P=O.findIndex(isSameRouteRecord.bind(null,T));if(P!==-1)return P;const B=getOriginalPath(L[R-2]);return R>1&&getOriginalPath(T)===B&&O[O.length-1].path!==B?O.findIndex(isSameRouteRecord.bind(null,L[R-2])):P}),J=computed(()=>w.value===!0&&v.value!==-1&&includesParams(b.$route.params,q.value.params)),ae=computed(()=>J.value===!0&&v.value===b.$route.matched.length-1&&isSameRouteLocationParams(b.$route.params,q.value.params)),H=computed(()=>w.value===!0?ae.value===!0?` ${f.exactActiveClass} ${f.activeClass}`:f.exact===!0?"":J.value===!0?` ${f.activeClass}`:"":"");function Y(L){try{return b.$router.resolve(L)}catch{}return null}function G(L,{returnRouterError:R,to:T=f.to,replace:O=f.replace}={}){if(f.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||f.target==="_blank")return Promise.resolve(!1);L.preventDefault();const P=b.$router[O===!0?"replace":"push"](T);return R===!0?P:P.then(()=>{}).catch(()=>{})}function j(L){if(w.value===!0){const R=T=>G(L,T);m("click",L,R),L.defaultPrevented!==!0&&R()}else m("click",L)}return{hasRouterLink:w,hasHrefLink:k,hasLink:$,linkTag:Q,resolvedLink:q,linkIsActive:J,linkIsExactActive:ae,linkClass:H,linkAttrs:C,getLink:Y,navigateToRouterLink:G,navigateOnClick:j}}var QItem=createComponent({name:"QItem",props:{...useDarkProps,...useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),{hasLink:m,linkAttrs:y,linkClass:k,linkTag:a,navigateOnClick:q}=useRouterLink(),w=ref(null),$=ref(null),Q=computed(()=>u.clickable===!0||m.value===!0||u.tag==="label"),C=computed(()=>u.disable!==!0&&Q.value===!0),v=computed(()=>"q-item q-item-type row no-wrap"+(u.dense===!0?" q-item--dense":"")+(b.value===!0?" q-item--dark":"")+(m.value===!0&&u.active===null?k.value:u.active===!0?` q-item--active${u.activeClass!==void 0?` ${u.activeClass}`:""}`:"")+(u.disable===!0?" disabled":"")+(C.value===!0?" q-item--clickable q-link cursor-pointer "+(u.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(u.focused===!0?" q-manual-focusable--focused":""):"")),J=computed(()=>{if(u.insetLevel===void 0)return null;const G=f.lang.rtl===!0?"Right":"Left";return{["padding"+G]:16+u.insetLevel*56+"px"}});function ae(G){C.value===!0&&($.value!==null&&(G.qKeyEvent!==!0&&document.activeElement===w.value?$.value.focus():document.activeElement===$.value&&w.value.focus()),q(G))}function H(G){if(C.value===!0&&isKeyCode(G,[13,32])===!0){stopAndPrevent(G),G.qKeyEvent=!0;const j=new MouseEvent("click",G);j.qKeyEvent=!0,w.value.dispatchEvent(j)}g("keyup",G)}function Y(){const G=hUniqueSlot(d.default,[]);return C.value===!0&&G.unshift(h("div",{class:"q-focus-helper",tabindex:-1,ref:$})),G}return()=>{const G={ref:w,class:v.value,style:J.value,role:"listitem",onClick:ae,onKeyup:H};return C.value===!0?(G.tabindex=u.tabindex||"0",Object.assign(G,y.value)):Q.value===!0&&(G["aria-disabled"]="true"),h(a.value,G,Y())}}});const roleAttrExceptions=["ul","ol"];var QList=createComponent({name:"QList",props:{...useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>roleAttrExceptions.includes(u.tag)?null:"list"),m=computed(()=>"q-list"+(u.bordered===!0?" q-list--bordered":"")+(u.dense===!0?" q-list--dense":"")+(u.separator===!0?" q-list--separator":"")+(f.value===!0?" q-list--dark":"")+(u.padding===!0?" q-list--padding":""));return()=>h(u.tag,{class:m.value,role:b.value},hSlot(d.default))}});const useAnchorStaticProps={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},useAnchorProps={...useAnchorStaticProps,contextMenu:Boolean};function useAnchor({showing:u,avoidEmit:d,configureAnchorEl:g}){const{props:f,proxy:b,emit:m}=getCurrentInstance(),y=ref(null);let k=null;function a(C){return y.value===null?!1:C===void 0||C.touches===void 0||C.touches.length<=1}const q={};g===void 0&&(Object.assign(q,{hide(C){b.hide(C)},toggle(C){b.toggle(C),C.qAnchorHandled=!0},toggleKey(C){isKeyCode(C,13)===!0&&q.toggle(C)},contextClick(C){b.hide(C),prevent(C),nextTick(()=>{b.show(C),C.qAnchorHandled=!0})},prevent,mobileTouch(C){if(q.mobileCleanup(C),a(C)!==!0)return;b.hide(C),y.value.classList.add("non-selectable");const v=C.target;addEvt(q,"anchor",[[v,"touchmove","mobileCleanup","passive"],[v,"touchend","mobileCleanup","passive"],[v,"touchcancel","mobileCleanup","passive"],[y.value,"contextmenu","prevent","notPassive"]]),k=setTimeout(()=>{k=null,b.show(C),C.qAnchorHandled=!0},300)},mobileCleanup(C){y.value.classList.remove("non-selectable"),k!==null&&(clearTimeout(k),k=null),u.value===!0&&C!==void 0&&clearSelection()}}),g=function(C=f.contextMenu){if(f.noParentEvent===!0||y.value===null)return;let v;C===!0?b.$q.platform.is.mobile===!0?v=[[y.value,"touchstart","mobileTouch","passive"]]:v=[[y.value,"mousedown","hide","passive"],[y.value,"contextmenu","contextClick","notPassive"]]:v=[[y.value,"click","toggle","passive"],[y.value,"keyup","toggleKey","passive"]],addEvt(q,"anchor",v)});function w(){cleanEvt(q,"anchor")}function $(C){for(y.value=C;y.value.classList.contains("q-anchor--skip");)y.value=y.value.parentNode;g()}function Q(){if(f.target===!1||f.target===""||b.$el.parentNode===null)y.value=null;else if(f.target===!0)$(b.$el.parentNode);else{let C=f.target;if(typeof f.target=="string")try{C=document.querySelector(f.target)}catch{C=void 0}C!=null?(y.value=C.$el||C,g()):(y.value=null,console.error(`Anchor: target "${f.target}" not found`))}}return watch(()=>f.contextMenu,C=>{y.value!==null&&(w(),g(C))}),watch(()=>f.target,()=>{y.value!==null&&w(),Q()}),watch(()=>f.noParentEvent,C=>{y.value!==null&&(C===!0?w():g())}),onMounted(()=>{Q(),d!==!0&&f.modelValue===!0&&y.value===null&&m("update:modelValue",!1)}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k),w()}),{anchorEl:y,canShow:a,anchorEvents:q}}function useScrollTarget(u,d){const g=ref(null);let f;function b(k,a){const q=`${a!==void 0?"add":"remove"}EventListener`,w=a!==void 0?a:f;k!==window&&k[q]("scroll",w,listenOpts.passive),window[q]("scroll",w,listenOpts.passive),f=a}function m(){g.value!==null&&(b(g.value),g.value=null)}const y=watch(()=>u.noParentEvent,()=>{g.value!==null&&(m(),d())});return onBeforeUnmount(y),{localScrollTarget:g,unconfigureScrollTarget:m,changeScrollEvent:b}}let queue=[],waitFlags=[];function clearFlag(u){waitFlags=waitFlags.filter(d=>d!==u)}function addFocusWaitFlag(u){clearFlag(u),waitFlags.push(u)}function removeFocusWaitFlag(u){clearFlag(u),waitFlags.length===0&&queue.length!==0&&(queue[queue.length-1](),queue=[])}function addFocusFn(u){waitFlags.length===0?u():queue.push(u)}function removeFocusFn(u){queue=queue.filter(d=>d!==u)}let portalIndex=1,target=document.body;function createGlobalNode(u,d){const g=document.createElement("div");if(g.id=d!==void 0?`q-portal--${d}--${portalIndex++}`:u,globalConfig.globalNodes!==void 0){const f=globalConfig.globalNodes.class;f!==void 0&&(g.className=f)}return target.appendChild(g),g}function removeGlobalNode(u){u.remove()}const portalProxyList=[];function getPortalProxy(u){return portalProxyList.find(d=>d.contentEl!==null&&d.contentEl.contains(u))}function closePortalMenus(u,d){do{if(u.$options.name==="QMenu"){if(u.hide(d),u.$props.separateClosePopup===!0)return getParentProxy(u)}else if(u.__qPortal===!0){const g=getParentProxy(u);return g!==void 0&&g.$options.name==="QPopupProxy"?(u.hide(d),g):u}u=getParentProxy(u)}while(u!=null)}function closePortals(u,d,g){for(;g!==0&&u!==void 0&&u!==null;){if(u.__qPortal===!0){if(g--,u.$options.name==="QMenu"){u=closePortalMenus(u,d);continue}u.hide(d)}u=getParentProxy(u)}}const QPortal=createComponent({name:"QPortal",setup(u,{slots:d}){return()=>d.default()}});function isOnGlobalDialog(u){for(u=u.parent;u!=null;){if(u.type.name==="QGlobalDialog")return!0;if(u.type.name==="QDialog"||u.type.name==="QMenu")return!1;u=u.parent}return!1}function usePortal(u,d,g,f){const b=ref(!1),m=ref(!1);let y=null;const k={},a=f==="dialog"&&isOnGlobalDialog(u);function q($){if($===!0){removeFocusWaitFlag(k),m.value=!0;return}m.value=!1,b.value===!1&&(a===!1&&y===null&&(y=createGlobalNode(!1,f)),b.value=!0,portalProxyList.push(u.proxy),addFocusWaitFlag(k))}function w($){if(m.value=!1,$!==!0)return;removeFocusWaitFlag(k),b.value=!1;const Q=portalProxyList.indexOf(u.proxy);Q!==-1&&portalProxyList.splice(Q,1),y!==null&&(removeGlobalNode(y),y=null)}return onUnmounted(()=>{w(!0)}),u.proxy.__qPortal=!0,injectProp(u.proxy,"contentEl",()=>d.value),{showPortal:q,hidePortal:w,portalIsActive:b,portalIsAccessible:m,renderPortal:()=>a===!0?g():b.value===!0?[h(Teleport,{to:y},h(QPortal,g))]:void 0}}const useTransitionProps={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function useTransition(u,d=()=>{},g=()=>{}){return{transitionProps:computed(()=>{const f=`q-transition--${u.transitionShow||d()}`,b=`q-transition--${u.transitionHide||g()}`;return{appear:!0,enterFromClass:`${f}-enter-from`,enterActiveClass:`${f}-enter-active`,enterToClass:`${f}-enter-to`,leaveFromClass:`${b}-leave-from`,leaveActiveClass:`${b}-leave-active`,leaveToClass:`${b}-leave-to`}}),transitionStyle:computed(()=>`--q-transition-duration: ${u.transitionDuration}ms`)}}function useTick(){let u;const d=getCurrentInstance();function g(){u=void 0}return onDeactivated(g),onBeforeUnmount(g),{removeTick:g,registerTick(f){u=f,nextTick(()=>{u===f&&(vmIsDestroyed(d)===!1&&u(),u=void 0)})}}}const handlers$1=[];let escDown;function onKeydown(u){escDown=u.keyCode===27}function onBlur(){escDown===!0&&(escDown=!1)}function onKeyup(u){escDown===!0&&(escDown=!1,isKeyCode(u,27)===!0&&handlers$1[handlers$1.length-1](u))}function update(u){window[u]("keydown",onKeydown),window[u]("blur",onBlur),window[u]("keyup",onKeyup),escDown=!1}function addEscapeKey(u){client.is.desktop===!0&&(handlers$1.push(u),handlers$1.length===1&&update("addEventListener"))}function removeEscapeKey(u){const d=handlers$1.indexOf(u);d!==-1&&(handlers$1.splice(d,1),handlers$1.length===0&&update("removeEventListener"))}const handlers=[];function trigger(u){handlers[handlers.length-1](u)}function addFocusout(u){client.is.desktop===!0&&(handlers.push(u),handlers.length===1&&document.body.addEventListener("focusin",trigger))}function removeFocusout(u){const d=handlers.indexOf(u);d!==-1&&(handlers.splice(d,1),handlers.length===0&&document.body.removeEventListener("focusin",trigger))}const{notPassiveCapture}=listenOpts,registeredList=[];function globalHandler(u){const d=u.target;if(d===void 0||d.nodeType===8||d.classList.contains("no-pointer-events")===!0)return;let g=portalProxyList.length-1;for(;g>=0;){const f=portalProxyList[g].$;if(f.type.name==="QTooltip"){g--;continue}if(f.type.name!=="QDialog")break;if(f.props.seamless!==!0)return;g--}for(let f=registeredList.length-1;f>=0;f--){const b=registeredList[f];if((b.anchorEl.value===null||b.anchorEl.value.contains(d)===!1)&&(d===document.body||b.innerRef.value!==null&&b.innerRef.value.contains(d)===!1))u.qClickOutside=!0,b.onClickOutside(u);else return}}function addClickOutside(u){registeredList.push(u),registeredList.length===1&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture))}function removeClickOutside(u){const d=registeredList.findIndex(g=>g===u);d!==-1&&(registeredList.splice(d,1),registeredList.length===0&&(document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture)))}let vpLeft,vpTop;function validatePosition(u){const d=u.split(" ");return d.length!==2?!1:["top","center","bottom"].includes(d[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(d[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function validateOffset(u){return u?!(u.length!==2||typeof u[0]!="number"||typeof u[1]!="number"):!0}const horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(u=>{horizontalPos[`${u}#ltr`]=u,horizontalPos[`${u}#rtl`]=u});function parsePosition(u,d){const g=u.split(" ");return{vertical:g[0],horizontal:horizontalPos[`${g[1]}#${d===!0?"rtl":"ltr"}`]}}function getAnchorProps(u,d){let{top:g,left:f,right:b,bottom:m,width:y,height:k}=u.getBoundingClientRect();return d!==void 0&&(g-=d[1],f-=d[0],m+=d[1],b+=d[0],y+=d[0],k+=d[1]),{top:g,bottom:m,height:k,left:f,right:b,width:y,middle:f+(b-f)/2,center:g+(m-g)/2}}function getAbsoluteAnchorProps(u,d,g){let{top:f,left:b}=u.getBoundingClientRect();return f+=d.top,b+=d.left,g!==void 0&&(f+=g[1],b+=g[0]),{top:f,bottom:f+1,height:1,left:b,right:b+1,width:1,middle:b,center:f}}function getTargetProps(u,d){return{top:0,center:d/2,bottom:d,left:0,middle:u/2,right:u}}function getTopLeftProps(u,d,g,f){return{top:u[g.vertical]-d[f.vertical],left:u[g.horizontal]-d[f.horizontal]}}function setPosition(u,d=0){if(u.targetEl===null||u.anchorEl===null||d>5)return;if(u.targetEl.offsetHeight===0||u.targetEl.offsetWidth===0){setTimeout(()=>{setPosition(u,d+1)},10);return}const{targetEl:g,offset:f,anchorEl:b,anchorOrigin:m,selfOrigin:y,absoluteOffset:k,fit:a,cover:q,maxHeight:w,maxWidth:$}=u;if(client.is.ios===!0&&window.visualViewport!==void 0){const R=document.body.style,{offsetLeft:T,offsetTop:O}=window.visualViewport;T!==vpLeft&&(R.setProperty("--q-pe-left",T+"px"),vpLeft=T),O!==vpTop&&(R.setProperty("--q-pe-top",O+"px"),vpTop=O)}const{scrollLeft:Q,scrollTop:C}=g,v=k===void 0?getAnchorProps(b,q===!0?[0,0]:f):getAbsoluteAnchorProps(b,k,f);Object.assign(g.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:$,maxHeight:w,visibility:"visible"});const{offsetWidth:J,offsetHeight:ae}=g,{elWidth:H,elHeight:Y}=a===!0||q===!0?{elWidth:Math.max(v.width,J),elHeight:q===!0?Math.max(v.height,ae):ae}:{elWidth:J,elHeight:ae};let G={maxWidth:$,maxHeight:w};(a===!0||q===!0)&&(G.minWidth=v.width+"px",q===!0&&(G.minHeight=v.height+"px")),Object.assign(g.style,G);const j=getTargetProps(H,Y);let L=getTopLeftProps(v,j,m,y);if(k===void 0||f===void 0)applyBoundaries(L,v,j,m,y);else{const{top:R,left:T}=L;applyBoundaries(L,v,j,m,y);let O=!1;if(L.top!==R){O=!0;const P=2*f[1];v.center=v.top-=P,v.bottom-=P+2}if(L.left!==T){O=!0;const P=2*f[0];v.middle=v.left-=P,v.right-=P+2}O===!0&&(L=getTopLeftProps(v,j,m,y),applyBoundaries(L,v,j,m,y))}G={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(G.maxHeight=L.maxHeight+"px",v.height>L.maxHeight&&(G.minHeight=G.maxHeight)),L.maxWidth!==void 0&&(G.maxWidth=L.maxWidth+"px",v.width>L.maxWidth&&(G.minWidth=G.maxWidth)),Object.assign(g.style,G),g.scrollTop!==C&&(g.scrollTop=C),g.scrollLeft!==Q&&(g.scrollLeft=Q)}function applyBoundaries(u,d,g,f,b){const m=g.bottom,y=g.right,k=getScrollbarWidth(),a=window.innerHeight-k,q=document.body.clientWidth;if(u.top<0||u.top+m>a)if(b.vertical==="center")u.top=d[f.vertical]>a/2?Math.max(0,a-m):0,u.maxHeight=Math.min(m,a);else if(d[f.vertical]>a/2){const w=Math.min(a,f.vertical==="center"?d.center:f.vertical===b.vertical?d.bottom:d.top);u.maxHeight=Math.min(m,w),u.top=Math.max(0,w-m)}else u.top=Math.max(0,f.vertical==="center"?d.center:f.vertical===b.vertical?d.top:d.bottom),u.maxHeight=Math.min(m,a-u.top);if(u.left<0||u.left+y>q)if(u.maxWidth=Math.min(y,q),b.horizontal==="middle")u.left=d[f.horizontal]>q/2?Math.max(0,q-y):0;else if(d[f.horizontal]>q/2){const w=Math.min(q,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.right:d.left);u.maxWidth=Math.min(y,w),u.left=Math.max(0,w-u.maxWidth)}else u.left=Math.max(0,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.left:d.right),u.maxWidth=Math.min(y,q-u.left)}var QMenu=createComponent({name:"QMenu",inheritAttrs:!1,props:{...useAnchorProps,...useModelToggleProps,...useDarkProps,...useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...useModelToggleEmits,"click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){let b=null,m,y,k;const a=getCurrentInstance(),{proxy:q}=a,{$q:w}=q,$=ref(null),Q=ref(!1),C=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0),v=useDark(u,w),{registerTick:J,removeTick:ae}=useTick(),{registerTimeout:H}=useTimeout(),{transitionProps:Y,transitionStyle:G}=useTransition(u),{localScrollTarget:j,changeScrollEvent:L,unconfigureScrollTarget:R}=useScrollTarget(u,re),{anchorEl:T,canShow:O}=useAnchor({showing:Q}),{hide:P}=useModelToggle({showing:Q,canShow:O,handleShow:z,handleHide:te,hideOnRouteChange:C,processOnMount:!0}),{showPortal:B,hidePortal:M,renderPortal:F}=usePortal(a,$,se,"menu"),S={anchorEl:T,innerRef:$,onClickOutside(ie){if(u.persistent!==!0&&Q.value===!0)return P(ie),(ie.type==="touchstart"||ie.target.classList.contains("q-dialog__backdrop"))&&stopAndPrevent(ie),!0}},A=computed(()=>parsePosition(u.anchor||(u.cover===!0?"center middle":"bottom start"),w.lang.rtl)),E=computed(()=>u.cover===!0?A.value:parsePosition(u.self||"top start",w.lang.rtl)),_=computed(()=>(u.square===!0?" q-menu--square":"")+(v.value===!0?" q-menu--dark q-dark":"")),D=computed(()=>u.autoClose===!0?{onClick:ee}:{}),N=computed(()=>Q.value===!0&&u.persistent!==!0);watch(N,ie=>{ie===!0?(addEscapeKey(K),addClickOutside(S)):(removeEscapeKey(K),removeClickOutside(S))});function U(){addFocusFn(()=>{let ie=$.value;ie&&ie.contains(document.activeElement)!==!0&&(ie=ie.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ie.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ie.querySelector("[autofocus], [data-autofocus]")||ie,ie.focus({preventScroll:!0}))})}function z(ie){if(b=u.noRefocus===!1?document.activeElement:null,addFocusout(X),B(),re(),m=void 0,ie!==void 0&&(u.touchPosition||u.contextMenu)){const de=position(ie);if(de.left!==void 0){const{top:ce,left:he}=T.value.getBoundingClientRect();m={left:de.left-he,top:de.top-ce}}}y===void 0&&(y=watch(()=>w.screen.width+"|"+w.screen.height+"|"+u.self+"|"+u.anchor+"|"+w.lang.rtl,Z)),u.noFocus!==!0&&document.activeElement.blur(),J(()=>{Z(),u.noFocus!==!0&&U()}),H(()=>{w.platform.is.ios===!0&&(k=u.autoClose,$.value.click()),Z(),B(!0),g("show",ie)},u.transitionDuration)}function te(ie){ae(),M(),W(!0),b!==null&&(ie===void 0||ie.qClickOutside!==!0)&&(((ie&&ie.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),H(()=>{M(!0),g("hide",ie)},u.transitionDuration)}function W(ie){m=void 0,y!==void 0&&(y(),y=void 0),(ie===!0||Q.value===!0)&&(removeFocusout(X),R(),removeClickOutside(S),removeEscapeKey(K)),ie!==!0&&(b=null)}function re(){(T.value!==null||u.scrollTarget!==void 0)&&(j.value=getScrollTarget(T.value,u.scrollTarget),L(j.value,Z))}function ee(ie){k!==!0?(closePortalMenus(q,ie),g("click",ie)):k=!1}function X(ie){N.value===!0&&u.noFocus!==!0&&childHasFocus($.value,ie.target)!==!0&&U()}function K(ie){g("escapeKey"),P(ie)}function Z(){setPosition({targetEl:$.value,offset:u.offset,anchorEl:T.value,anchorOrigin:A.value,selfOrigin:E.value,absoluteOffset:m,fit:u.fit,cover:u.cover,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function se(){return h(Transition,Y.value,()=>Q.value===!0?h("div",{role:"menu",...f,ref:$,tabindex:-1,class:["q-menu q-position-engine scroll"+_.value,f.class],style:[f.style,G.value],...D.value},hSlot(d.default)):null)}return onBeforeUnmount(W),Object.assign(q,{focus:U,updatePosition:Z}),F}});const useSpinnerProps={size:{type:[String,Number],default:"1em"},color:String};function useSpinner(u){return{cSize:computed(()=>u.size in useSizeDefaults?`${useSizeDefaults[u.size]}px`:u.size),classes:computed(()=>"q-spinner"+(u.color?` text-${u.color}`:""))}}var QSpinner=createComponent({name:"QSpinner",props:{...useSpinnerProps,thickness:{type:Number,default:5}},setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value+" q-spinner-mat",width:d.value,height:d.value,viewBox:"25 25 50 50"},[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":u.thickness,"stroke-miterlimit":"10"})])}});function throttle$1(u,d=250){let g=!1,f;return function(){return g===!1&&(g=!0,setTimeout(()=>{g=!1},d),f=u.apply(this,arguments)),f}}function showRipple(u,d,g,f){g.modifiers.stop===!0&&stop(u);const b=g.modifiers.color;let m=g.modifiers.center;m=m===!0||f===!0;const y=document.createElement("span"),k=document.createElement("span"),a=position(u),{left:q,top:w,width:$,height:Q}=d.getBoundingClientRect(),C=Math.sqrt($*$+Q*Q),v=C/2,J=`${($-C)/2}px`,ae=m?J:`${a.left-q-v}px`,H=`${(Q-C)/2}px`,Y=m?H:`${a.top-w-v}px`;k.className="q-ripple__inner",css(k,{height:`${C}px`,width:`${C}px`,transform:`translate3d(${ae},${Y},0) scale3d(.2,.2,1)`,opacity:0}),y.className=`q-ripple${b?" text-"+b:""}`,y.setAttribute("dir","ltr"),y.appendChild(k),d.appendChild(y);const G=()=>{y.remove(),clearTimeout(j)};g.abort.push(G);let j=setTimeout(()=>{k.classList.add("q-ripple__inner--enter"),k.style.transform=`translate3d(${J},${H},0) scale3d(1,1,1)`,k.style.opacity=.2,j=setTimeout(()=>{k.classList.remove("q-ripple__inner--enter"),k.classList.add("q-ripple__inner--leave"),k.style.opacity=0,j=setTimeout(()=>{y.remove(),g.abort.splice(g.abort.indexOf(G),1)},275)},250)},50)}function updateModifiers(u,{modifiers:d,value:g,arg:f}){const b=Object.assign({},u.cfg.ripple,d,g);u.modifiers={early:b.early===!0,stop:b.stop===!0,center:b.center===!0,color:b.color||f,keyCodes:[].concat(b.keyCodes||13)}}var Ripple=createDirective({name:"ripple",beforeMount(u,d){const g=d.instance.$.appContext.config.globalProperties.$q.config||{};if(g.ripple===!1)return;const f={cfg:g,enabled:d.value!==!1,modifiers:{},abort:[],start(b){f.enabled===!0&&b.qSkipRipple!==!0&&b.type===(f.modifiers.early===!0?"pointerdown":"click")&&showRipple(b,u,f,b.qKeyEvent===!0)},keystart:throttle$1(b=>{f.enabled===!0&&b.qSkipRipple!==!0&&isKeyCode(b,f.modifiers.keyCodes)===!0&&b.type===`key${f.modifiers.early===!0?"down":"up"}`&&showRipple(b,u,f,!0)},300)};updateModifiers(f,d),u.__qripple=f,addEvt(f,"main",[[u,"pointerdown","start","passive"],[u,"click","start","passive"],[u,"keydown","keystart","passive"],[u,"keyup","keystart","passive"]])},updated(u,d){if(d.oldValue!==d.value){const g=u.__qripple;g!==void 0&&(g.enabled=d.value!==!1,g.enabled===!0&&Object(d.value)===d.value&&updateModifiers(g,d))}},beforeUnmount(u){const d=u.__qripple;d!==void 0&&(d.abort.forEach(g=>{g()}),cleanEvt(d,"main"),delete u._qripple)}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap),useAlignProps={align:{type:String,validator:u=>alignValues.includes(u)}};function useAlign(u){return computed(()=>{const d=u.align===void 0?u.vertical===!0?"stretch":"left":u.align;return`${u.vertical===!0?"items":"justify"}-${alignMap[d]}`})}const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},defaultSizes$2={xs:8,sm:10,md:14,lg:20,xl:24},formTypes=["button","submit","reset"],mediaTypeRE=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"];function getBtnDesign(u,d){return u.flat===!0?"flat":u.outline===!0?"outline":u.push===!0?"push":u.unelevated===!0?"unelevated":d}const nonRoundBtnProps={...useSizeProps,...useRouterLinkNonMatchingProps,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((u,d)=>(u[d]=Boolean)&&u,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...useAlignProps.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},useBtnProps={...nonRoundBtnProps,round:Boolean};function useBtn(u){const d=useSize(u,defaultSizes$2),g=useAlign(u),{hasRouterLink:f,hasLink:b,linkTag:m,linkAttrs:y,navigateOnClick:k}=useRouterLink({fallbackTag:"button"}),a=computed(()=>{const ae=u.fab===!1&&u.fabMini===!1?d.value:{};return u.padding!==void 0?Object.assign({},ae,{padding:u.padding.split(/\s+/).map(H=>H in btnPadding?btnPadding[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):ae}),q=computed(()=>u.rounded===!0||u.fab===!0||u.fabMini===!0),w=computed(()=>u.disable!==!0&&u.loading!==!0),$=computed(()=>w.value===!0?u.tabindex||0:-1),Q=computed(()=>getBtnDesign(u,"standard")),C=computed(()=>{const ae={tabindex:$.value};return b.value===!0?Object.assign(ae,y.value):formTypes.includes(u.type)===!0&&(ae.type=u.type),m.value==="a"?(u.disable===!0?ae["aria-disabled"]="true":ae.href===void 0&&(ae.role="button"),f.value!==!0&&mediaTypeRE.test(u.type)===!0&&(ae.type=u.type)):u.disable===!0&&(ae.disabled="",ae["aria-disabled"]="true"),u.loading===!0&&u.percentage!==void 0&&Object.assign(ae,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u.percentage}),ae}),v=computed(()=>{let ae;u.color!==void 0?u.flat===!0||u.outline===!0?ae=`text-${u.textColor||u.color}`:ae=`bg-${u.color} text-${u.textColor||"white"}`:u.textColor&&(ae=`text-${u.textColor}`);const H=u.round===!0?"round":`rectangle${q.value===!0?" q-btn--rounded":u.square===!0?" q-btn--square":""}`;return`q-btn--${Q.value} q-btn--${H}`+(ae!==void 0?" "+ae:"")+(w.value===!0?" q-btn--actionable q-focusable q-hoverable":u.disable===!0?" disabled":"")+(u.fab===!0?" q-btn--fab":u.fabMini===!0?" q-btn--fab-mini":"")+(u.noCaps===!0?" q-btn--no-uppercase":"")+(u.dense===!0?" q-btn--dense":"")+(u.stretch===!0?" no-border-radius self-stretch":"")+(u.glossy===!0?" glossy":"")+(u.square?" q-btn--square":"")}),J=computed(()=>g.value+(u.stack===!0?" column":" row")+(u.noWrap===!0?" no-wrap text-no-wrap":"")+(u.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:J,attributes:C,hasLink:b,linkTag:m,navigateOnClick:k,isActionable:w}}const{passiveCapture}=listenOpts;let touchTarget=null,keyboardTarget=null,mouseTarget=null;var QBtn=createComponent({name:"QBtn",props:{...useBtnProps,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{classes:b,style:m,innerClasses:y,attributes:k,hasLink:a,linkTag:q,navigateOnClick:w,isActionable:$}=useBtn(u),Q=ref(null),C=ref(null);let v=null,J,ae=null;const H=computed(()=>u.label!==void 0&&u.label!==null&&u.label!==""),Y=computed(()=>u.disable===!0||u.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...u.ripple===!0?{}:u.ripple}),G=computed(()=>({center:u.round})),j=computed(()=>{const A=Math.max(0,Math.min(100,u.percentage));return A>0?{transition:"transform 0.6s",transform:`translateX(${A-100}%)`}:{}}),L=computed(()=>{if(u.loading===!0)return{onMousedown:S,onTouchstart:S,onClick:S,onKeydown:S,onKeyup:S};if($.value===!0){const A={onClick:T,onKeydown:O,onMousedown:B};if(f.$q.platform.has.touch===!0){const E=u.onTouchstart!==void 0?"":"Passive";A[`onTouchstart${E}`]=P}return A}return{onClick:stopAndPrevent}}),R=computed(()=>({ref:Q,class:"q-btn q-btn-item non-selectable no-outline "+b.value,style:m.value,...k.value,...L.value}));function T(A){if(Q.value!==null){if(A!==void 0){if(A.defaultPrevented===!0)return;const E=document.activeElement;if(u.type==="submit"&&E!==document.body&&Q.value.contains(E)===!1&&E.contains(Q.value)===!1){Q.value.focus();const _=()=>{document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",_,passiveCapture),Q.value!==null&&Q.value.removeEventListener("blur",_,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",_,passiveCapture),Q.value.addEventListener("blur",_,passiveCapture)}}w(A)}}function O(A){Q.value!==null&&(g("keydown",A),isKeyCode(A,[13,32])===!0&&keyboardTarget!==Q.value&&(keyboardTarget!==null&&F(),A.defaultPrevented!==!0&&(Q.value.focus(),keyboardTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),Q.value.addEventListener("blur",M,passiveCapture)),stopAndPrevent(A)))}function P(A){Q.value!==null&&(g("touchstart",A),A.defaultPrevented!==!0&&(touchTarget!==Q.value&&(touchTarget!==null&&F(),touchTarget=Q.value,v=A.target,v.addEventListener("touchcancel",M,passiveCapture),v.addEventListener("touchend",M,passiveCapture)),J=!0,ae!==null&&clearTimeout(ae),ae=setTimeout(()=>{ae=null,J=!1},200)))}function B(A){Q.value!==null&&(A.qSkipRipple=J===!0,g("mousedown",A),A.defaultPrevented!==!0&&mouseTarget!==Q.value&&(mouseTarget!==null&&F(),mouseTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,passiveCapture)))}function M(A){if(Q.value!==null&&!(A!==void 0&&A.type==="blur"&&document.activeElement===Q.value)){if(A!==void 0&&A.type==="keyup"){if(keyboardTarget===Q.value&&isKeyCode(A,[13,32])===!0){const E=new MouseEvent("click",A);E.qKeyEvent=!0,A.defaultPrevented===!0&&prevent(E),A.cancelBubble===!0&&stop(E),Q.value.dispatchEvent(E),stopAndPrevent(A),A.qKeyEvent=!0}g("keyup",A)}F()}}function F(A){const E=C.value;A!==!0&&(touchTarget===Q.value||mouseTarget===Q.value)&&E!==null&&E!==document.activeElement&&(E.setAttribute("tabindex",-1),E.focus()),touchTarget===Q.value&&(v!==null&&(v.removeEventListener("touchcancel",M,passiveCapture),v.removeEventListener("touchend",M,passiveCapture)),touchTarget=v=null),mouseTarget===Q.value&&(document.removeEventListener("mouseup",M,passiveCapture),mouseTarget=null),keyboardTarget===Q.value&&(document.removeEventListener("keyup",M,!0),Q.value!==null&&Q.value.removeEventListener("blur",M,passiveCapture),keyboardTarget=null),Q.value!==null&&Q.value.classList.remove("q-btn--active")}function S(A){stopAndPrevent(A),A.qSkipRipple=!0}return onBeforeUnmount(()=>{F(!0)}),Object.assign(f,{click:A=>{$.value===!0&&T(A)}}),()=>{let A=[];u.icon!==void 0&&A.push(h(QIcon,{name:u.icon,left:u.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&A.push(h("span",{class:"block"},[u.label])),A=hMergeSlot(d.default,A),u.iconRight!==void 0&&u.round===!1&&A.push(h(QIcon,{name:u.iconRight,right:u.stack!==!0&&H.value===!0,role:"img"}));const E=[h("span",{class:"q-focus-helper",ref:C})];return u.loading===!0&&u.percentage!==void 0&&E.push(h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(u.darkPercentage===!0?" q-btn__progress--dark":"")},[h("span",{class:"q-btn__progress-indicator fit block",style:j.value})])),E.push(h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+y.value},A)),u.loading!==null&&E.push(h(Transition,{name:"q-transition--fade"},()=>u.loading===!0?[h("span",{key:"loading",class:"absolute-full flex flex-center"},d.loading!==void 0?d.loading():[h(QSpinner)])]:null)),withDirectives(h(q.value,R.value,E),[[Ripple,Y.value,void 0,G.value]])}}}),QCardSection=createComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-card__section q-card__section--${u.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>h(u.tag,{class:g.value},hSlot(d.default))}}),QCardActions=createComponent({name:"QCardActions",props:{...useAlignProps,vertical:Boolean},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`q-card__actions ${g.value} q-card__actions--${u.vertical===!0?"vert column":"horiz row"}`);return()=>h("div",{class:f.value},hSlot(d.default))}}),QCard=createComponent({name:"QCard",props:{...useDarkProps,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useDark(u,g),b=computed(()=>"q-card"+(f.value===!0?" q-card--dark q-dark":"")+(u.bordered===!0?" q-card--bordered":"")+(u.square===!0?" q-card--square no-border-radius":"")+(u.flat===!0?" q-card--flat no-shadow":""));return()=>h(u.tag,{class:b.value},hSlot(d.default))}});let maximizedModals=0;const positionClass$1={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var QDialog=createComponent({name:"QDialog",inheritAttrs:!1,props:{...useModelToggleProps,...useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:u=>["standard","top","bottom","left","right"].includes(u)}},emits:[...useModelToggleEmits,"shake","click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),m=ref(null),y=ref(!1),k=ref(!1);let a=null,q=null,w,$;const Q=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0&&u.seamless!==!0),{preventBodyScroll:C}=usePreventScroll(),{registerTimeout:v}=useTimeout(),{registerTick:J,removeTick:ae}=useTick(),{transitionProps:H,transitionStyle:Y}=useTransition(u,()=>defaultTransitions[u.position][0],()=>defaultTransitions[u.position][1]),G=computed(()=>Y.value+(u.backdropFilter!==void 0?`;backdrop-filter:${u.backdropFilter};-webkit-backdrop-filter:${u.backdropFilter}`:"")),{showPortal:j,hidePortal:L,portalIsAccessible:R,renderPortal:T}=usePortal(b,m,X,"dialog"),{hide:O}=useModelToggle({showing:y,hideOnRouteChange:Q,handleShow:E,handleHide:_,processOnMount:!0}),{addToHistory:P,removeFromHistory:B}=useHistory(y,O,Q),M=computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${u.maximized===!0?"maximized":"minimized"} q-dialog__inner--${u.position} ${positionClass$1[u.position]}`+(k.value===!0?" q-dialog__inner--animating":"")+(u.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(u.fullHeight===!0?" q-dialog__inner--fullheight":"")+(u.square===!0?" q-dialog__inner--square":"")),F=computed(()=>y.value===!0&&u.seamless!==!0),S=computed(()=>u.autoClose===!0?{onClick:W}:{}),A=computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${F.value===!0?"modal":"seamless"}`,f.class]);watch(()=>u.maximized,K=>{y.value===!0&&te(K)}),watch(F,K=>{C(K),K===!0?(addFocusout(ee),addEscapeKey(U)):(removeFocusout(ee),removeEscapeKey(U))});function E(K){P(),q=u.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,te(u.maximized),j(),k.value=!0,u.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),J(D)):ae(),v(()=>{if(b.proxy.$q.platform.is.ios===!0){if(u.seamless!==!0&&document.activeElement){const{top:Z,bottom:se}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,de=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&se>de/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-de,se>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+se-de/2))),document.activeElement.scrollIntoView()}$=!0,m.value.click(),$=!1}j(!0),k.value=!1,g("show",K)},u.transitionDuration)}function _(K){ae(),B(),z(!0),k.value=!0,L(),q!==null&&(((K&&K.type.indexOf("key")===0?q.closest('[tabindex]:not([tabindex^="-"])'):void 0)||q).focus(),q=null),v(()=>{L(!0),k.value=!1,g("hide",K)},u.transitionDuration)}function D(K){addFocusFn(()=>{let Z=m.value;if(Z!==null){if(K!==void 0){const se=Z.querySelector(K);if(se!==null){se.focus({preventScroll:!0});return}}Z.contains(document.activeElement)!==!0&&(Z=Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Z.querySelector("[autofocus], [data-autofocus]")||Z,Z.focus({preventScroll:!0}))}})}function N(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):D(),g("shake");const Z=m.value;Z!==null&&(Z.classList.remove("q-animate--scale"),Z.classList.add("q-animate--scale"),a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,m.value!==null&&(Z.classList.remove("q-animate--scale"),D())},170))}function U(){u.seamless!==!0&&(u.persistent===!0||u.noEscDismiss===!0?u.maximized!==!0&&u.noShake!==!0&&N():(g("escapeKey"),O()))}function z(K){a!==null&&(clearTimeout(a),a=null),(K===!0||y.value===!0)&&(te(!1),u.seamless!==!0&&(C(!1),removeFocusout(ee),removeEscapeKey(U))),K!==!0&&(q=null)}function te(K){K===!0?w!==!0&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,w=!0):w===!0&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,w=!1)}function W(K){$!==!0&&(O(K),g("click",K))}function re(K){u.persistent!==!0&&u.noBackdropDismiss!==!0?O(K):u.noShake!==!0&&N()}function ee(K){u.allowFocusOutside!==!0&&R.value===!0&&childHasFocus(m.value,K.target)!==!0&&D('[tabindex]:not([tabindex="-1"])')}Object.assign(b.proxy,{focus:D,shake:N,__updateRefocusTarget(K){q=K||null}}),onBeforeUnmount(z);function X(){return h("div",{role:"dialog","aria-modal":F.value===!0?"true":"false",...f,class:A.value},[h(Transition,{name:"q-transition--fade",appear:!0},()=>F.value===!0?h("div",{class:"q-dialog__backdrop fixed-full",style:G.value,"aria-hidden":"true",tabindex:-1,onClick:re}):null),h(Transition,H.value,()=>y.value===!0?h("div",{ref:m,class:M.value,style:Y.value,tabindex:-1,...S.value},hSlot(d.default)):null)])}return T}});function getDepth(u){if(u===!1)return 0;if(u===!0||u===void 0)return 1;const d=parseInt(u,10);return isNaN(d)?0:d}var ClosePopup=createDirective({name:"close-popup",beforeMount(u,{value:d}){const g={depth:getDepth(d),handler(f){g.depth!==0&&setTimeout(()=>{const b=getPortalProxy(u);b!==void 0&&closePortals(b,f,g.depth)})},handlerKey(f){isKeyCode(f,13)===!0&&g.handler(f)}};u.__qclosepopup=g,u.addEventListener("click",g.handler),u.addEventListener("keyup",g.handlerKey)},updated(u,{value:d,oldValue:g}){d!==g&&(u.__qclosepopup.depth=getDepth(d))},beforeUnmount(u){const d=u.__qclosepopup;u.removeEventListener("click",d.handler),u.removeEventListener("keyup",d.handlerKey),delete u.__qclosepopup}});let buf,bufIdx=0;const hexBytes=new Array(256);for(let u=0;u<256;u++)hexBytes[u]=(u+256).toString(16).substring(1);const randomBytes=(()=>{const u=typeof crypto!="undefined"?crypto:typeof window!="undefined"?window.crypto||window.msCrypto:void 0;if(u!==void 0){if(u.randomBytes!==void 0)return u.randomBytes;if(u.getRandomValues!==void 0)return d=>{const g=new Uint8Array(d);return u.getRandomValues(g),g}}return d=>{const g=[];for(let f=d;f>0;f--)g.push(Math.floor(Math.random()*256));return g}})(),BUFFER_SIZE=4096;function uid$1(){(buf===void 0||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const u=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return u[6]=u[6]&15|64,u[8]=u[8]&63|128,hexBytes[u[0]]+hexBytes[u[1]]+hexBytes[u[2]]+hexBytes[u[3]]+"-"+hexBytes[u[4]]+hexBytes[u[5]]+"-"+hexBytes[u[6]]+hexBytes[u[7]]+"-"+hexBytes[u[8]]+hexBytes[u[9]]+"-"+hexBytes[u[10]]+hexBytes[u[11]]+hexBytes[u[12]]+hexBytes[u[13]]+hexBytes[u[14]]+hexBytes[u[15]]}function parseValue(u){return u==null?null:u}function getId(u,d){return u==null?d===!0?`f_${uid$1()}`:null:u}function useId({getValue:u,required:d=!0}={}){if(isRuntimeSsrPreHydration.value===!0){const g=ref(u!==void 0?parseValue(u()):null);return d===!0&&g.value===null&&onMounted(()=>{g.value=`f_${uid$1()}`}),u!==void 0&&watch(u,f=>{g.value=getId(f,d)}),g}return u!==void 0?computed(()=>getId(u(),d)):ref(`f_${uid$1()}`)}const listenerRE=/^on[A-Z]/;function useSplitAttrs(){const{attrs:u,vnode:d}=getCurrentInstance(),g={listeners:ref({}),attributes:ref({})};function f(){const b={},m={};for(const y in u)y!=="class"&&y!=="style"&&listenerRE.test(y)===!1&&(b[y]=u[y]);for(const y in d.props)listenerRE.test(y)===!0&&(m[y]=d.props[y]);g.attributes.value=b,g.listeners.value=m}return onBeforeUpdate(f),f(),g}function useFormChild({validate:u,resetValidation:d,requiresQForm:g}){const f=inject(formKey,!1);if(f!==!1){const{props:b,proxy:m}=getCurrentInstance();Object.assign(m,{validate:u,resetValidation:d}),watch(()=>b.disable,y=>{y===!0?(typeof d=="function"&&d(),f.unbindComponent(m)):f.bindComponent(m)}),onMounted(()=>{b.disable!==!0&&f.bindComponent(m)}),onBeforeUnmount(()=>{b.disable!==!0&&f.unbindComponent(m)})}else g===!0&&console.error("Parent QForm not found on useFormChild()!")}const hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:u=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(u),time:u=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(u),fulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(u),timeOrFulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(u),email:u=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u),hexColor:u=>hex.test(u),hexaColor:u=>hexa.test(u),hexOrHexaColor:u=>hexOrHexa.test(u),rgbColor:u=>rgb.test(u),rgbaColor:u=>rgba.test(u),rgbOrRgbaColor:u=>rgb.test(u)||rgba.test(u),hexOrRgbColor:u=>hex.test(u)||rgb.test(u),hexaOrRgbaColor:u=>hexa.test(u)||rgba.test(u),anyColor:u=>hexOrHexa.test(u)||rgb.test(u)||rgba.test(u)},lazyRulesValues=[!0,!1,"ondemand"],useValidateProps={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:u=>lazyRulesValues.includes(u)}};function useValidate(u,d){const{props:g,proxy:f}=getCurrentInstance(),b=ref(!1),m=ref(null),y=ref(!1);useFormChild({validate:J,resetValidation:v});let k=0,a;const q=computed(()=>g.rules!==void 0&&g.rules!==null&&g.rules.length!==0),w=computed(()=>g.disable!==!0&&q.value===!0&&d.value===!1),$=computed(()=>g.error===!0||b.value===!0),Q=computed(()=>typeof g.errorMessage=="string"&&g.errorMessage.length!==0?g.errorMessage:m.value);watch(()=>g.modelValue,()=>{y.value=!0,w.value===!0&&g.lazyRules===!1&&ae()});function C(){g.lazyRules!=="ondemand"&&w.value===!0&&y.value===!0&&ae()}watch(()=>g.reactiveRules,H=>{H===!0?a===void 0&&(a=watch(()=>g.rules,C,{immediate:!0,deep:!0})):a!==void 0&&(a(),a=void 0)},{immediate:!0}),watch(()=>g.lazyRules,C),watch(u,H=>{H===!0?y.value=!0:w.value===!0&&g.lazyRules!=="ondemand"&&ae()});function v(){k++,d.value=!1,y.value=!1,b.value=!1,m.value=null,ae.cancel()}function J(H=g.modelValue){if(g.disable===!0||q.value===!1)return!0;const Y=++k,G=d.value!==!0?()=>{y.value=!0}:()=>{},j=(R,T)=>{R===!0&&G(),b.value=R,m.value=T||null,d.value=!1},L=[];for(let R=0;R<g.rules.length;R++){const T=g.rules[R];let O;if(typeof T=="function"?O=T(H,testPattern):typeof T=="string"&&testPattern[T]!==void 0&&(O=testPattern[T](H)),O===!1||typeof O=="string")return j(!0,O),!1;O!==!0&&O!==void 0&&L.push(O)}return L.length===0?(j(!1),!0):(d.value=!0,Promise.all(L).then(R=>{if(R===void 0||Array.isArray(R)===!1||R.length===0)return Y===k&&j(!1),!0;const T=R.find(O=>O===!1||typeof O=="string");return Y===k&&j(T!==void 0,T),T===void 0},R=>(Y===k&&(console.error(R),j(!0)),!1)))}const ae=debounce(J,0);return onBeforeUnmount(()=>{a!==void 0&&a(),ae.cancel()}),Object.assign(f,{resetValidation:v,validate:J}),injectProp(f,"hasError",()=>$.value),{isDirtyModel:y,hasRules:q,hasError:$,errorMessage:Q,validate:J,resetValidation:v}}function fieldValueIsFilled(u){return u!=null&&(""+u).length!==0}const useNonInputFieldProps={...useDarkProps,...useValidateProps,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},useFieldProps={...useNonInputFieldProps,maxlength:[Number,String]},useFieldEmits=["update:modelValue","clear","focus","blur"];function useFieldState({requiredForAttr:u=!0,tagProp:d,changeEvent:g=!1}={}){const{props:f,proxy:b}=getCurrentInstance(),m=useDark(f,b.$q),y=useId({required:u,getValue:()=>f.for});return{requiredForAttr:u,changeEvent:g,tag:d===!0?computed(()=>f.tag):{value:"label"},isDark:m,editable:computed(()=>f.disable!==!0&&f.readonly!==!0),innerLoading:ref(!1),focused:ref(!1),hasPopupOpen:!1,splitAttrs:useSplitAttrs(),targetUid:y,rootRef:ref(null),targetRef:ref(null),controlRef:ref(null)}}function useField(u){const{props:d,emit:g,slots:f,attrs:b,proxy:m}=getCurrentInstance(),{$q:y}=m;let k=null;u.hasValue===void 0&&(u.hasValue=computed(()=>fieldValueIsFilled(d.modelValue))),u.emitValue===void 0&&(u.emitValue=N=>{g("update:modelValue",N)}),u.controlEvents===void 0&&(u.controlEvents={onFocusin:P,onFocusout:B}),Object.assign(u,{clearValue:M,onControlFocusin:P,onControlFocusout:B,focus:T}),u.computedCounter===void 0&&(u.computedCounter=computed(()=>{if(d.counter!==!1){const N=typeof d.modelValue=="string"||typeof d.modelValue=="number"?(""+d.modelValue).length:Array.isArray(d.modelValue)===!0?d.modelValue.length:0,U=d.maxlength!==void 0?d.maxlength:d.maxValues;return N+(U!==void 0?" / "+U:"")}}));const{isDirtyModel:a,hasRules:q,hasError:w,errorMessage:$,resetValidation:Q}=useValidate(u.focused,u.innerLoading),C=u.floatingLabel!==void 0?computed(()=>d.stackLabel===!0||u.focused.value===!0||u.floatingLabel.value===!0):computed(()=>d.stackLabel===!0||u.focused.value===!0||u.hasValue.value===!0),v=computed(()=>d.bottomSlots===!0||d.hint!==void 0||q.value===!0||d.counter===!0||d.error!==null),J=computed(()=>d.filled===!0?"filled":d.outlined===!0?"outlined":d.borderless===!0?"borderless":d.standout?"standout":"standard"),ae=computed(()=>`q-field row no-wrap items-start q-field--${J.value}`+(u.fieldClass!==void 0?` ${u.fieldClass.value}`:"")+(d.rounded===!0?" q-field--rounded":"")+(d.square===!0?" q-field--square":"")+(C.value===!0?" q-field--float":"")+(Y.value===!0?" q-field--labeled":"")+(d.dense===!0?" q-field--dense":"")+(d.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(u.isDark.value===!0?" q-field--dark":"")+(u.getControl===void 0?" q-field--auto-height":"")+(u.focused.value===!0?" q-field--focused":"")+(w.value===!0?" q-field--error":"")+(w.value===!0||u.focused.value===!0?" q-field--highlighted":"")+(d.hideBottomSpace!==!0&&v.value===!0?" q-field--with-bottom":"")+(d.disable===!0?" q-field--disabled":d.readonly===!0?" q-field--readonly":"")),H=computed(()=>"q-field__control relative-position row no-wrap"+(d.bgColor!==void 0?` bg-${d.bgColor}`:"")+(w.value===!0?" text-negative":typeof d.standout=="string"&&d.standout.length!==0&&u.focused.value===!0?` ${d.standout}`:d.color!==void 0?` text-${d.color}`:"")),Y=computed(()=>d.labelSlot===!0||d.label!==void 0),G=computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(d.labelColor!==void 0&&w.value!==!0?` text-${d.labelColor}`:"")),j=computed(()=>({id:u.targetUid.value,editable:u.editable.value,focused:u.focused.value,floatingLabel:C.value,modelValue:d.modelValue,emitValue:u.emitValue})),L=computed(()=>{const N={};return u.targetUid.value&&(N.for=u.targetUid.value),d.disable===!0&&(N["aria-disabled"]="true"),N});function R(){const N=document.activeElement;let U=u.targetRef!==void 0&&u.targetRef.value;U&&(N===null||N.id!==u.targetUid.value)&&(U.hasAttribute("tabindex")===!0||(U=U.querySelector("[tabindex]")),U&&U!==N&&U.focus({preventScroll:!0}))}function T(){addFocusFn(R)}function O(){removeFocusFn(R);const N=document.activeElement;N!==null&&u.rootRef.value.contains(N)&&N.blur()}function P(N){k!==null&&(clearTimeout(k),k=null),u.editable.value===!0&&u.focused.value===!1&&(u.focused.value=!0,g("focus",N))}function B(N,U){k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,!(document.hasFocus()===!0&&(u.hasPopupOpen===!0||u.controlRef===void 0||u.controlRef.value===null||u.controlRef.value.contains(document.activeElement)!==!1))&&(u.focused.value===!0&&(u.focused.value=!1,g("blur",N)),U!==void 0&&U())})}function M(N){stopAndPrevent(N),y.platform.is.mobile!==!0?(u.targetRef!==void 0&&u.targetRef.value||u.rootRef.value).focus():u.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),d.type==="file"&&(u.inputRef.value.value=null),g("update:modelValue",null),u.changeEvent===!0&&g("change",null),g("clear",d.modelValue),nextTick(()=>{const U=a.value;Q(),a.value=U})}function F(N){[13,32].includes(N.keyCode)&&M(N)}function S(){const N=[];return f.prepend!==void 0&&N.push(h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:prevent},f.prepend())),N.push(h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},A())),w.value===!0&&d.noErrorIcon===!1&&N.push(_("error",[h(QIcon,{name:y.iconSet.field.error,color:"negative"})])),d.loading===!0||u.innerLoading.value===!0?N.push(_("inner-loading-append",f.loading!==void 0?f.loading():[h(QSpinner,{color:d.color})])):d.clearable===!0&&u.hasValue.value===!0&&u.editable.value===!0&&N.push(_("inner-clearable-append",[h(QIcon,{class:"q-field__focusable-action",name:d.clearIcon||y.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":y.lang.label.clear,onKeyup:F,onClick:M})])),f.append!==void 0&&N.push(h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:prevent},f.append())),u.getInnerAppend!==void 0&&N.push(_("inner-append",u.getInnerAppend())),u.getControlChild!==void 0&&N.push(u.getControlChild()),N}function A(){const N=[];return d.prefix!==void 0&&d.prefix!==null&&N.push(h("div",{class:"q-field__prefix no-pointer-events row items-center"},d.prefix)),u.getShadowControl!==void 0&&u.hasShadow.value===!0&&N.push(u.getShadowControl()),u.getControl!==void 0?N.push(u.getControl()):f.rawControl!==void 0?N.push(f.rawControl()):f.control!==void 0&&N.push(h("div",{ref:u.targetRef,class:"q-field__native row",tabindex:-1,...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0},f.control(j.value))),Y.value===!0&&N.push(h("div",{class:G.value},hSlot(f.label,d.label))),d.suffix!==void 0&&d.suffix!==null&&N.push(h("div",{class:"q-field__suffix no-pointer-events row items-center"},d.suffix)),N.concat(hSlot(f.default))}function E(){let N,U;w.value===!0?$.value!==null?(N=[h("div",{role:"alert"},$.value)],U=`q--slot-error-${$.value}`):(N=hSlot(f.error),U="q--slot-error"):(d.hideHint!==!0||u.focused.value===!0)&&(d.hint!==void 0?(N=[h("div",d.hint)],U=`q--slot-hint-${d.hint}`):(N=hSlot(f.hint),U="q--slot-hint"));const z=d.counter===!0||f.counter!==void 0;if(d.hideBottomSpace===!0&&z===!1&&N===void 0)return;const te=h("div",{key:U,class:"q-field__messages col"},N);return h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(d.hideBottomSpace!==!0?"animated":"stale"),onClick:prevent},[d.hideBottomSpace===!0?te:h(Transition,{name:"q-transition--field-message"},()=>te),z===!0?h("div",{class:"q-field__counter"},f.counter!==void 0?f.counter():u.computedCounter.value):null])}function _(N,U){return U===null?null:h("div",{key:N,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},U)}let D=!1;return onDeactivated(()=>{D=!0}),onActivated(()=>{D===!0&&d.autofocus===!0&&m.focus()}),d.autofocus===!0&&onMounted(()=>{m.focus()}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k)}),Object.assign(m,{focus:T,blur:O}),function(){const U=u.getControl===void 0&&f.control===void 0?{...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0,...L.value}:L.value;return h(u.tag.value,{ref:u.rootRef,class:[ae.value,b.class],style:b.style,...U},[f.before!==void 0?h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:prevent},f.before()):null,h("div",{class:"q-field__inner relative-position col self-stretch"},[h("div",{ref:u.controlRef,class:H.value,tabindex:-1,...u.controlEvents},S()),v.value===!0?E():null]),f.after!==void 0?h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:prevent},f.after()):null])}}const NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach(u=>{TOKENS[u].regex=new RegExp(TOKENS[u].pattern)});const tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1),useMaskProps={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function useMask(u,d,g,f){let b,m,y,k,a,q;const w=ref(null),$=ref(C());function Q(){return u.autogrow===!0||["textarea","text","search","url","tel","password"].includes(u.type)}watch(()=>u.type+u.autogrow,J),watch(()=>u.mask,P=>{if(P!==void 0)ae($.value,!0);else{const B=T($.value);J(),u.modelValue!==B&&d("update:modelValue",B)}}),watch(()=>u.fillMask+u.reverseFillMask,()=>{w.value===!0&&ae($.value,!0)}),watch(()=>u.unmaskedValue,()=>{w.value===!0&&ae($.value)});function C(){if(J(),w.value===!0){const P=L(T(u.modelValue));return u.fillMask!==!1?O(P):P}return u.modelValue}function v(P){if(P<b.length)return b.slice(-P);let B="",M=b;const F=M.indexOf(MARKER);if(F!==-1){for(let S=P-M.length;S>0;S--)B+=MARKER;M=M.slice(0,F)+B+M.slice(F)}return M}function J(){if(w.value=u.mask!==void 0&&u.mask.length!==0&&Q(),w.value===!1){k=void 0,b="",m="";return}const P=NAMED_MASKS[u.mask]===void 0?u.mask:NAMED_MASKS[u.mask],B=typeof u.fillMask=="string"&&u.fillMask.length!==0?u.fillMask.slice(0,1):"_",M=B.replace(escRegex,"\\$&"),F=[],S=[],A=[];let E=u.reverseFillMask===!0,_="",D="";P.replace(tokenRegexMask,(te,W,re,ee,X)=>{if(ee!==void 0){const K=TOKENS[ee];A.push(K),D=K.negate,E===!0&&(S.push("(?:"+D+"+)?("+K.pattern+"+)?(?:"+D+"+)?("+K.pattern+"+)?"),E=!1),S.push("(?:"+D+"+)?("+K.pattern+")?")}else if(re!==void 0)_="\\"+(re==="\\"?"":re),A.push(re),F.push("([^"+_+"]+)?"+_+"?");else{const K=W!==void 0?W:X;_=K==="\\"?"\\\\\\\\":K.replace(escRegex,"\\\\$&"),A.push(K),F.push("([^"+_+"]+)?"+_+"?")}});const N=new RegExp("^"+F.join("")+"("+(_===""?".":"[^"+_+"]")+"+)?"+(_===""?"":"["+_+"]*")+"$"),U=S.length-1,z=S.map((te,W)=>W===0&&u.reverseFillMask===!0?new RegExp("^"+M+"*"+te):W===U?new RegExp("^"+te+"("+(D===""?".":D)+"+)?"+(u.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+te));y=A,k=te=>{const W=N.exec(u.reverseFillMask===!0?te:te.slice(0,A.length+1));W!==null&&(te=W.slice(1).join(""));const re=[],ee=z.length;for(let X=0,K=te;X<ee;X++){const Z=z[X].exec(K);if(Z===null)break;K=K.slice(Z.shift().length),re.push(...Z)}return re.length!==0?re.join(""):te},b=A.map(te=>typeof te=="string"?te:MARKER).join(""),m=b.split(MARKER).join(B)}function ae(P,B,M){const F=f.value,S=F.selectionEnd,A=F.value.length-S,E=T(P);B===!0&&J();const _=L(E),D=u.fillMask!==!1?O(_):_,N=$.value!==D;F.value!==D&&(F.value=D),N===!0&&($.value=D),document.activeElement===F&&nextTick(()=>{if(D===m){const z=u.reverseFillMask===!0?m.length:0;F.setSelectionRange(z,z,"forward");return}if(M==="insertFromPaste"&&u.reverseFillMask!==!0){const z=F.selectionEnd;let te=S-1;for(let W=a;W<=te&&W<z;W++)b[W]!==MARKER&&te++;Y.right(F,te);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const z=u.reverseFillMask===!0?S===0?D.length>_.length?1:0:Math.max(0,D.length-(D===m?0:Math.min(_.length,A)+1))+1:S;F.setSelectionRange(z,z,"forward");return}if(u.reverseFillMask===!0)if(N===!0){const z=Math.max(0,D.length-(D===m?0:Math.min(_.length,A+1)));z===1&&S===1?F.setSelectionRange(z,z,"forward"):Y.rightReverse(F,z)}else{const z=D.length-A;F.setSelectionRange(z,z,"backward")}else if(N===!0){const z=Math.max(0,b.indexOf(MARKER),Math.min(_.length,S)-1);Y.right(F,z)}else{const z=S-1;Y.right(F,z)}});const U=u.unmaskedValue===!0?T(D):D;String(u.modelValue)!==U&&(u.modelValue!==null||U!=="")&&g(U,!0)}function H(P,B,M){const F=L(T(P.value));B=Math.max(0,b.indexOf(MARKER),Math.min(F.length,B)),a=B,P.setSelectionRange(B,M,"forward")}const Y={left(P,B){const M=b.slice(B-1).indexOf(MARKER)===-1;let F=Math.max(0,B-1);for(;F>=0;F--)if(b[F]===MARKER){B=F,M===!0&&B++;break}if(F<0&&b[B]!==void 0&&b[B]!==MARKER)return Y.right(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},right(P,B){const M=P.value.length;let F=Math.min(M,B+1);for(;F<=M;F++)if(b[F]===MARKER){B=F;break}else b[F-1]===MARKER&&(B=F);if(F>M&&b[B-1]!==void 0&&b[B-1]!==MARKER)return Y.left(P,M);P.setSelectionRange(B,B,"forward")},leftReverse(P,B){const M=v(P.value.length);let F=Math.max(0,B-1);for(;F>=0;F--)if(M[F-1]===MARKER){B=F;break}else if(M[F]===MARKER&&(B=F,F===0))break;if(F<0&&M[B]!==void 0&&M[B]!==MARKER)return Y.rightReverse(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},rightReverse(P,B){const M=P.value.length,F=v(M),S=F.slice(0,B+1).indexOf(MARKER)===-1;let A=Math.min(M,B+1);for(;A<=M;A++)if(F[A-1]===MARKER){B=A,B>0&&S===!0&&B--;break}if(A>M&&F[B-1]!==void 0&&F[B-1]!==MARKER)return Y.leftReverse(P,M);P.setSelectionRange(B,B,"forward")}};function G(P){d("click",P),q=void 0}function j(P){if(d("keydown",P),shouldIgnoreKey(P)===!0||P.altKey===!0)return;const B=f.value,M=B.selectionStart,F=B.selectionEnd;if(P.shiftKey||(q=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&q===void 0&&(q=B.selectionDirection==="forward"?M:F);const S=Y[(P.keyCode===39?"right":"left")+(u.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),S(B,q===M?F:M),P.shiftKey){const A=B.selectionStart;B.setSelectionRange(Math.min(q,A),Math.max(q,A),"forward")}}else P.keyCode===8&&u.reverseFillMask!==!0&&M===F?(Y.left(B,M),B.setSelectionRange(B.selectionStart,F,"backward")):P.keyCode===46&&u.reverseFillMask===!0&&M===F&&(Y.rightReverse(B,F),B.setSelectionRange(M,B.selectionEnd,"forward"))}function L(P){if(P==null||P==="")return"";if(u.reverseFillMask===!0)return R(P);const B=y;let M=0,F="";for(let S=0;S<B.length;S++){const A=P[M],E=B[S];if(typeof E=="string")F+=E,A===E&&M++;else if(A!==void 0&&E.regex.test(A))F+=E.transform!==void 0?E.transform(A):A,M++;else return F}return F}function R(P){const B=y,M=b.indexOf(MARKER);let F=P.length-1,S="";for(let A=B.length-1;A>=0&&F!==-1;A--){const E=B[A];let _=P[F];if(typeof E=="string")S=E+S,_===E&&F--;else if(_!==void 0&&E.regex.test(_))do S=(E.transform!==void 0?E.transform(_):_)+S,F--,_=P[F];while(M===A&&_!==void 0&&E.regex.test(_));else return S}return S}function T(P){return typeof P!="string"||k===void 0?typeof P=="number"?k(""+P):P:k(P)}function O(P){return m.length-P.length<=0?P:u.reverseFillMask===!0&&P.length!==0?m.slice(0,-P.length)+P:P+m.slice(P.length)}return{innerValue:$,hasMask:w,moveCursorForPaste:H,updateMaskValue:ae,onMaskedKeydown:j,onMaskedClick:G}}const useFormProps={name:String};function useFormInject(u={}){return(d,g,f)=>{d[g](h("input",{class:"hidden"+(f||""),...u.value}))}}function useFormInputNameAttr(u){return computed(()=>u.name||u.for)}function useFileFormDomProps(u,d){function g(){const f=u.modelValue;try{const b="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(f)===f&&("length"in f?Array.from(f):[f]).forEach(m=>{b.items.add(m)}),{files:b.files}}catch{return{files:void 0}}}return computed(d===!0?()=>{if(u.type==="file")return g()}:g)}const isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;function useKeyComposition(u){return function(g){if(g.type==="compositionend"||g.type==="change"){if(g.target.qComposing!==!0)return;g.target.qComposing=!1,u(g)}else g.type==="compositionupdate"&&g.target.qComposing!==!0&&typeof g.data=="string"&&(client.is.firefox===!0?isPlainText.test(g.data)===!1:isJapanese.test(g.data)===!0||isChinese.test(g.data)===!0||isKorean.test(g.data)===!0)===!0&&(g.target.qComposing=!0)}}var QInput=createComponent({name:"QInput",inheritAttrs:!1,props:{...useFieldProps,...useMaskProps,...useFormProps,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...useFieldEmits,"paste","change","keydown","click","animationend"],setup(u,{emit:d,attrs:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m={};let y=NaN,k,a,q=null,w;const $=ref(null),Q=useFormInputNameAttr(u),{innerValue:C,hasMask:v,moveCursorForPaste:J,updateMaskValue:ae,onMaskedKeydown:H,onMaskedClick:Y}=useMask(u,d,_,$),G=useFileFormDomProps(u,!0),j=computed(()=>fieldValueIsFilled(C.value)),L=useKeyComposition(A),R=useFieldState({changeEvent:!0}),T=computed(()=>u.type==="textarea"||u.autogrow===!0),O=computed(()=>T.value===!0||["text","search","url","tel","password"].includes(u.type)),P=computed(()=>{const W={...R.splitAttrs.listeners.value,onInput:A,onPaste:S,onChange:N,onBlur:U,onFocus:stop};return W.onCompositionstart=W.onCompositionupdate=W.onCompositionend=L,v.value===!0&&(W.onKeydown=H,W.onClick=Y),u.autogrow===!0&&(W.onAnimationend=E),W}),B=computed(()=>{const W={tabindex:0,"data-autofocus":u.autofocus===!0||void 0,rows:u.type==="textarea"?6:void 0,"aria-label":u.label,name:Q.value,...R.splitAttrs.attributes.value,id:R.targetUid.value,maxlength:u.maxlength,disabled:u.disable===!0,readonly:u.readonly===!0};return T.value===!1&&(W.type=u.type),u.autogrow===!0&&(W.rows=1),W});watch(()=>u.type,()=>{$.value&&($.value.value=u.modelValue)}),watch(()=>u.modelValue,W=>{if(v.value===!0){if(a===!0&&(a=!1,String(W)===y))return;ae(W)}else C.value!==W&&(C.value=W,u.type==="number"&&m.hasOwnProperty("value")===!0&&(k===!0?k=!1:delete m.value));u.autogrow===!0&&nextTick(D)}),watch(()=>u.autogrow,W=>{W===!0?nextTick(D):$.value!==null&&g.rows>0&&($.value.style.height="auto")}),watch(()=>u.dense,()=>{u.autogrow===!0&&nextTick(D)});function M(){addFocusFn(()=>{const W=document.activeElement;$.value!==null&&$.value!==W&&(W===null||W.id!==R.targetUid.value)&&$.value.focus({preventScroll:!0})})}function F(){$.value!==null&&$.value.select()}function S(W){if(v.value===!0&&u.reverseFillMask!==!0){const re=W.target;J(re,re.selectionStart,re.selectionEnd)}d("paste",W)}function A(W){if(!W||!W.target)return;if(u.type==="file"){d("update:modelValue",W.target.files);return}const re=W.target.value;if(W.target.qComposing===!0){m.value=re;return}if(v.value===!0)ae(re,!1,W.inputType);else if(_(re),O.value===!0&&W.target===document.activeElement){const{selectionStart:ee,selectionEnd:X}=W.target;ee!==void 0&&X!==void 0&&nextTick(()=>{W.target===document.activeElement&&re.indexOf(W.target.value)===0&&W.target.setSelectionRange(ee,X)})}u.autogrow===!0&&D()}function E(W){d("animationend",W),D()}function _(W,re){w=()=>{q=null,u.type!=="number"&&m.hasOwnProperty("value")===!0&&delete m.value,u.modelValue!==W&&y!==W&&(y=W,re===!0&&(a=!0),d("update:modelValue",W),nextTick(()=>{y===W&&(y=NaN)})),w=void 0},u.type==="number"&&(k=!0,m.value=W),u.debounce!==void 0?(q!==null&&clearTimeout(q),m.value=W,q=setTimeout(w,u.debounce)):w()}function D(){requestAnimationFrame(()=>{const W=$.value;if(W!==null){const re=W.parentNode.style,{scrollTop:ee}=W,{overflowY:X,maxHeight:K}=b.platform.is.firefox===!0?{}:window.getComputedStyle(W),Z=X!==void 0&&X!=="scroll";Z===!0&&(W.style.overflowY="hidden"),re.marginBottom=W.scrollHeight-1+"px",W.style.height="1px",W.style.height=W.scrollHeight+"px",Z===!0&&(W.style.overflowY=parseInt(K,10)<W.scrollHeight?"auto":"hidden"),re.marginBottom="",W.scrollTop=ee}})}function N(W){L(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),d("change",W.target.value)}function U(W){W!==void 0&&stop(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),k=!1,a=!1,delete m.value,u.type!=="file"&&setTimeout(()=>{$.value!==null&&($.value.value=C.value!==void 0?C.value:"")})}function z(){return m.hasOwnProperty("value")===!0?m.value:C.value!==void 0?C.value:""}onBeforeUnmount(()=>{U()}),onMounted(()=>{u.autogrow===!0&&D()}),Object.assign(R,{innerValue:C,fieldClass:computed(()=>`q-${T.value===!0?"textarea":"input"}`+(u.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:computed(()=>u.type!=="file"&&typeof u.shadowText=="string"&&u.shadowText.length!==0),inputRef:$,emitValue:_,hasValue:j,floatingLabel:computed(()=>j.value===!0&&(u.type!=="number"||isNaN(C.value)===!1)||fieldValueIsFilled(u.displayValue)),getControl:()=>h(T.value===!0?"textarea":"input",{ref:$,class:["q-field__native q-placeholder",u.inputClass],style:u.inputStyle,...B.value,...P.value,...u.type!=="file"?{value:z()}:G.value}),getShadowControl:()=>h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(T.value===!0?"":" text-no-wrap")},[h("span",{class:"invisible"},z()),h("span",u.shadowText)])});const te=useField(R);return Object.assign(f,{focus:M,select:F,getNativeElement:()=>$.value}),injectProp(f,"nativeEl",()=>$.value),te}}),QForm=createComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),b=ref(null);let m=0;const y=[];function k(C){const v=typeof C=="boolean"?C:u.noErrorFocus!==!0,J=++m,ae=(G,j)=>{g(`validation${G===!0?"Success":"Error"}`,j)},H=G=>{const j=G.validate();return typeof j.then=="function"?j.then(L=>({valid:L,comp:G}),L=>({valid:!1,comp:G,err:L})):Promise.resolve({valid:j,comp:G})};return(u.greedy===!0?Promise.all(y.map(H)).then(G=>G.filter(j=>j.valid!==!0)):y.reduce((G,j)=>G.then(()=>H(j).then(L=>{if(L.valid===!1)return Promise.reject(L)})),Promise.resolve()).catch(G=>[G])).then(G=>{if(G===void 0||G.length===0)return J===m&&ae(!0),!0;if(J===m){const{comp:j,err:L}=G[0];if(L!==void 0&&console.error(L),ae(!1,j),v===!0){const R=G.find(({comp:T})=>typeof T.focus=="function"&&vmIsDestroyed(T.$)===!1);R!==void 0&&R.comp.focus()}}return!1})}function a(){m++,y.forEach(C=>{typeof C.resetValidation=="function"&&C.resetValidation()})}function q(C){C!==void 0&&stopAndPrevent(C);const v=m+1;k().then(J=>{v===m&&J===!0&&(u.onSubmit!==void 0?g("submit",C):C!==void 0&&C.target!==void 0&&typeof C.target.submit=="function"&&C.target.submit())})}function w(C){C!==void 0&&stopAndPrevent(C),g("reset"),nextTick(()=>{a(),u.autofocus===!0&&u.noResetFocus!==!0&&$()})}function $(){addFocusFn(()=>{if(b.value===null)return;const C=b.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||b.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||b.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(b.value.querySelectorAll("[tabindex]"),v=>v.tabIndex!==-1);C!=null&&C.focus({preventScroll:!0})})}provide(formKey,{bindComponent(C){y.push(C)},unbindComponent(C){const v=y.indexOf(C);v!==-1&&y.splice(v,1)}});let Q=!1;return onDeactivated(()=>{Q=!0}),onActivated(()=>{Q===!0&&u.autofocus===!0&&$()}),onMounted(()=>{u.autofocus===!0&&$()}),Object.assign(f.proxy,{validate:k,resetValidation:a,submit:q,reset:w,focus:$,getValidationComponents:()=>y}),()=>h("form",{class:"q-form",ref:b,onSubmit:q,onReset:w},hSlot(d.default))}});function bind(u,d){return function(){return u.apply(d,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(u=>d=>{const g=toString.call(d);return u[g]||(u[g]=g.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=u=>(u=u.toLowerCase(),d=>kindOf(d)===u),typeOfTest=u=>d=>typeof d===u,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(u){return u!==null&&!isUndefined(u)&&u.constructor!==null&&!isUndefined(u.constructor)&&isFunction(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(u){let d;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?d=ArrayBuffer.isView(u):d=u&&u.buffer&&isArrayBuffer(u.buffer),d}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber$2=typeOfTest("number"),isObject=u=>u!==null&&typeof u=="object",isBoolean=u=>u===!0||u===!1,isPlainObject=u=>{if(kindOf(u)!=="object")return!1;const d=getPrototypeOf(u);return(d===null||d===Object.prototype||Object.getPrototypeOf(d)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=u=>isObject(u)&&isFunction(u.pipe),isFormData=u=>{let d;return u&&(typeof FormData=="function"&&u instanceof FormData||isFunction(u.append)&&((d=kindOf(u))==="formdata"||d==="object"&&isFunction(u.toString)&&u.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(u,d,{allOwnKeys:g=!1}={}){if(u===null||typeof u=="undefined")return;let f,b;if(typeof u!="object"&&(u=[u]),isArray(u))for(f=0,b=u.length;f<b;f++)d.call(null,u[f],f,u);else{const m=g?Object.getOwnPropertyNames(u):Object.keys(u),y=m.length;let k;for(f=0;f<y;f++)k=m[f],d.call(null,u[k],k,u)}}function findKey(u,d){d=d.toLowerCase();const g=Object.keys(u);let f=g.length,b;for(;f-- >0;)if(b=g[f],d===b.toLowerCase())return b;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=u=>!isUndefined(u)&&u!==_global;function merge(){const{caseless:u}=isContextDefined(this)&&this||{},d={},g=(f,b)=>{const m=u&&findKey(d,b)||b;isPlainObject(d[m])&&isPlainObject(f)?d[m]=merge(d[m],f):isPlainObject(f)?d[m]=merge({},f):isArray(f)?d[m]=f.slice():d[m]=f};for(let f=0,b=arguments.length;f<b;f++)arguments[f]&&forEach(arguments[f],g);return d}const extend=(u,d,g,{allOwnKeys:f}={})=>(forEach(d,(b,m)=>{g&&isFunction(b)?u[m]=bind(b,g):u[m]=b},{allOwnKeys:f}),u),stripBOM=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),inherits=(u,d,g,f)=>{u.prototype=Object.create(d.prototype,f),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:d.prototype}),g&&Object.assign(u.prototype,g)},toFlatObject=(u,d,g,f)=>{let b,m,y;const k={};if(d=d||{},u==null)return d;do{for(b=Object.getOwnPropertyNames(u),m=b.length;m-- >0;)y=b[m],(!f||f(y,u,d))&&!k[y]&&(d[y]=u[y],k[y]=!0);u=g!==!1&&getPrototypeOf(u)}while(u&&(!g||g(u,d))&&u!==Object.prototype);return d},endsWith=(u,d,g)=>{u=String(u),(g===void 0||g>u.length)&&(g=u.length),g-=d.length;const f=u.indexOf(d,g);return f!==-1&&f===g},toArray=u=>{if(!u)return null;if(isArray(u))return u;let d=u.length;if(!isNumber$2(d))return null;const g=new Array(d);for(;d-- >0;)g[d]=u[d];return g},isTypedArray=(u=>d=>u&&d instanceof u)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(u,d)=>{const f=(u&&u[Symbol.iterator]).call(u);let b;for(;(b=f.next())&&!b.done;){const m=b.value;d.call(u,m[0],m[1])}},matchAll=(u,d)=>{let g;const f=[];for(;(g=u.exec(d))!==null;)f.push(g);return f},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(g,f,b){return f.toUpperCase()+b}),hasOwnProperty=(({hasOwnProperty:u})=>(d,g)=>u.call(d,g))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(u,d)=>{const g=Object.getOwnPropertyDescriptors(u),f={};forEach(g,(b,m)=>{let y;(y=d(b,m,u))!==!1&&(f[m]=y||b)}),Object.defineProperties(u,f)},freezeMethods=u=>{reduceDescriptors(u,(d,g)=>{if(isFunction(u)&&["arguments","caller","callee"].indexOf(g)!==-1)return!1;const f=u[g];if(!!isFunction(f)){if(d.enumerable=!1,"writable"in d){d.writable=!1;return}d.set||(d.set=()=>{throw Error("Can not rewrite read-only method '"+g+"'")})}})},toObjectSet=(u,d)=>{const g={},f=b=>{b.forEach(m=>{g[m]=!0})};return isArray(u)?f(u):f(String(u).split(d)),g},noop=()=>{},toFiniteNumber=(u,d)=>u!=null&&Number.isFinite(u=+u)?u:d,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(u=16,d=ALPHABET.ALPHA_DIGIT)=>{let g="";const{length:f}=d;for(;u--;)g+=d[Math.random()*f|0];return g};function isSpecCompliantForm(u){return!!(u&&isFunction(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const toJSONObject=u=>{const d=new Array(10),g=(f,b)=>{if(isObject(f)){if(d.indexOf(f)>=0)return;if(!("toJSON"in f)){d[b]=f;const m=isArray(f)?[]:{};return forEach(f,(y,k)=>{const a=g(y,b+1);!isUndefined(a)&&(m[k]=a)}),d[b]=void 0,m}}return f};return g(u,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=u=>u&&(isObject(u)||isFunction(u))&&isFunction(u.then)&&isFunction(u.catch),_setImmediate=((u,d)=>u?setImmediate:d?((g,f)=>(_global.addEventListener("message",({source:b,data:m})=>{b===_global&&m===g&&f.length&&f.shift()()},!1),b=>{f.push(b),_global.postMessage(g,"*")}))(`axios@${Math.random()}`,[]):g=>setTimeout(g))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask!="undefined"?queueMicrotask.bind(_global):typeof process!="undefined"&&process.nextTick||_setImmediate;var utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber:isNumber$2,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(u,d,g,f,b){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",d&&(this.code=d),g&&(this.config=g),f&&(this.request=f),b&&(this.response=b,this.status=b.status?b.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{descriptors[u]={value:u}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(u,d,g,f,b,m)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(u,y,function(a){return a!==Error.prototype},k=>k!=="isAxiosError"),AxiosError.call(y,u.message,d,g,f,b),y.cause=u,y.name=u.name,m&&Object.assign(y,m),y};var httpAdapter=null;function isVisitable(u){return utils$1.isPlainObject(u)||utils$1.isArray(u)}function removeBrackets(u){return utils$1.endsWith(u,"[]")?u.slice(0,-2):u}function renderKey(u,d,g){return u?u.concat(d).map(function(b,m){return b=removeBrackets(b),!g&&m?"["+b+"]":b}).join(g?".":""):d}function isFlatArray(u){return utils$1.isArray(u)&&!u.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(d){return/^is[A-Z]/.test(d)});function toFormData(u,d,g){if(!utils$1.isObject(u))throw new TypeError("target must be an object");d=d||new FormData,g=utils$1.toFlatObject(g,{metaTokens:!0,dots:!1,indexes:!1},!1,function(J,ae){return!utils$1.isUndefined(ae[J])});const f=g.metaTokens,b=g.visitor||w,m=g.dots,y=g.indexes,a=(g.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(d);if(!utils$1.isFunction(b))throw new TypeError("visitor must be a function");function q(v){if(v===null)return"";if(utils$1.isDate(v))return v.toISOString();if(!a&&utils$1.isBlob(v))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(v)||utils$1.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function w(v,J,ae){let H=v;if(v&&!ae&&typeof v=="object"){if(utils$1.endsWith(J,"{}"))J=f?J:J.slice(0,-2),v=JSON.stringify(v);else if(utils$1.isArray(v)&&isFlatArray(v)||(utils$1.isFileList(v)||utils$1.endsWith(J,"[]"))&&(H=utils$1.toArray(v)))return J=removeBrackets(J),H.forEach(function(G,j){!(utils$1.isUndefined(G)||G===null)&&d.append(y===!0?renderKey([J],j,m):y===null?J:J+"[]",q(G))}),!1}return isVisitable(v)?!0:(d.append(renderKey(ae,J,m),q(v)),!1)}const $=[],Q=Object.assign(predicates,{defaultVisitor:w,convertValue:q,isVisitable});function C(v,J){if(!utils$1.isUndefined(v)){if($.indexOf(v)!==-1)throw Error("Circular reference detected in "+J.join("."));$.push(v),utils$1.forEach(v,function(H,Y){(!(utils$1.isUndefined(H)||H===null)&&b.call(d,H,utils$1.isString(Y)?Y.trim():Y,J,Q))===!0&&C(H,J?J.concat(Y):[Y])}),$.pop()}}if(!utils$1.isObject(u))throw new TypeError("data must be an object");return C(u),d}function encode$2(u){const d={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(f){return d[f]})}function AxiosURLSearchParams(u,d){this._pairs=[],u&&toFormData(u,this,d)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(d,g){this._pairs.push([d,g])};prototype.toString=function(d){const g=d?function(f){return d.call(this,f,encode$2)}:encode$2;return this._pairs.map(function(b){return g(b[0])+"="+g(b[1])},"").join("&")};function encode$1(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(u,d,g){if(!d)return u;const f=g&&g.encode||encode$1;utils$1.isFunction(g)&&(g={serialize:g});const b=g&&g.serialize;let m;if(b?m=b(d,g):m=utils$1.isURLSearchParams(d)?d.toString():new AxiosURLSearchParams(d,g).toString(f),m){const y=u.indexOf("#");y!==-1&&(u=u.slice(0,y)),u+=(u.indexOf("?")===-1?"?":"&")+m}return u}class InterceptorManager{constructor(){this.handlers=[]}use(d,g,f){return this.handlers.push({fulfilled:d,rejected:g,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){utils$1.forEach(this.handlers,function(f){f!==null&&d(f)})}}var InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(u,d){return toFormData(u,new platform.classes.URLSearchParams,Object.assign({visitor:function(g,f,b,m){return platform.isNode&&utils$1.isBuffer(g)?(this.append(f,g.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},d))}function parsePropPath(u){return utils$1.matchAll(/\w+|\[(\w*)]/g,u).map(d=>d[0]==="[]"?"":d[1]||d[0])}function arrayToObject(u){const d={},g=Object.keys(u);let f;const b=g.length;let m;for(f=0;f<b;f++)m=g[f],d[m]=u[m];return d}function formDataToJSON(u){function d(g,f,b,m){let y=g[m++];if(y==="__proto__")return!0;const k=Number.isFinite(+y),a=m>=g.length;return y=!y&&utils$1.isArray(b)?b.length:y,a?(utils$1.hasOwnProp(b,y)?b[y]=[b[y],f]:b[y]=f,!k):((!b[y]||!utils$1.isObject(b[y]))&&(b[y]=[]),d(g,f,b[y],m)&&utils$1.isArray(b[y])&&(b[y]=arrayToObject(b[y])),!k)}if(utils$1.isFormData(u)&&utils$1.isFunction(u.entries)){const g={};return utils$1.forEachEntry(u,(f,b)=>{d(parsePropPath(f),b,g,0)}),g}return null}function stringifySafely(u,d,g){if(utils$1.isString(u))try{return(d||JSON.parse)(u),utils$1.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(g||JSON.stringify)(u)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(d,g){const f=g.getContentType()||"",b=f.indexOf("application/json")>-1,m=utils$1.isObject(d);if(m&&utils$1.isHTMLForm(d)&&(d=new FormData(d)),utils$1.isFormData(d))return b?JSON.stringify(formDataToJSON(d)):d;if(utils$1.isArrayBuffer(d)||utils$1.isBuffer(d)||utils$1.isStream(d)||utils$1.isFile(d)||utils$1.isBlob(d)||utils$1.isReadableStream(d))return d;if(utils$1.isArrayBufferView(d))return d.buffer;if(utils$1.isURLSearchParams(d))return g.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();let k;if(m){if(f.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(d,this.formSerializer).toString();if((k=utils$1.isFileList(d))||f.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return toFormData(k?{"files[]":d}:d,a&&new a,this.formSerializer)}}return m||b?(g.setContentType("application/json",!1),stringifySafely(d)):d}],transformResponse:[function(d){const g=this.transitional||defaults$1.transitional,f=g&&g.forcedJSONParsing,b=this.responseType==="json";if(utils$1.isResponse(d)||utils$1.isReadableStream(d))return d;if(d&&utils$1.isString(d)&&(f&&!this.responseType||b)){const y=!(g&&g.silentJSONParsing)&&b;try{return JSON.parse(d)}catch(k){if(y)throw k.name==="SyntaxError"?AxiosError.from(k,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):k}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],u=>{defaults$1.headers[u]={}});var defaults$2=defaults$1;const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=u=>{const d={};let g,f,b;return u&&u.split(`
|
|
29
|
+
`).forEach(function(y){b=y.indexOf(":"),g=y.substring(0,b).trim().toLowerCase(),f=y.substring(b+1).trim(),!(!g||d[g]&&ignoreDuplicateOf[g])&&(g==="set-cookie"?d[g]?d[g].push(f):d[g]=[f]:d[g]=d[g]?d[g]+", "+f:f)}),d};const $internals=Symbol("internals");function normalizeHeader(u){return u&&String(u).trim().toLowerCase()}function normalizeValue(u){return u===!1||u==null?u:utils$1.isArray(u)?u.map(normalizeValue):String(u)}function parseTokens(u){const d=Object.create(null),g=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=g.exec(u);)d[f[1]]=f[2];return d}const isValidHeaderName=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function matchHeaderValue(u,d,g,f,b){if(utils$1.isFunction(f))return f.call(this,d,g);if(b&&(d=g),!!utils$1.isString(d)){if(utils$1.isString(f))return d.indexOf(f)!==-1;if(utils$1.isRegExp(f))return f.test(d)}}function formatHeader(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(d,g,f)=>g.toUpperCase()+f)}function buildAccessors(u,d){const g=utils$1.toCamelCase(" "+d);["get","set","has"].forEach(f=>{Object.defineProperty(u,f+g,{value:function(b,m,y){return this[f].call(this,d,b,m,y)},configurable:!0})})}class AxiosHeaders{constructor(d){d&&this.set(d)}set(d,g,f){const b=this;function m(k,a,q){const w=normalizeHeader(a);if(!w)throw new Error("header name must be a non-empty string");const $=utils$1.findKey(b,w);(!$||b[$]===void 0||q===!0||q===void 0&&b[$]!==!1)&&(b[$||a]=normalizeValue(k))}const y=(k,a)=>utils$1.forEach(k,(q,w)=>m(q,w,a));if(utils$1.isPlainObject(d)||d instanceof this.constructor)y(d,g);else if(utils$1.isString(d)&&(d=d.trim())&&!isValidHeaderName(d))y(parseHeaders(d),g);else if(utils$1.isHeaders(d))for(const[k,a]of d.entries())m(a,k,f);else d!=null&&m(g,d,f);return this}get(d,g){if(d=normalizeHeader(d),d){const f=utils$1.findKey(this,d);if(f){const b=this[f];if(!g)return b;if(g===!0)return parseTokens(b);if(utils$1.isFunction(g))return g.call(this,b,f);if(utils$1.isRegExp(g))return g.exec(b);throw new TypeError("parser must be boolean|regexp|function")}}}has(d,g){if(d=normalizeHeader(d),d){const f=utils$1.findKey(this,d);return!!(f&&this[f]!==void 0&&(!g||matchHeaderValue(this,this[f],f,g)))}return!1}delete(d,g){const f=this;let b=!1;function m(y){if(y=normalizeHeader(y),y){const k=utils$1.findKey(f,y);k&&(!g||matchHeaderValue(f,f[k],k,g))&&(delete f[k],b=!0)}}return utils$1.isArray(d)?d.forEach(m):m(d),b}clear(d){const g=Object.keys(this);let f=g.length,b=!1;for(;f--;){const m=g[f];(!d||matchHeaderValue(this,this[m],m,d,!0))&&(delete this[m],b=!0)}return b}normalize(d){const g=this,f={};return utils$1.forEach(this,(b,m)=>{const y=utils$1.findKey(f,m);if(y){g[y]=normalizeValue(b),delete g[m];return}const k=d?formatHeader(m):String(m).trim();k!==m&&delete g[m],g[k]=normalizeValue(b),f[k]=!0}),this}concat(...d){return this.constructor.concat(this,...d)}toJSON(d){const g=Object.create(null);return utils$1.forEach(this,(f,b)=>{f!=null&&f!==!1&&(g[b]=d&&utils$1.isArray(f)?f.join(", "):f)}),g}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([d,g])=>d+": "+g).join(`
|
|
30
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(d){return d instanceof this?d:new this(d)}static concat(d,...g){const f=new this(d);return g.forEach(b=>f.set(b)),f}static accessor(d){const f=(this[$internals]=this[$internals]={accessors:{}}).accessors,b=this.prototype;function m(y){const k=normalizeHeader(y);f[k]||(buildAccessors(b,y),f[k]=!0)}return utils$1.isArray(d)?d.forEach(m):m(d),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:u},d)=>{let g=d[0].toUpperCase()+d.slice(1);return{get:()=>u,set(f){this[g]=f}}});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;function transformData(u,d){const g=this||defaults$2,f=d||g,b=AxiosHeaders$1.from(f.headers);let m=f.data;return utils$1.forEach(u,function(k){m=k.call(g,m,b.normalize(),d?d.status:void 0)}),b.normalize(),m}function isCancel(u){return!!(u&&u.__CANCEL__)}function CanceledError(u,d,g){AxiosError.call(this,u==null?"canceled":u,AxiosError.ERR_CANCELED,d,g),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(u,d,g){const f=g.config.validateStatus;!g.status||!f||f(g.status)?u(g):d(new AxiosError("Request failed with status code "+g.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(g.status/100)-4],g.config,g.request,g))}function parseProtocol(u){const d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return d&&d[1]||""}function speedometer(u,d){u=u||10;const g=new Array(u),f=new Array(u);let b=0,m=0,y;return d=d!==void 0?d:1e3,function(a){const q=Date.now(),w=f[m];y||(y=q),g[b]=a,f[b]=q;let $=m,Q=0;for(;$!==b;)Q+=g[$++],$=$%u;if(b=(b+1)%u,b===m&&(m=(m+1)%u),q-y<d)return;const C=w&&q-w;return C?Math.round(Q*1e3/C):void 0}}function throttle(u,d){let g=0,f=1e3/d,b,m;const y=(q,w=Date.now())=>{g=w,b=null,m&&(clearTimeout(m),m=null),u.apply(null,q)};return[(...q)=>{const w=Date.now(),$=w-g;$>=f?y(q,w):(b=q,m||(m=setTimeout(()=>{m=null,y(b)},f-$)))},()=>b&&y(b)]}const progressEventReducer=(u,d,g=3)=>{let f=0;const b=speedometer(50,250);return throttle(m=>{const y=m.loaded,k=m.lengthComputable?m.total:void 0,a=y-f,q=b(a),w=y<=k;f=y;const $={loaded:y,total:k,progress:k?y/k:void 0,bytes:a,rate:q||void 0,estimated:q&&k&&w?(k-y)/q:void 0,event:m,lengthComputable:k!=null,[d?"download":"upload"]:!0};u($)},g)},progressEventDecorator=(u,d)=>{const g=u!=null;return[f=>d[0]({lengthComputable:g,total:u,loaded:f}),d[1]]},asyncDecorator=u=>(...d)=>utils$1.asap(()=>u(...d));var isURLSameOrigin=platform.hasStandardBrowserEnv?((u,d)=>g=>(g=new URL(g,platform.origin),u.protocol===g.protocol&&u.host===g.host&&(d||u.port===g.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(u,d,g,f,b,m){const y=[u+"="+encodeURIComponent(d)];utils$1.isNumber(g)&&y.push("expires="+new Date(g).toGMTString()),utils$1.isString(f)&&y.push("path="+f),utils$1.isString(b)&&y.push("domain="+b),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(u){const d=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function combineURLs(u,d){return d?u.replace(/\/?\/$/,"")+"/"+d.replace(/^\/+/,""):u}function buildFullPath(u,d){return u&&!isAbsoluteURL(d)?combineURLs(u,d):d}const headersToObject=u=>u instanceof AxiosHeaders$1?{...u}:u;function mergeConfig(u,d){d=d||{};const g={};function f(q,w,$,Q){return utils$1.isPlainObject(q)&&utils$1.isPlainObject(w)?utils$1.merge.call({caseless:Q},q,w):utils$1.isPlainObject(w)?utils$1.merge({},w):utils$1.isArray(w)?w.slice():w}function b(q,w,$,Q){if(utils$1.isUndefined(w)){if(!utils$1.isUndefined(q))return f(void 0,q,$,Q)}else return f(q,w,$,Q)}function m(q,w){if(!utils$1.isUndefined(w))return f(void 0,w)}function y(q,w){if(utils$1.isUndefined(w)){if(!utils$1.isUndefined(q))return f(void 0,q)}else return f(void 0,w)}function k(q,w,$){if($ in d)return f(q,w);if($ in u)return f(void 0,q)}const a={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:k,headers:(q,w,$)=>b(headersToObject(q),headersToObject(w),$,!0)};return utils$1.forEach(Object.keys(Object.assign({},u,d)),function(w){const $=a[w]||b,Q=$(u[w],d[w],w);utils$1.isUndefined(Q)&&$!==k||(g[w]=Q)}),g}var resolveConfig=u=>{const d=mergeConfig({},u);let{data:g,withXSRFToken:f,xsrfHeaderName:b,xsrfCookieName:m,headers:y,auth:k}=d;d.headers=y=AxiosHeaders$1.from(y),d.url=buildURL(buildFullPath(d.baseURL,d.url),u.params,u.paramsSerializer),k&&y.set("Authorization","Basic "+btoa((k.username||"")+":"+(k.password?unescape(encodeURIComponent(k.password)):"")));let a;if(utils$1.isFormData(g)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((a=y.getContentType())!==!1){const[q,...w]=a?a.split(";").map($=>$.trim()).filter(Boolean):[];y.setContentType([q||"multipart/form-data",...w].join("; "))}}if(platform.hasStandardBrowserEnv&&(f&&utils$1.isFunction(f)&&(f=f(d)),f||f!==!1&&isURLSameOrigin(d.url))){const q=b&&m&&cookies.read(m);q&&y.set(b,q)}return d};const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined";var xhrAdapter=isXHRAdapterSupported&&function(u){return new Promise(function(g,f){const b=resolveConfig(u);let m=b.data;const y=AxiosHeaders$1.from(b.headers).normalize();let{responseType:k,onUploadProgress:a,onDownloadProgress:q}=b,w,$,Q,C,v;function J(){C&&C(),v&&v(),b.cancelToken&&b.cancelToken.unsubscribe(w),b.signal&&b.signal.removeEventListener("abort",w)}let ae=new XMLHttpRequest;ae.open(b.method.toUpperCase(),b.url,!0),ae.timeout=b.timeout;function H(){if(!ae)return;const G=AxiosHeaders$1.from("getAllResponseHeaders"in ae&&ae.getAllResponseHeaders()),L={data:!k||k==="text"||k==="json"?ae.responseText:ae.response,status:ae.status,statusText:ae.statusText,headers:G,config:u,request:ae};settle(function(T){g(T),J()},function(T){f(T),J()},L),ae=null}"onloadend"in ae?ae.onloadend=H:ae.onreadystatechange=function(){!ae||ae.readyState!==4||ae.status===0&&!(ae.responseURL&&ae.responseURL.indexOf("file:")===0)||setTimeout(H)},ae.onabort=function(){!ae||(f(new AxiosError("Request aborted",AxiosError.ECONNABORTED,u,ae)),ae=null)},ae.onerror=function(){f(new AxiosError("Network Error",AxiosError.ERR_NETWORK,u,ae)),ae=null},ae.ontimeout=function(){let j=b.timeout?"timeout of "+b.timeout+"ms exceeded":"timeout exceeded";const L=b.transitional||transitionalDefaults;b.timeoutErrorMessage&&(j=b.timeoutErrorMessage),f(new AxiosError(j,L.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,u,ae)),ae=null},m===void 0&&y.setContentType(null),"setRequestHeader"in ae&&utils$1.forEach(y.toJSON(),function(j,L){ae.setRequestHeader(L,j)}),utils$1.isUndefined(b.withCredentials)||(ae.withCredentials=!!b.withCredentials),k&&k!=="json"&&(ae.responseType=b.responseType),q&&([Q,v]=progressEventReducer(q,!0),ae.addEventListener("progress",Q)),a&&ae.upload&&([$,C]=progressEventReducer(a),ae.upload.addEventListener("progress",$),ae.upload.addEventListener("loadend",C)),(b.cancelToken||b.signal)&&(w=G=>{!ae||(f(!G||G.type?new CanceledError(null,u,ae):G),ae.abort(),ae=null)},b.cancelToken&&b.cancelToken.subscribe(w),b.signal&&(b.signal.aborted?w():b.signal.addEventListener("abort",w)));const Y=parseProtocol(b.url);if(Y&&platform.protocols.indexOf(Y)===-1){f(new AxiosError("Unsupported protocol "+Y+":",AxiosError.ERR_BAD_REQUEST,u));return}ae.send(m||null)})};const composeSignals=(u,d)=>{const{length:g}=u=u?u.filter(Boolean):[];if(d||g){let f=new AbortController,b;const m=function(q){if(!b){b=!0,k();const w=q instanceof Error?q:this.reason;f.abort(w instanceof AxiosError?w:new CanceledError(w instanceof Error?w.message:w))}};let y=d&&setTimeout(()=>{y=null,m(new AxiosError(`timeout ${d} of ms exceeded`,AxiosError.ETIMEDOUT))},d);const k=()=>{u&&(y&&clearTimeout(y),y=null,u.forEach(q=>{q.unsubscribe?q.unsubscribe(m):q.removeEventListener("abort",m)}),u=null)};u.forEach(q=>q.addEventListener("abort",m));const{signal:a}=f;return a.unsubscribe=()=>utils$1.asap(k),a}};var composeSignals$1=composeSignals;const streamChunk=function*(u,d){let g=u.byteLength;if(!d||g<d){yield u;return}let f=0,b;for(;f<g;)b=f+d,yield u.slice(f,b),f=b},readBytes=async function*(u,d){for await(const g of readStream(u))yield*streamChunk(g,d)},readStream=async function*(u){if(u[Symbol.asyncIterator]){yield*u;return}const d=u.getReader();try{for(;;){const{done:g,value:f}=await d.read();if(g)break;yield f}}finally{await d.cancel()}},trackStream=(u,d,g,f)=>{const b=readBytes(u,d);let m=0,y,k=a=>{y||(y=!0,f&&f(a))};return new ReadableStream({async pull(a){try{const{done:q,value:w}=await b.next();if(q){k(),a.close();return}let $=w.byteLength;if(g){let Q=m+=$;g(Q)}a.enqueue(new Uint8Array(w))}catch(q){throw k(q),q}},cancel(a){return k(a),b.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(u=>d=>u.encode(d))(new TextEncoder):async u=>new Uint8Array(await new Response(u).arrayBuffer())),test=(u,...d)=>{try{return!!u(...d)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let u=!1;const d=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!d}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(u=>u.body)};isFetchSupported&&(u=>{["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!resolvers[d]&&(resolvers[d]=utils$1.isFunction(u[d])?g=>g[d]():(g,f)=>{throw new AxiosError(`Response type '${d}' is not supported`,AxiosError.ERR_NOT_SUPPORT,f)})})})(new Response);const getBodyLength=async u=>{if(u==null)return 0;if(utils$1.isBlob(u))return u.size;if(utils$1.isSpecCompliantForm(u))return(await new Request(platform.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(u)||utils$1.isArrayBuffer(u))return u.byteLength;if(utils$1.isURLSearchParams(u)&&(u=u+""),utils$1.isString(u))return(await encodeText(u)).byteLength},resolveBodyLength=async(u,d)=>{const g=utils$1.toFiniteNumber(u.getContentLength());return g==null?getBodyLength(d):g};var fetchAdapter=isFetchSupported&&(async u=>{let{url:d,method:g,data:f,signal:b,cancelToken:m,timeout:y,onDownloadProgress:k,onUploadProgress:a,responseType:q,headers:w,withCredentials:$="same-origin",fetchOptions:Q}=resolveConfig(u);q=q?(q+"").toLowerCase():"text";let C=composeSignals$1([b,m&&m.toAbortSignal()],y),v;const J=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let ae;try{if(a&&supportsRequestStream&&g!=="get"&&g!=="head"&&(ae=await resolveBodyLength(w,f))!==0){let L=new Request(d,{method:"POST",body:f,duplex:"half"}),R;if(utils$1.isFormData(f)&&(R=L.headers.get("content-type"))&&w.setContentType(R),L.body){const[T,O]=progressEventDecorator(ae,progressEventReducer(asyncDecorator(a)));f=trackStream(L.body,DEFAULT_CHUNK_SIZE,T,O)}}utils$1.isString($)||($=$?"include":"omit");const H="credentials"in Request.prototype;v=new Request(d,{...Q,signal:C,method:g.toUpperCase(),headers:w.normalize().toJSON(),body:f,duplex:"half",credentials:H?$:void 0});let Y=await fetch(v);const G=supportsResponseStream&&(q==="stream"||q==="response");if(supportsResponseStream&&(k||G&&J)){const L={};["status","statusText","headers"].forEach(P=>{L[P]=Y[P]});const R=utils$1.toFiniteNumber(Y.headers.get("content-length")),[T,O]=k&&progressEventDecorator(R,progressEventReducer(asyncDecorator(k),!0))||[];Y=new Response(trackStream(Y.body,DEFAULT_CHUNK_SIZE,T,()=>{O&&O(),J&&J()}),L)}q=q||"text";let j=await resolvers[utils$1.findKey(resolvers,q)||"text"](Y,u);return!G&&J&&J(),await new Promise((L,R)=>{settle(L,R,{data:j,headers:AxiosHeaders$1.from(Y.headers),status:Y.status,statusText:Y.statusText,config:u,request:v})})}catch(H){throw J&&J(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,u,v),{cause:H.cause||H}):AxiosError.from(H,H&&H.code,u,v)}});const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(u,d)=>{if(u){try{Object.defineProperty(u,"name",{value:d})}catch{}Object.defineProperty(u,"adapterName",{value:d})}});const renderReason=u=>`- ${u}`,isResolvedHandle=u=>utils$1.isFunction(u)||u===null||u===!1;var adapters={getAdapter:u=>{u=utils$1.isArray(u)?u:[u];const{length:d}=u;let g,f;const b={};for(let m=0;m<d;m++){g=u[m];let y;if(f=g,!isResolvedHandle(g)&&(f=knownAdapters[(y=String(g)).toLowerCase()],f===void 0))throw new AxiosError(`Unknown adapter '${y}'`);if(f)break;b[y||"#"+m]=f}if(!f){const m=Object.entries(b).map(([k,a])=>`adapter ${k} `+(a===!1?"is not supported by the environment":"is not available in the build"));let y=d?m.length>1?`since :
|
|
31
|
+
`+m.map(renderReason).join(`
|
|
32
|
+
`):" "+renderReason(m[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return f},adapters:knownAdapters};function throwIfCancellationRequested(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new CanceledError(null,u)}function dispatchRequest(u){return throwIfCancellationRequested(u),u.headers=AxiosHeaders$1.from(u.headers),u.data=transformData.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(u.adapter||defaults$2.adapter)(u).then(function(f){return throwIfCancellationRequested(u),f.data=transformData.call(u,u.transformResponse,f),f.headers=AxiosHeaders$1.from(f.headers),f},function(f){return isCancel(f)||(throwIfCancellationRequested(u),f&&f.response&&(f.response.data=transformData.call(u,u.transformResponse,f.response),f.response.headers=AxiosHeaders$1.from(f.response.headers))),Promise.reject(f)})}const VERSION="1.7.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach((u,d)=>{validators$1[u]=function(f){return typeof f===u||"a"+(d<1?"n ":" ")+u}});const deprecatedWarnings={};validators$1.transitional=function(d,g,f){function b(m,y){return"[Axios v"+VERSION+"] Transitional option '"+m+"'"+y+(f?". "+f:"")}return(m,y,k)=>{if(d===!1)throw new AxiosError(b(y," has been removed"+(g?" in "+g:"")),AxiosError.ERR_DEPRECATED);return g&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0,console.warn(b(y," has been deprecated since v"+g+" and will be removed in the near future"))),d?d(m,y,k):!0}};validators$1.spelling=function(d){return(g,f)=>(console.warn(`${f} is likely a misspelling of ${d}`),!0)};function assertOptions(u,d,g){if(typeof u!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const f=Object.keys(u);let b=f.length;for(;b-- >0;){const m=f[b],y=d[m];if(y){const k=u[m],a=k===void 0||y(k,m,u);if(a!==!0)throw new AxiosError("option "+m+" must be "+a,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(g!==!0)throw new AxiosError("Unknown option "+m,AxiosError.ERR_BAD_OPTION)}}var validator={assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(d){this.defaults=d,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(d,g){try{return await this._request(d,g)}catch(f){if(f instanceof Error){let b={};Error.captureStackTrace?Error.captureStackTrace(b):b=new Error;const m=b.stack?b.stack.replace(/^.+\n/,""):"";try{f.stack?m&&!String(f.stack).endsWith(m.replace(/^.+\n.+\n/,""))&&(f.stack+=`
|
|
33
|
+
`+m):f.stack=m}catch{}}throw f}}_request(d,g){typeof d=="string"?(g=g||{},g.url=d):g=d||{},g=mergeConfig(this.defaults,g);const{transitional:f,paramsSerializer:b,headers:m}=g;f!==void 0&&validator.assertOptions(f,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),b!=null&&(utils$1.isFunction(b)?g.paramsSerializer={serialize:b}:validator.assertOptions(b,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(g,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),g.method=(g.method||this.defaults.method||"get").toLowerCase();let y=m&&utils$1.merge(m.common,m[g.method]);m&&utils$1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete m[v]}),g.headers=AxiosHeaders$1.concat(y,m);const k=[];let a=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(g)===!1||(a=a&&J.synchronous,k.unshift(J.fulfilled,J.rejected))});const q=[];this.interceptors.response.forEach(function(J){q.push(J.fulfilled,J.rejected)});let w,$=0,Q;if(!a){const v=[dispatchRequest.bind(this),void 0];for(v.unshift.apply(v,k),v.push.apply(v,q),Q=v.length,w=Promise.resolve(g);$<Q;)w=w.then(v[$++],v[$++]);return w}Q=k.length;let C=g;for($=0;$<Q;){const v=k[$++],J=k[$++];try{C=v(C)}catch(ae){J.call(this,ae);break}}try{w=dispatchRequest.call(this,C)}catch(v){return Promise.reject(v)}for($=0,Q=q.length;$<Q;)w=w.then(q[$++],q[$++]);return w}getUri(d){d=mergeConfig(this.defaults,d);const g=buildFullPath(d.baseURL,d.url);return buildURL(g,d.params,d.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(d){Axios.prototype[d]=function(g,f){return this.request(mergeConfig(f||{},{method:d,url:g,data:(f||{}).data}))}});utils$1.forEach(["post","put","patch"],function(d){function g(f){return function(m,y,k){return this.request(mergeConfig(k||{},{method:d,headers:f?{"Content-Type":"multipart/form-data"}:{},url:m,data:y}))}}Axios.prototype[d]=g(),Axios.prototype[d+"Form"]=g(!0)});var Axios$1=Axios;class CancelToken{constructor(d){if(typeof d!="function")throw new TypeError("executor must be a function.");let g;this.promise=new Promise(function(m){g=m});const f=this;this.promise.then(b=>{if(!f._listeners)return;let m=f._listeners.length;for(;m-- >0;)f._listeners[m](b);f._listeners=null}),this.promise.then=b=>{let m;const y=new Promise(k=>{f.subscribe(k),m=k}).then(b);return y.cancel=function(){f.unsubscribe(m)},y},d(function(m,y,k){f.reason||(f.reason=new CanceledError(m,y,k),g(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(d){if(this.reason){d(this.reason);return}this._listeners?this._listeners.push(d):this._listeners=[d]}unsubscribe(d){if(!this._listeners)return;const g=this._listeners.indexOf(d);g!==-1&&this._listeners.splice(g,1)}toAbortSignal(){const d=new AbortController,g=f=>{d.abort(f)};return this.subscribe(g),d.signal.unsubscribe=()=>this.unsubscribe(g),d.signal}static source(){let d;return{token:new CancelToken(function(b){d=b}),cancel:d}}}var CancelToken$1=CancelToken;function spread(u){return function(g){return u.apply(null,g)}}function isAxiosError(u){return utils$1.isObject(u)&&u.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([u,d])=>{HttpStatusCode[d]=u});var HttpStatusCode$1=HttpStatusCode;function createInstance(u){const d=new Axios$1(u),g=bind(Axios$1.prototype.request,d);return utils$1.extend(g,Axios$1.prototype,d,{allOwnKeys:!0}),utils$1.extend(g,d,null,{allOwnKeys:!0}),g.create=function(b){return createInstance(mergeConfig(u,b))},g}const axios$2=createInstance(defaults$2);axios$2.Axios=Axios$1;axios$2.CanceledError=CanceledError;axios$2.CancelToken=CancelToken$1;axios$2.isCancel=isCancel;axios$2.VERSION=VERSION;axios$2.toFormData=toFormData;axios$2.AxiosError=AxiosError;axios$2.Cancel=axios$2.CanceledError;axios$2.all=function(d){return Promise.all(d)};axios$2.spread=spread;axios$2.isAxiosError=isAxiosError;axios$2.mergeConfig=mergeConfig;axios$2.AxiosHeaders=AxiosHeaders$1;axios$2.formToJSON=u=>formDataToJSON(utils$1.isHTMLForm(u)?new FormData(u):u);axios$2.getAdapter=adapters.getAdapter;axios$2.HttpStatusCode=HttpStatusCode$1;axios$2.default=axios$2;var axios$3=axios$2;let url=window.location.origin;const api=axios$3.create({baseURL:`${url}/api`});var axios=({app:u})=>{u.config.globalProperties.$axios=axios$3,u.config.globalProperties.$api=api},axios$1=Object.freeze(Object.defineProperty({__proto__:null,default:axios,api},Symbol.toStringTag,{value:"Module"}));const useMainStore=defineStore("main",{state:()=>({apiReadonly:!0,auth:{},config:{},version:"",showHiddenFiles:!1,buckets:[]}),getters:{serverUrl(){return window.location.origin}},actions:{async loadServerConfigs(u,d,g=!1){try{const f=await api.get("/server/config",{validateStatus:m=>m>=200&&m<300});this.apiReadonly=f.data.config.readonly,this.config=f.data.config,this.auth=f.data.auth,this.version=f.data.version,this.showHiddenFiles=f.data.config.showHiddenFiles,this.buckets=f.data.buckets;const b=new URL(window.location.href);return b.searchParams.get("next")?await u.replace(b.searchParams.get("next")):(b.pathname==="/"||b.pathname==="/auth/login")&&await u.push({name:"files-home",params:{bucket:this.buckets[0].name}}),!0}catch(f){if(console.log(f),f.response.status===302){const b=f.response.headers.Location;b&&window.location.replace(b)}if(g){const b=await f.response.data;if(b==="Authentication error: Basic Auth required"){await u.push({name:"login",query:{next:u.currentRoute.value.fullPath}});return}d.notify({type:"negative",message:b,timeout:1e4})}else throw f}return!1}}}),ROOT_FOLDER="IA==";function mapFile(u,d){const g=new Date(u.uploaded);return{...u,hash:encode(u.key),nameHash:encode(u.key.replace(d,"")),name:u.key.replace(d,""),lastModified:timeSince(g),timestamp:g.getTime(),size:bytesToSize(u.size),sizeRaw:u.size,type:"file",icon:"article",color:"grey"}}const timeSince=u=>{const d=Math.floor((new Date-u)/1e3);let g=d/31536e3,f;return g>1||(g=d/2592e3,g>1)||(g=d/86400,g>1)?u.toLocaleDateString():(g=d/3600,g>1?(f=Math.floor(g),f+(f===1?" hour":" hours")):(g=d/60,g>1?(f=Math.floor(g),f+(f===1?" minute":" minutes")):(f=Math.floor(g),f+(f===1?" second":" seconds"))))},bytesToSize=u=>{const d=["Bytes","KB","MB","GB","TB"];if(u===0)return"0 Byte";const g=Number.parseInt(Math.floor(Math.log(u)/Math.log(1024)));return`${Math.round(u/1024**g,2)} ${d[g]}`},bytesToMegabytes=u=>Math.round(u/1024**2),encode=u=>(u&&u!=="/"&&u.startsWith("/")&&(u=u.slice(1)),btoa(unescape(encodeURIComponent(u)))),decode=u=>decodeURIComponent(escape(atob(u))),apiHandler={createFolder:(u,d)=>api.post(`/buckets/${d}/folder`,{key:encode(u)}),deleteObject:(u,d)=>api.post(`/buckets/${d}/delete`,{key:encode(u)}),downloadFile:(u,d,g,f,b)=>{const m={};return(g.downloadType==="objectUrl"||g.downloadType==="blob")&&(m.responseType="arraybuffer"),b&&(m.signal=b.signal),f&&(m.onDownloadProgress=f),api.get(`/buckets/${u}/${encode(d)}`,m)},headFile:async(u,d)=>{let g="";d.includes("/")&&(g=d.replace(d.split("/").pop(),""));const f=await api.get(`/buckets/${u}/${encode(d)}/head`);if(f.status===200)return mapFile(f.data,g)},renameObject:(u,d,g)=>api.post(`/buckets/${u}/move`,{oldKey:encode(d),newKey:encode(g)}),updateMetadata:async(u,d,g,f={})=>{let b="";d.includes("/")&&(b=d.replace(d.split("/").pop(),""));const m=await api.post(`/buckets/${u}/${encode(d)}`,{customMetadata:g,httpMetadata:f});if(m.status===200)return mapFile(m.data,b)},multipartCreate:(u,d,g)=>api.post(`/buckets/${g}/multipart/create`,null,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))}}),multipartComplete:(u,d,g,f,b)=>api.post(`/buckets/${g}/multipart/complete`,{key:encode(d),uploadId:b,parts:f}),multipartUpload:(u,d,g,f,b,m)=>api.post(`/buckets/${g}/multipart/upload`,b,{params:{key:encode(f),uploadId:u,partNumber:d},onUploadProgress:m,headers:{"Content-Type":"multipart/form-data"}}),uploadObjects:(u,d,g,f)=>api.post(`/buckets/${g}/upload`,u,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))},headers:{"Content-Type":"multipart/form-data"},onUploadProgress:f}),listObjects:async(u,d,g="/",f=null)=>await api.get(`/buckets/${u}?include=customMetadata&include=httpMetadata`,{params:{delimiter:g,prefix:d&&d!=="/"?encode(d):"",cursor:f}}),fetchFile:async(u,d,g="/")=>{const f=useMainStore();let b=!0,m=null;const y=[],k=[];for(;b;){const a=await apiHandler.listObjects(u,d,g,m);if(b=a.data.truncated,m=a.data.cursor,a.data.objects){const q=a.data.objects.filter(w=>!(w.key.endsWith("/")&&g!=="")&&w.key!==d).map(w=>mapFile(w,d)).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)y.push(w)}if(a.data.delimitedPrefixes){const q=a.data.delimitedPrefixes.map(w=>({name:w.replace(d,""),hash:encode(w.key),key:w,lastModified:"--",timestamp:0,size:"--",sizeRaw:0,type:"folder",icon:"folder",color:"orange"})).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)k.push(w)}}return[...k,...y]}},_sfc_main$i=defineComponent({name:"CreateFile",data:()=>({modal:!1,newFileName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFileName="",this.loading=!1},onSubmit:async function(){this.loading=!0;const u=new Blob([""],{type:"text/plain"});await apiHandler.uploadObjects(u,this.selectedFolder+this.newFileName,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFileName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$h(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New File Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFileName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFileName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFile=_export_sfc(_sfc_main$i,[["render",_sfc_render$h]]);const _sfc_main$h=defineComponent({name:"CreateFolder",data:()=>({modal:!1,newFolderName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFolderName="",this.loading=!1},onSubmit:async function(){this.loading=!0,await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFolderName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$g(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New Folder Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFolderName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFolderName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFolder=_export_sfc(_sfc_main$h,[["render",_sfc_render$g]]),LeftSidebar_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$g=defineComponent({name:"LeftSidebar",data:()=>({infoPopup:!1,updateAvailable:!1,latestVersion:""}),components:{CreateFolder,CreateFile},methods:{gotoEmail:function(){this.selectedApp!=="email"&&this.changeApp("email")},gotoFiles:function(){this.selectedApp!=="files"&&this.changeApp("files")},changeApp:function(u){this.$router.push({name:`${u}-home`,params:{bucket:this.selectedBucket}})},isUpdateAvailable:(u,d)=>{const g=u.split(".").map(Number),f=d.split(".").map(Number);return f[0]>g[0]?!0:f[0]<g[0]?!1:f[1]>g[1]?!0:f[1]<g[1]?!1:f[2]>g[2]}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},async mounted(){const u=await fetch("https://api.github.com/repos/G4brym/R2-Explorer/releases/latest");if(!u.ok)console.log("Unable to retrieve latest r2-explorer updates :("),console.log("Manually check them here: https://github.com/G4brym/R2-Explorer/releases");else{const g=(await u.json()).tag_name.replace("v","");this.isUpdateAvailable(this.mainStore.version,g)&&(this.latestVersion=g,this.updateAvailable=!0)}},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$9={class:"q-pa-md",style:{height:"100%"}},_hoisted_2$5={class:"flex column",style:{height:"100%"}};function _sfc_render$f(u,d,g,f,b,m){const y=resolveComponent("create-folder"),k=resolveComponent("create-file");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$5,[createVNode(QBtn,{color:"green",icon:"add",stack:"",class:"q-mb-lg",label:"New"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(QList,null,{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[0]||(d[0]=a=>u.$refs.createFile.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"note_add",size:"sm"}),d[6]||(d[6]=createTextVNode(" New File "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[1]||(d[1]=a=>u.$refs.createFolder.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"create_new_folder",size:"sm"}),d[7]||(d[7]=createTextVNode(" New Folder "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[2]||(d[2]=a=>u.$bus.emit("openFilesUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"upload_file",size:"sm"}),d[8]||(d[8]=createTextVNode(" Upload Files "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[3]||(d[3]=a=>u.$bus.emit("openFoldersUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"folder",size:"sm"}),d[9]||(d[9]=createTextVNode(" Upload Folders "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]])]),_:1})]),_:1})]),_:1}),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoFiles,color:"blue",icon:"folder_copy",label:"Files",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoEmail,color:"blue",icon:"email",label:"Email",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm q-mt-auto q-mb-0",onClick:d[4]||(d[4]=a=>u.infoPopup=!0),color:"secondary",icon:"question_mark",label:"Info",stack:""})])]),createVNode(QDialog,{modelValue:u.infoPopup,"onUpdate:modelValue":d[5]||(d[5]=a=>u.infoPopup=a),persistent:"","no-route-dismiss":""},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[10]||(d[10]=[createBaseVNode("div",{class:"text-h6"},"\u{1F389} Thank you for using R2-Explorer! \u{1F680}",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[d[19]||(d[19]=createTextVNode(" You are running version ")),createBaseVNode("b",null,toDisplayString(u.mainStore.version),1),d[20]||(d[20]=createBaseVNode("br",null,null,-1)),u.updateAvailable?(openBlock(),createElementBlock(Fragment,{key:0},[d[11]||(d[11]=createTextVNode(" Latest version is ")),createBaseVNode("b",null,toDisplayString(u.latestVersion),1),d[12]||(d[12]=createTextVNode(", learn how to ")),d[13]||(d[13]=createBaseVNode("a",{href:"https://r2explorer.dev/getting-started/updating-your-project/",target:"_blank"},"update your instance here",-1)),d[14]||(d[14]=createTextVNode(".")),d[15]||(d[15]=createBaseVNode("br",null,null,-1))],64)):createCommentVNode("",!0),d[21]||(d[21]=createBaseVNode("br",null,null,-1)),u.mainStore.auth?(openBlock(),createElementBlock(Fragment,{key:1},[d[16]||(d[16]=createBaseVNode("b",null,"Authentication",-1)),d[17]||(d[17]=createBaseVNode("br",null,null,-1)),createTextVNode(" Method: "+toDisplayString(u.mainStore.auth.type),1),d[18]||(d[18]=createBaseVNode("br",null,null,-1)),createTextVNode(" Username: "+toDisplayString(u.mainStore.auth.username),1)],64)):(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(" Not authenticated ")],64)),d[22]||(d[22]=createBaseVNode("br",null,null,-1)),d[23]||(d[23]=createBaseVNode("br",null,null,-1)),d[24]||(d[24]=createBaseVNode("b",null,"Server Configuration",-1)),d[25]||(d[25]=createBaseVNode("br",null,null,-1)),createTextVNode(" "+toDisplayString(JSON.stringify(u.mainStore.config,null,2)),1)]),_:1}),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"OK",color:"primary"},null,512),[[ClosePopup]])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{ref:"createFolder"},null,512),createVNode(k,{ref:"createFile"},null,512)],64)}var LeftSidebar=_export_sfc(_sfc_main$g,[["render",_sfc_render$f],["__scopeId","data-v-65a54291"]]),QTh=createComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=y=>{g("click",y)};return()=>{if(u.props===void 0)return h("th",{class:u.autoWidth===!0?"q-table--col-auto-width":"",onClick:m},hSlot(d.default));let y,k;const a=f.vnode.key;if(a){if(y=u.props.colsMap[a],y===void 0)return}else y=u.props.col;if(y.sortable===!0){const w=y.align==="right"?"unshift":"push";k=hUniqueSlot(d.default,[]),k[w](h(QIcon,{class:y.__iconClass,name:b.iconSet.table.arrowUp}))}else k=hSlot(d.default);const q={class:y.__thClass+(u.autoWidth===!0?" q-table--col-auto-width":""),style:y.headerStyle,onClick:w=>{y.sortable===!0&&u.props.sort(y),m(w)}};return h("th",q,k)}}});const insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24};var QSeparator=createComponent({name:"QSeparator",props:{...useDarkProps,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(u){const d=getCurrentInstance(),g=useDark(u,d.proxy.$q),f=computed(()=>u.vertical===!0?"vertical":"horizontal"),b=computed(()=>` q-separator--${f.value}`),m=computed(()=>u.inset!==!1?`${b.value}-${insetMap[u.inset]}`:""),y=computed(()=>`q-separator${b.value}${m.value}`+(u.color!==void 0?` bg-${u.color}`:"")+(g.value===!0?" q-separator--dark":"")),k=computed(()=>{const a={};if(u.size!==void 0&&(a[u.vertical===!0?"width":"height"]=u.size),u.spaced!==!1){const q=u.spaced===!0?`${margins.md}px`:u.spaced in margins?`${margins[u.spaced]}px`:u.spaced,w=u.vertical===!0?["Left","Right"]:["Top","Bottom"];a[`margin${w[0]}`]=a[`margin${w[1]}`]=q}return a});return()=>h("hr",{class:y.value,style:k.value,"aria-orientation":f.value})}});const separatorValues=["horizontal","vertical","cell","none"];var QMarkupTable=createComponent({name:"QMarkupTable",props:{...useDarkProps,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:u=>separatorValues.includes(u)}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>`q-markup-table q-table__container q-table__card q-table--${u.separator}-separator`+(f.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(u.dense===!0?" q-table--dense":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")+(u.square===!0?" q-table--square":"")+(u.wrapCells===!1?" q-table--no-wrap":""));return()=>h("div",{class:b.value},[h("table",{class:"q-table"},hSlot(d.default))])}});function getTableMiddle(u,d){return h("div",u,[h("table",{class:"q-table"},d)])}let rtlHasScrollBug=!1;{const u=document.createElement("div");u.setAttribute("dir","rtl"),Object.assign(u.style,{width:"1px",height:"1px",overflow:"auto"});const d=document.createElement("div");Object.assign(d.style,{width:"1000px",height:"1px"}),document.body.appendChild(u),u.appendChild(d),u.scrollLeft=-1e3,rtlHasScrollBug=u.scrollLeft>=0,u.remove()}const aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter,setOverflowAnchor=window.getComputedStyle(document.body).overflowAnchor===void 0?noop$3:function(u,d){u!==null&&(u._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(u._qOverflowAnimationFrame),u._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(u===null)return;u._qOverflowAnimationFrame=void 0;const g=u.children||[];filterProto.call(g,b=>b.dataset&&b.dataset.qVsAnchor!==void 0).forEach(b=>{delete b.dataset.qVsAnchor});const f=g[d];f&&f.dataset&&(f.dataset.qVsAnchor="")}))};function sumFn(u,d){return u+d}function getScrollDetails(u,d,g,f,b,m,y,k){const a=u===window?document.scrollingElement||document.documentElement:u,q=b===!0?"offsetWidth":"offsetHeight",w={scrollStart:0,scrollViewSize:-y-k,scrollMaxSize:0,offsetStart:-y,offsetEnd:-k};if(b===!0?(u===window?(w.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,w.scrollViewSize+=document.documentElement.clientWidth):(w.scrollStart=a.scrollLeft,w.scrollViewSize+=a.clientWidth),w.scrollMaxSize=a.scrollWidth,m===!0&&(w.scrollStart=(rtlHasScrollBug===!0?w.scrollMaxSize-w.scrollViewSize:0)-w.scrollStart)):(u===window?(w.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,w.scrollViewSize+=document.documentElement.clientHeight):(w.scrollStart=a.scrollTop,w.scrollViewSize+=a.clientHeight),w.scrollMaxSize=a.scrollHeight),g!==null)for(let $=g.previousElementSibling;$!==null;$=$.previousElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetStart+=$[q]);if(f!==null)for(let $=f.nextElementSibling;$!==null;$=$.nextElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetEnd+=$[q]);if(d!==u){const $=a.getBoundingClientRect(),Q=d.getBoundingClientRect();b===!0?(w.offsetStart+=Q.left-$.left,w.offsetEnd-=Q.width):(w.offsetStart+=Q.top-$.top,w.offsetEnd-=Q.height),u!==window&&(w.offsetStart+=w.scrollStart),w.offsetEnd+=w.scrollMaxSize-w.offsetStart}return w}function setScroll(u,d,g,f){d==="end"&&(d=(u===window?document.body:u)[g===!0?"scrollWidth":"scrollHeight"]),u===window?g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-d),window.scrollTo(d,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d):g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?u.scrollWidth-u.offsetWidth:0)-d),u.scrollLeft=d):u.scrollTop=d}function sumSize(u,d,g,f){if(g>=f)return 0;const b=d.length,m=Math.floor(g/aggBucketSize),y=Math.floor((f-1)/aggBucketSize)+1;let k=u.slice(m,y).reduce(sumFn,0);return g%aggBucketSize!==0&&(k-=d.slice(m*aggBucketSize,g).reduce(sumFn,0)),f%aggBucketSize!==0&&f!==b&&(k-=d.slice(f,y*aggBucketSize).reduce(sumFn,0)),k}const commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},commonVirtScrollPropsList=Object.keys(commonVirtScrollProps),useVirtualScrollProps={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...commonVirtScrollProps};function useVirtualScroll({virtualScrollLength:u,getVirtualScrollTarget:d,getVirtualScrollEl:g,virtualScrollItemSizeComputed:f}){const b=getCurrentInstance(),{props:m,emit:y,proxy:k}=b,{$q:a}=k;let q,w,$,Q=[],C;const v=ref(0),J=ref(0),ae=ref({}),H=ref(null),Y=ref(null),G=ref(null),j=ref({from:0,to:0}),L=computed(()=>m.tableColspan!==void 0?m.tableColspan:100);f===void 0&&(f=computed(()=>m.virtualScrollItemSize));const R=computed(()=>f.value+";"+m.virtualScrollHorizontal),T=computed(()=>R.value+";"+m.virtualScrollSliceRatioBefore+";"+m.virtualScrollSliceRatioAfter);watch(T,()=>{_()}),watch(R,O);function O(){E(w,!0)}function P(te){E(te===void 0?w:te)}function B(te,W){const re=d();if(re==null||re.nodeType===8)return;const ee=getScrollDetails(re,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);$!==ee.scrollViewSize&&_(ee.scrollViewSize),F(re,ee,Math.min(u.value-1,Math.max(0,parseInt(te,10)||0)),0,scrollToEdges.indexOf(W)!==-1?W:w!==-1&&te>w?"end":"start")}function M(){const te=d();if(te==null||te.nodeType===8)return;const W=getScrollDetails(te,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),re=u.value-1,ee=W.scrollMaxSize-W.offsetStart-W.offsetEnd-J.value;if(q===W.scrollStart)return;if(W.scrollMaxSize<=0){F(te,W,0,0);return}$!==W.scrollViewSize&&_(W.scrollViewSize),S(j.value.from);const X=Math.floor(W.scrollMaxSize-Math.max(W.scrollViewSize,W.offsetEnd)-Math.min(C[re],W.scrollViewSize/2));if(X>0&&Math.ceil(W.scrollStart)>=X){F(te,W,re,W.scrollMaxSize-W.offsetEnd-Q.reduce(sumFn,0));return}let K=0,Z=W.scrollStart-W.offsetStart,se=Z;if(Z<=ee&&Z+W.scrollViewSize>=v.value)Z-=v.value,K=j.value.from,se=Z;else for(let ie=0;Z>=Q[ie]&&K<re;ie++)Z-=Q[ie],K+=aggBucketSize;for(;Z>0&&K<re;)Z-=C[K],Z>-W.scrollViewSize?(K++,se=Z):se=C[K]+Z;F(te,W,K,se)}function F(te,W,re,ee,X){const K=typeof X=="string"&&X.indexOf("-force")!==-1,Z=K===!0?X.replace("-force",""):X,se=Z!==void 0?Z:"start";let ie=Math.max(0,re-ae.value[se]),de=ie+ae.value.total;de>u.value&&(de=u.value,ie=Math.max(0,de-ae.value.total)),q=W.scrollStart;const ce=ie!==j.value.from||de!==j.value.to;if(ce===!1&&Z===void 0){N(re);return}const{activeElement:he}=document,oe=G.value;ce===!0&&oe!==null&&oe!==he&&oe.contains(he)===!0&&(oe.addEventListener("focusout",A),setTimeout(()=>{oe!==null&&oe.removeEventListener("focusout",A)})),setOverflowAnchor(oe,re-ie);const ne=Z!==void 0?C.slice(ie,re).reduce(sumFn,0):0;if(ce===!0){const ue=de>=j.value.from&&ie<=j.value.to?j.value.to:de;j.value={from:ie,to:ue},v.value=sumSize(Q,C,0,ie),J.value=sumSize(Q,C,de,u.value),requestAnimationFrame(()=>{j.value.to!==de&&q===W.scrollStart&&(j.value={from:j.value.from,to:de},J.value=sumSize(Q,C,de,u.value))})}requestAnimationFrame(()=>{if(q!==W.scrollStart)return;ce===!0&&S(ie);const ue=C.slice(ie,re).reduce(sumFn,0),le=ue+W.offsetStart+v.value,fe=le+C[re];let pe=le+ee;if(Z!==void 0){const ve=ue-ne,xe=W.scrollStart+ve;pe=K!==!0&&xe<le&&fe<xe+W.scrollViewSize?xe:Z==="end"?fe-W.scrollViewSize:le-(Z==="start"?0:Math.round((W.scrollViewSize-C[re])/2))}q=pe,setScroll(te,pe,m.virtualScrollHorizontal,a.lang.rtl),N(re)})}function S(te){const W=G.value;if(W){const re=filterProto.call(W.children,ie=>ie.classList&&ie.classList.contains("q-virtual-scroll--skip")===!1),ee=re.length,X=m.virtualScrollHorizontal===!0?ie=>ie.getBoundingClientRect().width:ie=>ie.offsetHeight;let K=te,Z,se;for(let ie=0;ie<ee;){for(Z=X(re[ie]),ie++;ie<ee&&re[ie].classList.contains("q-virtual-scroll--with-prev")===!0;)Z+=X(re[ie]),ie++;se=Z-C[K],se!==0&&(C[K]+=se,Q[Math.floor(K/aggBucketSize)]+=se),K++}}}function A(){G.value!==null&&G.value!==void 0&&G.value.focus()}function E(te,W){const re=1*f.value;(W===!0||Array.isArray(C)===!1)&&(C=[]);const ee=C.length;C.length=u.value;for(let K=u.value-1;K>=ee;K--)C[K]=re;const X=Math.floor((u.value-1)/aggBucketSize);Q=[];for(let K=0;K<=X;K++){let Z=0;const se=Math.min((K+1)*aggBucketSize,u.value);for(let ie=K*aggBucketSize;ie<se;ie++)Z+=C[ie];Q.push(Z)}w=-1,q=void 0,v.value=sumSize(Q,C,0,j.value.from),J.value=sumSize(Q,C,j.value.to,u.value),te>=0?(S(j.value.from),nextTick(()=>{B(te)})):U()}function _(te){if(te===void 0&&typeof window!="undefined"){const Z=d();Z!=null&&Z.nodeType!==8&&(te=getScrollDetails(Z,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}$=te;const W=parseFloat(m.virtualScrollSliceRatioBefore)||0,re=parseFloat(m.virtualScrollSliceRatioAfter)||0,ee=1+W+re,X=te===void 0||te<=0?1:Math.ceil(te/f.value),K=Math.max(1,X,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/ee));ae.value={total:Math.ceil(K*ee),start:Math.ceil(K*W),center:Math.ceil(K*(.5+W)),end:Math.ceil(K*(1+W)),view:X}}function D(te,W){const re=m.virtualScrollHorizontal===!0?"width":"height",ee={["--q-virtual-scroll-item-"+re]:f.value+"px"};return[te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H},[h("tr",[h("td",{style:{[re]:`${v.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[re]:`${v.value}px`,...ee}}),h(te,{class:"q-virtual-scroll__content",key:"content",ref:G,tabindex:-1},W.flat()),te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y},[h("tr",[h("td",{style:{[re]:`${J.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y,style:{[re]:`${J.value}px`,...ee}})]}function N(te){w!==te&&(m.onVirtualScroll!==void 0&&y("virtualScroll",{index:te,from:j.value.from,to:j.value.to-1,direction:te<w?"decrease":"increase",ref:k}),w=te)}_();const U=debounce(M,a.platform.is.ios===!0?120:35);onBeforeMount(()=>{_()});let z=!1;return onDeactivated(()=>{z=!0}),onActivated(()=>{if(z!==!0)return;const te=d();q!==void 0&&te!==void 0&&te!==null&&te.nodeType!==8?setScroll(te,q,m.virtualScrollHorizontal,a.lang.rtl):B(w)}),onBeforeUnmount(()=>{U.cancel()}),Object.assign(k,{scrollTo:B,reset:O,refresh:P}),{virtualScrollSliceRange:j,virtualScrollSliceSizeComputed:ae,setVirtualScrollSize:_,onVirtualScrollEvt:U,localResetVirtualScroll:E,padVirtualScroll:D,scrollTo:B,reset:O,refresh:P}}const comps={list:QList,table:QMarkupTable},typeOptions=["list","table","__qtable"];var QVirtualScroll=createComponent({name:"QVirtualScroll",props:{...useVirtualScrollProps,type:{type:String,default:"list",validator:u=>typeOptions.includes(u)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:scrollTargetProp},setup(u,{slots:d,attrs:g}){let f;const b=ref(null),m=computed(()=>u.itemsSize>=0&&u.itemsFn!==void 0?parseInt(u.itemsSize,10):Array.isArray(u.items)?u.items.length:0),{virtualScrollSliceRange:y,localResetVirtualScroll:k,padVirtualScroll:a,onVirtualScrollEvt:q}=useVirtualScroll({virtualScrollLength:m,getVirtualScrollTarget:v,getVirtualScrollEl:C}),w=computed(()=>{if(m.value===0)return[];const Y=(G,j)=>({index:y.value.from+j,item:G});return u.itemsFn===void 0?u.items.slice(y.value.from,y.value.to).map(Y):u.itemsFn(y.value.from,y.value.to-y.value.from).map(Y)}),$=computed(()=>"q-virtual-scroll q-virtual-scroll"+(u.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(u.scrollTarget!==void 0?"":" scroll")),Q=computed(()=>u.scrollTarget!==void 0?{}:{tabindex:0});watch(m,()=>{k()}),watch(()=>u.scrollTarget,()=>{ae(),J()});function C(){return b.value.$el||b.value}function v(){return f}function J(){f=getScrollTarget(C(),u.scrollTarget),f.addEventListener("scroll",q,listenOpts.passive)}function ae(){f!==void 0&&(f.removeEventListener("scroll",q,listenOpts.passive),f=void 0)}function H(){let Y=a(u.type==="list"?"div":"tbody",w.value.map(d.default));return d.before!==void 0&&(Y=d.before().concat(Y)),hMergeSlot(d.after,Y)}return onBeforeMount(()=>{k()}),onMounted(()=>{J()}),onActivated(()=>{J()}),onDeactivated(()=>{ae()}),onBeforeUnmount(()=>{ae()}),()=>{if(d.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return u.type==="__qtable"?getTableMiddle({ref:b,class:"q-table__middle "+$.value},H()):h(comps[u.type],{...g,ref:b,class:[g.class,$.value],...Q.value},H)}}}),QField=createComponent({name:"QField",inheritAttrs:!1,props:{...useFieldProps,tag:{type:String,default:"label"}},emits:useFieldEmits,setup(){return useField(useFieldState({tagProp:!0}))}});const defaultSizes$1={xs:8,sm:10,md:14,lg:20,xl:24};var QChip=createComponent({name:"QChip",props:{...useDarkProps,...useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),m=useSize(u,defaultSizes$1),y=computed(()=>u.selected===!0||u.icon!==void 0),k=computed(()=>u.selected===!0?u.iconSelected||f.iconSet.chip.selected:u.icon),a=computed(()=>u.iconRemove||f.iconSet.chip.remove),q=computed(()=>u.disable===!1&&(u.clickable===!0||u.selected!==null)),w=computed(()=>{const ae=u.outline===!0&&u.color||u.textColor;return"q-chip row inline no-wrap items-center"+(u.outline===!1&&u.color!==void 0?` bg-${u.color}`:"")+(ae?` text-${ae} q-chip--colored`:"")+(u.disable===!0?" disabled":"")+(u.dense===!0?" q-chip--dense":"")+(u.outline===!0?" q-chip--outline":"")+(u.selected===!0?" q-chip--selected":"")+(q.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(u.square===!0?" q-chip--square":"")+(b.value===!0?" q-chip--dark q-dark":"")}),$=computed(()=>{const ae=u.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:u.tabindex||0},H={...ae,role:"button","aria-hidden":"false","aria-label":u.removeAriaLabel||f.lang.label.remove};return{chip:ae,remove:H}});function Q(ae){ae.keyCode===13&&C(ae)}function C(ae){u.disable||(g("update:selected",!u.selected),g("click",ae))}function v(ae){(ae.keyCode===void 0||ae.keyCode===13)&&(stopAndPrevent(ae),u.disable===!1&&(g("update:modelValue",!1),g("remove")))}function J(){const ae=[];q.value===!0&&ae.push(h("div",{class:"q-focus-helper"})),y.value===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--left",name:k.value}));const H=u.label!==void 0?[h("div",{class:"ellipsis"},[u.label])]:void 0;return ae.push(h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},hMergeSlotSafely(d.default,H))),u.iconRight&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--right",name:u.iconRight})),u.removable===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:a.value,...$.value.remove,onClick:v,onKeyup:v})),ae}return()=>{if(u.modelValue===!1)return;const ae={class:w.value,style:m.value};return q.value===!0&&Object.assign(ae,$.value.chip,{onClick:C,onKeyup:Q}),hDir("div",ae,J(),"ripple",u.ripple!==!1&&u.disable!==!0,()=>[[Ripple,u.ripple]])}}});const validateNewValueMode=u=>["add","add-unique","toggle"].includes(u),reEscapeList=".*+?^${}()|[]\\",fieldPropsList=Object.keys(useFieldProps);function getPropValueFn(u,d){if(typeof u=="function")return u;const g=u!==void 0?u:d;return f=>f!==null&&typeof f=="object"&&g in f?f[g]:f}var QSelect=createComponent({name:"QSelect",inheritAttrs:!1,props:{...useVirtualScrollProps,...useFormProps,...useFieldProps,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:u=>["default","menu","dialog"].includes(u),default:"default"},virtualScrollItemSize:useVirtualScrollProps.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...useFieldEmits,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m=ref(!1),y=ref(!1),k=ref(-1),a=ref(""),q=ref(!1),w=ref(!1);let $=null,Q=null,C,v,J,ae=null,H,Y,G,j;const L=ref(null),R=ref(null),T=ref(null),O=ref(null),P=ref(null),B=useFormInputNameAttr(u),M=useKeyComposition(Re),F=computed(()=>Array.isArray(u.options)?u.options.length:0),S=computed(()=>u.virtualScrollItemSize===void 0?u.optionsDense===!0?24:48:u.virtualScrollItemSize),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:E,localResetVirtualScroll:_,padVirtualScroll:D,onVirtualScrollEvt:N,scrollTo:U,setVirtualScrollSize:z}=useVirtualScroll({virtualScrollLength:F,getVirtualScrollTarget:Ge,getVirtualScrollEl:Oe,virtualScrollItemSizeComputed:S}),te=useFieldState(),W=computed(()=>{const Ie=u.mapOptions===!0&&u.multiple!==!0,rt=u.modelValue!==void 0&&(u.modelValue!==null||Ie===!0)?u.multiple===!0&&Array.isArray(u.modelValue)?u.modelValue:[u.modelValue]:[];if(u.mapOptions===!0&&Array.isArray(u.options)===!0){const Je=u.mapOptions===!0&&C!==void 0?C:[],mt=rt.map(vt=>we(vt,Je));return u.modelValue===null&&Ie===!0?mt.filter(vt=>vt!==null):mt}return rt}),re=computed(()=>{const Ie={};return fieldPropsList.forEach(rt=>{const Je=u[rt];Je!==void 0&&(Ie[rt]=Je)}),Ie}),ee=computed(()=>u.optionsDark===null?te.isDark.value:u.optionsDark),X=computed(()=>fieldValueIsFilled(W.value)),K=computed(()=>{let Ie="q-field__input q-placeholder col";return u.hideSelected===!0||W.value.length===0?[Ie,u.inputClass]:(Ie+=" q-field__input--padding",u.inputClass===void 0?Ie:[Ie,u.inputClass])}),Z=computed(()=>(u.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(u.popupContentClass?" "+u.popupContentClass:"")),se=computed(()=>F.value===0),ie=computed(()=>W.value.map(Ie=>be.value(Ie)).join(", ")),de=computed(()=>u.displayValue!==void 0?u.displayValue:ie.value),ce=computed(()=>u.optionsHtml===!0?()=>!0:Ie=>Ie!=null&&Ie.html===!0),he=computed(()=>u.displayValueHtml===!0||u.displayValue===void 0&&(u.optionsHtml===!0||W.value.some(ce.value))),oe=computed(()=>te.focused.value===!0?u.tabindex:-1),ne=computed(()=>{const Ie={tabindex:u.tabindex,role:"combobox","aria-label":u.label,"aria-readonly":u.readonly===!0?"true":"false","aria-autocomplete":u.useInput===!0?"list":"none","aria-expanded":m.value===!0?"true":"false","aria-controls":`${te.targetUid.value}_lb`};return k.value>=0&&(Ie["aria-activedescendant"]=`${te.targetUid.value}_${k.value}`),Ie}),ue=computed(()=>({id:`${te.targetUid.value}_lb`,role:"listbox","aria-multiselectable":u.multiple===!0?"true":"false"})),le=computed(()=>W.value.map((Ie,rt)=>({index:rt,opt:Ie,html:ce.value(Ie),selected:!0,removeAtIndex:De,toggleOption:Be,tabindex:oe.value}))),fe=computed(()=>{if(F.value===0)return[];const{from:Ie,to:rt}=A.value;return u.options.slice(Ie,rt).map((Je,mt)=>{const vt=me.value(Je)===!0,yt=Ae(Je)===!0,Bt=Ie+mt,_t={clickable:!0,active:yt,activeClass:xe.value,manualFocus:!0,focused:!1,disable:vt,tabindex:-1,dense:u.optionsDense,dark:ee.value,role:"option","aria-selected":yt===!0?"true":"false",id:`${te.targetUid.value}_${Bt}`,onClick:()=>{Be(Je)}};return vt!==!0&&(k.value===Bt&&(_t.focused=!0),b.platform.is.desktop===!0&&(_t.onMousemove=()=>{m.value===!0&&Te(Bt)})),{index:Bt,opt:Je,html:ce.value(Je),label:be.value(Je),selected:_t.active,focused:_t.focused,toggleOption:Be,setOptionIndex:Te,itemProps:_t}})}),pe=computed(()=>u.dropdownIcon!==void 0?u.dropdownIcon:b.iconSet.arrow.dropdown),ve=computed(()=>u.optionsCover===!1&&u.outlined!==!0&&u.standout!==!0&&u.borderless!==!0&&u.rounded!==!0),xe=computed(()=>u.optionsSelectedClass!==void 0?u.optionsSelectedClass:u.color!==void 0?`text-${u.color}`:""),Ce=computed(()=>getPropValueFn(u.optionValue,"value")),be=computed(()=>getPropValueFn(u.optionLabel,"label")),me=computed(()=>getPropValueFn(u.optionDisable,"disable")),ge=computed(()=>W.value.map(Ce.value)),ye=computed(()=>{const Ie={onInput:Re,onChange:M,onKeydown:qe,onKeyup:Le,onKeypress:Ne,onFocus:ke,onClick(rt){v===!0&&stop(rt)}};return Ie.onCompositionstart=Ie.onCompositionupdate=Ie.onCompositionend=M,Ie});watch(W,Ie=>{C=Ie,u.useInput===!0&&u.fillInput===!0&&u.multiple!==!0&&te.innerLoading.value!==!0&&(y.value!==!0&&m.value!==!0||X.value!==!0)&&(J!==!0&&Lt(),(y.value===!0||m.value===!0)&&$e(""))},{immediate:!0}),watch(()=>u.fillInput,Lt),watch(m,$t),watch(F,Vt);function Se(Ie){return u.emitValue===!0?Ce.value(Ie):Ie}function Ee(Ie){if(Ie!==-1&&Ie<W.value.length)if(u.multiple===!0){const rt=u.modelValue.slice();g("remove",{index:Ie,value:rt.splice(Ie,1)[0]}),g("update:modelValue",rt)}else g("update:modelValue",null)}function De(Ie){Ee(Ie),te.focus()}function _e(Ie,rt){const Je=Se(Ie);if(u.multiple!==!0){u.fillInput===!0&&ze(be.value(Ie),!0,!0),g("update:modelValue",Je);return}if(W.value.length===0){g("add",{index:0,value:Je}),g("update:modelValue",u.multiple===!0?[Je]:Je);return}if(rt===!0&&Ae(Ie)===!0||u.maxValues!==void 0&&u.modelValue.length>=u.maxValues)return;const mt=u.modelValue.slice();g("add",{index:mt.length,value:Je}),mt.push(Je),g("update:modelValue",mt)}function Be(Ie,rt){if(te.editable.value!==!0||Ie===void 0||me.value(Ie)===!0)return;const Je=Ce.value(Ie);if(u.multiple!==!0){rt!==!0&&(ze(u.fillInput===!0?be.value(Ie):"",!0,!0),Rt()),R.value!==null&&R.value.focus(),(W.value.length===0||isDeepEqual(Ce.value(W.value[0]),Je)!==!0)&&g("update:modelValue",u.emitValue===!0?Je:Ie);return}if((v!==!0||q.value===!0)&&te.focus(),ke(),W.value.length===0){const yt=u.emitValue===!0?Je:Ie;g("add",{index:0,value:yt}),g("update:modelValue",u.multiple===!0?[yt]:yt);return}const mt=u.modelValue.slice(),vt=ge.value.findIndex(yt=>isDeepEqual(yt,Je));if(vt!==-1)g("remove",{index:vt,value:mt.splice(vt,1)[0]});else{if(u.maxValues!==void 0&&mt.length>=u.maxValues)return;const yt=u.emitValue===!0?Je:Ie;g("add",{index:mt.length,value:yt}),mt.push(yt)}g("update:modelValue",mt)}function Te(Ie){if(b.platform.is.desktop!==!0)return;const rt=Ie!==-1&&Ie<F.value?Ie:-1;k.value!==rt&&(k.value=rt)}function Fe(Ie=1,rt){if(m.value===!0){let Je=k.value;do Je=normalizeToInterval(Je+Ie,-1,F.value-1);while(Je!==-1&&Je!==k.value&&me.value(u.options[Je])===!0);k.value!==Je&&(Te(Je),U(Je),rt!==!0&&u.useInput===!0&&u.fillInput===!0&&Me(Je>=0?be.value(u.options[Je]):H,!0))}}function we(Ie,rt){const Je=mt=>isDeepEqual(Ce.value(mt),Ie);return u.options.find(Je)||rt.find(Je)||Ie}function Ae(Ie){const rt=Ce.value(Ie);return ge.value.find(Je=>isDeepEqual(Je,rt))!==void 0}function ke(Ie){u.useInput===!0&&R.value!==null&&(Ie===void 0||R.value===Ie.target&&Ie.target.value===ie.value)&&R.value.select()}function Pe(Ie){isKeyCode(Ie,27)===!0&&m.value===!0&&(stop(Ie),Rt(),Lt()),g("keyup",Ie)}function Le(Ie){const{value:rt}=Ie.target;if(Ie.keyCode!==void 0){Pe(Ie);return}if(Ie.target.value="",$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),Lt(),typeof rt=="string"&&rt.length!==0){const Je=rt.toLocaleLowerCase(),mt=yt=>{const Bt=u.options.find(_t=>String(yt.value(_t)).toLocaleLowerCase()===Je);return Bt===void 0?!1:(W.value.indexOf(Bt)===-1?Be(Bt):Rt(),!0)},vt=yt=>{mt(Ce)!==!0&&yt!==!0&&mt(be)!==!0&&$e(rt,!0,()=>vt(!0))};vt()}else te.clearValue(Ie)}function Ne(Ie){g("keypress",Ie)}function qe(Ie){if(g("keydown",Ie),shouldIgnoreKey(Ie)===!0)return;const rt=a.value.length!==0&&(u.newValueMode!==void 0||u.onNewValue!==void 0),Je=Ie.shiftKey!==!0&&u.disableTabSelection!==!0&&u.multiple!==!0&&(k.value!==-1||rt===!0);if(Ie.keyCode===27){prevent(Ie);return}if(Ie.keyCode===9&&Je===!1){Dt();return}if(Ie.target===void 0||Ie.target.id!==te.targetUid.value||te.editable.value!==!0)return;if(Ie.keyCode===40&&te.innerLoading.value!==!0&&m.value===!1){stopAndPrevent(Ie),At();return}if(Ie.keyCode===8&&(u.useChips===!0||u.clearable===!0)&&u.hideSelected!==!0&&a.value.length===0){u.multiple===!0&&Array.isArray(u.modelValue)===!0?Ee(u.modelValue.length-1):u.multiple!==!0&&u.modelValue!==null&&g("update:modelValue",null);return}(Ie.keyCode===35||Ie.keyCode===36)&&(typeof a.value!="string"||a.value.length===0)&&(stopAndPrevent(Ie),k.value=-1,Fe(Ie.keyCode===36?1:-1,u.multiple)),(Ie.keyCode===33||Ie.keyCode===34)&&E.value!==void 0&&(stopAndPrevent(Ie),k.value=Math.max(-1,Math.min(F.value,k.value+(Ie.keyCode===33?-1:1)*E.value.view)),Fe(Ie.keyCode===33?1:-1,u.multiple)),(Ie.keyCode===38||Ie.keyCode===40)&&(stopAndPrevent(Ie),Fe(Ie.keyCode===38?-1:1,u.multiple));const mt=F.value;if((G===void 0||j<Date.now())&&(G=""),mt>0&&u.useInput!==!0&&Ie.key!==void 0&&Ie.key.length===1&&Ie.altKey===!1&&Ie.ctrlKey===!1&&Ie.metaKey===!1&&(Ie.keyCode!==32||G.length!==0)){m.value!==!0&&At(Ie);const vt=Ie.key.toLocaleLowerCase(),yt=G.length===1&&G[0]===vt;j=Date.now()+1500,yt===!1&&(stopAndPrevent(Ie),G+=vt);const Bt=new RegExp("^"+G.split("").map(zt=>reEscapeList.indexOf(zt)!==-1?"\\"+zt:zt).join(".*"),"i");let _t=k.value;if(yt===!0||_t<0||Bt.test(be.value(u.options[_t]))!==!0)do _t=normalizeToInterval(_t+1,-1,mt-1);while(_t!==k.value&&(me.value(u.options[_t])===!0||Bt.test(be.value(u.options[_t]))!==!0));k.value!==_t&&nextTick(()=>{Te(_t),U(_t),_t>=0&&u.useInput===!0&&u.fillInput===!0&&Me(be.value(u.options[_t]),!0)});return}if(!(Ie.keyCode!==13&&(Ie.keyCode!==32||u.useInput===!0||G!=="")&&(Ie.keyCode!==9||Je===!1))){if(Ie.keyCode!==9&&stopAndPrevent(Ie),k.value!==-1&&k.value<mt){Be(u.options[k.value]);return}if(rt===!0){const vt=(yt,Bt)=>{if(Bt){if(validateNewValueMode(Bt)!==!0)return}else Bt=u.newValueMode;if(ze("",u.multiple!==!0,!0),yt==null)return;(Bt==="toggle"?Be:_e)(yt,Bt==="add-unique"),u.multiple!==!0&&(R.value!==null&&R.value.focus(),Rt())};if(u.onNewValue!==void 0?g("newValue",a.value,vt):vt(a.value),u.multiple!==!0)return}m.value===!0?Dt():te.innerLoading.value!==!0&&At()}}function Oe(){return v===!0?P.value:T.value!==null&&T.value.contentEl!==null?T.value.contentEl:void 0}function Ge(){return Oe()}function Ve(){return u.hideSelected===!0?[]:d["selected-item"]!==void 0?le.value.map(Ie=>d["selected-item"](Ie)).slice():d.selected!==void 0?[].concat(d.selected()):u.useChips===!0?le.value.map((Ie,rt)=>h(QChip,{key:"option-"+rt,removable:te.editable.value===!0&&me.value(Ie.opt)!==!0,dense:!0,textColor:u.color,tabindex:oe.value,onRemove(){Ie.removeAtIndex(rt)}},()=>h("span",{class:"ellipsis",[Ie.html===!0?"innerHTML":"textContent"]:be.value(Ie.opt)}))):[h("span",{[he.value===!0?"innerHTML":"textContent"]:de.value})]}function Xe(){if(se.value===!0)return d["no-option"]!==void 0?d["no-option"]({inputValue:a.value}):void 0;const Ie=d.option!==void 0?d.option:Je=>h(QItem,{key:Je.index,...Je.itemProps},()=>h(QItemSection,()=>h(QItemLabel,()=>h("span",{[Je.html===!0?"innerHTML":"textContent"]:Je.label}))));let rt=D("div",fe.value.map(Ie));return d["before-options"]!==void 0&&(rt=d["before-options"]().concat(rt)),hMergeSlot(d["after-options"],rt)}function at(Ie,rt){const Je=rt===!0?{...ne.value,...te.splitAttrs.attributes.value}:void 0,mt={ref:rt===!0?R:void 0,key:"i_t",class:K.value,style:u.inputStyle,value:a.value!==void 0?a.value:"",type:"search",...Je,id:rt===!0?te.targetUid.value:void 0,maxlength:u.maxlength,autocomplete:u.autocomplete,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,disabled:u.disable===!0,readonly:u.readonly===!0,...ye.value};return Ie!==!0&&v===!0&&(Array.isArray(mt.class)===!0?mt.class=[...mt.class,"no-pointer-events"]:mt.class+=" no-pointer-events"),h("input",mt)}function Re(Ie){$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),!(Ie&&Ie.target&&Ie.target.qComposing===!0)&&(Me(Ie.target.value||""),J=!0,H=a.value,te.focused.value!==!0&&(v!==!0||q.value===!0)&&te.focus(),u.onFilter!==void 0&&($=setTimeout(()=>{$=null,$e(a.value)},u.inputDebounce)))}function Me(Ie,rt){a.value!==Ie&&(a.value=Ie,rt===!0||u.inputDebounce===0||u.inputDebounce==="0"?g("inputValue",Ie):Q=setTimeout(()=>{Q=null,g("inputValue",Ie)},u.inputDebounce))}function ze(Ie,rt,Je){J=Je!==!0,u.useInput===!0&&(Me(Ie,!0),(rt===!0||Je!==!0)&&(H=Ie),rt!==!0&&$e(Ie))}function $e(Ie,rt,Je){if(u.onFilter===void 0||rt!==!0&&te.focused.value!==!0)return;te.innerLoading.value===!0?g("filterAbort"):(te.innerLoading.value=!0,w.value=!0),Ie!==""&&u.multiple!==!0&&W.value.length!==0&&J!==!0&&Ie===be.value(W.value[0])&&(Ie="");const mt=setTimeout(()=>{m.value===!0&&(m.value=!1)},10);ae!==null&&clearTimeout(ae),ae=mt,g("filter",Ie,(vt,yt)=>{(rt===!0||te.focused.value===!0)&&ae===mt&&(clearTimeout(ae),typeof vt=="function"&&vt(),w.value=!1,nextTick(()=>{te.innerLoading.value=!1,te.editable.value===!0&&(rt===!0?m.value===!0&&Rt():m.value===!0?$t(!0):m.value=!0),typeof yt=="function"&&nextTick(()=>{yt(f)}),typeof Je=="function"&&nextTick(()=>{Je(f)})}))},()=>{te.focused.value===!0&&ae===mt&&(clearTimeout(ae),te.innerLoading.value=!1,w.value=!1),m.value===!0&&(m.value=!1)})}function je(){return h(QMenu,{ref:T,class:Z.value,style:u.popupContentStyle,modelValue:m.value,fit:u.menuShrink!==!0,cover:u.optionsCover===!0&&se.value!==!0&&u.useInput!==!0,anchor:u.menuAnchor,self:u.menuSelf,offset:u.menuOffset,dark:ee.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:u.popupNoRouteDismiss,square:ve.value,transitionShow:u.transitionShow,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,separateClosePopup:!0,...ue.value,onScrollPassive:N,onBeforeShow:Gt,onBeforeHide:Ze,onShow:Qe},Xe)}function Ze(Ie){qt(Ie),Dt()}function Qe(){z()}function ut(Ie){stop(Ie),R.value!==null&&R.value.focus(),q.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function lt(Ie){stop(Ie),nextTick(()=>{q.value=!1})}function Ft(){const Ie=[h(QField,{class:`col-auto ${te.fieldClass.value}`,...re.value,for:te.targetUid.value,dark:ee.value,square:!0,loading:w.value,itemAligned:!1,filled:!0,stackLabel:a.value.length!==0,...te.splitAttrs.listeners.value,onFocus:ut,onBlur:lt},{...d,rawControl:()=>te.getControl(!0),before:void 0,after:void 0})];return m.value===!0&&Ie.push(h("div",{ref:P,class:Z.value+" scroll",style:u.popupContentStyle,...ue.value,onClick:prevent,onScrollPassive:N},Xe())),h(QDialog,{ref:O,modelValue:y.value,position:u.useInput===!0?"top":void 0,transitionShow:Y,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,noRouteDismiss:u.popupNoRouteDismiss,onBeforeShow:Gt,onBeforeHide:kt,onHide:ft,onShow:gt},()=>h("div",{class:"q-select__dialog"+(ee.value===!0?" q-select__dialog--dark q-dark":"")+(q.value===!0?" q-select__dialog--focused":"")},Ie))}function kt(Ie){qt(Ie),O.value!==null&&O.value.__updateRefocusTarget(te.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),te.focused.value=!1}function ft(Ie){Rt(),te.focused.value===!1&&g("blur",Ie),Lt()}function gt(){const Ie=document.activeElement;(Ie===null||Ie.id!==te.targetUid.value)&&R.value!==null&&R.value!==Ie&&R.value.focus(),z()}function Dt(){y.value!==!0&&(k.value=-1,m.value===!0&&(m.value=!1),te.focused.value===!1&&(ae!==null&&(clearTimeout(ae),ae=null),te.innerLoading.value===!0&&(g("filterAbort"),te.innerLoading.value=!1,w.value=!1)))}function At(Ie){te.editable.value===!0&&(v===!0?(te.onControlFocusin(Ie),y.value=!0,nextTick(()=>{te.focus()})):te.focus(),u.onFilter!==void 0?$e(a.value):(se.value!==!0||d["no-option"]!==void 0)&&(m.value=!0))}function Rt(){y.value=!1,Dt()}function Lt(){u.useInput===!0&&ze(u.multiple!==!0&&u.fillInput===!0&&W.value.length!==0&&be.value(W.value[0])||"",!0,!0)}function $t(Ie){let rt=-1;if(Ie===!0){if(W.value.length!==0){const Je=Ce.value(W.value[0]);rt=u.options.findIndex(mt=>isDeepEqual(Ce.value(mt),Je))}_(rt)}Te(rt)}function Vt(Ie,rt){m.value===!0&&te.innerLoading.value===!1&&(_(-1,!0),nextTick(()=>{m.value===!0&&te.innerLoading.value===!1&&(Ie>rt?_():$t(!0))}))}function Wt(){y.value===!1&&T.value!==null&&T.value.updatePosition()}function Gt(Ie){Ie!==void 0&&stop(Ie),g("popupShow",Ie),te.hasPopupOpen=!0,te.onControlFocusin(Ie)}function qt(Ie){Ie!==void 0&&stop(Ie),g("popupHide",Ie),te.hasPopupOpen=!1,te.onControlFocusout(Ie)}function Ht(){v=b.platform.is.mobile!==!0&&u.behavior!=="dialog"?!1:u.behavior!=="menu"&&(u.useInput===!0?d["no-option"]!==void 0||u.onFilter!==void 0||se.value===!1:!0),Y=b.platform.is.ios===!0&&v===!0&&u.useInput===!0?"fade":u.transitionShow}return onBeforeUpdate(Ht),onUpdated(Wt),Ht(),onBeforeUnmount(()=>{$!==null&&clearTimeout($),Q!==null&&clearTimeout(Q)}),Object.assign(f,{showPopup:At,hidePopup:Rt,removeAtIndex:Ee,add:_e,toggleOption:Be,getOptionIndex:()=>k.value,setOptionIndex:Te,moveOptionSelection:Fe,filter:$e,updateMenuPosition:Wt,updateInputValue:ze,isOptionSelected:Ae,getEmittingOptionValue:Se,isOptionDisabled:(...Ie)=>me.value.apply(null,Ie)===!0,getOptionValue:(...Ie)=>Ce.value.apply(null,Ie),getOptionLabel:(...Ie)=>be.value.apply(null,Ie)}),Object.assign(te,{innerValue:W,fieldClass:computed(()=>`q-select q-field--auto-height q-select--with${u.useInput!==!0?"out":""}-input q-select--with${u.useChips!==!0?"out":""}-chips q-select--${u.multiple===!0?"multiple":"single"}`),inputRef:L,targetRef:R,hasValue:X,showPopup:At,floatingLabel:computed(()=>u.hideSelected!==!0&&X.value===!0||typeof a.value=="number"||a.value.length!==0||fieldValueIsFilled(u.displayValue)),getControlChild:()=>{if(te.editable.value!==!1&&(y.value===!0||se.value!==!0||d["no-option"]!==void 0))return v===!0?Ft():je();te.hasPopupOpen===!0&&(te.hasPopupOpen=!1)},controlEvents:{onFocusin(Ie){te.onControlFocusin(Ie)},onFocusout(Ie){te.onControlFocusout(Ie,()=>{Lt(),Dt()})},onClick(Ie){if(prevent(Ie),v!==!0&&m.value===!0){Dt(),R.value!==null&&R.value.focus();return}At(Ie)}},getControl:Ie=>{const rt=Ve(),Je=Ie===!0||y.value!==!0||v!==!0;if(u.useInput===!0)rt.push(at(Ie,Je));else if(te.editable.value===!0){const vt=Je===!0?ne.value:void 0;rt.push(h("input",{ref:Je===!0?R:void 0,key:"d_t",class:"q-select__focus-target",id:Je===!0?te.targetUid.value:void 0,value:de.value,readonly:!0,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,...vt,onKeydown:qe,onKeyup:Pe,onKeypress:Ne})),Je===!0&&typeof u.autocomplete=="string"&&u.autocomplete.length!==0&&rt.push(h("input",{class:"q-select__autocomplete-input",autocomplete:u.autocomplete,tabindex:-1,onKeyup:Le}))}if(B.value!==void 0&&u.disable!==!0&&ge.value.length!==0){const vt=ge.value.map(yt=>h("option",{value:yt,selected:!0}));rt.push(h("select",{class:"hidden",name:B.value,multiple:u.multiple},vt))}const mt=u.useInput===!0||Je!==!0?void 0:te.splitAttrs.attributes.value;return h("div",{class:"q-field__native row items-center",...mt,...te.splitAttrs.listeners.value},rt)},getInnerAppend:()=>u.loading!==!0&&w.value!==!0&&u.hideDropdownIcon!==!0?[h(QIcon,{class:"q-select__dropdown-icon"+(m.value===!0?" rotate-180":""),name:pe.value})]:null}),useField(te)}});const defaultSizes={xs:2,sm:4,md:6,lg:10,xl:14};function width(u,d,g){return{transform:d===!0?`translateX(${g.lang.rtl===!0?"-":""}100%) scale3d(${-u},1,1)`:`scale3d(${u},1,1)`}}var QLinearProgress=createComponent({name:"QLinearProgress",props:{...useDarkProps,...useSizeProps,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(u,{slots:d}){const{proxy:g}=getCurrentInstance(),f=useDark(u,g.$q),b=useSize(u,defaultSizes),m=computed(()=>u.indeterminate===!0||u.query===!0),y=computed(()=>u.reverse!==u.query),k=computed(()=>({...b.value!==null?b.value:{},"--q-linear-progress-speed":`${u.animationSpeed}ms`})),a=computed(()=>"q-linear-progress"+(u.color!==void 0?` text-${u.color}`:"")+(u.reverse===!0||u.query===!0?" q-linear-progress--reverse":"")+(u.rounded===!0?" rounded-borders":"")),q=computed(()=>width(u.buffer!==void 0?u.buffer:1,y.value,g.$q)),w=computed(()=>`with${u.instantFeedback===!0?"out":""}-transition`),$=computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${w.value} q-linear-progress__track--${f.value===!0?"dark":"light"}`+(u.trackColor!==void 0?` bg-${u.trackColor}`:"")),Q=computed(()=>width(m.value===!0?1:u.value,y.value,g.$q)),C=computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${w.value} q-linear-progress__model--${m.value===!0?"in":""}determinate`),v=computed(()=>({width:`${u.value*100}%`})),J=computed(()=>`q-linear-progress__stripe absolute-${u.reverse===!0?"right":"left"} q-linear-progress__stripe--${w.value}`);return()=>{const ae=[h("div",{class:$.value,style:q.value}),h("div",{class:C.value,style:Q.value})];return u.stripe===!0&&m.value===!1&&ae.push(h("div",{class:J.value,style:v.value})),h("div",{class:a.value,style:k.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":u.indeterminate===!0?void 0:u.value},hMergeSlot(d.default,ae))}}});function useRefocusTarget(u,d){const g=ref(null),f=computed(()=>u.disable===!0?null:h("span",{ref:g,class:"no-outline",tabindex:-1}));function b(m){const y=d.value;m!==void 0&&m.type.indexOf("key")===0?y!==null&&document.activeElement!==y&&y.contains(document.activeElement)===!0&&y.focus():g.value!==null&&(m===void 0||y!==null&&y.contains(m.target)===!0)&&g.value.focus()}return{refocusTargetEl:f,refocusTarget:b}}var optionSizes={xs:30,sm:35,md:40,lg:50,xl:60};const useCheckboxProps={...useDarkProps,...useSizeProps,...useFormProps,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:u=>u==="tf"||u==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},useCheckboxEmits=["update:modelValue"];function useCheckbox(u,d){const{props:g,slots:f,emit:b,proxy:m}=getCurrentInstance(),{$q:y}=m,k=useDark(g,y),a=ref(null),{refocusTargetEl:q,refocusTarget:w}=useRefocusTarget(g,a),$=useSize(g,optionSizes),Q=computed(()=>g.val!==void 0&&Array.isArray(g.modelValue)),C=computed(()=>{const F=toRaw(g.val);return Q.value===!0?g.modelValue.findIndex(S=>toRaw(S)===F):-1}),v=computed(()=>Q.value===!0?C.value!==-1:toRaw(g.modelValue)===toRaw(g.trueValue)),J=computed(()=>Q.value===!0?C.value===-1:toRaw(g.modelValue)===toRaw(g.falseValue)),ae=computed(()=>v.value===!1&&J.value===!1),H=computed(()=>g.disable===!0?-1:g.tabindex||0),Y=computed(()=>`q-${u} cursor-pointer no-outline row inline no-wrap items-center`+(g.disable===!0?" disabled":"")+(k.value===!0?` q-${u}--dark`:"")+(g.dense===!0?` q-${u}--dense`:"")+(g.leftLabel===!0?" reverse":"")),G=computed(()=>{const F=v.value===!0?"truthy":J.value===!0?"falsy":"indet",S=g.color!==void 0&&(g.keepColor===!0||(u==="toggle"?v.value===!0:J.value!==!0))?` text-${g.color}`:"";return`q-${u}__inner relative-position non-selectable q-${u}__inner--${F}${S}`}),j=computed(()=>{const F={type:"checkbox"};return g.name!==void 0&&Object.assign(F,{".checked":v.value,"^checked":v.value===!0?"checked":void 0,name:g.name,value:Q.value===!0?g.val:g.trueValue}),F}),L=useFormInject(j),R=computed(()=>{const F={tabindex:H.value,role:u==="toggle"?"switch":"checkbox","aria-label":g.label,"aria-checked":ae.value===!0?"mixed":v.value===!0?"true":"false"};return g.disable===!0&&(F["aria-disabled"]="true"),F});function T(F){F!==void 0&&(stopAndPrevent(F),w(F)),g.disable!==!0&&b("update:modelValue",O(),F)}function O(){if(Q.value===!0){if(v.value===!0){const F=g.modelValue.slice();return F.splice(C.value,1),F}return g.modelValue.concat([g.val])}if(v.value===!0){if(g.toggleOrder!=="ft"||g.toggleIndeterminate===!1)return g.falseValue}else if(J.value===!0){if(g.toggleOrder==="ft"||g.toggleIndeterminate===!1)return g.trueValue}else return g.toggleOrder!=="ft"?g.trueValue:g.falseValue;return g.indeterminateValue}function P(F){(F.keyCode===13||F.keyCode===32)&&stopAndPrevent(F)}function B(F){(F.keyCode===13||F.keyCode===32)&&T(F)}const M=d(v,ae);return Object.assign(m,{toggle:T}),()=>{const F=M();g.disable!==!0&&L(F,"unshift",` q-${u}__native absolute q-ma-none q-pa-none`);const S=[h("div",{class:G.value,style:$.value,"aria-hidden":"true"},F)];q.value!==null&&S.push(q.value);const A=g.label!==void 0?hMergeSlot(f.default,[g.label]):hSlot(f.default);return A!==void 0&&S.push(h("div",{class:`q-${u}__label q-anchor--skip`},A)),h("div",{ref:a,class:Y.value,...R.value,onClick:T,onKeydown:P,onKeyup:B},S)}}const createBgNode=()=>h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var QCheckbox=createComponent({name:"QCheckbox",props:useCheckboxProps,emits:useCheckboxEmits,setup(u){const d=createBgNode();function g(f,b){const m=computed(()=>(f.value===!0?u.checkedIcon:b.value===!0?u.indeterminateIcon:u.uncheckedIcon)||null);return()=>m.value!==null?[h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h(QIcon,{class:"q-checkbox__icon",name:m.value})])]:[d]}return useCheckbox("checkbox",g)}});let counter=0;const useFullscreenProps={fullscreen:Boolean,noRouteFullscreenExit:Boolean},useFullscreenEmits=["update:fullscreen","fullscreen"];function useFullscreen(){const u=getCurrentInstance(),{props:d,emit:g,proxy:f}=u;let b,m,y;const k=ref(!1);vmHasRouter(u)===!0&&watch(()=>f.$route.fullPath,()=>{d.noRouteFullscreenExit!==!0&&w()}),watch(()=>d.fullscreen,$=>{k.value!==$&&a()}),watch(k,$=>{g("update:fullscreen",$),g("fullscreen",$)});function a(){k.value===!0?w():q()}function q(){k.value!==!0&&(k.value=!0,y=f.$el.parentNode,y.replaceChild(m,f.$el),document.body.appendChild(f.$el),counter++,counter===1&&document.body.classList.add("q-body--fullscreen-mixin"),b={handler:w},History.add(b))}function w(){k.value===!0&&(b!==void 0&&(History.remove(b),b=void 0),y.replaceChild(f.$el,m),k.value=!1,counter=Math.max(0,counter-1),counter===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),f.$el.scrollIntoView!==void 0&&setTimeout(()=>{f.$el.scrollIntoView()})))}return onBeforeMount(()=>{m=document.createElement("span")}),onMounted(()=>{d.fullscreen===!0&&q()}),onBeforeUnmount(w),Object.assign(f,{toggleFullscreen:a,setFullscreen:q,exitFullscreen:w}),{inFullscreen:k,toggleFullscreen:a}}function sortDate(u,d){return new Date(u)-new Date(d)}const useTableSortProps={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:u=>u==="ad"||u==="da",default:"ad"}};function useTableSort(u,d,g,f){const b=computed(()=>{const{sortBy:k}=d.value;return k&&g.value.find(a=>a.name===k)||null}),m=computed(()=>u.sortMethod!==void 0?u.sortMethod:(k,a,q)=>{const w=g.value.find(C=>C.name===a);if(w===void 0||w.field===void 0)return k;const $=q===!0?-1:1,Q=typeof w.field=="function"?C=>w.field(C):C=>C[w.field];return k.sort((C,v)=>{let J=Q(C),ae=Q(v);return w.rawSort!==void 0?w.rawSort(J,ae,C,v)*$:J==null?-1*$:ae==null?1*$:w.sort!==void 0?w.sort(J,ae,C,v)*$:isNumber$3(J)===!0&&isNumber$3(ae)===!0?(J-ae)*$:isDate$1(J)===!0&&isDate$1(ae)===!0?sortDate(J,ae)*$:typeof J=="boolean"&&typeof ae=="boolean"?(J-ae)*$:([J,ae]=[J,ae].map(H=>(H+"").toLocaleString().toLowerCase()),J<ae?-1*$:J===ae?0:$)})});function y(k){let a=u.columnSortOrder;if(isObject$1(k)===!0)k.sortOrder&&(a=k.sortOrder),k=k.name;else{const $=g.value.find(Q=>Q.name===k);$!==void 0&&$.sortOrder&&(a=$.sortOrder)}let{sortBy:q,descending:w}=d.value;q!==k?(q=k,w=a==="da"):u.binaryStateSort===!0?w=!w:w===!0?a==="ad"?q=null:w=!1:a==="ad"?w=!0:q=null,f({sortBy:q,descending:w,page:1})}return{columnToSort:b,computedSortMethod:m,sort:y}}const useTableFilterProps={filter:[String,Object],filterMethod:Function};function useTableFilter(u,d){const g=computed(()=>u.filterMethod!==void 0?u.filterMethod:(f,b,m,y)=>{const k=b?b.toLowerCase():"";return f.filter(a=>m.some(q=>{const w=y(q,a)+"";return(w==="undefined"||w==="null"?"":w.toLowerCase()).indexOf(k)!==-1}))});return watch(()=>u.filter,()=>{nextTick(()=>{d({page:1},!0)})},{deep:!0}),{computedFilterMethod:g}}function samePagination(u,d){for(const g in d)if(d[g]!==u[g])return!1;return!0}function fixPagination(u){return u.page<1&&(u.page=1),u.rowsPerPage!==void 0&&u.rowsPerPage<1&&(u.rowsPerPage=0),u}const useTablePaginationProps={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function useTablePaginationState(u,d){const{props:g,emit:f}=u,b=ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:g.rowsPerPageOptions.length!==0?g.rowsPerPageOptions[0]:5},g.pagination)),m=computed(()=>{const w=g["onUpdate:pagination"]!==void 0?{...b.value,...g.pagination}:b.value;return fixPagination(w)}),y=computed(()=>m.value.rowsNumber!==void 0);function k(w){a({pagination:w,filter:g.filter})}function a(w={}){nextTick(()=>{f("request",{pagination:w.pagination||m.value,filter:w.filter||g.filter,getCellValue:d})})}function q(w,$){const Q=fixPagination({...m.value,...w});if(samePagination(m.value,Q)===!0){y.value===!0&&$===!0&&k(Q);return}if(y.value===!0){k(Q);return}g.pagination!==void 0&&g["onUpdate:pagination"]!==void 0?f("update:pagination",Q):b.value=Q}return{innerPagination:b,computedPagination:m,isServerSide:y,requestServerInteraction:a,setPagination:q}}function useTablePagination(u,d,g,f,b,m){const{props:y,emit:k,proxy:{$q:a}}=u,q=computed(()=>f.value===!0?g.value.rowsNumber||0:m.value),w=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return(j-1)*L}),$=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return j*L}),Q=computed(()=>g.value.page===1),C=computed(()=>g.value.rowsPerPage===0?1:Math.max(1,Math.ceil(q.value/g.value.rowsPerPage))),v=computed(()=>$.value===0?!0:g.value.page>=C.value),J=computed(()=>(y.rowsPerPageOptions.includes(d.value.rowsPerPage)?y.rowsPerPageOptions:[d.value.rowsPerPage].concat(y.rowsPerPageOptions)).map(L=>({label:L===0?a.lang.table.allRows:""+L,value:L})));watch(C,(j,L)=>{if(j===L)return;const R=g.value.page;j&&!R?b({page:1}):j<R&&b({page:j})});function ae(){b({page:1})}function H(){const{page:j}=g.value;j>1&&b({page:j-1})}function Y(){const{page:j,rowsPerPage:L}=g.value;$.value>0&&j*L<q.value&&b({page:j+1})}function G(){b({page:C.value})}return y["onUpdate:pagination"]!==void 0&&k("update:pagination",{...g.value}),{firstRowIndex:w,lastRowIndex:$,isFirstPage:Q,isLastPage:v,pagesNumber:C,computedRowsPerPageOptions:J,computedRowsNumber:q,firstPage:ae,prevPage:H,nextPage:Y,lastPage:G}}const useTableRowSelectionProps={selection:{type:String,default:"none",validator:u=>["single","multiple","none"].includes(u)},selected:{type:Array,default:()=>[]}},useTableRowSelectionEmits=["update:selected","selection"];function useTableRowSelection(u,d,g,f){const b=computed(()=>{const v={};return u.selected.map(f.value).forEach(J=>{v[J]=!0}),v}),m=computed(()=>u.selection!=="none"),y=computed(()=>u.selection==="single"),k=computed(()=>u.selection==="multiple"),a=computed(()=>g.value.length!==0&&g.value.every(v=>b.value[f.value(v)]===!0)),q=computed(()=>a.value!==!0&&g.value.some(v=>b.value[f.value(v)]===!0)),w=computed(()=>u.selected.length);function $(v){return b.value[v]===!0}function Q(){d("update:selected",[])}function C(v,J,ae,H){d("selection",{rows:J,added:ae,keys:v,evt:H});const Y=y.value===!0?ae===!0?J:[]:ae===!0?u.selected.concat(J):u.selected.filter(G=>v.includes(f.value(G))===!1);d("update:selected",Y)}return{hasSelectionMode:m,singleSelection:y,multipleSelection:k,allRowsSelected:a,someRowsSelected:q,rowsSelectedNumber:w,isRowSelected:$,clearSelection:Q,updateSelection:C}}function getVal(u){return Array.isArray(u)?u.slice():[]}const useTableRowExpandProps={expanded:Array},useTableRowExpandEmits=["update:expanded"];function useTableRowExpand(u,d){const g=ref(getVal(u.expanded));watch(()=>u.expanded,y=>{g.value=getVal(y)});function f(y){return g.value.includes(y)}function b(y){u.expanded!==void 0?d("update:expanded",y):g.value=y}function m(y,k){const a=g.value.slice(),q=a.indexOf(y);k===!0?q===-1&&(a.push(y),b(a)):q!==-1&&(a.splice(q,1),b(a))}return{isRowExpanded:f,setExpanded:b,updateExpanded:m}}const useTableColumnSelectionProps={visibleColumns:Array};function useTableColumnSelection(u,d,g){const f=computed(()=>{if(u.columns!==void 0)return u.columns;const k=u.rows[0];return k!==void 0?Object.keys(k).map(a=>({name:a,label:a.toUpperCase(),field:a,align:isNumber$3(k[a])?"right":"left",sortable:!0})):[]}),b=computed(()=>{const{sortBy:k,descending:a}=d.value;return(u.visibleColumns!==void 0?f.value.filter(w=>w.required===!0||u.visibleColumns.includes(w.name)===!0):f.value).map(w=>{const $=w.align||"right",Q=`text-${$}`;return{...w,align:$,__iconClass:`q-table__sort-icon q-table__sort-icon--${$}`,__thClass:Q+(w.headerClasses!==void 0?" "+w.headerClasses:"")+(w.sortable===!0?" sortable":"")+(w.name===k?` sorted ${a===!0?"sort-desc":""}`:""),__tdStyle:w.style!==void 0?typeof w.style!="function"?()=>w.style:w.style:()=>null,__tdClass:w.classes!==void 0?typeof w.classes!="function"?()=>Q+" "+w.classes:C=>Q+" "+w.classes(C):()=>Q}})}),m=computed(()=>{const k={};return b.value.forEach(a=>{k[a.name]=a}),k}),y=computed(()=>u.tableColspan!==void 0?u.tableColspan:b.value.length+(g.value===!0?1:0));return{colList:f,computedCols:b,computedColsMap:m,computedColspan:y}}const bottomClass="q-table__bottom row items-center",virtScrollPassthroughProps={};commonVirtScrollPropsList.forEach(u=>{virtScrollPassthroughProps[u]={}});var QTable=createComponent({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:u=>["horizontal","vertical","cell","none"].includes(u)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...virtScrollPassthroughProps,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...useDarkProps,...useFullscreenProps,...useTableColumnSelectionProps,...useTableFilterProps,...useTablePaginationProps,...useTableRowExpandProps,...useTableRowSelectionProps,...useTableSortProps},emits:["request","virtualScroll",...useFullscreenEmits,...useTableRowExpandEmits,...useTableRowSelectionEmits],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=useDark(u,b),{inFullscreen:y,toggleFullscreen:k}=useFullscreen(),a=computed(()=>typeof u.rowKey=="function"?u.rowKey:Re=>Re[u.rowKey]),q=ref(null),w=ref(null),$=computed(()=>u.grid!==!0&&u.virtualScroll===!0),Q=computed(()=>" q-table__card"+(m.value===!0?" q-table__card--dark q-dark":"")+(u.square===!0?" q-table--square":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")),C=computed(()=>`q-table__container q-table--${u.separator}-separator column no-wrap`+(u.grid===!0?" q-table--grid":Q.value)+(m.value===!0?" q-table--dark":"")+(u.dense===!0?" q-table--dense":"")+(u.wrapCells===!1?" q-table--no-wrap":"")+(y.value===!0?" fullscreen scroll":"")),v=computed(()=>C.value+(u.loading===!0?" q-table--loading":""));watch(()=>u.tableStyle+u.tableClass+u.tableHeaderStyle+u.tableHeaderClass+C.value,()=>{$.value===!0&&w.value!==null&&w.value.reset()});const{innerPagination:J,computedPagination:ae,isServerSide:H,requestServerInteraction:Y,setPagination:G}=useTablePaginationState(f,Te),{computedFilterMethod:j}=useTableFilter(u,G),{isRowExpanded:L,setExpanded:R,updateExpanded:T}=useTableRowExpand(u,g),O=computed(()=>{let Re=u.rows;if(H.value===!0||Re.length===0)return Re;const{sortBy:Me,descending:ze}=ae.value;return u.filter&&(Re=j.value(Re,u.filter,te.value,Te)),ee.value!==null&&(Re=X.value(u.rows===Re?Re.slice():Re,Me,ze)),Re}),P=computed(()=>O.value.length),B=computed(()=>{let Re=O.value;if(H.value===!0)return Re;const{rowsPerPage:Me}=ae.value;return Me!==0&&(Z.value===0&&u.rows!==Re?Re.length>se.value&&(Re=Re.slice(0,se.value)):Re=Re.slice(Z.value,se.value)),Re}),{hasSelectionMode:M,singleSelection:F,multipleSelection:S,allRowsSelected:A,someRowsSelected:E,rowsSelectedNumber:_,isRowSelected:D,clearSelection:N,updateSelection:U}=useTableRowSelection(u,g,B,a),{colList:z,computedCols:te,computedColsMap:W,computedColspan:re}=useTableColumnSelection(u,ae,M),{columnToSort:ee,computedSortMethod:X,sort:K}=useTableSort(u,ae,z,G),{firstRowIndex:Z,lastRowIndex:se,isFirstPage:ie,isLastPage:de,pagesNumber:ce,computedRowsPerPageOptions:he,computedRowsNumber:oe,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe}=useTablePagination(f,J,ae,H,G,P),pe=computed(()=>B.value.length===0),ve=computed(()=>{const Re={};return commonVirtScrollPropsList.forEach(Me=>{Re[Me]=u[Me]}),Re.virtualScrollItemSize===void 0&&(Re.virtualScrollItemSize=u.dense===!0?28:48),Re});function xe(){$.value===!0&&w.value.reset()}function Ce(){if(u.grid===!0)return at();const Re=u.hideHeader!==!0?ke:null;if($.value===!0){const ze=d["top-row"],$e=d["bottom-row"],je={default:Ze=>ye(Ze.item,d.body,Ze.index)};if(ze!==void 0){const Ze=h("tbody",ze({cols:te.value}));je.before=Re===null?()=>Ze:()=>[Re()].concat(Ze)}else Re!==null&&(je.before=Re);return $e!==void 0&&(je.after=()=>h("tbody",$e({cols:te.value}))),h(QVirtualScroll,{ref:w,class:u.tableClass,style:u.tableStyle,...ve.value,scrollTarget:u.virtualScrollTarget,items:B.value,type:"__qtable",tableColspan:re.value,onVirtualScroll:me},je)}const Me=[Se()];return Re!==null&&Me.unshift(Re()),getTableMiddle({class:["q-table__middle scroll",u.tableClass],style:u.tableStyle},Me)}function be(Re,Me){if(w.value!==null){w.value.scrollTo(Re,Me);return}Re=parseInt(Re,10);const ze=q.value.querySelector(`tbody tr:nth-of-type(${Re+1})`);if(ze!==null){const $e=q.value.querySelector(".q-table__middle.scroll"),je=ze.offsetTop-u.virtualScrollStickySizeStart,Ze=je<$e.scrollTop?"decrease":"increase";$e.scrollTop=je,g("virtualScroll",{index:Re,from:0,to:J.value.rowsPerPage-1,direction:Ze})}}function me(Re){g("virtualScroll",Re)}function ge(){return[h(QLinearProgress,{class:"q-table__linear-progress",color:u.color,dark:m.value,indeterminate:!0,trackColor:"transparent"})]}function ye(Re,Me,ze){const $e=a.value(Re),je=D($e);if(Me!==void 0)return Me(Ee({key:$e,row:Re,pageIndex:ze,__trClass:je?"selected":""}));const Ze=d["body-cell"],Qe=te.value.map(lt=>{const Ft=d[`body-cell-${lt.name}`],kt=Ft!==void 0?Ft:Ze;return kt!==void 0?kt(De({key:$e,row:Re,pageIndex:ze,col:lt})):h("td",{class:lt.__tdClass(Re),style:lt.__tdStyle(Re)},Te(lt,Re))});if(M.value===!0){const lt=d["body-selection"],Ft=lt!==void 0?lt(_e({key:$e,row:Re,pageIndex:ze})):[h(QCheckbox,{modelValue:je,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(kt,ft)=>{U([$e],[Re],kt,ft)}})];Qe.unshift(h("td",{class:"q-table--col-auto-width"},Ft))}const ut={key:$e,class:{selected:je}};return u.onRowClick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onClick=lt=>{g("rowClick",lt,Re,ze)}),u.onRowDblclick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onDblclick=lt=>{g("rowDblclick",lt,Re,ze)}),u.onRowContextmenu!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onContextmenu=lt=>{g("rowContextmenu",lt,Re,ze)}),h("tr",ut,Qe)}function Se(){const Re=d.body,Me=d["top-row"],ze=d["bottom-row"];let $e=B.value.map((je,Ze)=>ye(je,Re,Ze));return Me!==void 0&&($e=Me({cols:te.value}).concat($e)),ze!==void 0&&($e=$e.concat(ze({cols:te.value}))),h("tbody",$e)}function Ee(Re){return Be(Re),Re.cols=Re.cols.map(Me=>injectProp({...Me},"value",()=>Te(Me,Re.row))),Re}function De(Re){return Be(Re),injectProp(Re,"value",()=>Te(Re.col,Re.row)),Re}function _e(Re){return Be(Re),Re}function Be(Re){Object.assign(Re,{cols:te.value,colsMap:W.value,sort:K,rowIndex:Z.value+Re.pageIndex,color:u.color,dark:m.value,dense:u.dense}),M.value===!0&&injectProp(Re,"selected",()=>D(Re.key),(Me,ze)=>{U([Re.key],[Re.row],Me,ze)}),injectProp(Re,"expand",()=>L(Re.key),Me=>{T(Re.key,Me)})}function Te(Re,Me){const ze=typeof Re.field=="function"?Re.field(Me):Me[Re.field];return Re.format!==void 0?Re.format(ze,Me):ze}const Fe=computed(()=>({pagination:ae.value,pagesNumber:ce.value,isFirstPage:ie.value,isLastPage:de.value,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,inFullscreen:y.value,toggleFullscreen:k}));function we(){const Re=d.top,Me=d["top-left"],ze=d["top-right"],$e=d["top-selection"],je=M.value===!0&&$e!==void 0&&_.value>0,Ze="q-table__top relative-position row items-center";if(Re!==void 0)return h("div",{class:Ze},[Re(Fe.value)]);let Qe;if(je===!0?Qe=$e(Fe.value).slice():(Qe=[],Me!==void 0?Qe.push(h("div",{class:"q-table__control"},[Me(Fe.value)])):u.title&&Qe.push(h("div",{class:"q-table__control"},[h("div",{class:["q-table__title",u.titleClass]},u.title)]))),ze!==void 0&&(Qe.push(h("div",{class:"q-table__separator col"})),Qe.push(h("div",{class:"q-table__control"},[ze(Fe.value)]))),Qe.length!==0)return h("div",{class:Ze},Qe)}const Ae=computed(()=>E.value===!0?null:A.value);function ke(){const Re=Pe();return u.loading===!0&&d.loading===void 0&&Re.push(h("tr",{class:"q-table__progress"},[h("th",{class:"relative-position",colspan:re.value},ge())])),h("thead",Re)}function Pe(){const Re=d.header,Me=d["header-cell"];if(Re!==void 0)return Re(Le({header:!0})).slice();const ze=te.value.map($e=>{const je=d[`header-cell-${$e.name}`],Ze=je!==void 0?je:Me,Qe=Le({col:$e});return Ze!==void 0?Ze(Qe):h(QTh,{key:$e.name,props:Qe},()=>$e.label)});if(F.value===!0&&u.grid!==!0)ze.unshift(h("th",{class:"q-table--col-auto-width"}," "));else if(S.value===!0){const $e=d["header-selection"],je=$e!==void 0?$e(Le({})):[h(QCheckbox,{color:u.color,modelValue:Ae.value,dark:m.value,dense:u.dense,"onUpdate:modelValue":Ne})];ze.unshift(h("th",{class:"q-table--col-auto-width"},je))}return[h("tr",{class:u.tableHeaderClass,style:u.tableHeaderStyle},ze)]}function Le(Re){return Object.assign(Re,{cols:te.value,sort:K,colsMap:W.value,color:u.color,dark:m.value,dense:u.dense}),S.value===!0&&injectProp(Re,"selected",()=>Ae.value,Ne),Re}function Ne(Re){E.value===!0&&(Re=!1),U(B.value.map(a.value),B.value,Re)}const qe=computed(()=>{const Re=[u.iconFirstPage||b.iconSet.table.firstPage,u.iconPrevPage||b.iconSet.table.prevPage,u.iconNextPage||b.iconSet.table.nextPage,u.iconLastPage||b.iconSet.table.lastPage];return b.lang.rtl===!0?Re.reverse():Re});function Oe(){if(u.hideBottom===!0)return;if(pe.value===!0){if(u.hideNoData===!0)return;const ze=u.loading===!0?u.loadingLabel||b.lang.table.loading:u.filter?u.noResultsLabel||b.lang.table.noResults:u.noDataLabel||b.lang.table.noData,$e=d["no-data"],je=$e!==void 0?[$e({message:ze,icon:b.iconSet.table.warning,filter:u.filter})]:[h(QIcon,{class:"q-table__bottom-nodata-icon",name:b.iconSet.table.warning}),ze];return h("div",{class:bottomClass+" q-table__bottom--nodata"},je)}const Re=d.bottom;if(Re!==void 0)return h("div",{class:bottomClass},[Re(Fe.value)]);const Me=u.hideSelectedBanner!==!0&&M.value===!0&&_.value>0?[h("div",{class:"q-table__control"},[h("div",[(u.selectedRowsLabel||b.lang.table.selectedRecords)(_.value)])])]:[];if(u.hidePagination!==!0)return h("div",{class:bottomClass+" justify-end"},Ve(Me));if(Me.length!==0)return h("div",{class:bottomClass},Me)}function Ge(Re){G({page:1,rowsPerPage:Re.value})}function Ve(Re){let Me;const{rowsPerPage:ze}=ae.value,$e=u.paginationLabel||b.lang.table.pagination,je=d.pagination,Ze=u.rowsPerPageOptions.length>1;if(Re.push(h("div",{class:"q-table__separator col"})),Ze===!0&&Re.push(h("div",{class:"q-table__control"},[h("span",{class:"q-table__bottom-item"},[u.rowsPerPageLabel||b.lang.table.recordsPerPage]),h(QSelect,{class:"q-table__select inline q-table__bottom-item",color:u.color,modelValue:ze,options:he.value,displayValue:ze===0?b.lang.table.allRows:ze,dark:m.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ge})])),je!==void 0)Me=je(Fe.value);else if(Me=[h("span",ze!==0?{class:"q-table__bottom-item"}:{},[ze?$e(Z.value+1,Math.min(se.value,oe.value),oe.value):$e(1,P.value,oe.value)])],ze!==0&&ce.value>1){const Qe={color:u.color,round:!0,dense:!0,flat:!0};u.dense===!0&&(Qe.size="sm"),ce.value>2&&Me.push(h(QBtn,{key:"pgFirst",...Qe,icon:qe.value[0],disable:ie.value,onClick:ne})),Me.push(h(QBtn,{key:"pgPrev",...Qe,icon:qe.value[1],disable:ie.value,onClick:ue}),h(QBtn,{key:"pgNext",...Qe,icon:qe.value[2],disable:de.value,onClick:le})),ce.value>2&&Me.push(h(QBtn,{key:"pgLast",...Qe,icon:qe.value[3],disable:de.value,onClick:fe}))}return Re.push(h("div",{class:"q-table__control"},Me)),Re}function Xe(){const Re=u.gridHeader===!0?[h("table",{class:"q-table"},[ke()])]:u.loading===!0&&d.loading===void 0?ge():void 0;return h("div",{class:"q-table__middle"},Re)}function at(){const Re=d.item!==void 0?d.item:Me=>{const ze=Me.cols.map(je=>h("div",{class:"q-table__grid-item-row"},[h("div",{class:"q-table__grid-item-title"},[je.label]),h("div",{class:"q-table__grid-item-value"},[je.value])]));if(M.value===!0){const je=d["body-selection"],Ze=je!==void 0?je(Me):[h(QCheckbox,{modelValue:Me.selected,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(Qe,ut)=>{U([Me.key],[Me.row],Qe,ut)}})];ze.unshift(h("div",{class:"q-table__grid-item-row"},Ze),h(QSeparator,{dark:m.value}))}const $e={class:["q-table__grid-item-card"+Q.value,u.cardClass],style:u.cardStyle};return(u.onRowClick!==void 0||u.onRowDblclick!==void 0)&&($e.class[0]+=" cursor-pointer",u.onRowClick!==void 0&&($e.onClick=je=>{g("RowClick",je,Me.row,Me.pageIndex)}),u.onRowDblclick!==void 0&&($e.onDblclick=je=>{g("RowDblclick",je,Me.row,Me.pageIndex)})),h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(Me.selected===!0?" q-table__grid-item--selected":"")},[h("div",$e,ze)])};return h("div",{class:["q-table__grid-content row",u.cardContainerClass],style:u.cardContainerStyle},B.value.map((Me,ze)=>Re(Ee({key:a.value(Me),row:Me,pageIndex:ze}))))}return Object.assign(f.proxy,{requestServerInteraction:Y,setPagination:G,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,isRowSelected:D,clearSelection:N,isRowExpanded:L,setExpanded:R,sort:K,resetVirtualScroll:xe,scrollTo:be,getCellValue:Te}),injectMultipleProps(f.proxy,{filteredSortedRows:()=>O.value,computedRows:()=>B.value,computedRowsNumber:()=>oe.value}),()=>{const Re=[we()],Me={ref:q,class:v.value};return u.grid===!0?Re.push(Xe()):Object.assign(Me,{class:[Me.class,u.cardClass],style:u.cardStyle}),Re.push(Ce(),Oe()),u.loading===!0&&d.loading!==void 0&&Re.push(d.loading()),h("div",Me,Re)}}});const _sfc_main$f=defineComponent({name:"RightSidebar",data:()=>({columns:[{name:"name",required:!0,label:"Dessert (100g serving)",align:"left",field:u=>u.name,format:u=>`${u}`,sortable:!0},{name:"calories",align:"center",label:"Calories",field:"calories",sortable:!0},{name:"fat",label:"Fat (g)",field:"fat",sortable:!0},{name:"carbs",label:"Carbs (g)",field:"carbs"},{name:"protein",label:"Protein (g)",field:"protein"},{name:"sodium",label:"Sodium (mg)",field:"sodium"},{name:"calcium",label:"Calcium (%)",field:"calcium",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)},{name:"iron",label:"Iron (%)",field:"iron",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)}],rows:[{name:"Frozen Yogurt",calories:159,fat:6,carbs:24,protein:4,sodium:87,calcium:"14%",iron:"1%"},{name:"Ice cream sandwich",calories:237,fat:9,carbs:37,protein:4.3,sodium:129,calcium:"8%",iron:"1%"},{name:"Eclair",calories:262,fat:16,carbs:23,protein:6,sodium:337,calcium:"6%",iron:"7%"},{name:"Cupcake",calories:305,fat:3.7,carbs:67,protein:4.3,sodium:413,calcium:"3%",iron:"8%"},{name:"Gingerbread",calories:356,fat:16,carbs:49,protein:3.9,sodium:327,calcium:"7%",iron:"16%"},{name:"Jelly bean",calories:375,fat:0,carbs:94,protein:0,sodium:50,calcium:"0%",iron:"0%"},{name:"Lollipop",calories:392,fat:.2,carbs:98,protein:0,sodium:38,calcium:"0%",iron:"2%"},{name:"Honeycomb",calories:408,fat:3.2,carbs:87,protein:6.5,sodium:562,calcium:"0%",iron:"45%"},{name:"Donut",calories:452,fat:25,carbs:51,protein:4.9,sodium:326,calcium:"2%",iron:"22%"},{name:"KitKat",calories:518,fat:26,carbs:65,protein:7,sodium:54,calcium:"12%",iron:"6%"}]}),methods:{openFileDetails:u=>{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},mounted(){this.$bus.on("openFileDetails",this.openFileDetails)},beforeUnmount(){this.$bus.off("openFileDetails")},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$8={class:"fit"};function _sfc_render$e(u,d,g,f,b,m){return openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(QTable,{class:"fit",title:"Treats",rows:u.rows,columns:u.columns,"row-key":"name","hide-pagination":!0,"rows-per-page-options":[0],flat:!0},{default:withCtx(()=>[renderSlot(u.$slots,"top-right",{},()=>[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu"})])]),_:3},8,["rows","columns"])])}var RightSidebar=_export_sfc(_sfc_main$f,[["render",_sfc_render$e]]),QAvatar=createComponent({name:"QAvatar",props:{...useSizeProps,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(u,{slots:d}){const g=useSize(u),f=computed(()=>"q-avatar"+(u.color?` bg-${u.color}`:"")+(u.textColor?` text-${u.textColor} q-chip--colored`:"")+(u.square===!0?" q-avatar--square":u.rounded===!0?" rounded-borders":"")),b=computed(()=>u.fontSize?{fontSize:u.fontSize}:null);return()=>{const m=u.icon!==void 0?[h(QIcon,{name:u.icon})]:void 0;return h("div",{class:f.value,style:g.value},[h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:b.value},hMergeSlotSafely(d.default,m))])}}}),QToolbarTitle=createComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar__title ellipsis"+(u.shrink===!0?" col-shrink":""));return()=>h("div",{class:g.value},hSlot(d.default))}}),QSpace=createComponent({name:"QSpace",setup(){const u=h("div",{class:"q-space"});return()=>u}});const _sfc_main$e=defineComponent({name:"BucketPicker",methods:{changeBucket:function(u){this.$router.push({name:`${this.selectedApp}-home`,params:{bucket:u}})}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$d(u,d,g,f,b,m){return openBlock(),createBlock(QSelect,{"model-value":u.selectedBucket,"onUpdate:modelValue":u.changeBucket,color:"blue","stack-label":"",dense:!0,filled:"","bg-color":"white",options:u.mainStore.buckets.map(y=>y.name),label:"Bucket",style:{"min-width":"100px"}},null,8,["model-value","onUpdate:modelValue","options"])}var BucketPicker=_export_sfc(_sfc_main$e,[["render",_sfc_render$d]]);const _sfc_main$d=defineComponent({name:"TopBar",emits:["toggle"],components:{BucketPicker}});function _sfc_render$c(u,d,g,f,b,m){const y=resolveComponent("bucket-picker");return openBlock(),createElementBlock(Fragment,null,[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu",onClick:d[0]||(d[0]=k=>u.$emit("toggle"))}),createVNode(QToolbarTitle,{style:{overflow:"unset"},class:"text-bold"},{default:withCtx(()=>[createVNode(QAvatar,null,{default:withCtx(()=>d[1]||(d[1]=[createBaseVNode("img",{src:"/logo-white.svg"},null,-1)])),_:1}),d[2]||(d[2]=createTextVNode(" R2-Explorer "))]),_:1}),createVNode(QSpace),createBaseVNode("div",null,[createVNode(y)])],64)}var TopBar=_export_sfc(_sfc_main$d,[["render",_sfc_render$c]]);const _sfc_main$c={name:"MainLayout",components:{TopBar,RightSidebar,LeftSidebar},setup(){const u=ref(!1),d=ref(!1);return{leftDrawerOpen:u,toggleLeftDrawer(){u.value=!u.value},rightDrawerOpen:d,updateRightDrawer(g){d.value=g}}},mounted(){this.updateRightDrawer(!1)}};function _sfc_render$b(u,d,g,f,b,m){const y=resolveComponent("top-bar"),k=resolveComponent("left-sidebar"),a=resolveComponent("right-sidebar"),q=resolveComponent("router-view");return openBlock(),createBlock(QLayout,{view:"hHh LpR lFr"},{default:withCtx(()=>[createVNode(QHeader,{reveal:"",class:"bg-green text-white"},{default:withCtx(()=>[createVNode(QToolbar,null,{default:withCtx(()=>[createVNode(y,{onToggle:f.toggleLeftDrawer},null,8,["onToggle"])]),_:1})]),_:1}),createVNode(QDrawer,{width:100,"show-if-above":"",modelValue:f.leftDrawerOpen,"onUpdate:modelValue":d[0]||(d[0]=w=>f.leftDrawerOpen=w),side:"left",bordered:""},{default:withCtx(()=>[createVNode(k)]),_:1},8,["modelValue"]),createVNode(QDrawer,{"show-if-above":"",modelValue:f.rightDrawerOpen,"onUpdate:modelValue":d[1]||(d[1]=w=>f.rightDrawerOpen=w),side:"right",bordered:""},{default:withCtx(()=>[createVNode(a,{onUpdateDrawer:f.updateRightDrawer},null,8,["onUpdateDrawer"])]),_:1},8,["modelValue"]),createVNode(QPageContainer,null,{default:withCtx(()=>[createVNode(q)]),_:1})]),_:1})}var MainLayout=_export_sfc(_sfc_main$c,[["render",_sfc_render$b]]),QInnerLoading=createComponent({name:"QInnerLoading",props:{...useDarkProps,...useTransitionProps,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),{transitionProps:b,transitionStyle:m}=useTransition(u),y=computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(f.value===!0?" q-inner-loading--dark":"")),k=computed(()=>"q-inner-loading__label"+(u.labelClass!==void 0?` ${u.labelClass}`:""));function a(){const w=[h(QSpinner,{size:u.size,color:u.color})];return u.label!==void 0&&w.push(h("div",{class:k.value,style:u.labelStyle},[u.label])),w}function q(){return u.showing===!0?h("div",{class:y.value,style:m.value},d.default!==void 0?d.default():a()):null}return()=>h(Transition,b.value,q)}}),QPage=createComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPage needs to be a deep child of QLayout"),emptyRenderFn;if(inject(pageContainerKey,emptyRenderFn)===emptyRenderFn)return console.error("QPage needs to be child of QPageContainer"),emptyRenderFn;const m=computed(()=>{const k=(f.header.space===!0?f.header.size:0)+(f.footer.space===!0?f.footer.size:0);if(typeof u.styleFn=="function"){const a=f.isContainer.value===!0?f.containerHeight.value:g.screen.height;return u.styleFn(k,a)}return{minHeight:f.isContainer.value===!0?f.containerHeight.value-k+"px":g.screen.height===0?k!==0?`calc(100vh - ${k}px)`:"100vh":g.screen.height-k+"px"}}),y=computed(()=>`q-page${u.padding===!0?" q-layout-padding":""}`);return()=>h("main",{class:y.value,style:m.value},hSlot(d.default))}});const _sfc_main$b=defineComponent({name:"HomePage",setup(){return{mainStore:useMainStore()}}});function _sfc_render$a(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:"flex flex-center"},{default:withCtx(()=>[createVNode(QInnerLoading,{showing:!0,label:"Loading..."})]),_:1})}var HomePage=_export_sfc(_sfc_main$b,[["render",_sfc_render$a]]),QTd=createComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(u,{slots:d}){const g=getCurrentInstance(),f=computed(()=>"q-td"+(u.autoWidth===!0?" q-table--col-auto-width":"")+(u.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(u.props===void 0)return h("td",{class:f.value},hSlot(d.default));const b=g.vnode.key,m=(u.props.colsMap!==void 0?u.props.colsMap[b]:null)||u.props.col;if(m===void 0)return;const{row:y}=u.props;return h("td",{class:f.value+m.__tdClass(y),style:m.__tdStyle(y)},hSlot(d.default))}}});const innerHTML='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';var QSpinnerDots=createComponent({name:"QSpinnerDots",props:useSpinnerProps,setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value,fill:"currentColor",width:d.value,height:d.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML})}});const{passive}=listenOpts;var QInfiniteScroll=createComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:scrollTargetProp,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(u,{slots:d,emit:g}){const f=ref(!1),b=ref(!0),m=ref(null),y=ref(null);let k=u.initialIndex,a,q;const w=computed(()=>"q-infinite-scroll__loading"+(f.value===!0?"":" invisible"));function $(){if(u.disable===!0||f.value===!0||b.value===!1)return;const T=getScrollHeight(a),O=getVerticalScrollPosition(a),P=height(a);u.reverse===!1?Math.round(O+P+u.offset)>=Math.round(T)&&Q():Math.round(O)<=u.offset&&Q()}function Q(){if(u.disable===!0||f.value===!0||b.value===!1)return;k++,f.value=!0;const T=getScrollHeight(a);g("load",k,O=>{b.value===!0&&(f.value=!1,nextTick(()=>{if(u.reverse===!0){const P=getScrollHeight(a),B=getVerticalScrollPosition(a),M=P-T;setVerticalScrollPosition(a,B+M)}O===!0?J():m.value&&m.value.closest("body")&&q()}))})}function C(){k=0}function v(){b.value===!1&&(b.value=!0,a.addEventListener("scroll",q,passive)),$()}function J(){b.value===!0&&(b.value=!1,f.value=!1,a.removeEventListener("scroll",q,passive),q!==void 0&&q.cancel!==void 0&&q.cancel())}function ae(){if(a&&b.value===!0&&a.removeEventListener("scroll",q,passive),a=getScrollTarget(m.value,u.scrollTarget),b.value===!0){if(a.addEventListener("scroll",q,passive),u.reverse===!0){const T=getScrollHeight(a),O=height(a);setVerticalScrollPosition(a,T-O)}$()}}function H(T){k=T}function Y(T){T=parseInt(T,10);const O=q;q=T<=0?$:debounce($,isNaN(T)===!0?100:T),a&&b.value===!0&&(O!==void 0&&a.removeEventListener("scroll",O,passive),a.addEventListener("scroll",q,passive))}function G(T){if(j.value===!0){if(y.value===null){T!==!0&&nextTick(()=>{G(!0)});return}const O=`${f.value===!0?"un":""}pauseAnimations`;Array.from(y.value.getElementsByTagName("svg")).forEach(P=>{P[O]()})}}const j=computed(()=>u.disable!==!0&&b.value===!0);watch([f,j],()=>{G()}),watch(()=>u.disable,T=>{T===!0?J():v()}),watch(()=>u.reverse,()=>{f.value===!1&&b.value===!0&&$()}),watch(()=>u.scrollTarget,ae),watch(()=>u.debounce,Y);let L=!1;onActivated(()=>{L!==!1&&a&&setVerticalScrollPosition(a,L)}),onDeactivated(()=>{L=a?getVerticalScrollPosition(a):!1}),onBeforeUnmount(()=>{b.value===!0&&a.removeEventListener("scroll",q,passive)}),onMounted(()=>{Y(u.debounce),ae(),f.value===!1&&G()});const R=getCurrentInstance();return Object.assign(R.proxy,{poll:()=>{q!==void 0&&q()},trigger:Q,stop:J,reset:C,resume:v,setIndex:H,updateScrollTarget:ae}),()=>{const T=hUniqueSlot(d.default,[]);return j.value===!0&&T[u.reverse===!1?"push":"unshift"](h("div",{ref:y,class:w.value},hSlot(d.loading))),h("div",{class:"q-infinite-scroll",ref:m},T)}}}),EmailFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main$a=defineComponent({name:"EmailFolderPage",data:()=>({timeInterval:null,indexCursors:null,loading:!1,loadMoreAutomatically:!0,hasMorePages:!0,rows:[],columns:[{name:"sender",required:!0,field:"sender",align:"left",sortable:!1},{name:"subject",required:!0,field:"subject",align:"left",sortable:!1},{name:"lastModified",required:!0,align:"left",field:"lastModified",sortable:!1},{name:"has_attachments",required:!0,align:"left",field:"has_attachments",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:()=>"inbox"},watch:{selectedBucket(u){this.fetchFiles()}},methods:{rowClass:u=>u.row.customMetadata.read==="true"?"email-read":"email-unread",rowClick:function(u,d,g){const f=d.key.replace(/^.*[\\/]/,"");this.$router.push({name:"email-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder,file:encode(f)}})},createOrUpdateIndex:async function(u){let d=!0,g=null,f=0,b={version:1,cursors:[]};if(u&&(b=u,u.cursors.length>0)){const m=u.cursors.pop();f=m.page,g=m.cursor}for(;d;){console.log(`Updating index page ${f}`);const m=await api.get(`/buckets/${this.selectedBucket}?include=customMetadata&include=httpMetadata`,{params:{delimiter:"/",prefix:encode(`.r2-explorer/emails/${this.selectedFolder}/`),cursor:g}});b.cursors.push({page:f,cursor:g,items:m.data.objects.length}),g=m.data.cursor,d=m.data.truncated,f++}return b},getOrCreateIndex:async function(){const u=`.r2-explorer/emails/index-${this.selectedFolder}.json`,d=await apiHandler.downloadFile(this.selectedBucket,u,{}).then(b=>b.data).catch(b=>null),g=await this.createOrUpdateIndex(d),f=new Blob([JSON.stringify(g)],{type:"application/json"});try{await apiHandler.uploadObjects(f,u,this.selectedBucket)}catch{}return g},loadNextPage:async function(u,d){const g=this.indexCursors[u];g?await this.loadIndexPage(g):(this.loadMoreAutomatically=!0,this.hasMorePages=!1),d()},fetchFiles:async function(){this.loading=!0,this.rows=[];const u=await this.getOrCreateIndex();this.indexCursors=u.cursors.reverse(),await this.loadNextPage(0,()=>{}),await this.$refs.infScroll.setIndex(0),await this.$refs.infScroll.poll(),this.loadMoreAutomatically=!1,this.loading=!1},loadIndexPage:async function(u){const d=await apiHandler.listObjects(this.selectedBucket,`.r2-explorer/emails/${this.selectedFolder}/`,"/",u.cursor);if(d.data.objects){const g=d.data.objects.filter(f=>!f.key.endsWith("/")).map(f=>{const b=new Date(Number.parseInt(f.customMetadata.timestamp));return{...f,sender:f.customMetadata.from_name||f.customMetadata.from_address,subject:f.customMetadata.subject,has_attachments:f.customMetadata.has_attachments==="true",read:f.customMetadata.read,lastModified:timeSince(b),timestamp:Number.parseInt(f.customMetadata.timestamp)}});for(const f of g.reverse())this.rows.push(f)}}},unmounted(){clearInterval(this.timeInterval),this.timeInterval=null},mounted(){this.timeInterval=setInterval(()=>{this.fetchFiles()},3e5)},created(){this.fetchFiles()},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$7={class:""},_hoisted_2$4={class:"full-width q-my-lg"},_hoisted_3$4={class:"flex items-center justify-center"},_hoisted_4$4={class:"q-mb-md"},_hoisted_5$4={class:"text-left"},_hoisted_6$4={class:"flex column"},_hoisted_7$4={class:"flex"},_hoisted_8$3={class:"mobile-title"},_hoisted_9$2={class:"mobile-last-modified mobile-subject"},_hoisted_10$2={class:"email-subject mobile-subject"},_hoisted_11$2={key:0,class:"full-width q-my-lg"},_hoisted_12$2={class:"flex items-center justify-center"},_hoisted_13$2={key:0,class:"row justify-center q-my-md"},_hoisted_14$2={class:"row justify-center q-my-md"};function _sfc_render$9(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$7,[createVNode(QInfiniteScroll,{ref:"infScroll",disable:u.loadMoreAutomatically,onLoad:u.loadNextPage,offset:250,debounce:100},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_14$2,[createVNode(QSpinnerDots,{color:"primary",size:"40px"})])]),default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],flat:!0,"table-class":"email-list",onRowClick:u.rowClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("h6",_hoisted_3$4,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"body-cell":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),header:withCtx(()=>[createBaseVNode("tr",_hoisted_4$4,[createBaseVNode("th",_hoisted_5$4,[createVNode(QBtn,{color:"green",icon:"refresh",loading:u.loading,onClick:u.fetchFiles},{loading:withCtx(()=>[createVNode(QSpinner,{color:"white"})]),_:1},8,["loading","onClick"])])])]),"body-cell-sender":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-sender",u.rowClass(y)])},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$4,[createBaseVNode("div",_hoisted_7$4,[createBaseVNode("div",_hoisted_8$3,toDisplayString(y.value),1),createBaseVNode("div",_hoisted_9$2,[createTextVNode(toDisplayString(y.row.lastModified)+" ",1),y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_10$2,toDisplayString(y.row.subject),1)])]),_:2},1032,["props","class"])]),"body-cell-subject":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-subject",u.rowClass(y)])},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$2,[createBaseVNode("h6",_hoisted_12$2,[createVNode(QIcon,{name:"alternate_email",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode(" This bucket doesn't have Emails "))])]))]),"body-cell-has_attachments":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):(openBlock(),createBlock(QIcon,{key:1,size:"sm",color:"white"}))]),_:2},1032,["props","class"])]),_:1},8,["rows","columns","loading","onRowClick"]),u.hasMorePages?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$2,d[1]||(d[1]=[createBaseVNode("span",null,"No more emails to load",-1)])))]),_:1},8,["disable","onLoad"])])]),_:1})}var EmailFolderPage=_export_sfc(_sfc_main$a,[["render",_sfc_render$9]]),QBreadcrumbsEl=createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(u,{slots:d}){const{linkTag:g,linkAttrs:f,linkClass:b,navigateOnClick:m}=useRouterLink(),y=computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(u.disable!==!0?"q-link--focusable"+b.value:"q-breadcrumbs__el--disable"),...f.value,onClick:m})),k=computed(()=>"q-breadcrumbs__el-icon"+(u.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return u.icon!==void 0&&a.push(h(QIcon,{class:k.value,name:u.icon})),u.label!==void 0&&a.push(u.label),h(g.value,{...y.value},hMergeSlot(d.default,a))}}});const disabledValues=["",!0];var QBreadcrumbs=createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:u=>["none","xs","sm","md","lg","xl"].includes(u),default:"sm"}},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`flex items-center ${g.value}${u.gutter==="none"?"":` q-gutter-${u.gutter}`}`),b=computed(()=>u.separatorColor?` text-${u.separatorColor}`:""),m=computed(()=>` text-${u.activeColor}`);return()=>{if(d.default===void 0)return;const y=getNormalizedVNodes(hSlot(d.default));if(y.length===0)return;let k=1;const a=[],q=y.filter($=>$.type!==void 0&&$.type.name==="QBreadcrumbsEl").length,w=d.separator!==void 0?d.separator:()=>u.separator;return y.forEach($=>{if($.type!==void 0&&$.type.name==="QBreadcrumbsEl"){const Q=k<q,C=$.props!==null&&disabledValues.includes($.props.disable),v=(Q===!0?"":" q-breadcrumbs--last")+(C!==!0&&Q===!0?m.value:"");k++,a.push(h("div",{class:`flex items-center${v}`},[$])),Q===!0&&a.push(h("div",{class:"q-breadcrumbs__separator"+b.value},w()))}else a.push($)}),h("div",{class:"q-breadcrumbs"},[h("div",{class:f.value},a)])}}});function useQuasar(){return inject(quasarKey)}var FileOptions_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$9=defineComponent({name:"FileOptions",data:()=>({row:null,deleteFolderContents:[],deleteModal:!1,renameModal:!1,updateMetadataModal:!1,deleteFolderInnerFilesCount:null,newFolderName:"",renameInput:"",updateCustomMetadata:[],updateHttpMetadata:[],loading:!1}),methods:{deleteObject:async function(u){this.deleteModal=!0,this.row=u,u.type==="folder"&&(this.deleteFolderContents=await apiHandler.fetchFile(this.selectedBucket,u.key,""),this.deleteFolderInnerFilesCount=this.deleteFolderContents.length)},renameObject:async function(u){this.renameModal=!0,this.row=u,this.renameInput=u.name},updateMetadataObject:async function(u){this.updateMetadataModal=!0,this.row=u,u.httpMetadata&&(this.updateHttpMetadata=Object.entries(u.httpMetadata).map(([d,g])=>({key:d,value:g}))),u.customMetadata&&(this.updateCustomMetadata=Object.entries(u.customMetadata).map(([d,g])=>({key:d,value:g})))},renameConfirm:async function(){this.renameInput.length!==0&&(this.loading=!0,await apiHandler.renameObject(this.selectedBucket,this.row.key,this.row.key.replace(this.row.name,this.renameInput)),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File renamed!",timeout:2500}))},updateConfirm:async function(){this.loading=!0,await apiHandler.updateMetadata(this.selectedBucket,this.row.key,this.updateCustomMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{}),this.updateHttpMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{})),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File Updated!",timeout:2500})},deleteConfirm:async function(){if(this.row.type==="folder"){const u={...this.row},d=[...this.deleteFolderContents],g=this.deleteFolderInnerFilesCount;this.deleteModal=!1;const f=this.q.notify({group:!1,spinner:!0,message:"Deleting files...",caption:"0%",timeout:0});for(const[b,m]of d.entries())m.key&&await apiHandler.deleteObject(m.key,this.selectedBucket),f({caption:`${Number.parseInt(b*100/(g+1))}%`});await apiHandler.deleteObject(u.key,this.selectedBucket),f({icon:"done",spinner:!1,caption:"100%",message:"Folder deleted!",timeout:2500})}else this.deleteModal=!1,await apiHandler.deleteObject(this.row.key,this.selectedBucket),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File deleted!",timeout:2500});this.$bus.emit("fetchFiles"),this.reset()},reset:function(){this.loading=!1,this.deleteModal=!1,this.renameModal=!1,this.updateMetadataModal=!1,this.renameInput="",this.updateCustomMetadata=[],this.updateHttpMetadata=[],this.row=null,this.deleteFolderInnerFilesCount=null,this.deleteFolderContents=[]},onSubmit:async function(){await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.modal=!1},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1$6={key:0,class:"q-ml-sm"},_hoisted_2$3={key:0},_hoisted_3$3={key:1},_hoisted_4$3={key:1,class:"q-ml-sm"},_hoisted_5$3={class:"q-mt-none q-mb-sm flex"},_hoisted_6$3={class:"flex"},_hoisted_7$3={class:"q-mt-xl q-mb-sm flex"},_hoisted_8$2={class:"flex"};function _sfc_render$8(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createVNode(QDialog,{modelValue:u.deleteModal,"onUpdate:modelValue":d[0]||(d[0]=y=>u.deleteModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"delete",color:"red","text-color":"white"}),u.row.type==="folder"?(openBlock(),createElementBlock("span",_hoisted_1$6,[d[6]||(d[6]=createTextVNode("Are you sure you want to delete the folder ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[7]||(d[7]=createTextVNode(", and ")),u.deleteFolderInnerFilesCount!==null?(openBlock(),createElementBlock("code",_hoisted_2$3,toDisplayString(u.deleteFolderInnerFilesCount),1)):(openBlock(),createElementBlock("code",_hoisted_3$3,[createVNode(QSpinner,{color:"primary"})])),d[8]||(d[8]=createTextVNode(" files inside?"))])):(openBlock(),createElementBlock("span",_hoisted_4$3,[d[9]||(d[9]=createTextVNode("Are you sure you want to delete the file ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[10]||(d[10]=createTextVNode("?"))]))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Delete",color:"red",loading:u.loading,onClick:u.deleteConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.renameModal,"onUpdate:modelValue":d[2]||(d[2]=y=>u.renameModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"edit",color:"orange","text-color":"white"}),createVNode(QInput,{modelValue:u.renameInput,"onUpdate:modelValue":d[1]||(d[1]=y=>u.renameInput=y),label:"Standard"},null,8,["modelValue"])]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Rename",color:"orange",loading:u.loading,onClick:u.renameConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.updateMetadataModal,"onUpdate:modelValue":d[5]||(d[5]=y=>u.updateMetadataModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createBaseVNode("h6",_hoisted_5$3,[d[11]||(d[11]=createTextVNode("HTTP Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[3]||(d[3]=y=>u.updateHttpMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateHttpMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].key,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].value,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_6$3,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateHttpMetadata.splice(k,1)},null,8,["onClick"])])]))),128)),createBaseVNode("h6",_hoisted_7$3,[d[12]||(d[12]=createTextVNode("Custom Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[4]||(d[4]=y=>u.updateCustomMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateCustomMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].key,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].value,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_8$2,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateCustomMetadata.splice(k,1)},null,8,["onClick"])])]))),128))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Update Metadata",color:"orange",loading:u.loading,onClick:u.updateConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])],64)}var FileOptions=_export_sfc(_sfc_main$9,[["render",_sfc_render$8],["__scopeId","data-v-227ab214"]]),ElementType;(function(u){u.Root="root",u.Text="text",u.Directive="directive",u.Comment="comment",u.Script="script",u.Style="style",u.Tag="tag",u.CDATA="cdata",u.Doctype="doctype"})(ElementType||(ElementType={}));function isTag$1(u){return u.type===ElementType.Tag||u.type===ElementType.Script||u.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;class Node$1{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(d){this.parent=d}get previousSibling(){return this.prev}set previousSibling(d){this.prev=d}get nextSibling(){return this.next}set nextSibling(d){this.next=d}cloneNode(d=!1){return cloneNode(this,d)}}class DataNode extends Node$1{constructor(d){super(),this.data=d}get nodeValue(){return this.data}set nodeValue(d){this.data=d}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(d,g){super(g),this.name=d,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node$1{constructor(d){super(),this.children=d}get firstChild(){var d;return(d=this.children[0])!==null&&d!==void 0?d:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(d){this.children=d}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}class Element$1 extends NodeWithChildren{constructor(d,g,f=[],b=d==="script"?ElementType.Script:d==="style"?ElementType.Style:ElementType.Tag){super(f),this.name=d,this.attribs=g,this.type=b}get nodeType(){return 1}get tagName(){return this.name}set tagName(d){this.name=d}get attributes(){return Object.keys(this.attribs).map(d=>{var g,f;return{name:d,value:this.attribs[d],namespace:(g=this["x-attribsNamespace"])===null||g===void 0?void 0:g[d],prefix:(f=this["x-attribsPrefix"])===null||f===void 0?void 0:f[d]}})}}function isTag(u){return isTag$1(u)}function isCDATA(u){return u.type===ElementType.CDATA}function isText(u){return u.type===ElementType.Text}function isComment(u){return u.type===ElementType.Comment}function isDirective(u){return u.type===ElementType.Directive}function isDocument(u){return u.type===ElementType.Root}function cloneNode(u,d=!1){let g;if(isText(u))g=new Text(u.data);else if(isComment(u))g=new Comment(u.data);else if(isTag(u)){const f=d?cloneChildren(u.children):[],b=new Element$1(u.name,{...u.attribs},f);f.forEach(m=>m.parent=b),u.namespace!=null&&(b.namespace=u.namespace),u["x-attribsNamespace"]&&(b["x-attribsNamespace"]={...u["x-attribsNamespace"]}),u["x-attribsPrefix"]&&(b["x-attribsPrefix"]={...u["x-attribsPrefix"]}),g=b}else if(isCDATA(u)){const f=d?cloneChildren(u.children):[],b=new CDATA(f);f.forEach(m=>m.parent=b),g=b}else if(isDocument(u)){const f=d?cloneChildren(u.children):[],b=new Document(f);f.forEach(m=>m.parent=b),u["x-mode"]&&(b["x-mode"]=u["x-mode"]),g=b}else if(isDirective(u)){const f=new ProcessingInstruction(u.name,u.data);u["x-name"]!=null&&(f["x-name"]=u["x-name"],f["x-publicId"]=u["x-publicId"],f["x-systemId"]=u["x-systemId"]),g=f}else throw new Error(`Not implemented yet: ${u.type}`);return g.startIndex=u.startIndex,g.endIndex=u.endIndex,u.sourceCodeLocation!=null&&(g.sourceCodeLocation=u.sourceCodeLocation),g}function cloneChildren(u){const d=u.map(g=>cloneNode(g,!0));for(let g=1;g<d.length;g++)d[g].prev=d[g-1],d[g-1].next=d[g];return d}const defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class DomHandler{constructor(d,g,f){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof g=="function"&&(f=g,g=defaultOpts),typeof d=="object"&&(g=d,d=void 0),this.callback=d!=null?d:null,this.options=g!=null?g:defaultOpts,this.elementCB=f!=null?f:null}onparserinit(d){this.parser=d}onreset(){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(d){this.handleCallback(d)}onclosetag(){this.lastNode=null;const d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)}onopentag(d,g){const f=this.options.xmlMode?ElementType.Tag:void 0,b=new Element$1(d,g,void 0,f);this.addNode(b),this.tagStack.push(b)}ontext(d){const{lastNode:g}=this;if(g&&g.type===ElementType.Text)g.data+=d,this.options.withEndIndices&&(g.endIndex=this.parser.endIndex);else{const f=new Text(d);this.addNode(f),this.lastNode=f}}oncomment(d){if(this.lastNode&&this.lastNode.type===ElementType.Comment){this.lastNode.data+=d;return}const g=new Comment(d);this.addNode(g),this.lastNode=g}oncommentend(){this.lastNode=null}oncdatastart(){const d=new Text(""),g=new CDATA([d]);this.addNode(g),d.parent=g,this.lastNode=d}oncdataend(){this.lastNode=null}onprocessinginstruction(d,g){const f=new ProcessingInstruction(d,g);this.addNode(f)}handleCallback(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d}addNode(d){const g=this.tagStack[this.tagStack.length-1],f=g.children[g.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),g.children.push(d),f&&(d.prev=f,f.next=d),d.parent=g,this.lastNode=null}}const e=/\n/g;function n(u){const d=[...u.matchAll(e)].map(f=>f.index||0);d.unshift(-1);const g=t(d,0,d.length);return f=>r(g,f)}function t(u,d,g){if(g-d==1)return{offset:u[d],index:d+1};const f=Math.ceil((d+g)/2),b=t(u,d,f),m=t(u,f,g);return{offset:b.offset,low:b,high:m}}function r(u,d){return function(g){return Object.prototype.hasOwnProperty.call(g,"index")}(u)?{line:u.index,column:d-u.offset}:r(u.high.offset<d?u.high:u.low,d)}function o(u,d="",g={}){const f=typeof d!="string"?d:g,b=typeof d=="string"?d:"",m=u.map(s),y=!!f.lineNumbers;return function(k,a=0){const q=y?n(k):()=>({line:0,column:0});let w=a;const $=[];e:for(;w<k.length;){let Q=!1;for(const C of m){C.regex.lastIndex=w;const v=C.regex.exec(k);if(v&&v[0].length>0){if(!C.discard){const J=q(w),ae=typeof C.replace=="string"?v[0].replace(new RegExp(C.regex.source,C.regex.flags),C.replace):v[0];$.push({state:b,name:C.name,text:ae,offset:w,len:v[0].length,line:J.line,column:J.column})}if(w=C.regex.lastIndex,Q=!0,C.push){const J=C.push(k,w);$.push(...J.tokens),w=J.offset}if(C.pop)break e;break}}if(!Q)break}return{tokens:$,offset:w,complete:k.length<=w}}}function s(u,d){return{...u,regex:l(u,d)}}function l(u,d){if(u.name.length===0)throw new Error(`Rule #${d} has empty name, which is not allowed.`);if(function(g){return Object.prototype.hasOwnProperty.call(g,"regex")}(u))return function(g){if(g.global)throw new Error(`Regular expression /${g.source}/${g.flags} contains the global flag, which is not allowed.`);return g.sticky?g:new RegExp(g.source,g.flags+"y")}(u.regex);if(function(g){return Object.prototype.hasOwnProperty.call(g,"str")}(u)){if(u.str.length===0)throw new Error(`Rule #${d} ("${u.name}") has empty "str" property, which is not allowed.`);return new RegExp(c(u.str),"y")}return new RegExp(c(u.name),"y")}function c(u){return u.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function token(u,d){return(g,f)=>{let b=f,m;return f<g.tokens.length?(m=u(g.tokens[f],g,f),m!==void 0&&b++):d==null||d(g,f),m===void 0?{matched:!1}:{matched:!0,position:b,value:m}}}function mapInner(u,d){return u.matched?{matched:!0,position:u.position,value:d(u.value,u.position)}:u}function mapOuter(u,d){return u.matched?d(u):u}function map(u,d){return(g,f)=>mapInner(u(g,f),(b,m)=>d(b,g,f,m))}function option(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:{matched:!0,position:f,value:d}}}function choice(...u){return(d,g)=>{for(const f of u){const b=f(d,g);if(b.matched)return b}return{matched:!1}}}function otherwise(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:d(g,f)}}function takeWhile(u,d){return(g,f)=>{const b=[];let m=!0;do{const y=u(g,f);y.matched&&d(y.value,b.length+1,g,f,y.position)?(b.push(y.value),f=y.position):m=!1}while(m);return{matched:!0,position:f,value:b}}}function many(u){return takeWhile(u,()=>!0)}function many1(u){return ab(u,many(u),(d,g)=>[d,...g])}function ab(u,d,g){return(f,b)=>mapOuter(u(f,b),m=>mapInner(d(f,m.position),(y,k)=>g(m.value,y,f,b,k)))}function left(u,d){return ab(u,d,g=>g)}function right(u,d){return ab(u,d,(g,f)=>f)}function abc(u,d,g,f){return(b,m)=>mapOuter(u(b,m),y=>mapOuter(d(b,y.position),k=>mapInner(g(b,k.position),(a,q)=>f(y.value,k.value,a,b,m,q))))}function middle(u,d,g){return abc(u,d,g,(f,b)=>b)}function all(...u){return(d,g)=>{const f=[];let b=g;for(const m of u){const y=m(d,b);if(y.matched)f.push(y.value),b=y.position;else return{matched:!1}}return{matched:!0,position:b,value:f}}}function flatten(...u){return flatten1(all(...u))}function flatten1(u){return map(u,d=>d.flatMap(g=>g))}function chainReduce(u,d){return(g,f)=>{let b=!0,m=u,y=f;do{const k=d(m,g,y)(g,y);k.matched?(m=k.value,y=k.position):b=!1}while(b);return{matched:!0,position:y,value:m}}}function reduceLeft(u,d,g){return chainReduce(u,f=>map(d,(b,m,y,k)=>g(f,b,m,y,k)))}function leftAssoc2(u,d,g){return chain(u,f=>reduceLeft(f,ab(d,g,(b,m)=>[b,m]),(b,[m,y])=>m(b,y)))}function chain(u,d){return(g,f)=>mapOuter(u(g,f),b=>d(b.value,g,f,b.position)(g,b.position))}const ws="(?:[ \\t\\r\\n\\f]*)",nl="(?:\\n|\\r\\n|\\r|\\f)",nonascii="[^\\x00-\\x7F]",unicode="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",escape$1="(?:\\\\[^\\n\\r\\f0-9a-f])",nmstart=`(?:[_a-z]|${nonascii}|${unicode}|${escape$1})`,nmchar=`(?:[_a-z0-9-]|${nonascii}|${unicode}|${escape$1})`,name=`(?:${nmchar}+)`,ident=`(?:[-]?${nmstart}${nmchar}*)`,string1=`'([^\\n\\r\\f\\\\']|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*'`,string2=`"([^\\n\\r\\f\\\\"]|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*"`,lexSelector=o([{name:"ws",regex:new RegExp(ws)},{name:"hash",regex:new RegExp(`#${name}`,"i")},{name:"ident",regex:new RegExp(ident,"i")},{name:"str1",regex:new RegExp(string1,"i")},{name:"str2",regex:new RegExp(string2,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),lexEscapedString=o([{name:"unicode",regex:new RegExp(unicode,"i")},{name:"escape",regex:new RegExp(escape$1,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([u,d,g],[f,b,m]){return[u+f,d+b,g+m]}function sumAllSpec(u){return u.reduce(sumSpec,[0,0,0])}const unicodeEscapedSequence_=token(u=>u.name==="unicode"?String.fromCodePoint(parseInt(u.text.slice(1),16)):void 0),escapedSequence_=token(u=>u.name==="escape"?u.text.slice(1):void 0),anyChar_=token(u=>u.name==="any"?u.text:void 0),escapedString_=map(many(choice(unicodeEscapedSequence_,escapedSequence_,anyChar_)),u=>u.join(""));function unescape$1(u){const d=lexEscapedString(u);return escapedString_({tokens:d.tokens,options:void 0},0).value}function literal(u){return token(d=>d.name===u?!0:void 0)}const whitespace_=token(u=>u.name==="ws"?null:void 0),optionalWhitespace_=option(whitespace_,null);function optionallySpaced(u){return middle(optionalWhitespace_,u,optionalWhitespace_)}const identifier_=token(u=>u.name==="ident"?unescape$1(u.text):void 0),hashId_=token(u=>u.name==="hash"?unescape$1(u.text.slice(1)):void 0),string_=token(u=>u.name.startsWith("str")?unescape$1(u.text.slice(1,-1)):void 0),namespace_=left(option(identifier_,""),literal("|")),qualifiedName_=otherwise(ab(namespace_,identifier_,(u,d)=>({name:d,namespace:u})),map(identifier_,u=>({name:u,namespace:null}))),uniSelector_=otherwise(ab(namespace_,literal("*"),u=>({type:"universal",namespace:u,specificity:[0,0,0]})),map(literal("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),tagSelector_=map(qualifiedName_,({name:u,namespace:d})=>({type:"tag",name:u,namespace:d,specificity:[0,0,1]})),classSelector_=ab(literal("."),identifier_,(u,d)=>({type:"class",name:d,specificity:[0,1,0]})),idSelector_=map(hashId_,u=>({type:"id",name:u,specificity:[1,0,0]})),attrModifier_=token(u=>{if(u.name==="ident"){if(u.text==="i"||u.text==="I")return"i";if(u.text==="s"||u.text==="S")return"s"}}),attrValue_=otherwise(ab(string_,option(right(optionalWhitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d})),ab(identifier_,option(right(whitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d}))),attrMatcher_=choice(map(literal("="),()=>"="),ab(literal("~"),literal("="),()=>"~="),ab(literal("|"),literal("="),()=>"|="),ab(literal("^"),literal("="),()=>"^="),ab(literal("$"),literal("="),()=>"$="),ab(literal("*"),literal("="),()=>"*=")),attrPresenceSelector_=abc(literal("["),optionallySpaced(qualifiedName_),literal("]"),(u,{name:d,namespace:g})=>({type:"attrPresence",name:d,namespace:g,specificity:[0,1,0]})),attrValueSelector_=middle(literal("["),abc(optionallySpaced(qualifiedName_),attrMatcher_,optionallySpaced(attrValue_),({name:u,namespace:d},g,{value:f,modifier:b})=>({type:"attrValue",name:u,namespace:d,matcher:g,value:f,modifier:b,specificity:[0,1,0]})),literal("]")),attrSelector_=otherwise(attrPresenceSelector_,attrValueSelector_),typeSelector_=otherwise(uniSelector_,tagSelector_),subclassSelector_=choice(idSelector_,classSelector_,attrSelector_),compoundSelector_=map(otherwise(flatten(typeSelector_,many(subclassSelector_)),many1(subclassSelector_)),u=>({type:"compound",list:u,specificity:sumAllSpec(u.map(d=>d.specificity))})),combinator_=choice(map(literal(">"),()=>">"),map(literal("+"),()=>"+"),map(literal("~"),()=>"~"),ab(literal("|"),literal("|"),()=>"||")),combinatorSeparator_=otherwise(optionallySpaced(combinator_),map(whitespace_,()=>" ")),complexSelector_=leftAssoc2(compoundSelector_,map(combinatorSeparator_,u=>(d,g)=>({type:"compound",list:[...g.list,{type:"combinator",combinator:u,left:d,specificity:d.specificity}],specificity:sumSpec(d.specificity,g.specificity)})),compoundSelector_);function parse_(u,d){if(!(typeof d=="string"||d instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const g=lexSelector(d);if(!g.complete)throw new Error(`The input "${d}" was only partially tokenized, stopped at offset ${g.offset}!
|
|
34
|
+
`+prettyPrintPosition(d,g.offset));const f=optionallySpaced(u)({tokens:g.tokens,options:void 0},0);if(!f.matched)throw new Error(`No match for "${d}" input!`);if(f.position<g.tokens.length){const b=g.tokens[f.position];throw new Error(`The input "${d}" was only partially parsed, stopped at offset ${b.offset}!
|
|
35
|
+
`+prettyPrintPosition(d,b.offset,b.len))}return f.value}function prettyPrintPosition(u,d,g=1){return`${u.replace(/(\t)|(\r)|(\n)/g,(f,b,m)=>b?"\u2409":m?"\u240D":"\u240A")}
|
|
36
|
+
${"".padEnd(d)}${"^".repeat(g)}`}function parse1(u){return parse_(complexSelector_,u)}function serialize(u){if(!u.type)throw new Error("This is not an AST node.");switch(u.type){case"universal":return _serNs(u.namespace)+"*";case"tag":return _serNs(u.namespace)+_serIdent(u.name);case"class":return"."+_serIdent(u.name);case"id":return"#"+_serIdent(u.name);case"attrPresence":return`[${_serNs(u.namespace)}${_serIdent(u.name)}]`;case"attrValue":return`[${_serNs(u.namespace)}${_serIdent(u.name)}${u.matcher}"${_serStr(u.value)}"${u.modifier?u.modifier:""}]`;case"combinator":return serialize(u.left)+u.combinator;case"compound":return u.list.reduce((d,g)=>g.type==="combinator"?serialize(g)+d:d+serialize(g),"");case"list":return u.list.map(serialize).join(",")}}function _serNs(u){return u||u===""?_serIdent(u)+"|":""}function _codePoint(u){return`\\${u.codePointAt(0).toString(16)} `}function _serIdent(u){return u.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(d,g,f,b,m,y,k,a)=>g?_codePoint(g):f?"-"+_codePoint(f.slice(1)):b?"\\-":m||(y?"\uFFFD":k?_codePoint(k):"\\"+a))}function _serStr(u){return u.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(d,g,f,b,m)=>g?'\\"':f?"\\\\":b?"\uFFFD":_codePoint(m))}function normalize(u){if(!u.type)throw new Error("This is not an AST node.");switch(u.type){case"compound":{u.list.forEach(normalize),u.list.sort((d,g)=>_compareArrays(_getSelectorPriority(d),_getSelectorPriority(g)));break}case"combinator":{normalize(u.left);break}case"list":{u.list.forEach(normalize),u.list.sort((d,g)=>serialize(d)<serialize(g)?-1:1);break}}return u}function _getSelectorPriority(u){switch(u.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,u.name];case"attrPresence":return[4,serialize(u)];case"attrValue":return[5,serialize(u)];case"combinator":return[15,serialize(u)]}}function compareSpecificity(u,d){return _compareArrays(u,d)}function _compareArrays(u,d){if(!Array.isArray(u)||!Array.isArray(d))throw new Error("Arguments must be arrays.");const g=u.length<d.length?u.length:d.length;for(let f=0;f<g;f++)if(u[f]!==d[f])return u[f]<d[f]?-1:1;return u.length-d.length}class DecisionTree{constructor(d){this.branches=weave(toAstTerminalPairs(d))}build(d){return d(this.branches)}}function toAstTerminalPairs(u){const d=u.length,g=new Array(d);for(let f=0;f<d;f++){const[b,m]=u[f],y=preprocess(parse1(b));g[f]={ast:y,terminal:{type:"terminal",valueContainer:{index:f,value:m,specificity:y.specificity}}}}return g}function preprocess(u){return reduceSelectorVariants(u),normalize(u),u}function reduceSelectorVariants(u){const d=[];u.list.forEach(g=>{switch(g.type){case"class":d.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:g.specificity,type:"attrValue",value:g.name});break;case"id":d.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:g.specificity,type:"attrValue",value:g.name});break;case"combinator":reduceSelectorVariants(g.left),d.push(g);break;case"universal":break;default:d.push(g);break}}),u.list=d}function weave(u){const d=[];for(;u.length;){const g=findTopKey(u,y=>!0,getSelectorKind),{matches:f,nonmatches:b,empty:m}=breakByKind(u,g);u=b,f.length&&d.push(branchOfKind(g,f)),m.length&&d.push(...terminate(m))}return d}function terminate(u){const d=[];for(const g of u){const f=g.terminal;if(f.type==="terminal")d.push(f);else{const{matches:b,rest:m}=partition(f.cont,y=>y.type==="terminal");b.forEach(y=>d.push(y)),m.length&&(f.cont=m,d.push(f))}}return d}function breakByKind(u,d){const g=[],f=[],b=[];for(const m of u){const y=m.ast.list;y.length?(y.some(a=>getSelectorKind(a)===d)?g:f).push(m):b.push(m)}return{matches:g,nonmatches:f,empty:b}}function getSelectorKind(u){switch(u.type){case"attrPresence":return`attrPresence ${u.name}`;case"attrValue":return`attrValue ${u.name}`;case"combinator":return`combinator ${u.combinator}`;default:return u.type}}function branchOfKind(u,d){if(u==="tag")return tagNameBranch(d);if(u.startsWith("attrValue "))return attrValueBranch(u.substring(10),d);if(u.startsWith("attrPresence "))return attrPresenceBranch(u.substring(13),d);if(u==="combinator >")return combinatorBranch(">",d);if(u==="combinator +")return combinatorBranch("+",d);throw new Error(`Unsupported selector kind: ${u}`)}function tagNameBranch(u){const d=spliceAndGroup(u,f=>f.type==="tag",f=>f.name),g=Object.entries(d).map(([f,b])=>({type:"variant",value:f,cont:weave(b.items)}));return{type:"tagName",variants:g}}function attrPresenceBranch(u,d){for(const g of d)spliceSimpleSelector(g,f=>f.type==="attrPresence"&&f.name===u);return{type:"attrPresence",name:u,cont:weave(d)}}function attrValueBranch(u,d){const g=spliceAndGroup(d,b=>b.type==="attrValue"&&b.name===u,b=>`${b.matcher} ${b.modifier||""} ${b.value}`),f=[];for(const b of Object.values(g)){const m=b.oneSimpleSelector,y=getAttrPredicate(m),k=weave(b.items);f.push({type:"matcher",matcher:m.matcher,modifier:m.modifier,value:m.value,predicate:y,cont:k})}return{type:"attrValue",name:u,matchers:f}}function getAttrPredicate(u){if(u.modifier==="i"){const d=u.value.toLowerCase();switch(u.matcher){case"=":return g=>d===g.toLowerCase();case"~=":return g=>g.toLowerCase().split(/[ \t]+/).includes(d);case"^=":return g=>g.toLowerCase().startsWith(d);case"$=":return g=>g.toLowerCase().endsWith(d);case"*=":return g=>g.toLowerCase().includes(d);case"|=":return g=>{const f=g.toLowerCase();return d===f||f.startsWith(d)&&f[d.length]==="-"}}}else{const d=u.value;switch(u.matcher){case"=":return g=>d===g;case"~=":return g=>g.split(/[ \t]+/).includes(d);case"^=":return g=>g.startsWith(d);case"$=":return g=>g.endsWith(d);case"*=":return g=>g.includes(d);case"|=":return g=>d===g||g.startsWith(d)&&g[d.length]==="-"}}}function combinatorBranch(u,d){const g=spliceAndGroup(d,b=>b.type==="combinator"&&b.combinator===u,b=>serialize(b.left)),f=[];for(const b of Object.values(g)){const m=weave(b.items),y=b.oneSimpleSelector.left;f.push({ast:y,terminal:{type:"popElement",cont:m}})}return{type:"pushElement",combinator:u,cont:weave(f)}}function spliceAndGroup(u,d,g){const f={};for(;u.length;){const b=findTopKey(u,d,g),m=w=>d(w)&&g(w)===b,y=w=>w.ast.list.some(m),{matches:k,rest:a}=partition1(u,y);let q=null;for(const w of k){const $=spliceSimpleSelector(w,m);q||(q=$)}if(q==null)throw new Error("No simple selector is found.");f[b]={oneSimpleSelector:q,items:k},u=a}return f}function spliceSimpleSelector(u,d){const g=u.ast.list,f=new Array(g.length);let b=-1;for(let y=g.length;y-- >0;)d(g[y])&&(f[y]=!0,b=y);if(b==-1)throw new Error("Couldn't find the required simple selector.");const m=g[b];return u.ast.list=g.filter((y,k)=>!f[k]),m}function findTopKey(u,d,g){const f={};for(const y of u){const k={};for(const a of y.ast.list.filter(d))k[g(a)]=!0;for(const a of Object.keys(k))f[a]?f[a]++:f[a]=1}let b="",m=0;for(const y of Object.entries(f))y[1]>m&&(b=y[0],m=y[1]);return b}function partition(u,d){const g=[],f=[];for(const b of u)d(b)?g.push(b):f.push(b);return{matches:g,rest:f}}function partition1(u,d){const g=[],f=[];for(const b of u)d(b)?g.push(b):f.push(b);return{matches:g,rest:f}}class Picker{constructor(d){this.f=d}pickAll(d){return this.f(d)}pick1(d,g=!1){const f=this.f(d),b=f.length;if(b===0)return null;if(b===1)return f[0].value;const m=g?comparatorPreferFirst:comparatorPreferLast;let y=f[0];for(let k=1;k<b;k++){const a=f[k];m(y,a)&&(y=a)}return y.value}}function comparatorPreferFirst(u,d){const g=compareSpecificity(d.specificity,u.specificity);return g>0||g===0&&d.index<u.index}function comparatorPreferLast(u,d){const g=compareSpecificity(d.specificity,u.specificity);return g>0||g===0&&d.index>u.index}function hp2Builder(u){return new Picker(handleArray(u))}function handleArray(u){const d=u.map(handleNode);return(g,...f)=>d.flatMap(b=>b(g,...f))}function handleNode(u){switch(u.type){case"terminal":{const d=[u.valueContainer];return(g,...f)=>d}case"tagName":return handleTagName(u);case"attrValue":return handleAttrValueName(u);case"attrPresence":return handleAttrPresenceName(u);case"pushElement":return handlePushElementNode(u);case"popElement":return handlePopElementNode(u)}}function handleTagName(u){const d={};for(const g of u.variants)d[g.value]=handleArray(g.cont);return(g,...f)=>{const b=d[g.name];return b?b(g,...f):[]}}function handleAttrPresenceName(u){const d=u.name,g=handleArray(u.cont);return(f,...b)=>Object.prototype.hasOwnProperty.call(f.attribs,d)?g(f,...b):[]}function handleAttrValueName(u){const d=[];for(const f of u.matchers){const b=f.predicate,m=handleArray(f.cont);d.push((y,k,...a)=>b(y)?m(k,...a):[])}const g=u.name;return(f,...b)=>{const m=f.attribs[g];return m||m===""?d.flatMap(y=>y(m,f,...b)):[]}}function handlePushElementNode(u){const d=handleArray(u.cont),g=u.combinator==="+"?getPrecedingElement:getParentElement;return(f,...b)=>{const m=g(f);return m===null?[]:d(m,f,...b)}}const getPrecedingElement=u=>{const d=u.prev;return d===null?null:isTag(d)?d:getPrecedingElement(d)},getParentElement=u=>{const d=u.parent;return d&&isTag(d)?d:null};function handlePopElementNode(u){const d=handleArray(u.cont);return(g,f,...b)=>d(f,...b)}var htmlDecodeTree=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(u=>u.charCodeAt(0))),xmlDecodeTree=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(u=>u.charCodeAt(0))),_a$1;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$1=String.fromCodePoint)!==null&&_a$1!==void 0?_a$1:function(u){let d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function replaceCodePoint(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=decodeMap.get(u))!==null&&d!==void 0?d:u}var CharCodes$1;(function(u){u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(u){u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$1(u){return u>=CharCodes$1.ZERO&&u<=CharCodes$1.NINE}function isHexadecimalCharacter(u){return u>=CharCodes$1.UPPER_A&&u<=CharCodes$1.UPPER_F||u>=CharCodes$1.LOWER_A&&u<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric(u){return u>=CharCodes$1.UPPER_A&&u<=CharCodes$1.UPPER_Z||u>=CharCodes$1.LOWER_A&&u<=CharCodes$1.LOWER_Z||isNumber$1(u)}function isEntityInAttributeInvalidEnd(u){return u===CharCodes$1.EQUALS||isAsciiAlphaNumeric(u)}var EntityDecoderState;(function(u){u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(u){u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(d,g,f){this.decodeTree=d,this.emitCodePoint=g,this.errors=f,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(d){this.decodeMode=d,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(d,g){switch(this.state){case EntityDecoderState.EntityStart:return d.charCodeAt(g)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(d,g+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(d,g));case EntityDecoderState.NumericStart:return this.stateNumericStart(d,g);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(d,g);case EntityDecoderState.NumericHex:return this.stateNumericHex(d,g);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(d,g)}}stateNumericStart(d,g){return g>=d.length?-1:(d.charCodeAt(g)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(d,g+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(d,g))}addToNumericResult(d,g,f,b){if(g!==f){const m=f-g;this.result=this.result*Math.pow(b,m)+parseInt(d.substr(g,m),b),this.consumed+=m}}stateNumericHex(d,g){const f=g;for(;g<d.length;){const b=d.charCodeAt(g);if(isNumber$1(b)||isHexadecimalCharacter(b))g+=1;else return this.addToNumericResult(d,f,g,16),this.emitNumericEntity(b,3)}return this.addToNumericResult(d,f,g,16),-1}stateNumericDecimal(d,g){const f=g;for(;g<d.length;){const b=d.charCodeAt(g);if(isNumber$1(b))g+=1;else return this.addToNumericResult(d,f,g,10),this.emitNumericEntity(b,2)}return this.addToNumericResult(d,f,g,10),-1}emitNumericEntity(d,g){var f;if(this.consumed<=g)return(f=this.errors)===null||f===void 0||f.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(d===CharCodes$1.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(d!==CharCodes$1.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(d,g){const{decodeTree:f}=this;let b=f[this.treeIndex],m=(b&BinTrieFlags.VALUE_LENGTH)>>14;for(;g<d.length;g++,this.excess++){const y=d.charCodeAt(g);if(this.treeIndex=determineBranch(f,b,this.treeIndex+Math.max(1,m),y),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(m===0||isEntityInAttributeInvalidEnd(y))?0:this.emitNotTerminatedNamedEntity();if(b=f[this.treeIndex],m=(b&BinTrieFlags.VALUE_LENGTH)>>14,m!==0){if(y===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,m,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var d;const{result:g,decodeTree:f}=this,b=(f[g]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(g,b,this.consumed),(d=this.errors)===null||d===void 0||d.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(d,g,f){const{decodeTree:b}=this;return this.emitCodePoint(g===1?b[d]&~BinTrieFlags.VALUE_LENGTH:b[d+1],f),g===3&&this.emitCodePoint(b[d+2],f),f}end(){var d;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(d=this.errors)===null||d===void 0||d.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder$1(u){let d="";const g=new EntityDecoder(u,f=>d+=fromCodePoint(f));return function(b,m){let y=0,k=0;for(;(k=b.indexOf("&",k))>=0;){d+=b.slice(y,k),g.startEntity(m);const q=g.write(b,k+1);if(q<0){y=k+g.end();break}y=k+q,k=q===0?y+1:y}const a=d+b.slice(y);return d="",a}}function determineBranch(u,d,g,f){const b=(d&BinTrieFlags.BRANCH_LENGTH)>>7,m=d&BinTrieFlags.JUMP_TABLE;if(b===0)return m!==0&&f===m?g:-1;if(m){const a=f-m;return a<0||a>=b?-1:u[g+a]-1}let y=g,k=y+b-1;for(;y<=k;){const a=y+k>>>1,q=u[a];if(q<f)y=a+1;else if(q>f)k=a-1;else return u[a+b]}return-1}getDecoder$1(htmlDecodeTree);getDecoder$1(xmlDecodeTree);var CharCodes;(function(u){u[u.Tab=9]="Tab",u[u.NewLine=10]="NewLine",u[u.FormFeed=12]="FormFeed",u[u.CarriageReturn=13]="CarriageReturn",u[u.Space=32]="Space",u[u.ExclamationMark=33]="ExclamationMark",u[u.Number=35]="Number",u[u.Amp=38]="Amp",u[u.SingleQuote=39]="SingleQuote",u[u.DoubleQuote=34]="DoubleQuote",u[u.Dash=45]="Dash",u[u.Slash=47]="Slash",u[u.Zero=48]="Zero",u[u.Nine=57]="Nine",u[u.Semi=59]="Semi",u[u.Lt=60]="Lt",u[u.Eq=61]="Eq",u[u.Gt=62]="Gt",u[u.Questionmark=63]="Questionmark",u[u.UpperA=65]="UpperA",u[u.LowerA=97]="LowerA",u[u.UpperF=70]="UpperF",u[u.LowerF=102]="LowerF",u[u.UpperZ=90]="UpperZ",u[u.LowerZ=122]="LowerZ",u[u.LowerX=120]="LowerX",u[u.OpeningSquareBracket=91]="OpeningSquareBracket"})(CharCodes||(CharCodes={}));var State;(function(u){u[u.Text=1]="Text",u[u.BeforeTagName=2]="BeforeTagName",u[u.InTagName=3]="InTagName",u[u.InSelfClosingTag=4]="InSelfClosingTag",u[u.BeforeClosingTagName=5]="BeforeClosingTagName",u[u.InClosingTagName=6]="InClosingTagName",u[u.AfterClosingTagName=7]="AfterClosingTagName",u[u.BeforeAttributeName=8]="BeforeAttributeName",u[u.InAttributeName=9]="InAttributeName",u[u.AfterAttributeName=10]="AfterAttributeName",u[u.BeforeAttributeValue=11]="BeforeAttributeValue",u[u.InAttributeValueDq=12]="InAttributeValueDq",u[u.InAttributeValueSq=13]="InAttributeValueSq",u[u.InAttributeValueNq=14]="InAttributeValueNq",u[u.BeforeDeclaration=15]="BeforeDeclaration",u[u.InDeclaration=16]="InDeclaration",u[u.InProcessingInstruction=17]="InProcessingInstruction",u[u.BeforeComment=18]="BeforeComment",u[u.CDATASequence=19]="CDATASequence",u[u.InSpecialComment=20]="InSpecialComment",u[u.InCommentLike=21]="InCommentLike",u[u.BeforeSpecialS=22]="BeforeSpecialS",u[u.SpecialStartSequence=23]="SpecialStartSequence",u[u.InSpecialTag=24]="InSpecialTag",u[u.BeforeEntity=25]="BeforeEntity",u[u.BeforeNumericEntity=26]="BeforeNumericEntity",u[u.InNamedEntity=27]="InNamedEntity",u[u.InNumericEntity=28]="InNumericEntity",u[u.InHexEntity=29]="InHexEntity"})(State||(State={}));function isWhitespace(u){return u===CharCodes.Space||u===CharCodes.NewLine||u===CharCodes.Tab||u===CharCodes.FormFeed||u===CharCodes.CarriageReturn}function isEndOfTagSection(u){return u===CharCodes.Slash||u===CharCodes.Gt||isWhitespace(u)}function isNumber(u){return u>=CharCodes.Zero&&u<=CharCodes.Nine}function isASCIIAlpha(u){return u>=CharCodes.LowerA&&u<=CharCodes.LowerZ||u>=CharCodes.UpperA&&u<=CharCodes.UpperZ}function isHexDigit(u){return u>=CharCodes.UpperA&&u<=CharCodes.UpperF||u>=CharCodes.LowerA&&u<=CharCodes.LowerF}var QuoteType;(function(u){u[u.NoValue=0]="NoValue",u[u.Unquoted=1]="Unquoted",u[u.Single=2]="Single",u[u.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Tokenizer$1{constructor({xmlMode:d=!1,decodeEntities:g=!0},f){this.cbs=f,this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=d,this.decodeEntities=g,this.entityTrie=d?xmlDecodeTree:htmlDecodeTree}reset(){this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(d){d===CharCodes.Lt||!this.decodeEntities&&this.fastForwardTo(CharCodes.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===CharCodes.Amp&&(this.state=State.BeforeEntity)}stateSpecialStartSequence(d){const g=this.sequenceIndex===this.currentSequence.length;if(!(g?isEndOfTagSection(d):(d|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State.InTagName,this.stateInTagName(d)}stateInSpecialTag(d){if(this.sequenceIndex===this.currentSequence.length){if(d===CharCodes.Gt||isWhitespace(d)){const g=this.index-this.currentSequence.length;if(this.sectionStart<g){const f=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=f}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Sequences.TitleEnd?this.decodeEntities&&d===CharCodes.Amp&&(this.state=State.BeforeEntity):this.fastForwardTo(CharCodes.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(d===CharCodes.Lt)}stateCDATASequence(d){d===Sequences.Cdata[this.sequenceIndex]?++this.sequenceIndex===Sequences.Cdata.length&&(this.state=State.InCommentLike,this.currentSequence=Sequences.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=State.InDeclaration,this.stateInDeclaration(d))}fastForwardTo(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=State.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(d){return this.xmlMode?!isEndOfTagSection(d):isASCIIAlpha(d)}startSpecial(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=State.SpecialStartSequence}stateBeforeTagName(d){if(d===CharCodes.ExclamationMark)this.state=State.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===CharCodes.Questionmark)this.state=State.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){const g=d|32;this.sectionStart=this.index,!this.xmlMode&&g===Sequences.TitleEnd[2]?this.startSpecial(Sequences.TitleEnd,3):this.state=!this.xmlMode&&g===Sequences.ScriptEnd[2]?State.BeforeSpecialS:State.InTagName}else d===CharCodes.Slash?this.state=State.BeforeClosingTagName:(this.state=State.Text,this.stateText(d))}stateInTagName(d){isEndOfTagSection(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d))}stateBeforeClosingTagName(d){isWhitespace(d)||(d===CharCodes.Gt?this.state=State.Text:(this.state=this.isTagStartChar(d)?State.InClosingTagName:State.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(d){(d===CharCodes.Gt||isWhitespace(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterClosingTagName,this.stateAfterClosingTagName(d))}stateAfterClosingTagName(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(d){d===CharCodes.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=State.InSpecialTag,this.sequenceIndex=0):this.state=State.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===CharCodes.Slash?this.state=State.InSelfClosingTag:isWhitespace(d)||(this.state=State.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(d){d===CharCodes.Gt?(this.cbs.onselfclosingtag(this.index),this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1,this.isSpecial=!1):isWhitespace(d)||(this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d))}stateInAttributeName(d){(d===CharCodes.Eq||isEndOfTagSection(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterAttributeName,this.stateAfterAttributeName(d))}stateAfterAttributeName(d){d===CharCodes.Eq?this.state=State.BeforeAttributeValue:d===CharCodes.Slash||d===CharCodes.Gt?(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d)):isWhitespace(d)||(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(d){d===CharCodes.DoubleQuote?(this.state=State.InAttributeValueDq,this.sectionStart=this.index+1):d===CharCodes.SingleQuote?(this.state=State.InAttributeValueSq,this.sectionStart=this.index+1):isWhitespace(d)||(this.sectionStart=this.index,this.state=State.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))}handleInAttributeValue(d,g){d===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===CharCodes.DoubleQuote?QuoteType.Double:QuoteType.Single,this.index),this.state=State.BeforeAttributeName):this.decodeEntities&&d===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateInAttributeValueDoubleQuotes(d){this.handleInAttributeValue(d,CharCodes.DoubleQuote)}stateInAttributeValueSingleQuotes(d){this.handleInAttributeValue(d,CharCodes.SingleQuote)}stateInAttributeValueNoQuotes(d){isWhitespace(d)||d===CharCodes.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(QuoteType.Unquoted,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateBeforeDeclaration(d){d===CharCodes.OpeningSquareBracket?(this.state=State.CDATASequence,this.sequenceIndex=0):this.state=d===CharCodes.Dash?State.BeforeComment:State.InDeclaration}stateInDeclaration(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeComment(d){d===CharCodes.Dash?(this.state=State.InCommentLike,this.currentSequence=Sequences.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=State.InDeclaration}stateInSpecialComment(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(d){const g=d|32;g===Sequences.ScriptEnd[3]?this.startSpecial(Sequences.ScriptEnd,4):g===Sequences.StyleEnd[3]?this.startSpecial(Sequences.StyleEnd,4):(this.state=State.InTagName,this.stateInTagName(d))}stateBeforeEntity(d){this.entityExcess=1,this.entityResult=0,d===CharCodes.Number?this.state=State.BeforeNumericEntity:d===CharCodes.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=State.InNamedEntity,this.stateInNamedEntity(d))}stateInNamedEntity(d){if(this.entityExcess+=1,this.trieIndex=determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const g=this.trieCurrent&BinTrieFlags.VALUE_LENGTH;if(g){const f=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==CharCodes.Semi)this.trieIndex+=f;else{const b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=f,this.entityExcess=0,this.sectionStart=this.index+1,f===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&BinTrieFlags.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(d){(d|32)===CharCodes.LowerX?(this.entityExcess++,this.state=State.InHexEntity):(this.state=State.InNumericEntity,this.stateInNumericEntity(d))}emitNumericEntity(d){const g=this.index-this.entityExcess-1;g+2+Number(this.state===State.InHexEntity)!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint(replaceCodePoint(this.entityResult))),this.state=this.baseState}stateInNumericEntity(d){d===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(d)?(this.entityResult=this.entityResult*10+(d-CharCodes.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(d){d===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(d)?(this.entityResult=this.entityResult*16+(d-CharCodes.Zero),this.entityExcess++):isHexDigit(d)?(this.entityResult=this.entityResult*16+((d|32)-CharCodes.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===State.Text||this.baseState===State.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State.Text||this.state===State.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State.InAttributeValueDq||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case State.Text:{this.stateText(d);break}case State.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case State.InSpecialTag:{this.stateInSpecialTag(d);break}case State.CDATASequence:{this.stateCDATASequence(d);break}case State.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case State.InAttributeName:{this.stateInAttributeName(d);break}case State.InCommentLike:{this.stateInCommentLike(d);break}case State.InSpecialComment:{this.stateInSpecialComment(d);break}case State.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case State.InTagName:{this.stateInTagName(d);break}case State.InClosingTagName:{this.stateInClosingTagName(d);break}case State.BeforeTagName:{this.stateBeforeTagName(d);break}case State.AfterAttributeName:{this.stateAfterAttributeName(d);break}case State.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case State.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case State.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case State.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case State.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case State.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case State.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case State.InDeclaration:{this.stateInDeclaration(d);break}case State.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case State.BeforeComment:{this.stateBeforeComment(d);break}case State.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case State.InNamedEntity:{this.stateInNamedEntity(d);break}case State.BeforeEntity:{this.stateBeforeEntity(d);break}case State.InHexEntity:{this.stateInHexEntity(d);break}case State.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()}finish(){this.state===State.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const d=this.buffer.length+this.offset;this.state===State.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===State.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InTagName||this.state===State.BeforeAttributeName||this.state===State.BeforeAttributeValue||this.state===State.AfterAttributeName||this.state===State.InAttributeName||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueDq||this.state===State.InAttributeValueNq||this.state===State.InClosingTagName||this.cbs.ontext(this.sectionStart,d)}emitPartial(d,g){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)}emitCodePoint(d){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)}}const formTags=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pTag=new Set(["p"]),tableSectionTags=new Set(["thead","tbody"]),ddtTags=new Set(["dd","dt"]),rtpTags=new Set(["rt","rp"]),openImpliesClose=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",pTag],["h1",pTag],["h2",pTag],["h3",pTag],["h4",pTag],["h5",pTag],["h6",pTag],["select",formTags],["input",formTags],["output",formTags],["button",formTags],["datalist",formTags],["textarea",formTags],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ddtTags],["dt",ddtTags],["address",pTag],["article",pTag],["aside",pTag],["blockquote",pTag],["details",pTag],["div",pTag],["dl",pTag],["fieldset",pTag],["figcaption",pTag],["figure",pTag],["footer",pTag],["form",pTag],["header",pTag],["hr",pTag],["main",pTag],["nav",pTag],["ol",pTag],["pre",pTag],["section",pTag],["table",pTag],["ul",pTag],["rt",rtpTags],["rp",rtpTags],["tbody",tableSectionTags],["tfoot",tableSectionTags]]),voidElements=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),foreignContextElements=new Set(["math","svg"]),htmlIntegrationElements=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),reNameEnd=/\s|\//;class Parser{constructor(d,g={}){var f,b,m,y,k;this.options=g,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=d!=null?d:{},this.lowerCaseTagNames=(f=g.lowerCaseTags)!==null&&f!==void 0?f:!g.xmlMode,this.lowerCaseAttributeNames=(b=g.lowerCaseAttributeNames)!==null&&b!==void 0?b:!g.xmlMode,this.tokenizer=new((m=g.Tokenizer)!==null&&m!==void 0?m:Tokenizer$1)(this.options,this),(k=(y=this.cbs).onparserinit)===null||k===void 0||k.call(y,this)}ontext(d,g){var f,b;const m=this.getSlice(d,g);this.endIndex=g-1,(b=(f=this.cbs).ontext)===null||b===void 0||b.call(f,m),this.startIndex=g}ontextentity(d){var g,f;const b=this.tokenizer.getSectionStart();this.endIndex=b-1,(f=(g=this.cbs).ontext)===null||f===void 0||f.call(g,fromCodePoint(d)),this.startIndex=b}isVoidElement(d){return!this.options.xmlMode&&voidElements.has(d)}onopentagname(d,g){this.endIndex=g;let f=this.getSlice(d,g);this.lowerCaseTagNames&&(f=f.toLowerCase()),this.emitOpenTag(f)}emitOpenTag(d){var g,f,b,m;this.openTagStart=this.startIndex,this.tagname=d;const y=!this.options.xmlMode&&openImpliesClose.get(d);if(y)for(;this.stack.length>0&&y.has(this.stack[this.stack.length-1]);){const k=this.stack.pop();(f=(g=this.cbs).onclosetag)===null||f===void 0||f.call(g,k,!0)}this.isVoidElement(d)||(this.stack.push(d),foreignContextElements.has(d)?this.foreignContext.push(!0):htmlIntegrationElements.has(d)&&this.foreignContext.push(!1)),(m=(b=this.cbs).onopentagname)===null||m===void 0||m.call(b,d),this.cbs.onopentag&&(this.attribs={})}endOpenTag(d){var g,f;this.startIndex=this.openTagStart,this.attribs&&((f=(g=this.cbs).onopentag)===null||f===void 0||f.call(g,this.tagname,this.attribs,d),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(d){this.endIndex=d,this.endOpenTag(!1),this.startIndex=d+1}onclosetag(d,g){var f,b,m,y,k,a;this.endIndex=g;let q=this.getSlice(d,g);if(this.lowerCaseTagNames&&(q=q.toLowerCase()),(foreignContextElements.has(q)||htmlIntegrationElements.has(q))&&this.foreignContext.pop(),this.isVoidElement(q))!this.options.xmlMode&&q==="br"&&((b=(f=this.cbs).onopentagname)===null||b===void 0||b.call(f,"br"),(y=(m=this.cbs).onopentag)===null||y===void 0||y.call(m,"br",{},!0),(a=(k=this.cbs).onclosetag)===null||a===void 0||a.call(k,"br",!1));else{const w=this.stack.lastIndexOf(q);if(w!==-1)if(this.cbs.onclosetag){let $=this.stack.length-w;for(;$--;)this.cbs.onclosetag(this.stack.pop(),$!==0)}else this.stack.length=w;else!this.options.xmlMode&&q==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=g+1}onselfclosingtag(d){this.endIndex=d,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=d+1):this.onopentagend(d)}closeCurrentTag(d){var g,f;const b=this.tagname;this.endOpenTag(d),this.stack[this.stack.length-1]===b&&((f=(g=this.cbs).onclosetag)===null||f===void 0||f.call(g,b,!d),this.stack.pop())}onattribname(d,g){this.startIndex=d;const f=this.getSlice(d,g);this.attribname=this.lowerCaseAttributeNames?f.toLowerCase():f}onattribdata(d,g){this.attribvalue+=this.getSlice(d,g)}onattribentity(d){this.attribvalue+=fromCodePoint(d)}onattribend(d,g){var f,b;this.endIndex=g,(b=(f=this.cbs).onattribute)===null||b===void 0||b.call(f,this.attribname,this.attribvalue,d===QuoteType.Double?'"':d===QuoteType.Single?"'":d===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(d){const g=d.search(reNameEnd);let f=g<0?d:d.substr(0,g);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f}ondeclaration(d,g){this.endIndex=g;const f=this.getSlice(d,g);if(this.cbs.onprocessinginstruction){const b=this.getInstructionName(f);this.cbs.onprocessinginstruction(`!${b}`,`!${f}`)}this.startIndex=g+1}onprocessinginstruction(d,g){this.endIndex=g;const f=this.getSlice(d,g);if(this.cbs.onprocessinginstruction){const b=this.getInstructionName(f);this.cbs.onprocessinginstruction(`?${b}`,`?${f}`)}this.startIndex=g+1}oncomment(d,g,f){var b,m,y,k;this.endIndex=g,(m=(b=this.cbs).oncomment)===null||m===void 0||m.call(b,this.getSlice(d,g-f)),(k=(y=this.cbs).oncommentend)===null||k===void 0||k.call(y),this.startIndex=g+1}oncdata(d,g,f){var b,m,y,k,a,q,w,$,Q,C;this.endIndex=g;const v=this.getSlice(d,g-f);this.options.xmlMode||this.options.recognizeCDATA?((m=(b=this.cbs).oncdatastart)===null||m===void 0||m.call(b),(k=(y=this.cbs).ontext)===null||k===void 0||k.call(y,v),(q=(a=this.cbs).oncdataend)===null||q===void 0||q.call(a)):(($=(w=this.cbs).oncomment)===null||$===void 0||$.call(w,`[CDATA[${v}]]`),(C=(Q=this.cbs).oncommentend)===null||C===void 0||C.call(Q)),this.startIndex=g+1}onend(){var d,g;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f],!0));}(g=(d=this.cbs).onend)===null||g===void 0||g.call(d)}reset(){var d,g,f,b;(g=(d=this.cbs).onreset)===null||g===void 0||g.call(d),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(b=(f=this.cbs).onparserinit)===null||b===void 0||b.call(f,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(d){this.reset(),this.end(d)}getSlice(d,g){for(;d-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let f=this.buffers[0].slice(d-this.bufferOffset,g-this.bufferOffset);for(;g-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),f+=this.buffers[0].slice(0,g-this.bufferOffset);return f}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(d){var g,f;if(this.ended){(f=(g=this.cbs).onerror)===null||f===void 0||f.call(g,new Error(".write() after done!"));return}this.buffers.push(d),this.tokenizer.running&&(this.tokenizer.write(d),this.writeIndex++)}end(d){var g,f;if(this.ended){(f=(g=this.cbs).onerror)===null||f===void 0||f.call(g,new Error(".end() after done!"));return}d&&this.write(d),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(d){this.write(d)}done(d){this.end(d)}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),getCodePoint=String.prototype.codePointAt!=null?(u,d)=>u.codePointAt(d):(u,d)=>(u.charCodeAt(d)&64512)===55296?(u.charCodeAt(d)-55296)*1024+u.charCodeAt(d+1)-56320+65536:u.charCodeAt(d);function encodeXML(u){let d="",g=0,f;for(;(f=xmlReplacer.exec(u))!==null;){const b=f.index,m=u.charCodeAt(b),y=xmlCodeMap.get(m);y!==void 0?(d+=u.substring(g,b)+y,g=b+1):(d+=`${u.substring(g,b)}&#x${getCodePoint(u,b).toString(16)};`,g=xmlReplacer.lastIndex+=Number((m&64512)===55296))}return d+u.substr(g)}function getEscaper(u,d){return function(f){let b,m=0,y="";for(;b=u.exec(f);)m!==b.index&&(y+=f.substring(m,b.index)),y+=d.get(b[0].charCodeAt(0)),m=b.index+1;return y+f.substring(m)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(u=>[u.toLowerCase(),u])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(u=>[u.toLowerCase(),u])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(u){return u.replace(/"/g,""")}function formatAttributes(u,d){var g;if(!u)return;const f=((g=d.encodeEntities)!==null&&g!==void 0?g:d.decodeEntities)===!1?replaceQuotes:d.xmlMode||d.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(u).map(b=>{var m,y;const k=(m=u[b])!==null&&m!==void 0?m:"";return d.xmlMode==="foreign"&&(b=(y=attributeNames.get(b))!==null&&y!==void 0?y:b),!d.emptyAttrs&&!d.xmlMode&&k===""?b:`${b}="${f(k)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render(u,d={}){const g="length"in u?u:[u];let f="";for(let b=0;b<g.length;b++)f+=renderNode(g[b],d);return f}function renderNode(u,d){switch(u.type){case Root:return render(u.children,d);case Doctype:case Directive:return renderDirective(u);case Comment$1:return renderComment(u);case CDATA$1:return renderCdata(u);case Script:case Style:case Tag:return renderTag(u,d);case Text$1:return renderText(u,d)}}const foreignModeIntegrationPoints=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),foreignElements=new Set(["svg","math"]);function renderTag(u,d){var g;d.xmlMode==="foreign"&&(u.name=(g=elementNames.get(u.name))!==null&&g!==void 0?g:u.name,u.parent&&foreignModeIntegrationPoints.has(u.parent.name)&&(d={...d,xmlMode:!1})),!d.xmlMode&&foreignElements.has(u.name)&&(d={...d,xmlMode:"foreign"});let f=`<${u.name}`;const b=formatAttributes(u.attribs,d);return b&&(f+=` ${b}`),u.children.length===0&&(d.xmlMode?d.selfClosingTags!==!1:d.selfClosingTags&&singleTag.has(u.name))?(d.xmlMode||(f+=" "),f+="/>"):(f+=">",u.children.length>0&&(f+=render(u.children,d)),(d.xmlMode||!singleTag.has(u.name))&&(f+=`</${u.name}>`)),f}function renderDirective(u){return`<${u.data}>`}function renderText(u,d){var g;let f=u.data||"";return((g=d.encodeEntities)!==null&&g!==void 0?g:d.decodeEntities)!==!1&&!(!d.xmlMode&&u.parent&&unencodedElements.has(u.parent.name))&&(f=d.xmlMode||d.encodeEntities!=="utf8"?encodeXML(f):escapeText(f)),f}function renderCdata(u){return`<![CDATA[${u.children[0].data}]]>`}function renderComment(u){return`<!--${u.data}-->`}function parseDocument(u,d){const g=new DomHandler(void 0,d);return new Parser(g,d).end(u),g.root}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(u){if(u.__esModule)return u;var d=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(u).forEach(function(g){var f=Object.getOwnPropertyDescriptor(u,g);Object.defineProperty(d,g,f.get?f:{enumerable:!0,get:function(){return u[g]}})}),d}function commonjsRequire(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var isMergeableObject=function(d){return isNonNullObject(d)&&!isSpecial(d)};function isNonNullObject(u){return!!u&&typeof u=="object"}function isSpecial(u){var d=Object.prototype.toString.call(u);return d==="[object RegExp]"||d==="[object Date]"||isReactElement(u)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(u){return u.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(u){return Array.isArray(u)?[]:{}}function cloneUnlessOtherwiseSpecified(u,d){return d.clone!==!1&&d.isMergeableObject(u)?deepmerge(emptyTarget(u),u,d):u}function defaultArrayMerge(u,d,g){return u.concat(d).map(function(f){return cloneUnlessOtherwiseSpecified(f,g)})}function getMergeFunction(u,d){if(!d.customMerge)return deepmerge;var g=d.customMerge(u);return typeof g=="function"?g:deepmerge}function getEnumerableOwnPropertySymbols(u){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u).filter(function(d){return Object.propertyIsEnumerable.call(u,d)}):[]}function getKeys(u){return Object.keys(u).concat(getEnumerableOwnPropertySymbols(u))}function propertyIsOnObject(u,d){try{return d in u}catch{return!1}}function propertyIsUnsafe(u,d){return propertyIsOnObject(u,d)&&!(Object.hasOwnProperty.call(u,d)&&Object.propertyIsEnumerable.call(u,d))}function mergeObject(u,d,g){var f={};return g.isMergeableObject(u)&&getKeys(u).forEach(function(b){f[b]=cloneUnlessOtherwiseSpecified(u[b],g)}),getKeys(d).forEach(function(b){propertyIsUnsafe(u,b)||(propertyIsOnObject(u,b)&&g.isMergeableObject(d[b])?f[b]=getMergeFunction(b,g)(u[b],d[b],g):f[b]=cloneUnlessOtherwiseSpecified(d[b],g))}),f}function deepmerge(u,d,g){g=g||{},g.arrayMerge=g.arrayMerge||defaultArrayMerge,g.isMergeableObject=g.isMergeableObject||isMergeableObject,g.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var f=Array.isArray(d),b=Array.isArray(u),m=f===b;return m?f?g.arrayMerge(u,d,g):mergeObject(u,d,g):cloneUnlessOtherwiseSpecified(d,g)}deepmerge.all=function(d,g){if(!Array.isArray(d))throw new Error("first argument should be an array");return d.reduce(function(f,b){return deepmerge(f,b,g)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function limitedDepthRecursive(u,d,g=()=>{}){if(u===void 0){const f=function(...b){return d(f,...b)};return f}return u>=0?function(...f){return d(limitedDepthRecursive(u-1,d,g),...f)}:g}function trimCharacter(u,d){let g=0,f=u.length;for(;g<f&&u[g]===d;)++g;for(;f>g&&u[f-1]===d;)--f;return g>0||f<u.length?u.substring(g,f):u}function trimCharacterEnd(u,d){let g=u.length;for(;g>0&&u[g-1]===d;)--g;return g<u.length?u.substring(0,g):u}function unicodeEscape(u){return u.replace(/[\s\S]/g,d=>"\\u"+d.charCodeAt().toString(16).padStart(4,"0"))}function mergeDuplicatesPreferLast(u,d){const g=new Map;for(let f=u.length;f-- >0;){const b=u[f],m=d(b);g.set(m,g.has(m)?cjs(b,g.get(m),{arrayMerge:overwriteMerge$1}):b)}return[...g.values()].reverse()}const overwriteMerge$1=(u,d,g)=>[...d];function get(u,d){for(const g of d){if(!u)return;u=u[g]}return u}function numberToLetterSequence(u,d="a",g=26){const f=[];do u-=1,f.push(u%g),u=u/g>>0;while(u>0);const b=d.charCodeAt(0);return f.reverse().map(m=>String.fromCharCode(b+m)).join("")}const I=["I","X","C","M"],V=["V","L","D"];function numberToRoman(u){return[...u+""].map(d=>+d).reverse().map((d,g)=>d%5<4?(d<5?"":V[g])+I[g].repeat(d%5):I[g]+(d<5?V[g]:I[g+1])).reverse().join("")}class InlineTextBuilder{constructor(d,g=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=g||d.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=get(d,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=get(d,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(d,g=!1){this.nextLineAvailableChars<=0&&!g&&this.startNewLine();const f=this.nextLineWords.length===0,b=d.length+(f?0:1);if(b<=this.nextLineAvailableChars||g)this.nextLineWords.push(d),this.nextLineAvailableChars-=b;else{const[m,...y]=this.splitLongWord(d);f||this.startNewLine(),this.nextLineWords.push(m),this.nextLineAvailableChars-=m.length;for(const k of y)this.startNewLine(),this.nextLineWords.push(k),this.nextLineAvailableChars-=k.length}}popWord(){const d=this.nextLineWords.pop();if(d!==void 0){const g=this.nextLineWords.length===0,f=d.length+(g?0:1);this.nextLineAvailableChars+=f}return d}concatWord(d,g=!1){if(this.wordBreakOpportunity&&d.length>this.nextLineAvailableChars)this.pushWord(d,g),this.wordBreakOpportunity=!1;else{const f=this.popWord();this.pushWord(f?f.concat(d):d,g)}}startNewLine(d=1){this.lines.push(this.nextLineWords),d>1&&this.lines.push(...Array.from({length:d-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(d=>d.join(" ")).join(`
|
|
37
|
+
`)}splitLongWord(d){const g=[];let f=0;for(;d.length>this.maxLineLength;){const b=d.substring(0,this.maxLineLength),m=d.substring(this.maxLineLength),y=b.lastIndexOf(this.wrapCharacters[f]);if(y>-1)d=b.substring(y+1)+m,g.push(b.substring(0,y+1));else if(f++,f<this.wrapCharacters.length)d=b+m;else{if(this.forceWrapOnLimit){if(g.push(b),d=m,d.length>this.maxLineLength)continue}else d=b+m;break}}return g.push(d),g}}class StackItem{constructor(d=null){this.next=d}getRoot(){return this.next?this.next:this}}class BlockStackItem extends StackItem{constructor(d,g=null,f=1,b=void 0){super(g),this.leadingLineBreaks=f,this.inlineTextBuilder=new InlineTextBuilder(d,b),this.rawText="",this.stashedLineBreaks=0,this.isPre=g&&g.isPre,this.isNoWrap=g&&g.isNoWrap}}class ListStackItem extends BlockStackItem{constructor(d,g=null,{interRowLineBreaks:f=1,leadingLineBreaks:b=2,maxLineLength:m=void 0,maxPrefixLength:y=0,prefixAlign:k="left"}={}){super(d,g,b,m),this.maxPrefixLength=y,this.prefixAlign=k,this.interRowLineBreaks=f}}class ListItemStackItem extends BlockStackItem{constructor(d,g=null,{leadingLineBreaks:f=1,maxLineLength:b=void 0,prefix:m=""}={}){super(d,g,f,b),this.prefix=m}}class TableStackItem extends StackItem{constructor(d=null){super(d),this.rows=[],this.isPre=d&&d.isPre,this.isNoWrap=d&&d.isNoWrap}}class TableRowStackItem extends StackItem{constructor(d=null){super(d),this.cells=[],this.isPre=d&&d.isPre,this.isNoWrap=d&&d.isNoWrap}}class TableCellStackItem extends StackItem{constructor(d,g=null,f=void 0){super(g),this.inlineTextBuilder=new InlineTextBuilder(d,f),this.rawText="",this.stashedLineBreaks=0,this.isPre=g&&g.isPre,this.isNoWrap=g&&g.isNoWrap}}class TransformerStackItem extends StackItem{constructor(d=null,g){super(d),this.transform=g}}function charactersToCodes(u){return[...u].map(d=>"\\u"+d.charCodeAt(0).toString(16).padStart(4,"0")).join("")}class WhitespaceProcessor{constructor(d){this.whitespaceChars=d.preserveNewlines?d.whitespaceCharacters.replace(/\n/g,""):d.whitespaceCharacters;const g=charactersToCodes(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${g}]`),this.trailingWhitespaceRe=new RegExp(`[${g}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${g}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${g}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),d.preserveNewlines){const f=new RegExp(`\\n|[^\\n${g}]+`,"gm");this.shrinkWrapAdd=function(b,m,y=a=>a,k=!1){if(!b)return;const a=m.stashedSpace;let q=!1,w=f.exec(b);if(w)for(q=!0,w[0]===`
|
|
38
|
+
`?m.startNewLine():a||this.testLeadingWhitespace(b)?m.pushWord(y(w[0]),k):m.concatWord(y(w[0]),k);(w=f.exec(b))!==null;)w[0]===`
|
|
39
|
+
`?m.startNewLine():m.pushWord(y(w[0]),k);m.stashedSpace=a&&!q||this.testTrailingWhitespace(b)}}else{const f=new RegExp(`[^${g}]+`,"g");this.shrinkWrapAdd=function(b,m,y=a=>a,k=!1){if(!b)return;const a=m.stashedSpace;let q=!1,w=f.exec(b);if(w)for(q=!0,a||this.testLeadingWhitespace(b)?m.pushWord(y(w[0]),k):m.concatWord(y(w[0]),k);(w=f.exec(b))!==null;)m.pushWord(y(w[0]),k);m.stashedSpace=a&&!q||this.testTrailingWhitespace(b)}}}addLiteral(d,g,f=!0){if(!d)return;const b=g.stashedSpace;let m=!1,y=this.newlineOrNonNewlineStringRe.exec(d);if(y)for(m=!0,y[0]===`
|
|
40
|
+
`?g.startNewLine():b?g.pushWord(y[0],f):g.concatWord(y[0],f);(y=this.newlineOrNonNewlineStringRe.exec(d))!==null;)y[0]===`
|
|
41
|
+
`?g.startNewLine():g.pushWord(y[0],f);g.stashedSpace=b&&!m}testLeadingWhitespace(d){return this.leadingWhitespaceRe.test(d)}testTrailingWhitespace(d){return this.trailingWhitespaceRe.test(d)}testContainsWords(d){return!this.allWhitespaceOrEmptyRe.test(d)}countNewlinesNoWords(d){this.newlineOrNonWhitespaceRe.lastIndex=0;let g=0,f;for(;(f=this.newlineOrNonWhitespaceRe.exec(d))!==null;)if(f[0]===`
|
|
42
|
+
`)g++;else return 0;return g}}class BlockTextBuilder{constructor(d,g,f=void 0){this.options=d,this.picker=g,this.metadata=f,this.whitespaceProcessor=new WhitespaceProcessor(d),this._stackItem=new BlockStackItem(d),this._wordTransformer=void 0}pushWordTransform(d){this._wordTransformer=new TransformerStackItem(this._wordTransformer,d)}popWordTransform(){if(!this._wordTransformer)return;const d=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,d}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const d=this._wordTransformer?f=>applyTransformer(f,this._wordTransformer):void 0,g=this.options.encodeCharacters;return d?g?f=>g(d(f)):d:g}_popStackItem(){const d=this._stackItem;return this._stackItem=d.next,d}addLineBreak(){(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&(this._stackItem.isPre?this._stackItem.rawText+=`
|
|
43
|
+
`:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(d,{noWordTransform:g=!1}={}){if(this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem){if(this._stackItem.isPre){this._stackItem.rawText+=d;return}if(!(d.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(d))){if(this.options.preserveNewlines){const f=this.whitespaceProcessor.countNewlinesNoWords(d);if(f>0){this._stackItem.inlineTextBuilder.startNewLine(f);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(d,this._stackItem.inlineTextBuilder,g?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(d){if((this._stackItem instanceof BlockStackItem||this._stackItem instanceof ListItemStackItem||this._stackItem instanceof TableCellStackItem)&&d.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=d;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(d,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:d=1,reservedLineLength:g=0,isPre:f=!1}={}){const b=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-g);this._stackItem=new BlockStackItem(this.options,this._stackItem,d,b),f&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:d=1,blockTransform:g=void 0}={}){const f=this._popStackItem(),b=g?g(getText(f)):getText(f);addText(this._stackItem,b,f.leadingLineBreaks,Math.max(f.stashedLineBreaks,d))}openList({maxPrefixLength:d=0,prefixAlign:g="left",interRowLineBreaks:f=1,leadingLineBreaks:b=2}={}){this._stackItem=new ListStackItem(this.options,this._stackItem,{interRowLineBreaks:f,leadingLineBreaks:b,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:d,prefixAlign:g})}openListItem({prefix:d=""}={}){if(!(this._stackItem instanceof ListStackItem))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const g=this._stackItem,f=Math.max(d.length,g.maxPrefixLength),b=Math.max(20,g.inlineTextBuilder.maxLineLength-f);this._stackItem=new ListItemStackItem(this.options,g,{prefix:d,maxLineLength:b,leadingLineBreaks:g.interRowLineBreaks})}closeListItem(){const d=this._popStackItem(),g=d.next,f=Math.max(d.prefix.length,g.maxPrefixLength),b=`
|
|
44
|
+
`+" ".repeat(f),y=(g.prefixAlign==="right"?d.prefix.padStart(f):d.prefix.padEnd(f))+getText(d).replace(/\n/g,b);addText(g,y,d.leadingLineBreaks,Math.max(d.stashedLineBreaks,g.interRowLineBreaks))}closeList({trailingLineBreaks:d=2}={}){const g=this._popStackItem(),f=getText(g);f&&addText(this._stackItem,f,g.leadingLineBreaks,d)}openTable(){this._stackItem=new TableStackItem(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof TableStackItem))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new TableRowStackItem(this._stackItem)}openTableCell({maxColumnWidth:d=void 0}={}){if(!(this._stackItem instanceof TableRowStackItem))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new TableCellStackItem(this.options,this._stackItem,d)}closeTableCell({colspan:d=1,rowspan:g=1}={}){const f=this._popStackItem(),b=trimCharacter(getText(f),`
|
|
45
|
+
`);f.next.cells.push({colspan:d,rowspan:g,text:b})}closeTableRow(){const d=this._popStackItem();d.next.rows.push(d.cells)}closeTable({tableToString:d,leadingLineBreaks:g=2,trailingLineBreaks:f=2}){const b=this._popStackItem(),m=d(b.rows);m&&addText(this._stackItem,m,g,f)}toString(){return getText(this._stackItem.getRoot())}}function getText(u){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return u.inlineTextBuilder.isEmpty()?u.rawText:u.rawText+u.inlineTextBuilder.toString()}function addText(u,d,g,f){if(!(u instanceof BlockStackItem||u instanceof ListItemStackItem||u instanceof TableCellStackItem))throw new Error("Only blocks, list items and table cells can contain text.");const b=getText(u),m=Math.max(u.stashedLineBreaks,g);u.inlineTextBuilder.clear(),b?u.rawText=b+`
|
|
46
|
+
`.repeat(m)+d:(u.rawText=d,u.leadingLineBreaks=m),u.stashedLineBreaks=f}function applyTransformer(u,d){return d?applyTransformer(d.transform(u),d.next):u}function compile$1(u={}){const d=u.selectors.filter(y=>!y.format);if(d.length)throw new Error("Following selectors have no specified format: "+d.map(y=>`\`${y.selector}\``).join(", "));const g=new DecisionTree(u.selectors.map(y=>[y.selector,y])).build(hp2Builder);typeof u.encodeCharacters!="function"&&(u.encodeCharacters=makeReplacerFromDict(u.encodeCharacters));const f=new DecisionTree(u.baseElements.selectors.map((y,k)=>[y,k+1])).build(hp2Builder);function b(y){return findBases(y,u,f)}const m=limitedDepthRecursive(u.limits.maxDepth,recursiveWalk,function(y,k){k.addInline(u.limits.ellipsis||"")});return function(y,k=void 0){return process$1(y,k,u,g,b,m)}}function process$1(u,d,g,f,b,m){const y=g.limits.maxInputLength;y&&u&&u.length>y&&(console.warn(`Input length ${u.length} is above allowed limit of ${y}. Truncating without ellipsis.`),u=u.substring(0,y));const k=parseDocument(u,{decodeEntities:g.decodeEntities}),a=b(k.children),q=new BlockTextBuilder(g,f,d);return m(a,q),q.toString()}function findBases(u,d,g){const f=[];function b(y,k){k=k.slice(0,d.limits.maxChildNodes);for(const a of k){if(a.type!=="tag")continue;const q=g.pick1(a);if(q>0?f.push({selectorIndex:q,element:a}):a.children&&y(a.children),f.length>=d.limits.maxBaseElements)return}}return limitedDepthRecursive(d.limits.maxDepth,b)(u),d.baseElements.orderBy!=="occurrence"&&f.sort((y,k)=>y.selectorIndex-k.selectorIndex),d.baseElements.returnDomByDefault&&f.length===0?u:f.map(y=>y.element)}function recursiveWalk(u,d,g){if(!d)return;const f=g.options;d.length>f.limits.maxChildNodes&&(d=d.slice(0,f.limits.maxChildNodes),d.push({data:f.limits.ellipsis,type:"text"}));for(const m of d)switch(m.type){case"text":{g.addInline(m.data);break}case"tag":{const y=g.picker.pick1(m),k=f.formatters[y.format];k(m,u,g,y.options||{});break}}}function makeReplacerFromDict(u){if(!u||Object.keys(u).length===0)return;const d=Object.entries(u).filter(([,m])=>m!==!1),g=new RegExp(d.map(([m])=>`(${unicodeEscape([...m][0])})`).join("|"),"g"),f=d.map(([,m])=>m),b=(m,...y)=>f[y.findIndex(k=>k)];return m=>m.replace(g,b)}function formatSkip(u,d,g,f){}function formatInlineString(u,d,g,f){g.addLiteral(f.string||"")}function formatBlockString(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),g.addLiteral(f.string||""),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatInline(u,d,g,f){d(u.children,g)}function formatBlock$1(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function renderOpenTag(u){const d=u.attribs&&u.attribs.length?" "+Object.entries(u.attribs).map(([g,f])=>f===""?g:`${g}=${f.replace(/"/g,""")}`).join(" "):"";return`<${u.name}${d}>`}function renderCloseTag(u){return`</${u.name}>`}function formatInlineTag(u,d,g,f){g.startNoWrap(),g.addLiteral(renderOpenTag(u)),g.stopNoWrap(),d(u.children,g),g.startNoWrap(),g.addLiteral(renderCloseTag(u)),g.stopNoWrap()}function formatBlockTag(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),g.startNoWrap(),g.addLiteral(renderOpenTag(u)),g.stopNoWrap(),d(u.children,g),g.startNoWrap(),g.addLiteral(renderCloseTag(u)),g.stopNoWrap(),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatInlineHtml(u,d,g,f){g.startNoWrap(),g.addLiteral(render(u,{decodeEntities:g.options.decodeEntities})),g.stopNoWrap()}function formatBlockHtml(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),g.startNoWrap(),g.addLiteral(render(u,{decodeEntities:g.options.decodeEntities})),g.stopNoWrap(),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatInlineSurround(u,d,g,f){g.addLiteral(f.prefix||""),d(u.children,g),g.addLiteral(f.suffix||"")}var genericFormatters=Object.freeze({__proto__:null,block:formatBlock$1,blockHtml:formatBlockHtml,blockString:formatBlockString,blockTag:formatBlockTag,inline:formatInline,inlineHtml:formatInlineHtml,inlineString:formatInlineString,inlineSurround:formatInlineSurround,inlineTag:formatInlineTag,skip:formatSkip});function getRow(u,d){return u[d]||(u[d]=[]),u[d]}function findFirstVacantIndex(u,d=0){for(;u[d];)d++;return d}function transposeInPlace(u,d){for(let g=0;g<d;g++){const f=getRow(u,g);for(let b=0;b<g;b++){const m=getRow(u,b);if(f[b]||m[g]){const y=f[b];f[b]=m[g],m[g]=y}}}}function putCellIntoLayout(u,d,g,f){for(let b=0;b<u.rowspan;b++){const m=getRow(d,g+b);for(let y=0;y<u.colspan;y++)m[f+y]=u}}function getOrInitOffset(u,d){return u[d]===void 0&&(u[d]=d===0?0:1+getOrInitOffset(u,d-1)),u[d]}function updateOffset(u,d,g,f){u[d+g]=Math.max(getOrInitOffset(u,d+g),getOrInitOffset(u,d)+f)}function tableToString(u,d,g){const f=[];let b=0;const m=u.length,y=[0];for(let q=0;q<m;q++){const w=getRow(f,q),$=u[q];let Q=0;for(let C=0;C<$.length;C++){const v=$[C];Q=findFirstVacantIndex(w,Q),putCellIntoLayout(v,f,q,Q),Q+=v.colspan,v.lines=v.text.split(`
|
|
47
|
+
`);const J=v.lines.length;updateOffset(y,q,v.rowspan,J+d)}b=w.length>b?w.length:b}transposeInPlace(f,m>b?m:b);const k=[],a=[0];for(let q=0;q<b;q++){let w=0,$;const Q=Math.min(m,f[q].length);for(;w<Q;)if($=f[q][w],$){if(!$.rendered){let C=0;for(let v=0;v<$.lines.length;v++){const J=$.lines[v],ae=y[w]+v;k[ae]=(k[ae]||"").padEnd(a[q])+J,C=J.length>C?J.length:C}updateOffset(a,q,$.colspan,C+g),$.rendered=!0}w+=$.rowspan}else{const C=y[w];k[C]=k[C]||"",w++}}return k.join(`
|
|
48
|
+
`)}function formatLineBreak(u,d,g,f){g.addLineBreak()}function formatWbr(u,d,g,f){g.addWordBreakOpportunity()}function formatHorizontalLine(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),g.addInline("-".repeat(f.length||g.options.wordwrap||40)),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatParagraph(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatPre(u,d,g,f){g.openBlock({isPre:!0,leadingLineBreaks:f.leadingLineBreaks||2}),d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatHeading(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2}),f.uppercase!==!1?(g.pushWordTransform(b=>b.toUpperCase()),d(u.children,g),g.popWordTransform()):d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2})}function formatBlockquote(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks||2,reservedLineLength:2}),d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks||2,blockTransform:b=>(f.trimEmptyLines!==!1?trimCharacter(b,`
|
|
49
|
+
`):b).split(`
|
|
50
|
+
`).map(m=>"> "+m).join(`
|
|
51
|
+
`)})}function withBrackets(u,d){if(!d)return u;const g=typeof d[0]=="string"?d[0]:"[",f=typeof d[1]=="string"?d[1]:"]";return g+u+f}function pathRewrite(u,d,g,f,b){const m=typeof d=="function"?d(u,f,b):u;return m[0]==="/"&&g?trimCharacterEnd(g,"/")+m:m}function formatImage(u,d,g,f){const b=u.attribs||{},m=b.alt?b.alt:"",y=b.src?pathRewrite(b.src,f.pathRewrite,f.baseUrl,g.metadata,u):"",k=y?m?m+" "+withBrackets(y,f.linkBrackets):withBrackets(y,f.linkBrackets):m;g.addInline(k,{noWordTransform:!0})}function formatAnchor(u,d,g,f){function b(){if(f.ignoreHref||!u.attribs||!u.attribs.href)return"";let y=u.attribs.href.replace(/^mailto:/,"");return f.noAnchorUrl&&y[0]==="#"?"":(y=pathRewrite(y,f.pathRewrite,f.baseUrl,g.metadata,u),y)}const m=b();if(!m)d(u.children,g);else{let y="";g.pushWordTransform(a=>(a&&(y+=a),a)),d(u.children,g),g.popWordTransform(),f.hideLinkHrefIfSameAsText&&m===y||g.addInline(y?" "+withBrackets(m,f.linkBrackets):m,{noWordTransform:!0})}}function formatList(u,d,g,f,b){const m=get(u,["parent","name"])==="li";let y=0;const k=(u.children||[]).filter(a=>a.type!=="text"||!/^\s*$/.test(a.data)).map(function(a){if(a.name!=="li")return{node:a,prefix:""};const q=m?b().trimStart():b();return q.length>y&&(y=q.length),{node:a,prefix:q}});if(!!k.length){g.openList({interRowLineBreaks:1,leadingLineBreaks:m?1:f.leadingLineBreaks||2,maxPrefixLength:y,prefixAlign:"left"});for(const{node:a,prefix:q}of k)g.openListItem({prefix:q}),d([a],g),g.closeListItem();g.closeList({trailingLineBreaks:m?1:f.trailingLineBreaks||2})}}function formatUnorderedList(u,d,g,f){const b=f.itemPrefix||" * ";return formatList(u,d,g,f,()=>b)}function formatOrderedList(u,d,g,f){let b=Number(u.attribs.start||"1");const m=getOrderedListIndexFunction(u.attribs.type);return formatList(u,d,g,f,()=>" "+m(b++)+". ")}function getOrderedListIndexFunction(u="1"){switch(u){case"a":return d=>numberToLetterSequence(d,"a");case"A":return d=>numberToLetterSequence(d,"A");case"i":return d=>numberToRoman(d).toLowerCase();case"I":return d=>numberToRoman(d);case"1":default:return d=>d.toString()}}function splitClassesAndIds(u){const d=[],g=[];for(const f of u)f.startsWith(".")?d.push(f.substring(1)):f.startsWith("#")&&g.push(f.substring(1));return{classes:d,ids:g}}function isDataTable(u,d){if(d===!0)return!0;if(!u)return!1;const{classes:g,ids:f}=splitClassesAndIds(d),b=(u.class||"").split(" "),m=(u.id||"").split(" ");return b.some(y=>g.includes(y))||m.some(y=>f.includes(y))}function formatTable(u,d,g,f){return isDataTable(u.attribs,g.options.tables)?formatDataTable(u,d,g,f):formatBlock(u,d,g,f)}function formatBlock(u,d,g,f){g.openBlock({leadingLineBreaks:f.leadingLineBreaks}),d(u.children,g),g.closeBlock({trailingLineBreaks:f.trailingLineBreaks})}function formatDataTable(u,d,g,f){g.openTable(),u.children.forEach(m),g.closeTable({tableToString:y=>{var k,a;return tableToString(y,(k=f.rowSpacing)!=null?k:0,(a=f.colSpacing)!=null?a:3)},leadingLineBreaks:f.leadingLineBreaks,trailingLineBreaks:f.trailingLineBreaks});function b(y){const k=+get(y,["attribs","colspan"])||1,a=+get(y,["attribs","rowspan"])||1;g.openTableCell({maxColumnWidth:f.maxColumnWidth}),d(y.children,g),g.closeTableCell({colspan:k,rowspan:a})}function m(y){if(y.type!=="tag")return;const k=f.uppercaseHeaderCells!==!1?a=>{g.pushWordTransform(q=>q.toUpperCase()),b(a),g.popWordTransform()}:b;switch(y.name){case"thead":case"tbody":case"tfoot":case"center":y.children.forEach(m);return;case"tr":{g.openTableRow();for(const a of y.children)if(a.type==="tag")switch(a.name){case"th":{k(a);break}case"td":{b(a);break}}g.closeTableRow();break}}}}var textFormatters=Object.freeze({__proto__:null,anchor:formatAnchor,blockquote:formatBlockquote,dataTable:formatDataTable,heading:formatHeading,horizontalLine:formatHorizontalLine,image:formatImage,lineBreak:formatLineBreak,orderedList:formatOrderedList,paragraph:formatParagraph,pre:formatPre,table:formatTable,unorderedList:formatUnorderedList,wbr:formatWbr});const DEFAULT_OPTIONS={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` \r
|
|
52
|
+
\f\u200B`,wordwrap:80},concatMerge=(u,d,g)=>[...u,...d],overwriteMerge=(u,d,g)=>[...d],selectorsMerge=(u,d,g)=>u.some(f=>typeof f=="object")?concatMerge(u,d):overwriteMerge(u,d);function compile(u={}){return u=cjs(DEFAULT_OPTIONS,u,{arrayMerge:overwriteMerge,customMerge:d=>d==="selectors"?selectorsMerge:void 0}),u.formatters=Object.assign({},genericFormatters,textFormatters,u.formatters),u.selectors=mergeDuplicatesPreferLast(u.selectors,d=>d.selector),handleDeprecatedOptions(u),compile$1(u)}function convert(u,d={},g=void 0){return compile(d)(u,g)}function handleDeprecatedOptions(u){if(u.tags){const g=Object.entries(u.tags).map(([f,b])=>({...b,selector:f||"*"}));u.selectors.push(...g),u.selectors=mergeDuplicatesPreferLast(u.selectors,f=>f.selector)}function d(g,f,b){const m=f.pop();for(const y of f){let k=g[y];k||(k={},g[y]=k),g=k}g[m]=b}if(u.baseElement){const g=u.baseElement;d(u,["baseElements","selectors"],Array.isArray(g)?g:[g])}u.returnDomByDefault!==void 0&&d(u,["baseElements","returnDomByDefault"],u.returnDomByDefault);for(const g of u.selectors)g.format==="anchor"&&get(g,["options","noLinkBrackets"])&&d(g,["options","linkBrackets"],!1)}const textEncoder=new TextEncoder,decoders=new Map,base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",base64Lookup=new Uint8Array(256);for(var i$1=0;i$1<base64Chars.length;i$1++)base64Lookup[base64Chars.charCodeAt(i$1)]=i$1;function decodeBase64(u){let d=Math.ceil(u.length/4)*3;const g=u.length;let f=0;u.length%4===3?d--:u.length%4===2?d-=2:u[u.length-1]==="="&&(d--,u[u.length-2]==="="&&d--);const b=new ArrayBuffer(d),m=new Uint8Array(b);for(let y=0;y<g;y+=4){let k=base64Lookup[u.charCodeAt(y)],a=base64Lookup[u.charCodeAt(y+1)],q=base64Lookup[u.charCodeAt(y+2)],w=base64Lookup[u.charCodeAt(y+3)];m[f++]=k<<2|a>>4,m[f++]=(a&15)<<4|q>>2,m[f++]=(q&3)<<6|w&63}return b}function getDecoder(u){if(u=u||"utf8",decoders.has(u))return decoders.get(u);let d;try{d=new TextDecoder(u)}catch(g){if(u==="utf8")throw g;return getDecoder()}return decoders.set(u,d),d}async function blobToArrayBuffer(u){if("arrayBuffer"in u)return await u.arrayBuffer();const d=new FileReader;return new Promise((g,f)=>{d.onload=function(b){g(b.target.result)},d.onerror=function(b){f(d.error)},d.readAsArrayBuffer(u)})}function getHex(u){return u>=48&&u<=57||u>=97&&u<=102||u>=65&&u<=70?String.fromCharCode(u):!1}function decodeWord(u,d,g){let f=u.indexOf("*");f>=0&&(u=u.substr(0,f)),d=d.toUpperCase();let b;if(d==="Q"){g=g.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let m=textEncoder.encode(g),y=[];for(let a=0,q=m.length;a<q;a++){let w=m[a];if(a<=q-2&&w===61){let $=getHex(m[a+1]),Q=getHex(m[a+2]);if($&&Q){let C=parseInt($+Q,16);y.push(C),a+=2;continue}}y.push(w)}b=new ArrayBuffer(y.length);let k=new DataView(b);for(let a=0,q=y.length;a<q;a++)k.setUint8(a,y[a])}else d==="B"?b=decodeBase64(g.replace(/[^a-zA-Z0-9\+\/=]+/g,"")):b=textEncoder.encode(g);return getDecoder(u).decode(b)}function decodeWords(u){return(u||"").toString().replace(/(=\?([^?]+)\?[Bb]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(d,g,f,b)=>f===b?g+"__\0JOIN\0__":d).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(d,g,f,b)=>f===b?g+"__\0JOIN\0__":d).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(d,g,f,b)=>decodeWord(g,f,b))}function decodeURIComponentWithCharset(u,d){d=d||"utf-8";let g=[];for(let m=0;m<u.length;m++){let y=u.charAt(m);if(y==="%"&&/^[a-f0-9]{2}/i.test(u.substr(m+1,2))){let k=u.substr(m+1,2);m+=2,g.push(parseInt(k,16))}else if(y.charCodeAt(0)>126){y=textEncoder.encode(y);for(let k=0;k<y.length;k++)g.push(y[k])}else g.push(y.charCodeAt(0))}const f=new ArrayBuffer(g.length),b=new DataView(f);for(let m=0,y=g.length;m<y;m++)b.setUint8(m,g[m]);return getDecoder(d).decode(f)}function decodeParameterValueContinuations(u){let d=new Map;Object.keys(u.params).forEach(g=>{let f=g.match(/\*((\d+)\*?)?$/);if(!f)return;let b=g.substr(0,f.index).toLowerCase(),m=Number(f[2])||0,y;d.has(b)?y=d.get(b):(y={charset:!1,values:[]},d.set(b,y));let k=u.params[g];m===0&&f[0].charAt(f[0].length-1)==="*"&&(f=k.match(/^([^']*)'[^']*'(.*)$/))&&(y.charset=f[1]||"utf-8",k=f[2]),y.values.push({nr:m,value:k}),delete u.params[g]}),d.forEach((g,f)=>{u.params[f]=decodeURIComponentWithCharset(g.values.sort((b,m)=>b.nr-m.nr).map(b=>b.value).join(""),g.charset)})}class PassThroughDecoder{constructor(){this.chunks=[]}update(d){this.chunks.push(d),this.chunks.push(`
|
|
53
|
+
`)}finalize(){return blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class Base64Decoder{constructor(d){d=d||{},this.decoder=d.decoder||new TextDecoder,this.maxChunkSize=100*1024,this.chunks=[],this.remainder=""}update(d){let g=this.decoder.decode(d);if(/[^a-zA-Z0-9+\/]/.test(g)&&(g=g.replace(/[^a-zA-Z0-9+\/]+/g,"")),this.remainder+=g,this.remainder.length>=this.maxChunkSize){let f=Math.floor(this.remainder.length/4)*4,b;f===this.remainder.length?(b=this.remainder,this.remainder=""):(b=this.remainder.substr(0,f),this.remainder=this.remainder.substr(f)),b.length&&this.chunks.push(decodeBase64(b))}}finalize(){return this.remainder&&!/^=+$/.test(this.remainder)&&this.chunks.push(decodeBase64(this.remainder)),blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class QPDecoder{constructor(d){d=d||{},this.decoder=d.decoder||new TextDecoder,this.maxChunkSize=100*1024,this.remainder="",this.chunks=[]}decodeQPBytes(d){let g=new ArrayBuffer(d.length),f=new DataView(g);for(let b=0,m=d.length;b<m;b++)f.setUint8(b,parseInt(d[b],16));return g}decodeChunks(d){d=d.replace(/=\r?\n/g,"");let g=d.split(/(?==)/),f=[];for(let b of g){if(b.charAt(0)!=="="){f.length&&(this.chunks.push(this.decodeQPBytes(f)),f=[]),this.chunks.push(b);continue}if(b.length===3){f.push(b.substr(1));continue}b.length>3&&(f.push(b.substr(1,2)),this.chunks.push(this.decodeQPBytes(f)),f=[],b=b.substr(3),this.chunks.push(b))}f.length&&(this.chunks.push(this.decodeQPBytes(f)),f=[])}update(d){let g=this.decoder.decode(d)+`
|
|
54
|
+
`;if(g=this.remainder+g,g.length<this.maxChunkSize){this.remainder=g;return}this.remainder="";let f=g.match(/=[a-fA-F0-9]?$/);if(f){if(f.index===0){this.remainder=g;return}this.remainder=g.substr(f.index),g=g.substr(0,f.index)}this.decodeChunks(g)}finalize(){return this.remainder.length&&(this.decodeChunks(this.remainder),this.remainder=""),blobToArrayBuffer(new Blob(this.chunks,{type:"application/octet-stream"}))}}class MimeNode{constructor(d){d=d||{},this.postalMime=d.postalMime,this.root=!!d.parentNode,this.childNodes=[],d.parentNode&&d.parentNode.childNodes.push(this),this.state="header",this.headerLines=[],this.decoders=new Map,this.contentType={value:"text/plain",default:!0},this.contentTransferEncoding={value:"8bit"},this.contentDisposition={value:""},this.headers=[],this.contentDecoder=!1}setupContentDecoder(d){/base64/i.test(d)?this.contentDecoder=new Base64Decoder:/quoted-printable/i.test(d)?this.contentDecoder=new QPDecoder({decoder:getDecoder(this.contentType.parsed.params.charset)}):this.contentDecoder=new PassThroughDecoder}async finalize(){if(this.state==="finished")return;this.state==="header"&&this.processHeaders();let d=this.postalMime.boundaries;for(let g=d.length-1;g>=0;g--)if(d[g].node===this){d.splice(g,1);break}await this.finalizeChildNodes(),this.content=this.contentDecoder?await this.contentDecoder.finalize():null,this.state="finished"}async finalizeChildNodes(){for(let d of this.childNodes)await d.finalize()}parseStructuredHeader(d){let g={value:!1,params:{}},f=!1,b="",m="value",y=!1,k=!1,a;for(let q=0,w=d.length;q<w;q++)switch(a=d.charAt(q),m){case"key":if(a==="="){f=b.trim().toLowerCase(),m="value",b="";break}b+=a;break;case"value":if(k)b+=a;else if(a==="\\"){k=!0;continue}else y&&a===y?y=!1:!y&&a==='"'?y=a:!y&&a===";"?(f===!1?g.value=b.trim():g.params[f]=b.trim(),m="key",b=""):b+=a;k=!1;break}return b=b.trim(),m==="value"?f===!1?g.value=b:g.params[f]=b:b&&(g.params[b.toLowerCase()]=""),g.value&&(g.value=g.value.toLowerCase()),decodeParameterValueContinuations(g),g}decodeFlowedText(d,g){return d.split(/\r?\n/).reduce((f,b)=>/ $/.test(f)&&!/(^|\n)-- $/.test(f)?g?f.slice(0,-1)+b:f+b:f+`
|
|
55
|
+
`+b).replace(/^ /gm,"")}getTextContent(){if(!this.content)return"";let d=getDecoder(this.contentType.parsed.params.charset).decode(this.content);return/^flowed$/i.test(this.contentType.parsed.params.format)&&(d=this.decodeFlowedText(d,/^yes$/i.test(this.contentType.parsed.params.delsp))),d}processHeaders(){for(let d=this.headerLines.length-1;d>=0;d--){let g=this.headerLines[d];if(d&&/^\s/.test(g))this.headerLines[d-1]+=`
|
|
56
|
+
`+g,this.headerLines.splice(d,1);else{g=g.replace(/\s+/g," ");let f=g.indexOf(":"),b=f<0?g.trim():g.substr(0,f).trim(),m=f<0?"":g.substr(f+1).trim();switch(this.headers.push({key:b.toLowerCase(),originalKey:b,value:m}),b.toLowerCase()){case"content-type":this.contentType.default&&(this.contentType={value:m,parsed:{}});break;case"content-transfer-encoding":this.contentTransferEncoding={value:m,parsed:{}};break;case"content-disposition":this.contentDisposition={value:m,parsed:{}};break;case"content-id":this.contentId=m;break;case"content-description":this.contentDescription=m;break}}}this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=/^multipart\//i.test(this.contentType.parsed.value)?this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/")+1):!1,this.contentType.multipart&&this.contentType.parsed.params.boundary&&this.postalMime.boundaries.push({value:textEncoder.encode(this.contentType.parsed.params.boundary),node:this}),this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(),this.setupContentDecoder(this.contentTransferEncoding.encoding)}feed(d){switch(this.state){case"header":if(!d.length)return this.state="body",this.processHeaders();this.headerLines.push(getDecoder().decode(d));break;case"body":this.contentDecoder.update(d)}}}const htmlEntities={"Æ":"\xC6","Æ":"\xC6","&":"&","&":"&","Á":"\xC1","Á":"\xC1","Ă":"\u0102","Â":"\xC2","Â":"\xC2","А":"\u0410","𝔄":"\u{1D504}","À":"\xC0","À":"\xC0","Α":"\u0391","Ā":"\u0100","⩓":"\u2A53","Ą":"\u0104","𝔸":"\u{1D538}","⁡":"\u2061","Å":"\xC5","Å":"\xC5","𝒜":"\u{1D49C}","≔":"\u2254","Ã":"\xC3","Ã":"\xC3","Ä":"\xC4","Ä":"\xC4","∖":"\u2216","⫧":"\u2AE7","⌆":"\u2306","Б":"\u0411","∵":"\u2235","ℬ":"\u212C","Β":"\u0392","𝔅":"\u{1D505}","𝔹":"\u{1D539}","˘":"\u02D8","ℬ":"\u212C","≎":"\u224E","Ч":"\u0427","©":"\xA9","©":"\xA9","Ć":"\u0106","⋒":"\u22D2","ⅅ":"\u2145","ℭ":"\u212D","Č":"\u010C","Ç":"\xC7","Ç":"\xC7","Ĉ":"\u0108","∰":"\u2230","Ċ":"\u010A","¸":"\xB8","·":"\xB7","ℭ":"\u212D","Χ":"\u03A7","⊙":"\u2299","⊖":"\u2296","⊕":"\u2295","⊗":"\u2297","∲":"\u2232","”":"\u201D","’":"\u2019","∷":"\u2237","⩴":"\u2A74","≡":"\u2261","∯":"\u222F","∮":"\u222E","ℂ":"\u2102","∐":"\u2210","∳":"\u2233","⨯":"\u2A2F","𝒞":"\u{1D49E}","⋓":"\u22D3","≍":"\u224D","ⅅ":"\u2145","⤑":"\u2911","Ђ":"\u0402","Ѕ":"\u0405","Џ":"\u040F","‡":"\u2021","↡":"\u21A1","⫤":"\u2AE4","Ď":"\u010E","Д":"\u0414","∇":"\u2207","Δ":"\u0394","𝔇":"\u{1D507}","´":"\xB4","˙":"\u02D9","˝":"\u02DD","`":"`","˜":"\u02DC","⋄":"\u22C4","ⅆ":"\u2146","𝔻":"\u{1D53B}","¨":"\xA8","⃜":"\u20DC","≐":"\u2250","∯":"\u222F","¨":"\xA8","⇓":"\u21D3","⇐":"\u21D0","⇔":"\u21D4","⫤":"\u2AE4","⟸":"\u27F8","⟺":"\u27FA","⟹":"\u27F9","⇒":"\u21D2","⊨":"\u22A8","⇑":"\u21D1","⇕":"\u21D5","∥":"\u2225","↓":"\u2193","⤓":"\u2913","⇵":"\u21F5","̑":"\u0311","⥐":"\u2950","⥞":"\u295E","↽":"\u21BD","⥖":"\u2956","⥟":"\u295F","⇁":"\u21C1","⥗":"\u2957","⊤":"\u22A4","↧":"\u21A7","⇓":"\u21D3","𝒟":"\u{1D49F}","Đ":"\u0110","Ŋ":"\u014A","Ð":"\xD0","Ð":"\xD0","É":"\xC9","É":"\xC9","Ě":"\u011A","Ê":"\xCA","Ê":"\xCA","Э":"\u042D","Ė":"\u0116","𝔈":"\u{1D508}","È":"\xC8","È":"\xC8","∈":"\u2208","Ē":"\u0112","◻":"\u25FB","▫":"\u25AB","Ę":"\u0118","𝔼":"\u{1D53C}","Ε":"\u0395","⩵":"\u2A75","≂":"\u2242","⇌":"\u21CC","ℰ":"\u2130","⩳":"\u2A73","Η":"\u0397","Ë":"\xCB","Ë":"\xCB","∃":"\u2203","ⅇ":"\u2147","Ф":"\u0424","𝔉":"\u{1D509}","◼":"\u25FC","▪":"\u25AA","𝔽":"\u{1D53D}","∀":"\u2200","ℱ":"\u2131","ℱ":"\u2131","Ѓ":"\u0403",">":">",">":">","Γ":"\u0393","Ϝ":"\u03DC","Ğ":"\u011E","Ģ":"\u0122","Ĝ":"\u011C","Г":"\u0413","Ġ":"\u0120","𝔊":"\u{1D50A}","⋙":"\u22D9","𝔾":"\u{1D53E}","≥":"\u2265","⋛":"\u22DB","≧":"\u2267","⪢":"\u2AA2","≷":"\u2277","⩾":"\u2A7E","≳":"\u2273","𝒢":"\u{1D4A2}","≫":"\u226B","Ъ":"\u042A","ˇ":"\u02C7","^":"^","Ĥ":"\u0124","ℌ":"\u210C","ℋ":"\u210B","ℍ":"\u210D","─":"\u2500","ℋ":"\u210B","Ħ":"\u0126","≎":"\u224E","≏":"\u224F","Е":"\u0415","IJ":"\u0132","Ё":"\u0401","Í":"\xCD","Í":"\xCD","Î":"\xCE","Î":"\xCE","И":"\u0418","İ":"\u0130","ℑ":"\u2111","Ì":"\xCC","Ì":"\xCC","ℑ":"\u2111","Ī":"\u012A","ⅈ":"\u2148","⇒":"\u21D2","∬":"\u222C","∫":"\u222B","⋂":"\u22C2","⁣":"\u2063","⁢":"\u2062","Į":"\u012E","𝕀":"\u{1D540}","Ι":"\u0399","ℐ":"\u2110","Ĩ":"\u0128","І":"\u0406","Ï":"\xCF","Ï":"\xCF","Ĵ":"\u0134","Й":"\u0419","𝔍":"\u{1D50D}","𝕁":"\u{1D541}","𝒥":"\u{1D4A5}","Ј":"\u0408","Є":"\u0404","Х":"\u0425","Ќ":"\u040C","Κ":"\u039A","Ķ":"\u0136","К":"\u041A","𝔎":"\u{1D50E}","𝕂":"\u{1D542}","𝒦":"\u{1D4A6}","Љ":"\u0409","<":"<","<":"<","Ĺ":"\u0139","Λ":"\u039B","⟪":"\u27EA","ℒ":"\u2112","↞":"\u219E","Ľ":"\u013D","Ļ":"\u013B","Л":"\u041B","⟨":"\u27E8","←":"\u2190","⇤":"\u21E4","⇆":"\u21C6","⌈":"\u2308","⟦":"\u27E6","⥡":"\u2961","⇃":"\u21C3","⥙":"\u2959","⌊":"\u230A","↔":"\u2194","⥎":"\u294E","⊣":"\u22A3","↤":"\u21A4","⥚":"\u295A","⊲":"\u22B2","⧏":"\u29CF","⊴":"\u22B4","⥑":"\u2951","⥠":"\u2960","↿":"\u21BF","⥘":"\u2958","↼":"\u21BC","⥒":"\u2952","⇐":"\u21D0","⇔":"\u21D4","⋚":"\u22DA","≦":"\u2266","≶":"\u2276","⪡":"\u2AA1","⩽":"\u2A7D","≲":"\u2272","𝔏":"\u{1D50F}","⋘":"\u22D8","⇚":"\u21DA","Ŀ":"\u013F","⟵":"\u27F5","⟷":"\u27F7","⟶":"\u27F6","⟸":"\u27F8","⟺":"\u27FA","⟹":"\u27F9","𝕃":"\u{1D543}","↙":"\u2199","↘":"\u2198","ℒ":"\u2112","↰":"\u21B0","Ł":"\u0141","≪":"\u226A","⤅":"\u2905","М":"\u041C"," ":"\u205F","ℳ":"\u2133","𝔐":"\u{1D510}","∓":"\u2213","𝕄":"\u{1D544}","ℳ":"\u2133","Μ":"\u039C","Њ":"\u040A","Ń":"\u0143","Ň":"\u0147","Ņ":"\u0145","Н":"\u041D","​":"\u200B","​":"\u200B","​":"\u200B","​":"\u200B","≫":"\u226B","≪":"\u226A","
":`
|
|
57
|
+
`,"𝔑":"\u{1D511}","⁠":"\u2060"," ":"\xA0","ℕ":"\u2115","⫬":"\u2AEC","≢":"\u2262","≭":"\u226D","∦":"\u2226","∉":"\u2209","≠":"\u2260","≂̸":"\u2242\u0338","∄":"\u2204","≯":"\u226F","≱":"\u2271","≧̸":"\u2267\u0338","≫̸":"\u226B\u0338","≹":"\u2279","⩾̸":"\u2A7E\u0338","≵":"\u2275","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⋪":"\u22EA","⧏̸":"\u29CF\u0338","⋬":"\u22EC","≮":"\u226E","≰":"\u2270","≸":"\u2278","≪̸":"\u226A\u0338","⩽̸":"\u2A7D\u0338","≴":"\u2274","⪢̸":"\u2AA2\u0338","⪡̸":"\u2AA1\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⋠":"\u22E0","∌":"\u220C","⋫":"\u22EB","⧐̸":"\u29D0\u0338","⋭":"\u22ED","⊏̸":"\u228F\u0338","⋢":"\u22E2","⊐̸":"\u2290\u0338","⋣":"\u22E3","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⋡":"\u22E1","≿̸":"\u227F\u0338","⊃⃒":"\u2283\u20D2","⊉":"\u2289","≁":"\u2241","≄":"\u2244","≇":"\u2247","≉":"\u2249","∤":"\u2224","𝒩":"\u{1D4A9}","Ñ":"\xD1","Ñ":"\xD1","Ν":"\u039D","Œ":"\u0152","Ó":"\xD3","Ó":"\xD3","Ô":"\xD4","Ô":"\xD4","О":"\u041E","Ő":"\u0150","𝔒":"\u{1D512}","Ò":"\xD2","Ò":"\xD2","Ō":"\u014C","Ω":"\u03A9","Ο":"\u039F","𝕆":"\u{1D546}","“":"\u201C","‘":"\u2018","⩔":"\u2A54","𝒪":"\u{1D4AA}","Ø":"\xD8","Ø":"\xD8","Õ":"\xD5","Õ":"\xD5","⨷":"\u2A37","Ö":"\xD6","Ö":"\xD6","‾":"\u203E","⏞":"\u23DE","⎴":"\u23B4","⏜":"\u23DC","∂":"\u2202","П":"\u041F","𝔓":"\u{1D513}","Φ":"\u03A6","Π":"\u03A0","±":"\xB1","ℌ":"\u210C","ℙ":"\u2119","⪻":"\u2ABB","≺":"\u227A","⪯":"\u2AAF","≼":"\u227C","≾":"\u227E","″":"\u2033","∏":"\u220F","∷":"\u2237","∝":"\u221D","𝒫":"\u{1D4AB}","Ψ":"\u03A8",""":'"',""":'"',"𝔔":"\u{1D514}","ℚ":"\u211A","𝒬":"\u{1D4AC}","⤐":"\u2910","®":"\xAE","®":"\xAE","Ŕ":"\u0154","⟫":"\u27EB","↠":"\u21A0","⤖":"\u2916","Ř":"\u0158","Ŗ":"\u0156","Р":"\u0420","ℜ":"\u211C","∋":"\u220B","⇋":"\u21CB","⥯":"\u296F","ℜ":"\u211C","Ρ":"\u03A1","⟩":"\u27E9","→":"\u2192","⇥":"\u21E5","⇄":"\u21C4","⌉":"\u2309","⟧":"\u27E7","⥝":"\u295D","⇂":"\u21C2","⥕":"\u2955","⌋":"\u230B","⊢":"\u22A2","↦":"\u21A6","⥛":"\u295B","⊳":"\u22B3","⧐":"\u29D0","⊵":"\u22B5","⥏":"\u294F","⥜":"\u295C","↾":"\u21BE","⥔":"\u2954","⇀":"\u21C0","⥓":"\u2953","⇒":"\u21D2","ℝ":"\u211D","⥰":"\u2970","⇛":"\u21DB","ℛ":"\u211B","↱":"\u21B1","⧴":"\u29F4","Щ":"\u0429","Ш":"\u0428","Ь":"\u042C","Ś":"\u015A","⪼":"\u2ABC","Š":"\u0160","Ş":"\u015E","Ŝ":"\u015C","С":"\u0421","𝔖":"\u{1D516}","↓":"\u2193","←":"\u2190","→":"\u2192","↑":"\u2191","Σ":"\u03A3","∘":"\u2218","𝕊":"\u{1D54A}","√":"\u221A","□":"\u25A1","⊓":"\u2293","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊔":"\u2294","𝒮":"\u{1D4AE}","⋆":"\u22C6","⋐":"\u22D0","⋐":"\u22D0","⊆":"\u2286","≻":"\u227B","⪰":"\u2AB0","≽":"\u227D","≿":"\u227F","∋":"\u220B","∑":"\u2211","⋑":"\u22D1","⊃":"\u2283","⊇":"\u2287","⋑":"\u22D1","Þ":"\xDE","Þ":"\xDE","™":"\u2122","Ћ":"\u040B","Ц":"\u0426","	":" ","Τ":"\u03A4","Ť":"\u0164","Ţ":"\u0162","Т":"\u0422","𝔗":"\u{1D517}","∴":"\u2234","Θ":"\u0398","  ":"\u205F\u200A"," ":"\u2009","∼":"\u223C","≃":"\u2243","≅":"\u2245","≈":"\u2248","𝕋":"\u{1D54B}","⃛":"\u20DB","𝒯":"\u{1D4AF}","Ŧ":"\u0166","Ú":"\xDA","Ú":"\xDA","↟":"\u219F","⥉":"\u2949","Ў":"\u040E","Ŭ":"\u016C","Û":"\xDB","Û":"\xDB","У":"\u0423","Ű":"\u0170","𝔘":"\u{1D518}","Ù":"\xD9","Ù":"\xD9","Ū":"\u016A","_":"_","⏟":"\u23DF","⎵":"\u23B5","⏝":"\u23DD","⋃":"\u22C3","⊎":"\u228E","Ų":"\u0172","𝕌":"\u{1D54C}","↑":"\u2191","⤒":"\u2912","⇅":"\u21C5","↕":"\u2195","⥮":"\u296E","⊥":"\u22A5","↥":"\u21A5","⇑":"\u21D1","⇕":"\u21D5","↖":"\u2196","↗":"\u2197","ϒ":"\u03D2","Υ":"\u03A5","Ů":"\u016E","𝒰":"\u{1D4B0}","Ũ":"\u0168","Ü":"\xDC","Ü":"\xDC","⊫":"\u22AB","⫫":"\u2AEB","В":"\u0412","⊩":"\u22A9","⫦":"\u2AE6","⋁":"\u22C1","‖":"\u2016","‖":"\u2016","∣":"\u2223","|":"|","❘":"\u2758","≀":"\u2240"," ":"\u200A","𝔙":"\u{1D519}","𝕍":"\u{1D54D}","𝒱":"\u{1D4B1}","⊪":"\u22AA","Ŵ":"\u0174","⋀":"\u22C0","𝔚":"\u{1D51A}","𝕎":"\u{1D54E}","𝒲":"\u{1D4B2}","𝔛":"\u{1D51B}","Ξ":"\u039E","𝕏":"\u{1D54F}","𝒳":"\u{1D4B3}","Я":"\u042F","Ї":"\u0407","Ю":"\u042E","Ý":"\xDD","Ý":"\xDD","Ŷ":"\u0176","Ы":"\u042B","𝔜":"\u{1D51C}","𝕐":"\u{1D550}","𝒴":"\u{1D4B4}","Ÿ":"\u0178","Ж":"\u0416","Ź":"\u0179","Ž":"\u017D","З":"\u0417","Ż":"\u017B","​":"\u200B","Ζ":"\u0396","ℨ":"\u2128","ℤ":"\u2124","𝒵":"\u{1D4B5}","á":"\xE1","á":"\xE1","ă":"\u0103","∾":"\u223E","∾̳":"\u223E\u0333","∿":"\u223F","â":"\xE2","â":"\xE2","´":"\xB4","´":"\xB4","а":"\u0430","æ":"\xE6","æ":"\xE6","⁡":"\u2061","𝔞":"\u{1D51E}","à":"\xE0","à":"\xE0","ℵ":"\u2135","ℵ":"\u2135","α":"\u03B1","ā":"\u0101","⨿":"\u2A3F","&":"&","&":"&","∧":"\u2227","⩕":"\u2A55","⩜":"\u2A5C","⩘":"\u2A58","⩚":"\u2A5A","∠":"\u2220","⦤":"\u29A4","∠":"\u2220","∡":"\u2221","⦨":"\u29A8","⦩":"\u29A9","⦪":"\u29AA","⦫":"\u29AB","⦬":"\u29AC","⦭":"\u29AD","⦮":"\u29AE","⦯":"\u29AF","∟":"\u221F","⊾":"\u22BE","⦝":"\u299D","∢":"\u2222","Å":"\xC5","⍼":"\u237C","ą":"\u0105","𝕒":"\u{1D552}","≈":"\u2248","⩰":"\u2A70","⩯":"\u2A6F","≊":"\u224A","≋":"\u224B","'":"'","≈":"\u2248","≊":"\u224A","å":"\xE5","å":"\xE5","𝒶":"\u{1D4B6}","*":"*","≈":"\u2248","≍":"\u224D","ã":"\xE3","ã":"\xE3","ä":"\xE4","ä":"\xE4","∳":"\u2233","⨑":"\u2A11","⫭":"\u2AED","≌":"\u224C","϶":"\u03F6","‵":"\u2035","∽":"\u223D","⋍":"\u22CD","⊽":"\u22BD","⌅":"\u2305","⌅":"\u2305","⎵":"\u23B5","⎶":"\u23B6","≌":"\u224C","б":"\u0431","„":"\u201E","∵":"\u2235","∵":"\u2235","⦰":"\u29B0","϶":"\u03F6","ℬ":"\u212C","β":"\u03B2","ℶ":"\u2136","≬":"\u226C","𝔟":"\u{1D51F}","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","⨀":"\u2A00","⨁":"\u2A01","⨂":"\u2A02","⨆":"\u2A06","★":"\u2605","▽":"\u25BD","△":"\u25B3","⨄":"\u2A04","⋁":"\u22C1","⋀":"\u22C0","⤍":"\u290D","⧫":"\u29EB","▪":"\u25AA","▴":"\u25B4","▾":"\u25BE","◂":"\u25C2","▸":"\u25B8","␣":"\u2423","▒":"\u2592","░":"\u2591","▓":"\u2593","█":"\u2588","=⃥":"=\u20E5","≡⃥":"\u2261\u20E5","⌐":"\u2310","𝕓":"\u{1D553}","⊥":"\u22A5","⊥":"\u22A5","⋈":"\u22C8","╗":"\u2557","╔":"\u2554","╖":"\u2556","╓":"\u2553","═":"\u2550","╦":"\u2566","╩":"\u2569","╤":"\u2564","╧":"\u2567","╝":"\u255D","╚":"\u255A","╜":"\u255C","╙":"\u2559","║":"\u2551","╬":"\u256C","╣":"\u2563","╠":"\u2560","╫":"\u256B","╢":"\u2562","╟":"\u255F","⧉":"\u29C9","╕":"\u2555","╒":"\u2552","┐":"\u2510","┌":"\u250C","─":"\u2500","╥":"\u2565","╨":"\u2568","┬":"\u252C","┴":"\u2534","⊟":"\u229F","⊞":"\u229E","⊠":"\u22A0","╛":"\u255B","╘":"\u2558","┘":"\u2518","└":"\u2514","│":"\u2502","╪":"\u256A","╡":"\u2561","╞":"\u255E","┼":"\u253C","┤":"\u2524","├":"\u251C","‵":"\u2035","˘":"\u02D8","¦":"\xA6","¦":"\xA6","𝒷":"\u{1D4B7}","⁏":"\u204F","∽":"\u223D","⋍":"\u22CD","\":"\\","⧅":"\u29C5","⟈":"\u27C8","•":"\u2022","•":"\u2022","≎":"\u224E","⪮":"\u2AAE","≏":"\u224F","≏":"\u224F","ć":"\u0107","∩":"\u2229","⩄":"\u2A44","⩉":"\u2A49","⩋":"\u2A4B","⩇":"\u2A47","⩀":"\u2A40","∩︀":"\u2229\uFE00","⁁":"\u2041","ˇ":"\u02C7","⩍":"\u2A4D","č":"\u010D","ç":"\xE7","ç":"\xE7","ĉ":"\u0109","⩌":"\u2A4C","⩐":"\u2A50","ċ":"\u010B","¸":"\xB8","¸":"\xB8","⦲":"\u29B2","¢":"\xA2","¢":"\xA2","·":"\xB7","𝔠":"\u{1D520}","ч":"\u0447","✓":"\u2713","✓":"\u2713","χ":"\u03C7","○":"\u25CB","⧃":"\u29C3","ˆ":"\u02C6","≗":"\u2257","↺":"\u21BA","↻":"\u21BB","®":"\xAE","Ⓢ":"\u24C8","⊛":"\u229B","⊚":"\u229A","⊝":"\u229D","≗":"\u2257","⨐":"\u2A10","⫯":"\u2AEF","⧂":"\u29C2","♣":"\u2663","♣":"\u2663",":":":","≔":"\u2254","≔":"\u2254",",":",","@":"@","∁":"\u2201","∘":"\u2218","∁":"\u2201","ℂ":"\u2102","≅":"\u2245","⩭":"\u2A6D","∮":"\u222E","𝕔":"\u{1D554}","∐":"\u2210","©":"\xA9","©":"\xA9","℗":"\u2117","↵":"\u21B5","✗":"\u2717","𝒸":"\u{1D4B8}","⫏":"\u2ACF","⫑":"\u2AD1","⫐":"\u2AD0","⫒":"\u2AD2","⋯":"\u22EF","⤸":"\u2938","⤵":"\u2935","⋞":"\u22DE","⋟":"\u22DF","↶":"\u21B6","⤽":"\u293D","∪":"\u222A","⩈":"\u2A48","⩆":"\u2A46","⩊":"\u2A4A","⊍":"\u228D","⩅":"\u2A45","∪︀":"\u222A\uFE00","↷":"\u21B7","⤼":"\u293C","⋞":"\u22DE","⋟":"\u22DF","⋎":"\u22CE","⋏":"\u22CF","¤":"\xA4","¤":"\xA4","↶":"\u21B6","↷":"\u21B7","⋎":"\u22CE","⋏":"\u22CF","∲":"\u2232","∱":"\u2231","⌭":"\u232D","⇓":"\u21D3","⥥":"\u2965","†":"\u2020","ℸ":"\u2138","↓":"\u2193","‐":"\u2010","⊣":"\u22A3","⤏":"\u290F","˝":"\u02DD","ď":"\u010F","д":"\u0434","ⅆ":"\u2146","‡":"\u2021","⇊":"\u21CA","⩷":"\u2A77","°":"\xB0","°":"\xB0","δ":"\u03B4","⦱":"\u29B1","⥿":"\u297F","𝔡":"\u{1D521}","⇃":"\u21C3","⇂":"\u21C2","⋄":"\u22C4","⋄":"\u22C4","♦":"\u2666","♦":"\u2666","¨":"\xA8","ϝ":"\u03DD","⋲":"\u22F2","÷":"\xF7","÷":"\xF7","÷":"\xF7","⋇":"\u22C7","⋇":"\u22C7","ђ":"\u0452","⌞":"\u231E","⌍":"\u230D","$":"$","𝕕":"\u{1D555}","˙":"\u02D9","≐":"\u2250","≑":"\u2251","∸":"\u2238","∔":"\u2214","⊡":"\u22A1","⌆":"\u2306","↓":"\u2193","⇊":"\u21CA","⇃":"\u21C3","⇂":"\u21C2","⤐":"\u2910","⌟":"\u231F","⌌":"\u230C","𝒹":"\u{1D4B9}","ѕ":"\u0455","⧶":"\u29F6","đ":"\u0111","⋱":"\u22F1","▿":"\u25BF","▾":"\u25BE","⇵":"\u21F5","⥯":"\u296F","⦦":"\u29A6","џ":"\u045F","⟿":"\u27FF","⩷":"\u2A77","≑":"\u2251","é":"\xE9","é":"\xE9","⩮":"\u2A6E","ě":"\u011B","≖":"\u2256","ê":"\xEA","ê":"\xEA","≕":"\u2255","э":"\u044D","ė":"\u0117","ⅇ":"\u2147","≒":"\u2252","𝔢":"\u{1D522}","⪚":"\u2A9A","è":"\xE8","è":"\xE8","⪖":"\u2A96","⪘":"\u2A98","⪙":"\u2A99","⏧":"\u23E7","ℓ":"\u2113","⪕":"\u2A95","⪗":"\u2A97","ē":"\u0113","∅":"\u2205","∅":"\u2205","∅":"\u2205"," ":"\u2004"," ":"\u2005"," ":"\u2003","ŋ":"\u014B"," ":"\u2002","ę":"\u0119","𝕖":"\u{1D556}","⋕":"\u22D5","⧣":"\u29E3","⩱":"\u2A71","ε":"\u03B5","ε":"\u03B5","ϵ":"\u03F5","≖":"\u2256","≕":"\u2255","≂":"\u2242","⪖":"\u2A96","⪕":"\u2A95","=":"=","≟":"\u225F","≡":"\u2261","⩸":"\u2A78","⧥":"\u29E5","≓":"\u2253","⥱":"\u2971","ℯ":"\u212F","≐":"\u2250","≂":"\u2242","η":"\u03B7","ð":"\xF0","ð":"\xF0","ë":"\xEB","ë":"\xEB","€":"\u20AC","!":"!","∃":"\u2203","ℰ":"\u2130","ⅇ":"\u2147","≒":"\u2252","ф":"\u0444","♀":"\u2640","ffi":"\uFB03","ff":"\uFB00","ffl":"\uFB04","𝔣":"\u{1D523}","fi":"\uFB01","fj":"fj","♭":"\u266D","fl":"\uFB02","▱":"\u25B1","ƒ":"\u0192","𝕗":"\u{1D557}","∀":"\u2200","⋔":"\u22D4","⫙":"\u2AD9","⨍":"\u2A0D","½":"\xBD","½":"\xBD","⅓":"\u2153","¼":"\xBC","¼":"\xBC","⅕":"\u2155","⅙":"\u2159","⅛":"\u215B","⅔":"\u2154","⅖":"\u2156","¾":"\xBE","¾":"\xBE","⅗":"\u2157","⅜":"\u215C","⅘":"\u2158","⅚":"\u215A","⅝":"\u215D","⅞":"\u215E","⁄":"\u2044","⌢":"\u2322","𝒻":"\u{1D4BB}","≧":"\u2267","⪌":"\u2A8C","ǵ":"\u01F5","γ":"\u03B3","ϝ":"\u03DD","⪆":"\u2A86","ğ":"\u011F","ĝ":"\u011D","г":"\u0433","ġ":"\u0121","≥":"\u2265","⋛":"\u22DB","≥":"\u2265","≧":"\u2267","⩾":"\u2A7E","⩾":"\u2A7E","⪩":"\u2AA9","⪀":"\u2A80","⪂":"\u2A82","⪄":"\u2A84","⋛︀":"\u22DB\uFE00","⪔":"\u2A94","𝔤":"\u{1D524}","≫":"\u226B","⋙":"\u22D9","ℷ":"\u2137","ѓ":"\u0453","≷":"\u2277","⪒":"\u2A92","⪥":"\u2AA5","⪤":"\u2AA4","≩":"\u2269","⪊":"\u2A8A","⪊":"\u2A8A","⪈":"\u2A88","⪈":"\u2A88","≩":"\u2269","⋧":"\u22E7","𝕘":"\u{1D558}","`":"`","ℊ":"\u210A","≳":"\u2273","⪎":"\u2A8E","⪐":"\u2A90",">":">",">":">","⪧":"\u2AA7","⩺":"\u2A7A","⋗":"\u22D7","⦕":"\u2995","⩼":"\u2A7C","⪆":"\u2A86","⥸":"\u2978","⋗":"\u22D7","⋛":"\u22DB","⪌":"\u2A8C","≷":"\u2277","≳":"\u2273","≩︀":"\u2269\uFE00","≩︀":"\u2269\uFE00","⇔":"\u21D4"," ":"\u200A","½":"\xBD","ℋ":"\u210B","ъ":"\u044A","↔":"\u2194","⥈":"\u2948","↭":"\u21AD","ℏ":"\u210F","ĥ":"\u0125","♥":"\u2665","♥":"\u2665","…":"\u2026","⊹":"\u22B9","𝔥":"\u{1D525}","⤥":"\u2925","⤦":"\u2926","⇿":"\u21FF","∻":"\u223B","↩":"\u21A9","↪":"\u21AA","𝕙":"\u{1D559}","―":"\u2015","𝒽":"\u{1D4BD}","ℏ":"\u210F","ħ":"\u0127","⁃":"\u2043","‐":"\u2010","í":"\xED","í":"\xED","⁣":"\u2063","î":"\xEE","î":"\xEE","и":"\u0438","е":"\u0435","¡":"\xA1","¡":"\xA1","⇔":"\u21D4","𝔦":"\u{1D526}","ì":"\xEC","ì":"\xEC","ⅈ":"\u2148","⨌":"\u2A0C","∭":"\u222D","⧜":"\u29DC","℩":"\u2129","ij":"\u0133","ī":"\u012B","ℑ":"\u2111","ℐ":"\u2110","ℑ":"\u2111","ı":"\u0131","⊷":"\u22B7","Ƶ":"\u01B5","∈":"\u2208","℅":"\u2105","∞":"\u221E","⧝":"\u29DD","ı":"\u0131","∫":"\u222B","⊺":"\u22BA","ℤ":"\u2124","⊺":"\u22BA","⨗":"\u2A17","⨼":"\u2A3C","ё":"\u0451","į":"\u012F","𝕚":"\u{1D55A}","ι":"\u03B9","⨼":"\u2A3C","¿":"\xBF","¿":"\xBF","𝒾":"\u{1D4BE}","∈":"\u2208","⋹":"\u22F9","⋵":"\u22F5","⋴":"\u22F4","⋳":"\u22F3","∈":"\u2208","⁢":"\u2062","ĩ":"\u0129","і":"\u0456","ï":"\xEF","ï":"\xEF","ĵ":"\u0135","й":"\u0439","𝔧":"\u{1D527}","ȷ":"\u0237","𝕛":"\u{1D55B}","𝒿":"\u{1D4BF}","ј":"\u0458","є":"\u0454","κ":"\u03BA","ϰ":"\u03F0","ķ":"\u0137","к":"\u043A","𝔨":"\u{1D528}","ĸ":"\u0138","х":"\u0445","ќ":"\u045C","𝕜":"\u{1D55C}","𝓀":"\u{1D4C0}","⇚":"\u21DA","⇐":"\u21D0","⤛":"\u291B","⤎":"\u290E","≦":"\u2266","⪋":"\u2A8B","⥢":"\u2962","ĺ":"\u013A","⦴":"\u29B4","ℒ":"\u2112","λ":"\u03BB","⟨":"\u27E8","⦑":"\u2991","⟨":"\u27E8","⪅":"\u2A85","«":"\xAB","«":"\xAB","←":"\u2190","⇤":"\u21E4","⤟":"\u291F","⤝":"\u291D","↩":"\u21A9","↫":"\u21AB","⤹":"\u2939","⥳":"\u2973","↢":"\u21A2","⪫":"\u2AAB","⤙":"\u2919","⪭":"\u2AAD","⪭︀":"\u2AAD\uFE00","⤌":"\u290C","❲":"\u2772","{":"{","[":"[","⦋":"\u298B","⦏":"\u298F","⦍":"\u298D","ľ":"\u013E","ļ":"\u013C","⌈":"\u2308","{":"{","л":"\u043B","⤶":"\u2936","“":"\u201C","„":"\u201E","⥧":"\u2967","⥋":"\u294B","↲":"\u21B2","≤":"\u2264","←":"\u2190","↢":"\u21A2","↽":"\u21BD","↼":"\u21BC","⇇":"\u21C7","↔":"\u2194","⇆":"\u21C6","⇋":"\u21CB","↭":"\u21AD","⋋":"\u22CB","⋚":"\u22DA","≤":"\u2264","≦":"\u2266","⩽":"\u2A7D","⩽":"\u2A7D","⪨":"\u2AA8","⩿":"\u2A7F","⪁":"\u2A81","⪃":"\u2A83","⋚︀":"\u22DA\uFE00","⪓":"\u2A93","⪅":"\u2A85","⋖":"\u22D6","⋚":"\u22DA","⪋":"\u2A8B","≶":"\u2276","≲":"\u2272","⥼":"\u297C","⌊":"\u230A","𝔩":"\u{1D529}","≶":"\u2276","⪑":"\u2A91","↽":"\u21BD","↼":"\u21BC","⥪":"\u296A","▄":"\u2584","љ":"\u0459","≪":"\u226A","⇇":"\u21C7","⌞":"\u231E","⥫":"\u296B","◺":"\u25FA","ŀ":"\u0140","⎰":"\u23B0","⎰":"\u23B0","≨":"\u2268","⪉":"\u2A89","⪉":"\u2A89","⪇":"\u2A87","⪇":"\u2A87","≨":"\u2268","⋦":"\u22E6","⟬":"\u27EC","⇽":"\u21FD","⟦":"\u27E6","⟵":"\u27F5","⟷":"\u27F7","⟼":"\u27FC","⟶":"\u27F6","↫":"\u21AB","↬":"\u21AC","⦅":"\u2985","𝕝":"\u{1D55D}","⨭":"\u2A2D","⨴":"\u2A34","∗":"\u2217","_":"_","◊":"\u25CA","◊":"\u25CA","⧫":"\u29EB","(":"(","⦓":"\u2993","⇆":"\u21C6","⌟":"\u231F","⇋":"\u21CB","⥭":"\u296D","‎":"\u200E","⊿":"\u22BF","‹":"\u2039","𝓁":"\u{1D4C1}","↰":"\u21B0","≲":"\u2272","⪍":"\u2A8D","⪏":"\u2A8F","[":"[","‘":"\u2018","‚":"\u201A","ł":"\u0142","<":"<","<":"<","⪦":"\u2AA6","⩹":"\u2A79","⋖":"\u22D6","⋋":"\u22CB","⋉":"\u22C9","⥶":"\u2976","⩻":"\u2A7B","⦖":"\u2996","◃":"\u25C3","⊴":"\u22B4","◂":"\u25C2","⥊":"\u294A","⥦":"\u2966","≨︀":"\u2268\uFE00","≨︀":"\u2268\uFE00","∺":"\u223A","¯":"\xAF","¯":"\xAF","♂":"\u2642","✠":"\u2720","✠":"\u2720","↦":"\u21A6","↦":"\u21A6","↧":"\u21A7","↤":"\u21A4","↥":"\u21A5","▮":"\u25AE","⨩":"\u2A29","м":"\u043C","—":"\u2014","∡":"\u2221","𝔪":"\u{1D52A}","℧":"\u2127","µ":"\xB5","µ":"\xB5","∣":"\u2223","*":"*","⫰":"\u2AF0","·":"\xB7","·":"\xB7","−":"\u2212","⊟":"\u229F","∸":"\u2238","⨪":"\u2A2A","⫛":"\u2ADB","…":"\u2026","∓":"\u2213","⊧":"\u22A7","𝕞":"\u{1D55E}","∓":"\u2213","𝓂":"\u{1D4C2}","∾":"\u223E","μ":"\u03BC","⊸":"\u22B8","⊸":"\u22B8","⋙̸":"\u22D9\u0338","≫⃒":"\u226B\u20D2","≫̸":"\u226B\u0338","⇍":"\u21CD","⇎":"\u21CE","⋘̸":"\u22D8\u0338","≪⃒":"\u226A\u20D2","≪̸":"\u226A\u0338","⇏":"\u21CF","⊯":"\u22AF","⊮":"\u22AE","∇":"\u2207","ń":"\u0144","∠⃒":"\u2220\u20D2","≉":"\u2249","⩰̸":"\u2A70\u0338","≋̸":"\u224B\u0338","ʼn":"\u0149","≉":"\u2249","♮":"\u266E","♮":"\u266E","ℕ":"\u2115"," ":"\xA0"," ":"\xA0","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⩃":"\u2A43","ň":"\u0148","ņ":"\u0146","≇":"\u2247","⩭̸":"\u2A6D\u0338","⩂":"\u2A42","н":"\u043D","–":"\u2013","≠":"\u2260","⇗":"\u21D7","⤤":"\u2924","↗":"\u2197","↗":"\u2197","≐̸":"\u2250\u0338","≢":"\u2262","⤨":"\u2928","≂̸":"\u2242\u0338","∄":"\u2204","∄":"\u2204","𝔫":"\u{1D52B}","≧̸":"\u2267\u0338","≱":"\u2271","≱":"\u2271","≧̸":"\u2267\u0338","⩾̸":"\u2A7E\u0338","⩾̸":"\u2A7E\u0338","≵":"\u2275","≯":"\u226F","≯":"\u226F","⇎":"\u21CE","↮":"\u21AE","⫲":"\u2AF2","∋":"\u220B","⋼":"\u22FC","⋺":"\u22FA","∋":"\u220B","њ":"\u045A","⇍":"\u21CD","≦̸":"\u2266\u0338","↚":"\u219A","‥":"\u2025","≰":"\u2270","↚":"\u219A","↮":"\u21AE","≰":"\u2270","≦̸":"\u2266\u0338","⩽̸":"\u2A7D\u0338","⩽̸":"\u2A7D\u0338","≮":"\u226E","≴":"\u2274","≮":"\u226E","⋪":"\u22EA","⋬":"\u22EC","∤":"\u2224","𝕟":"\u{1D55F}","¬":"\xAC","¬":"\xAC","∉":"\u2209","⋹̸":"\u22F9\u0338","⋵̸":"\u22F5\u0338","∉":"\u2209","⋷":"\u22F7","⋶":"\u22F6","∌":"\u220C","∌":"\u220C","⋾":"\u22FE","⋽":"\u22FD","∦":"\u2226","∦":"\u2226","⫽⃥":"\u2AFD\u20E5","∂̸":"\u2202\u0338","⨔":"\u2A14","⊀":"\u2280","⋠":"\u22E0","⪯̸":"\u2AAF\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⇏":"\u21CF","↛":"\u219B","⤳̸":"\u2933\u0338","↝̸":"\u219D\u0338","↛":"\u219B","⋫":"\u22EB","⋭":"\u22ED","⊁":"\u2281","⋡":"\u22E1","⪰̸":"\u2AB0\u0338","𝓃":"\u{1D4C3}","∤":"\u2224","∦":"\u2226","≁":"\u2241","≄":"\u2244","≄":"\u2244","∤":"\u2224","∦":"\u2226","⋢":"\u22E2","⋣":"\u22E3","⊄":"\u2284","⫅̸":"\u2AC5\u0338","⊈":"\u2288","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⫅̸":"\u2AC5\u0338","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⊅":"\u2285","⫆̸":"\u2AC6\u0338","⊉":"\u2289","⊃⃒":"\u2283\u20D2","⊉":"\u2289","⫆̸":"\u2AC6\u0338","≹":"\u2279","ñ":"\xF1","ñ":"\xF1","≸":"\u2278","⋪":"\u22EA","⋬":"\u22EC","⋫":"\u22EB","⋭":"\u22ED","ν":"\u03BD","#":"#","№":"\u2116"," ":"\u2007","⊭":"\u22AD","⤄":"\u2904","≍⃒":"\u224D\u20D2","⊬":"\u22AC","≥⃒":"\u2265\u20D2",">⃒":">\u20D2","⧞":"\u29DE","⤂":"\u2902","≤⃒":"\u2264\u20D2","<⃒":"<\u20D2","⊴⃒":"\u22B4\u20D2","⤃":"\u2903","⊵⃒":"\u22B5\u20D2","∼⃒":"\u223C\u20D2","⇖":"\u21D6","⤣":"\u2923","↖":"\u2196","↖":"\u2196","⤧":"\u2927","Ⓢ":"\u24C8","ó":"\xF3","ó":"\xF3","⊛":"\u229B","⊚":"\u229A","ô":"\xF4","ô":"\xF4","о":"\u043E","⊝":"\u229D","ő":"\u0151","⨸":"\u2A38","⊙":"\u2299","⦼":"\u29BC","œ":"\u0153","⦿":"\u29BF","𝔬":"\u{1D52C}","˛":"\u02DB","ò":"\xF2","ò":"\xF2","⧁":"\u29C1","⦵":"\u29B5","Ω":"\u03A9","∮":"\u222E","↺":"\u21BA","⦾":"\u29BE","⦻":"\u29BB","‾":"\u203E","⧀":"\u29C0","ō":"\u014D","ω":"\u03C9","ο":"\u03BF","⦶":"\u29B6","⊖":"\u2296","𝕠":"\u{1D560}","⦷":"\u29B7","⦹":"\u29B9","⊕":"\u2295","∨":"\u2228","↻":"\u21BB","⩝":"\u2A5D","ℴ":"\u2134","ℴ":"\u2134","ª":"\xAA","ª":"\xAA","º":"\xBA","º":"\xBA","⊶":"\u22B6","⩖":"\u2A56","⩗":"\u2A57","⩛":"\u2A5B","ℴ":"\u2134","ø":"\xF8","ø":"\xF8","⊘":"\u2298","õ":"\xF5","õ":"\xF5","⊗":"\u2297","⨶":"\u2A36","ö":"\xF6","ö":"\xF6","⌽":"\u233D","∥":"\u2225","¶":"\xB6","¶":"\xB6","∥":"\u2225","⫳":"\u2AF3","⫽":"\u2AFD","∂":"\u2202","п":"\u043F","%":"%",".":".","‰":"\u2030","⊥":"\u22A5","‱":"\u2031","𝔭":"\u{1D52D}","φ":"\u03C6","ϕ":"\u03D5","ℳ":"\u2133","☎":"\u260E","π":"\u03C0","⋔":"\u22D4","ϖ":"\u03D6","ℏ":"\u210F","ℎ":"\u210E","ℏ":"\u210F","+":"+","⨣":"\u2A23","⊞":"\u229E","⨢":"\u2A22","∔":"\u2214","⨥":"\u2A25","⩲":"\u2A72","±":"\xB1","±":"\xB1","⨦":"\u2A26","⨧":"\u2A27","±":"\xB1","⨕":"\u2A15","𝕡":"\u{1D561}","£":"\xA3","£":"\xA3","≺":"\u227A","⪳":"\u2AB3","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","≺":"\u227A","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","⪹":"\u2AB9","⪵":"\u2AB5","⋨":"\u22E8","≾":"\u227E","′":"\u2032","ℙ":"\u2119","⪵":"\u2AB5","⪹":"\u2AB9","⋨":"\u22E8","∏":"\u220F","⌮":"\u232E","⌒":"\u2312","⌓":"\u2313","∝":"\u221D","∝":"\u221D","≾":"\u227E","⊰":"\u22B0","𝓅":"\u{1D4C5}","ψ":"\u03C8"," ":"\u2008","𝔮":"\u{1D52E}","⨌":"\u2A0C","𝕢":"\u{1D562}","⁗":"\u2057","𝓆":"\u{1D4C6}","ℍ":"\u210D","⨖":"\u2A16","?":"?","≟":"\u225F",""":'"',""":'"',"⇛":"\u21DB","⇒":"\u21D2","⤜":"\u291C","⤏":"\u290F","⥤":"\u2964","∽̱":"\u223D\u0331","ŕ":"\u0155","√":"\u221A","⦳":"\u29B3","⟩":"\u27E9","⦒":"\u2992","⦥":"\u29A5","⟩":"\u27E9","»":"\xBB","»":"\xBB","→":"\u2192","⥵":"\u2975","⇥":"\u21E5","⤠":"\u2920","⤳":"\u2933","⤞":"\u291E","↪":"\u21AA","↬":"\u21AC","⥅":"\u2945","⥴":"\u2974","↣":"\u21A3","↝":"\u219D","⤚":"\u291A","∶":"\u2236","ℚ":"\u211A","⤍":"\u290D","❳":"\u2773","}":"}","]":"]","⦌":"\u298C","⦎":"\u298E","⦐":"\u2990","ř":"\u0159","ŗ":"\u0157","⌉":"\u2309","}":"}","р":"\u0440","⤷":"\u2937","⥩":"\u2969","”":"\u201D","”":"\u201D","↳":"\u21B3","ℜ":"\u211C","ℛ":"\u211B","ℜ":"\u211C","ℝ":"\u211D","▭":"\u25AD","®":"\xAE","®":"\xAE","⥽":"\u297D","⌋":"\u230B","𝔯":"\u{1D52F}","⇁":"\u21C1","⇀":"\u21C0","⥬":"\u296C","ρ":"\u03C1","ϱ":"\u03F1","→":"\u2192","↣":"\u21A3","⇁":"\u21C1","⇀":"\u21C0","⇄":"\u21C4","⇌":"\u21CC","⇉":"\u21C9","↝":"\u219D","⋌":"\u22CC","˚":"\u02DA","≓":"\u2253","⇄":"\u21C4","⇌":"\u21CC","‏":"\u200F","⎱":"\u23B1","⎱":"\u23B1","⫮":"\u2AEE","⟭":"\u27ED","⇾":"\u21FE","⟧":"\u27E7","⦆":"\u2986","𝕣":"\u{1D563}","⨮":"\u2A2E","⨵":"\u2A35",")":")","⦔":"\u2994","⨒":"\u2A12","⇉":"\u21C9","›":"\u203A","𝓇":"\u{1D4C7}","↱":"\u21B1","]":"]","’":"\u2019","’":"\u2019","⋌":"\u22CC","⋊":"\u22CA","▹":"\u25B9","⊵":"\u22B5","▸":"\u25B8","⧎":"\u29CE","⥨":"\u2968","℞":"\u211E","ś":"\u015B","‚":"\u201A","≻":"\u227B","⪴":"\u2AB4","⪸":"\u2AB8","š":"\u0161","≽":"\u227D","⪰":"\u2AB0","ş":"\u015F","ŝ":"\u015D","⪶":"\u2AB6","⪺":"\u2ABA","⋩":"\u22E9","⨓":"\u2A13","≿":"\u227F","с":"\u0441","⋅":"\u22C5","⊡":"\u22A1","⩦":"\u2A66","⇘":"\u21D8","⤥":"\u2925","↘":"\u2198","↘":"\u2198","§":"\xA7","§":"\xA7",";":";","⤩":"\u2929","∖":"\u2216","∖":"\u2216","✶":"\u2736","𝔰":"\u{1D530}","⌢":"\u2322","♯":"\u266F","щ":"\u0449","ш":"\u0448","∣":"\u2223","∥":"\u2225","­":"\xAD","­":"\xAD","σ":"\u03C3","ς":"\u03C2","ς":"\u03C2","∼":"\u223C","⩪":"\u2A6A","≃":"\u2243","≃":"\u2243","⪞":"\u2A9E","⪠":"\u2AA0","⪝":"\u2A9D","⪟":"\u2A9F","≆":"\u2246","⨤":"\u2A24","⥲":"\u2972","←":"\u2190","∖":"\u2216","⨳":"\u2A33","⧤":"\u29E4","∣":"\u2223","⌣":"\u2323","⪪":"\u2AAA","⪬":"\u2AAC","⪬︀":"\u2AAC\uFE00","ь":"\u044C","/":"/","⧄":"\u29C4","⌿":"\u233F","𝕤":"\u{1D564}","♠":"\u2660","♠":"\u2660","∥":"\u2225","⊓":"\u2293","⊓︀":"\u2293\uFE00","⊔":"\u2294","⊔︀":"\u2294\uFE00","⊏":"\u228F","⊑":"\u2291","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊐":"\u2290","⊒":"\u2292","□":"\u25A1","□":"\u25A1","▪":"\u25AA","▪":"\u25AA","→":"\u2192","𝓈":"\u{1D4C8}","∖":"\u2216","⌣":"\u2323","⋆":"\u22C6","☆":"\u2606","★":"\u2605","ϵ":"\u03F5","ϕ":"\u03D5","¯":"\xAF","⊂":"\u2282","⫅":"\u2AC5","⪽":"\u2ABD","⊆":"\u2286","⫃":"\u2AC3","⫁":"\u2AC1","⫋":"\u2ACB","⊊":"\u228A","⪿":"\u2ABF","⥹":"\u2979","⊂":"\u2282","⊆":"\u2286","⫅":"\u2AC5","⊊":"\u228A","⫋":"\u2ACB","⫇":"\u2AC7","⫕":"\u2AD5","⫓":"\u2AD3","≻":"\u227B","⪸":"\u2AB8","≽":"\u227D","⪰":"\u2AB0","⪺":"\u2ABA","⪶":"\u2AB6","⋩":"\u22E9","≿":"\u227F","∑":"\u2211","♪":"\u266A","¹":"\xB9","¹":"\xB9","²":"\xB2","²":"\xB2","³":"\xB3","³":"\xB3","⊃":"\u2283","⫆":"\u2AC6","⪾":"\u2ABE","⫘":"\u2AD8","⊇":"\u2287","⫄":"\u2AC4","⟉":"\u27C9","⫗":"\u2AD7","⥻":"\u297B","⫂":"\u2AC2","⫌":"\u2ACC","⊋":"\u228B","⫀":"\u2AC0","⊃":"\u2283","⊇":"\u2287","⫆":"\u2AC6","⊋":"\u228B","⫌":"\u2ACC","⫈":"\u2AC8","⫔":"\u2AD4","⫖":"\u2AD6","⇙":"\u21D9","⤦":"\u2926","↙":"\u2199","↙":"\u2199","⤪":"\u292A","ß":"\xDF","ß":"\xDF","⌖":"\u2316","τ":"\u03C4","⎴":"\u23B4","ť":"\u0165","ţ":"\u0163","т":"\u0442","⃛":"\u20DB","⌕":"\u2315","𝔱":"\u{1D531}","∴":"\u2234","∴":"\u2234","θ":"\u03B8","ϑ":"\u03D1","ϑ":"\u03D1","≈":"\u2248","∼":"\u223C"," ":"\u2009","≈":"\u2248","∼":"\u223C","þ":"\xFE","þ":"\xFE","˜":"\u02DC","×":"\xD7","×":"\xD7","⊠":"\u22A0","⨱":"\u2A31","⨰":"\u2A30","∭":"\u222D","⤨":"\u2928","⊤":"\u22A4","⌶":"\u2336","⫱":"\u2AF1","𝕥":"\u{1D565}","⫚":"\u2ADA","⤩":"\u2929","‴":"\u2034","™":"\u2122","▵":"\u25B5","▿":"\u25BF","◃":"\u25C3","⊴":"\u22B4","≜":"\u225C","▹":"\u25B9","⊵":"\u22B5","◬":"\u25EC","≜":"\u225C","⨺":"\u2A3A","⨹":"\u2A39","⧍":"\u29CD","⨻":"\u2A3B","⏢":"\u23E2","𝓉":"\u{1D4C9}","ц":"\u0446","ћ":"\u045B","ŧ":"\u0167","≬":"\u226C","↞":"\u219E","↠":"\u21A0","⇑":"\u21D1","⥣":"\u2963","ú":"\xFA","ú":"\xFA","↑":"\u2191","ў":"\u045E","ŭ":"\u016D","û":"\xFB","û":"\xFB","у":"\u0443","⇅":"\u21C5","ű":"\u0171","⥮":"\u296E","⥾":"\u297E","𝔲":"\u{1D532}","ù":"\xF9","ù":"\xF9","↿":"\u21BF","↾":"\u21BE","▀":"\u2580","⌜":"\u231C","⌜":"\u231C","⌏":"\u230F","◸":"\u25F8","ū":"\u016B","¨":"\xA8","¨":"\xA8","ų":"\u0173","𝕦":"\u{1D566}","↑":"\u2191","↕":"\u2195","↿":"\u21BF","↾":"\u21BE","⊎":"\u228E","υ":"\u03C5","ϒ":"\u03D2","υ":"\u03C5","⇈":"\u21C8","⌝":"\u231D","⌝":"\u231D","⌎":"\u230E","ů":"\u016F","◹":"\u25F9","𝓊":"\u{1D4CA}","⋰":"\u22F0","ũ":"\u0169","▵":"\u25B5","▴":"\u25B4","⇈":"\u21C8","ü":"\xFC","ü":"\xFC","⦧":"\u29A7","⇕":"\u21D5","⫨":"\u2AE8","⫩":"\u2AE9","⊨":"\u22A8","⦜":"\u299C","ϵ":"\u03F5","ϰ":"\u03F0","∅":"\u2205","ϕ":"\u03D5","ϖ":"\u03D6","∝":"\u221D","↕":"\u2195","ϱ":"\u03F1","ς":"\u03C2","⊊︀":"\u228A\uFE00","⫋︀":"\u2ACB\uFE00","⊋︀":"\u228B\uFE00","⫌︀":"\u2ACC\uFE00","ϑ":"\u03D1","⊲":"\u22B2","⊳":"\u22B3","в":"\u0432","⊢":"\u22A2","∨":"\u2228","⊻":"\u22BB","≚":"\u225A","⋮":"\u22EE","|":"|","|":"|","𝔳":"\u{1D533}","⊲":"\u22B2","⊂⃒":"\u2282\u20D2","⊃⃒":"\u2283\u20D2","𝕧":"\u{1D567}","∝":"\u221D","⊳":"\u22B3","𝓋":"\u{1D4CB}","⫋︀":"\u2ACB\uFE00","⊊︀":"\u228A\uFE00","⫌︀":"\u2ACC\uFE00","⊋︀":"\u228B\uFE00","⦚":"\u299A","ŵ":"\u0175","⩟":"\u2A5F","∧":"\u2227","≙":"\u2259","℘":"\u2118","𝔴":"\u{1D534}","𝕨":"\u{1D568}","℘":"\u2118","≀":"\u2240","≀":"\u2240","𝓌":"\u{1D4CC}","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","▽":"\u25BD","𝔵":"\u{1D535}","⟺":"\u27FA","⟷":"\u27F7","ξ":"\u03BE","⟸":"\u27F8","⟵":"\u27F5","⟼":"\u27FC","⋻":"\u22FB","⨀":"\u2A00","𝕩":"\u{1D569}","⨁":"\u2A01","⨂":"\u2A02","⟹":"\u27F9","⟶":"\u27F6","𝓍":"\u{1D4CD}","⨆":"\u2A06","⨄":"\u2A04","△":"\u25B3","⋁":"\u22C1","⋀":"\u22C0","ý":"\xFD","ý":"\xFD","я":"\u044F","ŷ":"\u0177","ы":"\u044B","¥":"\xA5","¥":"\xA5","𝔶":"\u{1D536}","ї":"\u0457","𝕪":"\u{1D56A}","𝓎":"\u{1D4CE}","ю":"\u044E","ÿ":"\xFF","ÿ":"\xFF","ź":"\u017A","ž":"\u017E","з":"\u0437","ż":"\u017C","ℨ":"\u2128","ζ":"\u03B6","𝔷":"\u{1D537}","ж":"\u0436","⇝":"\u21DD","𝕫":"\u{1D56B}","𝓏":"\u{1D4CF}","‍":"\u200D","‌":"\u200C"};function decodeHTMLEntities(u){return u.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(d,g)=>{if(typeof htmlEntities[d]=="string")return htmlEntities[d];if(g.charAt(0)!=="#"||d.charAt(d.length-1)!==";")return d;let f;g.charAt(1)==="x"?f=parseInt(g.substr(2),16):f=parseInt(g.substr(1),10);var b="";return f>=55296&&f<=57343||f>1114111?"\uFFFD":(f>65535&&(f-=65536,b+=String.fromCharCode(f>>>10&1023|55296),f=56320|f&1023),b+=String.fromCharCode(f),b)})}function escapeHtml(u){return u.trim().replace(/[<>"'?&]/g,d=>{let g=d.charCodeAt(0).toString(16);return g.length<2&&(g="0"+g),"&#x"+g.toUpperCase()+";"})}function textToHtml(u){let d=escapeHtml(u).replace(/\n/g,"<br />");return"<div>"+d+"</div>"}function htmlToText(u){return u=u.replace(/\r?\n/g,"").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,`
|
|
58
|
+
`).replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,`
|
|
59
|
+
|
|
60
|
+
`).replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi," ").replace(/^.*<body\b[^>]*>/i,"").replace(/^.*<\/head\b[^>]*>/i,"").replace(/^.*<\!doctype\b[^>]*>/i,"").replace(/<\/body\b[^>]*>.*$/i,"").replace(/<\/html\b[^>]*>.*$/i,"").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi," ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,"").replace(/<li\b[^>]*>[\n\u0001\s]*/gi,"* ").replace(/<hr\b[^>]*>/g,`
|
|
61
|
+
-------------
|
|
62
|
+
`).replace(/<[^>]*>/g," ").replace(/\u0001/g,`
|
|
63
|
+
`).replace(/[ \t]+/g," ").replace(/^\s+$/gm,"").replace(/\n\n+/g,`
|
|
64
|
+
|
|
65
|
+
`).replace(/^\n+/,`
|
|
66
|
+
`).replace(/\n+$/,`
|
|
67
|
+
`),u=decodeHTMLEntities(u),u}function formatTextAddress(u){return[].concat(u.name||[]).concat(u.name?`<${u.address}>`:u.address).join(" ")}function formatTextAddresses(u){let d=[],g=(f,b)=>{if(b&&d.push(", "),f.group){let m=`${f.name}:`,y=";";d.push(m),f.group.forEach(g),d.push(y)}else d.push(formatTextAddress(f))};return u.forEach(g),d.join("")}function formatHtmlAddress(u){return`<a href="mailto:${escapeHtml(u.address)}" class="postal-email-address">${escapeHtml(u.name||`<${u.address}>`)}</a>`}function formatHtmlAddresses(u){let d=[],g=(f,b)=>{if(b&&d.push('<span class="postal-email-address-separator">, </span>'),f.group){let m=`<span class="postal-email-address-group">${escapeHtml(f.name)}:</span>`,y='<span class="postal-email-address-group">;</span>';d.push(m),f.group.forEach(g),d.push(y)}else d.push(formatHtmlAddress(f))};return u.forEach(g),d.join(" ")}function foldLines(u,d,g){u=(u||"").toString(),d=d||76;let f=0,b=u.length,m="",y,k;for(;f<b;){if(y=u.substr(f,d),y.length<d){m+=y;break}if(k=y.match(/^[^\n\r]*(\r?\n|\r)/)){y=k[0],m+=y,f+=y.length;continue}else(k=y.match(/(\s+)[^\s]*$/))&&k[0].length-(g?(k[1]||"").length:0)<y.length?y=y.substr(0,y.length-(k[0].length-(g?(k[1]||"").length:0))):(k=u.substr(f+y.length).match(/^[^\s]+(\s*)/))&&(y=y+k[0].substr(0,k[0].length-(g?0:(k[1]||"").length)));m+=y,f+=y.length,f<b&&(m+=`\r
|
|
68
|
+
`)}return m}function formatTextHeader(u){let d=[];if(u.from&&d.push({key:"From",val:formatTextAddress(u.from)}),u.subject&&d.push({key:"Subject",val:u.subject}),u.date){let y={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},k=typeof Intl=="undefined"?u.date:new Intl.DateTimeFormat("default",y).format(new Date(u.date));d.push({key:"Date",val:k})}u.to&&u.to.length&&d.push({key:"To",val:formatTextAddresses(u.to)}),u.cc&&u.cc.length&&d.push({key:"Cc",val:formatTextAddresses(u.cc)}),u.bcc&&u.bcc.length&&d.push({key:"Bcc",val:formatTextAddresses(u.bcc)});let g=d.map(y=>y.key.length).reduce((y,k)=>k>y?k:y,0);d=d.flatMap(y=>{let k=g-y.key.length,a=`${y.key}: ${" ".repeat(k)}`,q=`${" ".repeat(y.key.length+1)} ${" ".repeat(k)}`;return foldLines(y.val,80,!0).split(/\r?\n/).map($=>$.trim()).map(($,Q)=>`${Q?q:a}${$}`)});let f=d.map(y=>y.length).reduce((y,k)=>k>y?k:y,0),b="-".repeat(f);return`
|
|
69
|
+
${b}
|
|
70
|
+
${d.join(`
|
|
71
|
+
`)}
|
|
72
|
+
${b}
|
|
73
|
+
`}function formatHtmlHeader(u){let d=[];if(u.from&&d.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${formatHtmlAddress(u.from)}</div>`),u.subject&&d.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${escapeHtml(u.subject)}</div>`),u.date){let f={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},b=typeof Intl=="undefined"?u.date:new Intl.DateTimeFormat("default",f).format(new Date(u.date));d.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${escapeHtml(u.date)}">${escapeHtml(b)}</div>`)}return u.to&&u.to.length&&d.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${formatHtmlAddresses(u.to)}</div>`),u.cc&&u.cc.length&&d.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${formatHtmlAddresses(u.cc)}</div>`),u.bcc&&u.bcc.length&&d.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${formatHtmlAddresses(u.bcc)}</div>`),`<div class="postal-email-header">${d.length?'<div class="postal-email-header-row">':""}${d.join(`</div>
|
|
74
|
+
<div class="postal-email-header-row">`)}${d.length?"</div>":""}</div>`}function _handleAddress(u){let d,g=!1,f="text",b,m=[],y={address:[],comment:[],group:[],text:[]},k,a;for(k=0,a=u.length;k<a;k++)if(d=u[k],d.type==="operator")switch(d.value){case"<":f="address";break;case"(":f="comment";break;case":":f="group",g=!0;break;default:f="text"}else d.value&&(f==="address"&&(d.value=d.value.replace(/^[^<]*<\s*/,"")),y[f].push(d.value));if(!y.text.length&&y.comment.length&&(y.text=y.comment,y.comment=[]),g)y.text=y.text.join(" "),m.push({name:decodeWords(y.text||b&&b.name),group:y.group.length?addressParser(y.group.join(",")):[]});else{if(!y.address.length&&y.text.length){for(k=y.text.length-1;k>=0;k--)if(y.text[k].match(/^[^@\s]+@[^@\s]+$/)){y.address=y.text.splice(k,1);break}let q=function(w){return y.address.length?w:(y.address=[w.trim()]," ")};if(!y.address.length)for(k=y.text.length-1;k>=0&&(y.text[k]=y.text[k].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,q).trim(),!y.address.length);k--);}if(!y.text.length&&y.comment.length&&(y.text=y.comment,y.comment=[]),y.address.length>1&&(y.text=y.text.concat(y.address.splice(1))),y.text=y.text.join(" "),y.address=y.address.join(" "),!y.address&&/^=\?[^=]+?=$/.test(y.text.trim())){const q=addressParser(decodeWords(y.text));if(q&&q.length)return q}if(!y.address&&g)return[];b={address:y.address||y.text||"",name:decodeWords(y.text||y.address||"")},b.address===b.name&&((b.address||"").match(/@/)?b.name="":b.address=""),m.push(b)}return m}class Tokenizer{constructor(d){this.str=(d||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let d,g=[];for(let f=0,b=this.str.length;f<b;f++)d=this.str.charAt(f),this.checkChar(d);return this.list.forEach(f=>{f.value=(f.value||"").toString().trim(),f.value&&g.push(f)}),g}checkChar(d){if(!this.escaped){if(d===this.operatorExpecting){this.node={type:"operator",value:d},this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;return}else if(!this.operatorExpecting&&d in this.operators){this.node={type:"operator",value:d},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[d],this.escaped=!1;return}else if(['"',"'"].includes(this.operatorExpecting)&&d==="\\"){this.escaped=!0;return}}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),d===`
|
|
75
|
+
`&&(d=" "),(d.charCodeAt(0)>=33||[" "," "].includes(d))&&(this.node.value+=d),this.escaped=!1}}function addressParser(u,d){d=d||{};let f=new Tokenizer(u).tokenize(),b=[],m=[],y=[];if(f.forEach(k=>{k.type==="operator"&&(k.value===","||k.value===";")?(m.length&&b.push(m),m=[]):m.push(k)}),m.length&&b.push(m),b.forEach(k=>{k=_handleAddress(k),k.length&&(y=y.concat(k))}),d.flatten){let k=[],a=q=>{q.forEach(w=>{if(w.group)return a(w.group);k.push(w)})};return a(y),k}return y}class PostalMime{static parse(d,g){return new PostalMime(g).parse(d)}constructor(d){this.options=d||{},this.root=this.currentNode=new MimeNode({postalMime:this}),this.boundaries=[],this.textContent={},this.attachments=[],this.started=!1}async finalize(){await this.root.finalize()}async processLine(d,g){let f=this.boundaries;if(f.length&&d.length>2&&d[0]===45&&d[1]===45)for(let b=f.length-1;b>=0;b--){let m=f[b];if(d.length!==m.value.length+2&&d.length!==m.value.length+4)continue;let y=d.length===m.value.length+4;if(y&&(d[d.length-2]!==45||d[d.length-1]!==45))continue;let k=!0;for(let a=0;a<m.value.length;a++)if(d[a+2]!==m.value[a]){k=!1;break}if(!!k)return y?(await m.node.finalize(),this.currentNode=m.node.parentNode||this.root):(await m.node.finalizeChildNodes(),this.currentNode=new MimeNode({postalMime:this,parentNode:m.node})),g?this.finalize():void 0}if(this.currentNode.feed(d),g)return this.finalize()}readLine(){let d=this.readPos,g=this.readPos,f=()=>({bytes:new Uint8Array(this.buf,d,g-d),done:this.readPos>=this.av.length});for(;this.readPos<this.av.length;){const b=this.av[this.readPos++];if(b!==13&&b!==10&&(g=this.readPos),b===10)return f()}return f()}async processNodeTree(){let d={},g=new Set,f=this.textMap=new Map,b=this.forceRfc822Attachments(),m=async(y,k,a)=>{if(k=k||!1,a=a||!1,y.contentType.multipart)y.contentType.multipart==="alternative"?k=y:y.contentType.multipart==="related"&&(a=y);else if(this.isInlineMessageRfc822(y)&&!b){const q=new PostalMime;y.subMessage=await q.parse(y.content),f.has(y)||f.set(y,{});let w=f.get(y);(y.subMessage.text||!y.subMessage.html)&&(w.plain=w.plain||[],w.plain.push({type:"subMessage",value:y.subMessage}),g.add("plain")),y.subMessage.html&&(w.html=w.html||[],w.html.push({type:"subMessage",value:y.subMessage}),g.add("html")),q.textMap&&q.textMap.forEach(($,Q)=>{f.set(Q,$)});for(let $ of y.subMessage.attachments||[])this.attachments.push($)}else if(this.isInlineTextNode(y)){let q=y.contentType.parsed.value.substr(y.contentType.parsed.value.indexOf("/")+1),w=k||y;f.has(w)||f.set(w,{});let $=f.get(w);$[q]=$[q]||[],$[q].push({type:"text",value:y.getTextContent()}),g.add(q)}else if(y.content){const q=y.contentDisposition.parsed.params.filename||y.contentType.parsed.params.name||null,w={filename:q?decodeWords(q):null,mimeType:y.contentType.parsed.value,disposition:y.contentDisposition.parsed.value||null};switch(a&&y.contentId&&(w.related=!0),y.contentDescription&&(w.description=y.contentDescription),y.contentId&&(w.contentId=y.contentId),y.contentType.parsed.value){case"text/calendar":case"application/ics":{y.contentType.parsed.params.method&&(w.method=y.contentType.parsed.params.method.toString().toUpperCase().trim());const $=y.getTextContent().replace(/\r?\n/g,`
|
|
76
|
+
`).replace(/\n*$/,`
|
|
77
|
+
`);w.content=textEncoder.encode($);break}default:w.content=y.content}this.attachments.push(w)}for(let q of y.childNodes)await m(q,k,a)};await m(this.root,!1,[]),f.forEach(y=>{g.forEach(k=>{if(d[k]||(d[k]=[]),y[k])y[k].forEach(a=>{switch(a.type){case"text":d[k].push(a.value);break;case"subMessage":switch(k){case"html":d[k].push(formatHtmlHeader(a.value));break;case"plain":d[k].push(formatTextHeader(a.value));break}break}});else{let a;switch(k){case"html":a="plain";break;case"plain":a="html";break}(y[a]||[]).forEach(q=>{switch(q.type){case"text":switch(k){case"html":d[k].push(textToHtml(q.value));break;case"plain":d[k].push(htmlToText(q.value));break}break;case"subMessage":switch(k){case"html":d[k].push(formatHtmlHeader(q.value));break;case"plain":d[k].push(formatTextHeader(q.value));break}break}})}})}),Object.keys(d).forEach(y=>{d[y]=d[y].join(`
|
|
78
|
+
`)}),this.textContent=d}isInlineTextNode(d){if(d.contentDisposition.parsed.value==="attachment")return!1;switch(d.contentType.parsed.value){case"text/html":case"text/plain":return!0;case"text/calendar":case"text/csv":default:return!1}}isInlineMessageRfc822(d){return d.contentType.parsed.value!=="message/rfc822"?!1:(d.contentDisposition.parsed.value||(this.options.rfc822Attachments?"attachment":"inline"))==="inline"}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let d=!1,g=f=>{f.contentType.multipart||["message/delivery-status","message/feedback-report"].includes(f.contentType.parsed.value)&&(d=!0);for(let b of f.childNodes)g(b)};return g(this.root),d}async resolveStream(d){let g=0,f=[];const b=d.getReader();for(;;){const{done:k,value:a}=await b.read();if(k)break;f.push(a),g+=a.length}const m=new Uint8Array(g);let y=0;for(let k of f)m.set(k,y),y+=k.length;return m}async parse(d){var b,m;if(this.started)throw new Error("Can not reuse parser, create a new PostalMime object");for(this.started=!0,d&&typeof d.getReader=="function"&&(d=await this.resolveStream(d)),d=d||new ArrayBuffer(0),typeof d=="string"&&(d=textEncoder.encode(d)),(d instanceof Blob||Object.prototype.toString.call(d)==="[object Blob]")&&(d=await blobToArrayBuffer(d)),d.buffer instanceof ArrayBuffer&&(d=new Uint8Array(d).buffer),this.buf=d,this.av=new Uint8Array(d),this.readPos=0;this.readPos<this.av.length;){const y=this.readLine();await this.processLine(y.bytes,y.done)}await this.processNodeTree();const g={headers:this.root.headers.map(y=>({key:y.key,value:y.value})).reverse()};for(const y of["from","sender"]){const k=this.root.headers.find(a=>a.key===y);if(k&&k.value){const a=addressParser(k.value);a&&a.length&&(g[y]=a[0])}}for(const y of["delivered-to","return-path"]){const k=this.root.headers.find(a=>a.key===y);if(k&&k.value){const a=addressParser(k.value);if(a&&a.length&&a[0].address){const q=y.replace(/\-(.)/g,(w,$)=>$.toUpperCase());g[q]=a[0].address}}}for(const y of["to","cc","bcc","reply-to"]){const k=this.root.headers.filter(q=>q.key===y);let a=[];if(k.filter(q=>q&&q.value).map(q=>addressParser(q.value)).forEach(q=>a=a.concat(q||[])),a&&a.length){const q=y.replace(/\-(.)/g,(w,$)=>$.toUpperCase());g[q]=a}}for(const y of["subject","message-id","in-reply-to","references"]){const k=this.root.headers.find(a=>a.key===y);if(k&&k.value){const a=y.replace(/\-(.)/g,(q,w)=>w.toUpperCase());g[a]=decodeWords(k.value)}}let f=this.root.headers.find(y=>y.key==="date");if(f){let y=new Date(f.value);!y||y.toString()==="Invalid Date"?y=f.value:y=y.toISOString(),g.date=y}return(b=this.textContent)!=null&&b.html&&(g.html=this.textContent.html),(m=this.textContent)!=null&&m.plain&&(g.text=this.textContent.plain),g.attachments=this.attachments,g}}const _sfc_main$8={props:["filedata"],data:()=>({emailData:null}),methods:{async parseEmail(){try{const d=await new PostalMime.default().parse(this.filedata);this.emailData=d,d.html&&(this.emailData.htmlAsText=convert(d.html,{}))}catch(u){console.error("Error parsing email data:",u)}}},async mounted(){await this.parseEmail()}},_hoisted_1$5={class:"font-18"},_hoisted_2$2={class:"d-flex align-items-start mb-2 mt-1"},_hoisted_3$2={class:"w-100"},_hoisted_4$2={class:"float-end"},_hoisted_5$2={class:"text-muted"},_hoisted_6$2={class:"w-100"},_hoisted_7$2={class:"text-muted"},_hoisted_8$1={key:0,class:"mb-3"},_hoisted_9$1=["innerHTML"],_hoisted_10$1=["open"],_hoisted_11$1=["innerHTML"],_hoisted_12$1={class:"mb-3"},_hoisted_13$1={class:"text-muted"},_hoisted_14$1={key:1,class:"text-center"};function _sfc_render$7(u,d,g,f,b,m){var y,k,a;return u.emailData?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("h5",_hoisted_1$5,toDisplayString(u.emailData.subject),1),d[6]||(d[6]=createBaseVNode("hr",null,null,-1)),createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("small",_hoisted_4$2,toDisplayString(u.emailData.date),1),createBaseVNode("small",_hoisted_5$2,"From: "+toDisplayString((y=u.emailData.from)==null?void 0:y.name)+" <"+toDisplayString((k=u.emailData.from)==null?void 0:k.address)+">",1)])]),createBaseVNode("div",_hoisted_6$2,[createBaseVNode("small",_hoisted_7$2,[d[0]||(d[0]=createTextVNode("To: ")),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.emailData.to,q=>(openBlock(),createElementBlock(Fragment,null,[createTextVNode(toDisplayString(q.name)+" <"+toDisplayString(q.address)+">; ",1)],64))),256))])]),!u.emailData.html&&!u.emailData.text?(openBlock(),createElementBlock("h5",_hoisted_8$1,"This email has no HTML or text content")):createCommentVNode("",!0),u.emailData.html?(openBlock(),createElementBlock(Fragment,{key:1},[d[1]||(d[1]=createBaseVNode("br",null,null,-1)),createBaseVNode("div",{class:"overflow-auto",innerHTML:u.emailData.htmlAsText.replaceAll(`
|
|
79
|
+
`,"<br>")},null,8,_hoisted_9$1),d[2]||(d[2]=createBaseVNode("hr",null,null,-1))],64)):createCommentVNode("",!0),u.emailData.text?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("details",{open:u.emailData.html?void 0:"open"},[d[3]||(d[3]=createBaseVNode("summary",null,"Text",-1)),d[4]||(d[4]=createBaseVNode("br",null,null,-1)),createBaseVNode("div",{class:"overflow-auto",innerHTML:u.emailData.text.replaceAll(`
|
|
80
|
+
`,"<br>")},null,8,_hoisted_11$1)],8,_hoisted_10$1),d[5]||(d[5]=createBaseVNode("hr",null,null,-1))],64)):createCommentVNode("",!0),((a=u.emailData.attachments)==null?void 0:a.length)>0?(openBlock(),createElementBlock(Fragment,{key:3},[createBaseVNode("h5",_hoisted_12$1,"This email has "+toDisplayString(u.emailData.attachments.length)+" attachment(s):",1),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.emailData.attachments,q=>(openBlock(),createElementBlock("div",{class:"w-100",key:q.filename},[createBaseVNode("small",_hoisted_13$1,toDisplayString(q.filename),1)]))),128))],64)):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock("div",_hoisted_14$1,d[7]||(d[7]=[createBaseVNode("div",{class:"lds-dual-ring"},null,-1)])))}var EmailViewer=_export_sfc(_sfc_main$8,[["render",_sfc_render$7]]),pdf$1={exports:{}},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(d,g){module.exports=g()})(commonjsGlobal,function(){return function(u){var d={};function g(f){if(d[f])return d[f].exports;var b=d[f]={i:f,l:!1,exports:{}};return u[f].call(b.exports,b,b.exports,g),b.l=!0,b.exports}return g.m=u,g.c=d,g.d=function(f,b,m){g.o(f,b)||Object.defineProperty(f,b,{enumerable:!0,get:m})},g.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},g.t=function(f,b){if(b&1&&(f=g(f)),b&8||b&4&&typeof f=="object"&&f&&f.__esModule)return f;var m=Object.create(null);if(g.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:f}),b&2&&typeof f!="string")for(var y in f)g.d(m,y,function(k){return f[k]}.bind(null,y));return m},g.n=function(f){var b=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(b,"a",b),b},g.o=function(f,b){return Object.prototype.hasOwnProperty.call(f,b)},g.p="",g(g.s=0)}([function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(d,"addLinkAttributes",{enumerable:!0,get:function(){return f.addLinkAttributes}}),Object.defineProperty(d,"getFilenameFromUrl",{enumerable:!0,get:function(){return f.getFilenameFromUrl}}),Object.defineProperty(d,"LinkTarget",{enumerable:!0,get:function(){return f.LinkTarget}}),Object.defineProperty(d,"loadScript",{enumerable:!0,get:function(){return f.loadScript}}),Object.defineProperty(d,"PDFDateString",{enumerable:!0,get:function(){return f.PDFDateString}}),Object.defineProperty(d,"RenderingCancelledException",{enumerable:!0,get:function(){return f.RenderingCancelledException}}),Object.defineProperty(d,"build",{enumerable:!0,get:function(){return b.build}}),Object.defineProperty(d,"getDocument",{enumerable:!0,get:function(){return b.getDocument}}),Object.defineProperty(d,"LoopbackPort",{enumerable:!0,get:function(){return b.LoopbackPort}}),Object.defineProperty(d,"PDFDataRangeTransport",{enumerable:!0,get:function(){return b.PDFDataRangeTransport}}),Object.defineProperty(d,"PDFWorker",{enumerable:!0,get:function(){return b.PDFWorker}}),Object.defineProperty(d,"version",{enumerable:!0,get:function(){return b.version}}),Object.defineProperty(d,"CMapCompressionType",{enumerable:!0,get:function(){return m.CMapCompressionType}}),Object.defineProperty(d,"createObjectURL",{enumerable:!0,get:function(){return m.createObjectURL}}),Object.defineProperty(d,"createPromiseCapability",{enumerable:!0,get:function(){return m.createPromiseCapability}}),Object.defineProperty(d,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return m.createValidAbsoluteUrl}}),Object.defineProperty(d,"InvalidPDFException",{enumerable:!0,get:function(){return m.InvalidPDFException}}),Object.defineProperty(d,"MissingPDFException",{enumerable:!0,get:function(){return m.MissingPDFException}}),Object.defineProperty(d,"OPS",{enumerable:!0,get:function(){return m.OPS}}),Object.defineProperty(d,"PasswordResponses",{enumerable:!0,get:function(){return m.PasswordResponses}}),Object.defineProperty(d,"PermissionFlag",{enumerable:!0,get:function(){return m.PermissionFlag}}),Object.defineProperty(d,"removeNullCharacters",{enumerable:!0,get:function(){return m.removeNullCharacters}}),Object.defineProperty(d,"shadow",{enumerable:!0,get:function(){return m.shadow}}),Object.defineProperty(d,"UnexpectedResponseException",{enumerable:!0,get:function(){return m.UnexpectedResponseException}}),Object.defineProperty(d,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return m.UNSUPPORTED_FEATURES}}),Object.defineProperty(d,"Util",{enumerable:!0,get:function(){return m.Util}}),Object.defineProperty(d,"VerbosityLevel",{enumerable:!0,get:function(){return m.VerbosityLevel}}),Object.defineProperty(d,"AnnotationLayer",{enumerable:!0,get:function(){return y.AnnotationLayer}}),Object.defineProperty(d,"apiCompatibilityParams",{enumerable:!0,get:function(){return k.apiCompatibilityParams}}),Object.defineProperty(d,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(d,"renderTextLayer",{enumerable:!0,get:function(){return q.renderTextLayer}}),Object.defineProperty(d,"SVGGraphics",{enumerable:!0,get:function(){return w.SVGGraphics}});var f=g(1),b=g(5),m=g(2),y=g(16),k=g(7),a=g(10),q=g(17),w=g(18);{const{isNodeJS:$}=g(4);if($){const Q=g(19).PDFNodeStream;(0,b.setPDFNetworkStreamFactory)(C=>new Q(C))}else{const Q=g(22).PDFNetworkStream;let C;(0,f.isFetchSupported)()&&(C=g(23).PDFFetchStream),(0,b.setPDFNetworkStreamFactory)(v=>C&&(0,f.isValidFetchUrl)(v.url)?new C(v):new Q(v))}}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.addLinkAttributes=Q,d.getFilenameFromUrl=C,d.isFetchSupported=J,d.isValidFetchUrl=ae,d.loadScript=H,d.deprecated=Y,d.PDFDateString=d.StatTimer=d.DOMSVGFactory=d.DOMCMapReaderFactory=d.DOMCanvasFactory=d.DEFAULT_LINK_REL=d.LinkTarget=d.RenderingCancelledException=d.PageViewport=void 0;var f=g(2);const b="noopener noreferrer nofollow";d.DEFAULT_LINK_REL=b;const m="http://www.w3.org/2000/svg";class y{create(R,T){if(R<=0||T<=0)throw new Error("Invalid canvas size");const O=document.createElement("canvas"),P=O.getContext("2d");return O.width=R,O.height=T,{canvas:O,context:P}}reset(R,T,O){if(!R.canvas)throw new Error("Canvas is not specified");if(T<=0||O<=0)throw new Error("Invalid canvas size");R.canvas.width=T,R.canvas.height=O}destroy(R){if(!R.canvas)throw new Error("Canvas is not specified");R.canvas.width=0,R.canvas.height=0,R.canvas=null,R.context=null}}d.DOMCanvasFactory=y;class k{constructor({baseUrl:R=null,isCompressed:T=!1}){this.baseUrl=R,this.isCompressed=T}async fetch({name:R}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!R)throw new Error("CMap name must be specified.");const T=this.baseUrl+R+(this.isCompressed?".bcmap":""),O=this.isCompressed?f.CMapCompressionType.BINARY:f.CMapCompressionType.NONE;return J()&&ae(T,document.baseURI)?fetch(T).then(async P=>{if(!P.ok)throw new Error(P.statusText);let B;return this.isCompressed?B=new Uint8Array(await P.arrayBuffer()):B=(0,f.stringToBytes)(await P.text()),{cMapData:B,compressionType:O}}).catch(P=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${T}`)}):new Promise((P,B)=>{const M=new XMLHttpRequest;M.open("GET",T,!0),this.isCompressed&&(M.responseType="arraybuffer"),M.onreadystatechange=()=>{if(M.readyState===XMLHttpRequest.DONE){if(M.status===200||M.status===0){let F;if(this.isCompressed&&M.response?F=new Uint8Array(M.response):!this.isCompressed&&M.responseText&&(F=(0,f.stringToBytes)(M.responseText)),F){P({cMapData:F,compressionType:O});return}}B(new Error(M.statusText))}},M.send(null)}).catch(P=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${T}`)})}}d.DOMCMapReaderFactory=k;class a{create(R,T){(0,f.assert)(R>0&&T>0,"Invalid SVG dimensions");const O=document.createElementNS(m,"svg:svg");return O.setAttribute("version","1.1"),O.setAttribute("width",R+"px"),O.setAttribute("height",T+"px"),O.setAttribute("preserveAspectRatio","none"),O.setAttribute("viewBox","0 0 "+R+" "+T),O}createElement(R){return(0,f.assert)(typeof R=="string","Invalid SVG element type"),document.createElementNS(m,R)}}d.DOMSVGFactory=a;class q{constructor({viewBox:R,scale:T,rotation:O,offsetX:P=0,offsetY:B=0,dontFlip:M=!1}){this.viewBox=R,this.scale=T,this.rotation=O,this.offsetX=P,this.offsetY=B;const F=(R[2]+R[0])/2,S=(R[3]+R[1])/2;let A,E,_,D;switch(O=O%360,O=O<0?O+360:O,O){case 180:A=-1,E=0,_=0,D=1;break;case 90:A=0,E=1,_=1,D=0;break;case 270:A=0,E=-1,_=-1,D=0;break;case 0:A=1,E=0,_=0,D=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}M&&(_=-_,D=-D);let N,U,z,te;A===0?(N=Math.abs(S-R[1])*T+P,U=Math.abs(F-R[0])*T+B,z=Math.abs(R[3]-R[1])*T,te=Math.abs(R[2]-R[0])*T):(N=Math.abs(F-R[0])*T+P,U=Math.abs(S-R[1])*T+B,z=Math.abs(R[2]-R[0])*T,te=Math.abs(R[3]-R[1])*T),this.transform=[A*T,E*T,_*T,D*T,N-A*T*F-_*T*S,U-E*T*F-D*T*S],this.width=z,this.height=te}clone({scale:R=this.scale,rotation:T=this.rotation,offsetX:O=this.offsetX,offsetY:P=this.offsetY,dontFlip:B=!1}={}){return new q({viewBox:this.viewBox.slice(),scale:R,rotation:T,offsetX:O,offsetY:P,dontFlip:B})}convertToViewportPoint(R,T){return f.Util.applyTransform([R,T],this.transform)}convertToViewportRectangle(R){const T=f.Util.applyTransform([R[0],R[1]],this.transform),O=f.Util.applyTransform([R[2],R[3]],this.transform);return[T[0],T[1],O[0],O[1]]}convertToPdfPoint(R,T){return f.Util.applyInverseTransform([R,T],this.transform)}}d.PageViewport=q;class w extends f.BaseException{constructor(R,T){super(R),this.type=T}}d.RenderingCancelledException=w;const $={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};d.LinkTarget=$;function Q(L,{url:R,target:T,rel:O,enabled:P=!0}={}){(0,f.assert)(R&&typeof R=="string",'addLinkAttributes: A valid "url" parameter must provided.');const B=(0,f.removeNullCharacters)(R);P?L.href=L.title=B:(L.href="",L.title=`Disabled: ${B}`,L.onclick=()=>!1);let M="";switch(T){case $.NONE:break;case $.SELF:M="_self";break;case $.BLANK:M="_blank";break;case $.PARENT:M="_parent";break;case $.TOP:M="_top";break}L.target=M,L.rel=typeof O=="string"?O:b}function C(L){const R=L.indexOf("#"),T=L.indexOf("?"),O=Math.min(R>0?R:L.length,T>0?T:L.length);return L.substring(L.lastIndexOf("/",O)+1,O)}class v{constructor(){this.started=Object.create(null),this.times=[]}time(R){R in this.started&&(0,f.warn)(`Timer is already running for ${R}`),this.started[R]=Date.now()}timeEnd(R){R in this.started||(0,f.warn)(`Timer has not been started for ${R}`),this.times.push({name:R,start:this.started[R],end:Date.now()}),delete this.started[R]}toString(){const R=[];let T=0;for(const O of this.times){const P=O.name;P.length>T&&(T=P.length)}for(const O of this.times){const P=O.end-O.start;R.push(`${O.name.padEnd(T)} ${P}ms
|
|
81
|
+
`)}return R.join("")}}d.StatTimer=v;function J(){return typeof fetch!="undefined"&&typeof Response!="undefined"&&"body"in Response.prototype&&typeof ReadableStream!="undefined"}function ae(L,R){try{const{protocol:T}=R?new URL(L,R):new URL(L);return T==="http:"||T==="https:"}catch{return!1}}function H(L){return new Promise((R,T)=>{const O=document.createElement("script");O.src=L,O.onload=R,O.onerror=function(){T(new Error(`Cannot load script at: ${O.src}`))},(document.head||document.documentElement).appendChild(O)})}function Y(L){console.log("Deprecated API usage: "+L)}let G;class j{static toDateObject(R){if(!R||!(0,f.isString)(R))return null;G||(G=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const T=G.exec(R);if(!T)return null;const O=parseInt(T[1],10);let P=parseInt(T[2],10);P=P>=1&&P<=12?P-1:0;let B=parseInt(T[3],10);B=B>=1&&B<=31?B:1;let M=parseInt(T[4],10);M=M>=0&&M<=23?M:0;let F=parseInt(T[5],10);F=F>=0&&F<=59?F:0;let S=parseInt(T[6],10);S=S>=0&&S<=59?S:0;const A=T[7]||"Z";let E=parseInt(T[8],10);E=E>=0&&E<=23?E:0;let _=parseInt(T[9],10)||0;return _=_>=0&&_<=59?_:0,A==="-"?(M+=E,F+=_):A==="+"&&(M-=E,F-=_),new Date(Date.UTC(O,P,B,M,F,S))}}d.PDFDateString=j},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.arrayByteLength=de,d.arraysToBytes=ce,d.assert=S,d.bytesToString=se,d.createPromiseCapability=_e,d.getVerbosityLevel=P,d.info=B,d.isArrayBuffer=Ee,d.isArrayEqual=De,d.isBool=ge,d.isEmptyObj=me,d.isNum=ye,d.isString=Se,d.isSameOrigin=A,d.createValidAbsoluteUrl=_,d.removeNullCharacters=Z,d.setVerbosityLevel=O,d.shadow=D,d.string32=he,d.stringToBytes=ie,d.stringToPDFString=xe,d.stringToUTF8String=Ce,d.utf8StringToString=be,d.warn=M,d.unreachable=F,d.IsEvalSupportedCached=d.IsLittleEndianCached=d.createObjectURL=d.FormatError=d.Util=d.UnknownErrorException=d.UnexpectedResponseException=d.TextRenderingMode=d.StreamType=d.PermissionFlag=d.PasswordResponses=d.PasswordException=d.MissingPDFException=d.InvalidPDFException=d.AbortException=d.CMapCompressionType=d.ImageKind=d.FontType=d.AnnotationType=d.AnnotationStateModelType=d.AnnotationReviewState=d.AnnotationReplyType=d.AnnotationMarkedState=d.AnnotationFlag=d.AnnotationFieldFlag=d.AnnotationBorderStyleType=d.UNSUPPORTED_FEATURES=d.VerbosityLevel=d.OPS=d.IDENTITY_MATRIX=d.FONT_IDENTITY_MATRIX=d.BaseException=void 0,g(3);const f=[1,0,0,1,0,0];d.IDENTITY_MATRIX=f;const b=[.001,0,0,.001,0,0];d.FONT_IDENTITY_MATRIX=b;const m={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};d.PermissionFlag=m;const y={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};d.TextRenderingMode=y;const k={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};d.ImageKind=k;const a={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};d.AnnotationType=a;const q={MARKED:"Marked",REVIEW:"Review"};d.AnnotationStateModelType=q;const w={MARKED:"Marked",UNMARKED:"Unmarked"};d.AnnotationMarkedState=w;const $={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};d.AnnotationReviewState=$;const Q={GROUP:"Group",REPLY:"R"};d.AnnotationReplyType=Q;const C={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};d.AnnotationFlag=C;const v={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};d.AnnotationFieldFlag=v;const J={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};d.AnnotationBorderStyleType=J;const ae={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};d.StreamType=ae;const H={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};d.FontType=H;const Y={ERRORS:0,WARNINGS:1,INFOS:5};d.VerbosityLevel=Y;const G={NONE:0,BINARY:1,STREAM:2};d.CMapCompressionType=G;const j={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};d.OPS=j;const L={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};d.UNSUPPORTED_FEATURES=L;const R={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};d.PasswordResponses=R;let T=Y.WARNINGS;function O(Te){Number.isInteger(Te)&&(T=Te)}function P(){return T}function B(Te){T>=Y.INFOS&&console.log(`Info: ${Te}`)}function M(Te){T>=Y.WARNINGS&&console.log(`Warning: ${Te}`)}function F(Te){throw new Error(Te)}function S(Te,Fe){Te||F(Fe)}function A(Te,Fe){let we;try{if(we=new URL(Te),!we.origin||we.origin==="null")return!1}catch{return!1}const Ae=new URL(Fe,we);return we.origin===Ae.origin}function E(Te){if(!Te)return!1;switch(Te.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function _(Te,Fe){if(!Te)return null;try{const we=Fe?new URL(Te,Fe):new URL(Te);if(E(we))return we}catch{}return null}function D(Te,Fe,we){return Object.defineProperty(Te,Fe,{value:we,enumerable:!0,configurable:!0,writable:!1}),we}const N=function(){function Fe(we){this.constructor===Fe&&F("Cannot initialize BaseException."),this.message=we,this.name=this.constructor.name}return Fe.prototype=new Error,Fe.constructor=Fe,Fe}();d.BaseException=N;class U extends N{constructor(Fe,we){super(Fe),this.code=we}}d.PasswordException=U;class z extends N{constructor(Fe,we){super(Fe),this.details=we}}d.UnknownErrorException=z;class te extends N{}d.InvalidPDFException=te;class W extends N{}d.MissingPDFException=W;class re extends N{constructor(Fe,we){super(Fe),this.status=we}}d.UnexpectedResponseException=re;class ee extends N{}d.FormatError=ee;class X extends N{}d.AbortException=X;const K=/\x00/g;function Z(Te){return typeof Te!="string"?(M("The argument for removeNullCharacters must be a string."),Te):Te.replace(K,"")}function se(Te){S(Te!==null&&typeof Te=="object"&&Te.length!==void 0,"Invalid argument for bytesToString");const Fe=Te.length,we=8192;if(Fe<we)return String.fromCharCode.apply(null,Te);const Ae=[];for(let ke=0;ke<Fe;ke+=we){const Pe=Math.min(ke+we,Fe),Le=Te.subarray(ke,Pe);Ae.push(String.fromCharCode.apply(null,Le))}return Ae.join("")}function ie(Te){S(typeof Te=="string","Invalid argument for stringToBytes");const Fe=Te.length,we=new Uint8Array(Fe);for(let Ae=0;Ae<Fe;++Ae)we[Ae]=Te.charCodeAt(Ae)&255;return we}function de(Te){return Te.length!==void 0?Te.length:(S(Te.byteLength!==void 0,"arrayByteLength - invalid argument."),Te.byteLength)}function ce(Te){const Fe=Te.length;if(Fe===1&&Te[0]instanceof Uint8Array)return Te[0];let we=0;for(let Pe=0;Pe<Fe;Pe++)we+=de(Te[Pe]);let Ae=0;const ke=new Uint8Array(we);for(let Pe=0;Pe<Fe;Pe++){let Le=Te[Pe];Le instanceof Uint8Array||(typeof Le=="string"?Le=ie(Le):Le=new Uint8Array(Le));const Ne=Le.byteLength;ke.set(Le,Ae),Ae+=Ne}return ke}function he(Te){return String.fromCharCode(Te>>24&255,Te>>16&255,Te>>8&255,Te&255)}function oe(){const Te=new Uint8Array(4);return Te[0]=1,new Uint32Array(Te.buffer,0,1)[0]===1}const ne={get value(){return D(this,"value",oe())}};d.IsLittleEndianCached=ne;function ue(){try{return new Function(""),!0}catch{return!1}}const le={get value(){return D(this,"value",ue())}};d.IsEvalSupportedCached=le;const fe=["rgb(",0,",",0,",",0,")"];class pe{static makeCssRgb(Fe,we,Ae){return fe[1]=Fe,fe[3]=we,fe[5]=Ae,fe.join("")}static transform(Fe,we){return[Fe[0]*we[0]+Fe[2]*we[1],Fe[1]*we[0]+Fe[3]*we[1],Fe[0]*we[2]+Fe[2]*we[3],Fe[1]*we[2]+Fe[3]*we[3],Fe[0]*we[4]+Fe[2]*we[5]+Fe[4],Fe[1]*we[4]+Fe[3]*we[5]+Fe[5]]}static applyTransform(Fe,we){const Ae=Fe[0]*we[0]+Fe[1]*we[2]+we[4],ke=Fe[0]*we[1]+Fe[1]*we[3]+we[5];return[Ae,ke]}static applyInverseTransform(Fe,we){const Ae=we[0]*we[3]-we[1]*we[2],ke=(Fe[0]*we[3]-Fe[1]*we[2]+we[2]*we[5]-we[4]*we[3])/Ae,Pe=(-Fe[0]*we[1]+Fe[1]*we[0]+we[4]*we[1]-we[5]*we[0])/Ae;return[ke,Pe]}static getAxialAlignedBoundingBox(Fe,we){const Ae=pe.applyTransform(Fe,we),ke=pe.applyTransform(Fe.slice(2,4),we),Pe=pe.applyTransform([Fe[0],Fe[3]],we),Le=pe.applyTransform([Fe[2],Fe[1]],we);return[Math.min(Ae[0],ke[0],Pe[0],Le[0]),Math.min(Ae[1],ke[1],Pe[1],Le[1]),Math.max(Ae[0],ke[0],Pe[0],Le[0]),Math.max(Ae[1],ke[1],Pe[1],Le[1])]}static inverseTransform(Fe){const we=Fe[0]*Fe[3]-Fe[1]*Fe[2];return[Fe[3]/we,-Fe[1]/we,-Fe[2]/we,Fe[0]/we,(Fe[2]*Fe[5]-Fe[4]*Fe[3])/we,(Fe[4]*Fe[1]-Fe[5]*Fe[0])/we]}static apply3dTransform(Fe,we){return[Fe[0]*we[0]+Fe[1]*we[1]+Fe[2]*we[2],Fe[3]*we[0]+Fe[4]*we[1]+Fe[5]*we[2],Fe[6]*we[0]+Fe[7]*we[1]+Fe[8]*we[2]]}static singularValueDecompose2dScale(Fe){const we=[Fe[0],Fe[2],Fe[1],Fe[3]],Ae=Fe[0]*we[0]+Fe[1]*we[2],ke=Fe[0]*we[1]+Fe[1]*we[3],Pe=Fe[2]*we[0]+Fe[3]*we[2],Le=Fe[2]*we[1]+Fe[3]*we[3],Ne=(Ae+Le)/2,qe=Math.sqrt((Ae+Le)*(Ae+Le)-4*(Ae*Le-Pe*ke))/2,Oe=Ne+qe||1,Ge=Ne-qe||1;return[Math.sqrt(Oe),Math.sqrt(Ge)]}static normalizeRect(Fe){const we=Fe.slice(0);return Fe[0]>Fe[2]&&(we[0]=Fe[2],we[2]=Fe[0]),Fe[1]>Fe[3]&&(we[1]=Fe[3],we[3]=Fe[1]),we}static intersect(Fe,we){function Ae(Ne,qe){return Ne-qe}const ke=[Fe[0],Fe[2],we[0],we[2]].sort(Ae),Pe=[Fe[1],Fe[3],we[1],we[3]].sort(Ae),Le=[];if(Fe=pe.normalizeRect(Fe),we=pe.normalizeRect(we),ke[0]===Fe[0]&&ke[1]===we[0]||ke[0]===we[0]&&ke[1]===Fe[0])Le[0]=ke[1],Le[2]=ke[2];else return null;if(Pe[0]===Fe[1]&&Pe[1]===we[1]||Pe[0]===we[1]&&Pe[1]===Fe[1])Le[1]=Pe[1],Le[3]=Pe[2];else return null;return Le}}d.Util=pe;const ve=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function xe(Te){const Fe=Te.length,we=[];if(Te[0]==="\xFE"&&Te[1]==="\xFF")for(let Ae=2;Ae<Fe;Ae+=2)we.push(String.fromCharCode(Te.charCodeAt(Ae)<<8|Te.charCodeAt(Ae+1)));else if(Te[0]==="\xFF"&&Te[1]==="\xFE")for(let Ae=2;Ae<Fe;Ae+=2)we.push(String.fromCharCode(Te.charCodeAt(Ae+1)<<8|Te.charCodeAt(Ae)));else for(let Ae=0;Ae<Fe;++Ae){const ke=ve[Te.charCodeAt(Ae)];we.push(ke?String.fromCharCode(ke):Te.charAt(Ae))}return we.join("")}function Ce(Te){return decodeURIComponent(escape(Te))}function be(Te){return unescape(encodeURIComponent(Te))}function me(Te){for(const Fe in Te)return!1;return!0}function ge(Te){return typeof Te=="boolean"}function ye(Te){return typeof Te=="number"}function Se(Te){return typeof Te=="string"}function Ee(Te){return typeof Te=="object"&&Te!==null&&Te.byteLength!==void 0}function De(Te,Fe){return Te.length!==Fe.length?!1:Te.every(function(we,Ae){return we===Fe[Ae]})}function _e(){const Te=Object.create(null);let Fe=!1;return Object.defineProperty(Te,"settled",{get(){return Fe}}),Te.promise=new Promise(function(we,Ae){Te.resolve=function(ke){Fe=!0,we(ke)},Te.reject=function(ke){Fe=!0,Ae(ke)}}),Te}const Be=function(){const Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(Ae,ke,Pe=!1){if(!Pe&&URL.createObjectURL){const Ne=new Blob([Ae],{type:ke});return URL.createObjectURL(Ne)}let Le=`data:${ke};base64,`;for(let Ne=0,qe=Ae.length;Ne<qe;Ne+=3){const Oe=Ae[Ne]&255,Ge=Ae[Ne+1]&255,Ve=Ae[Ne+2]&255,Xe=Oe>>2,at=(Oe&3)<<4|Ge>>4,Re=Ne+1<qe?(Ge&15)<<2|Ve>>6:64,Me=Ne+2<qe?Ve&63:64;Le+=Fe[Xe]+Fe[at]+Fe[Re]+Fe[Me]}return Le}}();d.createObjectURL=Be},function(u,d,g){g(4)},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.isNodeJS=void 0;const f=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;d.isNodeJS=f},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(u){createPDFNetworkStream=u}function getDocument(u){const d=new PDFDocumentLoadingTask;let g;if(typeof u=="string")g={url:u};else if((0,_util.isArrayBuffer)(u))g={data:u};else if(u instanceof PDFDataRangeTransport)g={range:u};else{if(typeof u!="object")throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!u.url&&!u.data&&!u.range)throw new Error("Invalid parameter object: need either .data, .range or .url");g=u}const f=Object.create(null);let b=null,m=null;for(const k in g){if(k==="url"&&typeof window!="undefined"){f[k]=new URL(g[k],window.location).href;continue}else if(k==="range"){b=g[k];continue}else if(k==="worker"){m=g[k];continue}else if(k==="data"&&!(g[k]instanceof Uint8Array)){const a=g[k];if(typeof a=="string")f[k]=(0,_util.stringToBytes)(a);else if(typeof a=="object"&&a!==null&&!isNaN(a.length))f[k]=new Uint8Array(a);else if((0,_util.isArrayBuffer)(a))f[k]=new Uint8Array(a);else throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");continue}f[k]=g[k]}if(f.rangeChunkSize=f.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,f.CMapReaderFactory=f.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,f.ignoreErrors=f.stopAtErrors!==!0,f.fontExtraProperties=f.fontExtraProperties===!0,f.pdfBug=f.pdfBug===!0,Number.isInteger(f.maxImageSize)||(f.maxImageSize=-1),typeof f.isEvalSupported!="boolean"&&(f.isEvalSupported=!0),typeof f.disableFontFace!="boolean"&&(f.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof f.disableRange!="boolean"&&(f.disableRange=!1),typeof f.disableStream!="boolean"&&(f.disableStream=!1),typeof f.disableAutoFetch!="boolean"&&(f.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(f.verbosity),!m){const k={verbosity:f.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};m=k.port?PDFWorker.fromPort(k):new PDFWorker(k),d._worker=m}const y=d.docId;return m.promise.then(function(){if(d.destroyed)throw new Error("Loading aborted");const k=_fetchDocument(m,f,b,y),a=new Promise(function(q){let w;b?w=new _transport_stream.PDFDataTransportStream({length:f.length,initialData:f.initialData,progressiveDone:f.progressiveDone,disableRange:f.disableRange,disableStream:f.disableStream},b):f.data||(w=createPDFNetworkStream({url:f.url,length:f.length,httpHeaders:f.httpHeaders,withCredentials:f.withCredentials,rangeChunkSize:f.rangeChunkSize,disableRange:f.disableRange,disableStream:f.disableStream})),q(w)});return Promise.all([k,a]).then(function([q,w]){if(d.destroyed)throw new Error("Loading aborted");const $=new _message_handler.MessageHandler(y,q,m.port);$.postMessageTransfers=m.postMessageTransfers;const Q=new WorkerTransport($,d,w,f);d._transport=Q,$.send("Ready",null)})}).catch(d._capability.reject),d}function _fetchDocument(u,d,g,f){return u.destroyed?Promise.reject(new Error("Worker was destroyed")):(g&&(d.length=g.length,d.initialData=g.initialData,d.progressiveDone=g.progressiveDone),u.messageHandler.sendWithPromise("GetDocRequest",{docId:f,apiVersion:"2.5.207",source:{data:d.data,url:d.url,password:d.password,disableAutoFetch:d.disableAutoFetch,rangeChunkSize:d.rangeChunkSize,length:d.length},maxImageSize:d.maxImageSize,disableFontFace:d.disableFontFace,postMessageTransfers:u.postMessageTransfers,docBaseUrl:d.docBaseUrl,ignoreErrors:d.ignoreErrors,isEvalSupported:d.isEvalSupported,fontExtraProperties:d.fontExtraProperties}).then(function(b){if(u.destroyed)throw new Error("Worker was destroyed");return b}))}const PDFDocumentLoadingTask=function(){let d=0;class g{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+d++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}return g}();class PDFDataRangeTransport{constructor(d,g,f=!1){this.length=d,this.initialData=g,this.progressiveDone=f,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(d){this._rangeListeners.push(d)}addProgressListener(d){this._progressListeners.push(d)}addProgressiveReadListener(d){this._progressiveReadListeners.push(d)}addProgressiveDoneListener(d){this._progressiveDoneListeners.push(d)}onDataRange(d,g){for(const f of this._rangeListeners)f(d,g)}onDataProgress(d,g){this._readyCapability.promise.then(()=>{for(const f of this._progressListeners)f(d,g)})}onDataProgressiveRead(d){this._readyCapability.promise.then(()=>{for(const g of this._progressiveReadListeners)g(d)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const d of this._progressiveDoneListeners)d()})}transportReady(){this._readyCapability.resolve()}requestDataRange(d,g){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(d,g){this._pdfInfo=d,this._transport=g}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(d){return this._transport.getPage(d)}getPageIndex(d){return this._transport.getPageIndex(d)}getDestinations(){return this._transport.getDestinations()}getDestination(d){return this._transport.getDestination(d)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(d){return d&&d.dest?d.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(d,g,f,b=!1){this._pageIndex=d,this._pageInfo=g,this._transport=f,this._stats=b?new _display_utils.StatTimer:null,this._pdfBug=b,this.commonObjs=f.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:d,rotation:g=this.rotate,offsetX:f=0,offsetY:b=0,dontFlip:m=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:d,rotation:g,offsetX:f,offsetY:b,dontFlip:m})}getAnnotations({intent:d=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==d)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,d),this.annotationsIntent=d),this.annotationsPromise}render({canvasContext:d,viewport:g,intent:f="display",enableWebGL:b=!1,renderInteractiveForms:m=!1,transform:y=null,imageLayer:k=null,canvasFactory:a=null,background:q=null}){this._stats&&this._stats.time("Overall");const w=f==="print"?"print":"display";this.pendingCleanup=!1,this.intentStates[w]||(this.intentStates[w]=Object.create(null));const $=this.intentStates[w];$.streamReaderCancelTimeout&&(clearTimeout($.streamReaderCancelTimeout),$.streamReaderCancelTimeout=null);const Q=a||new _display_utils.DOMCanvasFactory,C=new _webgl.WebGLContext({enable:b});$.displayReadyCapability||($.displayReadyCapability=(0,_util.createPromiseCapability)(),$.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:w,renderInteractiveForms:m===!0}));const v=H=>{const Y=$.renderTasks.indexOf(J);Y>=0&&$.renderTasks.splice(Y,1),(this.cleanupAfterRender||w==="print")&&(this.pendingCleanup=!0),this._tryCleanup(),H?(J.capability.reject(H),this._abortOperatorList({intentState:$,reason:H})):J.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},J=new InternalRenderTask({callback:v,params:{canvasContext:d,viewport:g,transform:y,imageLayer:k,background:q},objs:this.objs,commonObjs:this.commonObjs,operatorList:$.operatorList,pageIndex:this._pageIndex,canvasFactory:Q,webGLContext:C,useRequestAnimationFrame:w!=="print",pdfBug:this._pdfBug});$.renderTasks||($.renderTasks=[]),$.renderTasks.push(J);const ae=J.task;return $.displayReadyCapability.promise.then(H=>{if(this.pendingCleanup){v();return}this._stats&&this._stats.time("Rendering"),J.initializeGraphics(H),J.operatorListChanged()}).catch(v),ae}getOperatorList(){function d(){if(f.operatorList.lastChunk){f.opListReadCapability.resolve(f.operatorList);const m=f.renderTasks.indexOf(b);m>=0&&f.renderTasks.splice(m,1)}}const g="oplist";this.intentStates[g]||(this.intentStates[g]=Object.create(null));const f=this.intentStates[g];let b;return f.opListReadCapability||(b={},b.operatorListChanged=d,f.opListReadCapability=(0,_util.createPromiseCapability)(),f.renderTasks=[],f.renderTasks.push(b),f.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:g})),f.opListReadCapability.promise}streamTextContent({normalizeWhitespace:d=!1,disableCombineTextItems:g=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:d===!0,combineTextItems:g!==!0},{highWaterMark:100,size(b){return b.items.length}})}getTextContent(d={}){const g=this.streamTextContent(d);return new Promise(function(f,b){function m(){y.read().then(function({value:a,done:q}){if(q){f(k);return}Object.assign(k.styles,a.styles),k.items.push(...a.items),m()},b)}const y=g.getReader(),k={items:[],styles:Object.create(null)};m()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const d=[];return Object.keys(this.intentStates).forEach(g=>{const f=this.intentStates[g];this._abortOperatorList({intentState:f,reason:new Error("Page was destroyed."),force:!0}),g!=="oplist"&&f.renderTasks.forEach(function(b){const m=b.capability.promise.catch(function(){});d.push(m),b.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(d)}cleanup(d=!1){return this.pendingCleanup=!0,this._tryCleanup(d)}_tryCleanup(d=!1){return!this.pendingCleanup||Object.keys(this.intentStates).some(g=>{const f=this.intentStates[g];return f.renderTasks.length!==0||!f.operatorList.lastChunk})?!1:(Object.keys(this.intentStates).forEach(g=>{delete this.intentStates[g]}),this.objs.clear(),this.annotationsPromise=null,d&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}_startRenderPage(d,g){const f=this.intentStates[g];!f||(this._stats&&this._stats.timeEnd("Page Request"),f.displayReadyCapability&&f.displayReadyCapability.resolve(d))}_renderPageChunk(d,g){for(let f=0,b=d.length;f<b;f++)g.operatorList.fnArray.push(d.fnArray[f]),g.operatorList.argsArray.push(d.argsArray[f]);g.operatorList.lastChunk=d.lastChunk;for(let f=0;f<g.renderTasks.length;f++)g.renderTasks[f].operatorListChanged();d.lastChunk&&this._tryCleanup()}_pumpOperatorList(d){(0,_util.assert)(d.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const f=this._transport.messageHandler.sendWithStream("GetOperatorList",d).getReader(),b=this.intentStates[d.intent];b.streamReader=f;const m=()=>{f.read().then(({value:y,done:k})=>{if(k){b.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(y,b),m())},y=>{if(b.streamReader=null,!this._transport.destroyed){if(b.operatorList){b.operatorList.lastChunk=!0;for(let k=0;k<b.renderTasks.length;k++)b.renderTasks[k].operatorListChanged();this._tryCleanup()}if(b.displayReadyCapability)b.displayReadyCapability.reject(y);else if(b.opListReadCapability)b.opListReadCapability.reject(y);else throw y}})};m()}_abortOperatorList({intentState:d,reason:g,force:f=!1}){if((0,_util.assert)(g instanceof Error||typeof g=="object"&&g!==null,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),!!d.streamReader){if(!f){if(d.renderTasks.length!==0)return;if(g instanceof _display_utils.RenderingCancelledException){d.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:d,reason:g,force:!0}),d.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}d.streamReader.cancel(new _util.AbortException(g&&g.message)),d.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(b=>this.intentStates[b]===d?(delete this.intentStates[b],!0):!1),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(d=!0){this._listeners=[],this._defer=d,this._deferred=Promise.resolve(void 0)}postMessage(d,g){function f(y){if(typeof y!="object"||y===null)return y;if(b.has(y))return b.get(y);let k,a;if((k=y.buffer)&&(0,_util.isArrayBuffer)(k))return g&&g.includes(k)?a=new y.constructor(k,y.byteOffset,y.byteLength):a=new y.constructor(y),b.set(y,a),a;a=Array.isArray(y)?[]:{},b.set(y,a);for(const q in y){let w,$=y;for(;!(w=Object.getOwnPropertyDescriptor($,q));)$=Object.getPrototypeOf($);if(typeof w.value!="undefined"){if(typeof w.value=="function"){if(y.hasOwnProperty&&y.hasOwnProperty(q))throw new Error(`LoopbackPort.postMessage - cannot clone: ${y[q]}`);continue}a[q]=f(w.value)}}return a}if(!this._defer){this._listeners.forEach(y=>{y.call(this,{data:d})});return}const b=new WeakMap,m={data:f(d)};this._deferred.then(()=>{this._listeners.forEach(y=>{y.call(this,m)})})}addEventListener(d,g){this._listeners.push(g)}removeEventListener(d,g){const f=this._listeners.indexOf(g);this._listeners.splice(f,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS&&typeof commonjsRequire=="function")isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"&&"currentScript"in document){const u=document.currentScript&&document.currentScript.src;u&&(fallbackWorkerSrc=u.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(typeof fallbackWorkerSrc!="undefined")return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let u;try{u=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch{}return u||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(u){const d="importScripts('"+u+"');";return URL.createObjectURL(new Blob([d]))}class PDFWorker{constructor({name:d=null,port:g=null,verbosity:f=(0,_util.getVerbosityLevel)()}={}){if(g&&pdfWorkerPorts.has(g))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=d,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=f,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,g){pdfWorkerPorts.set(g,this),this._initializeFromPort(g);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(d){this._port=d,this._messageHandler=new _message_handler.MessageHandler("main","worker",d),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker!="undefined"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let d=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,d)||(d=createCDNWrapper(new URL(d,window.location).href));const g=new Worker(d),f=new _message_handler.MessageHandler("main","worker",g),b=()=>{g.removeEventListener("error",m),f.destroy(),g.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},m=()=>{this._webWorker||b()};g.addEventListener("error",m),f.on("test",k=>{if(g.removeEventListener("error",m),this.destroyed){b();return}k?(this._messageHandler=f,this._port=g,this._webWorker=g,k.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),f.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),f.destroy(),g.terminate())}),f.on("ready",k=>{if(g.removeEventListener("error",m),this.destroyed){b();return}try{y()}catch{this._setupFakeWorker()}});const y=()=>{const k=new Uint8Array([this.postMessageTransfers?255:0]);try{f.send("test",k,[k.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),k[0]=0,f.send("test",k)}};y();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(d=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const g=new LoopbackPort;this._port=g;const f="fake"+nextFakeWorkerId++,b=new _message_handler.MessageHandler(f+"_worker",f,g);d.setup(b,g);const m=new _message_handler.MessageHandler(f,f+"_worker",g);this._messageHandler=m,this._readyCapability.resolve(),m.send("configure",{verbosity:this.verbosity})}).catch(d=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${d.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(d){if(!d||!d.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(d.port)?pdfWorkerPorts.get(d.port):new PDFWorker(d)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(d,g,f,b){this.messageHandler=d,this.loadingTask=g,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:g.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=b,this.CMapReaderFactory=new b.CMapReaderFactory({baseUrl:b.cMapUrl,isCompressed:b.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=f,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const d=[];this.pageCache.forEach(function(f){f&&d.push(f._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const g=this.messageHandler.sendWithPromise("Terminate",null);return d.push(g),Promise.all(d).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:d,loadingTask:g}=this;d.on("GetReader",(f,b)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=m=>{this._lastProgress={loaded:m.loaded,total:m.total}},b.onPull=()=>{this._fullReader.read().then(function({value:m,done:y}){if(y){b.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(m),"GetReader - expected an ArrayBuffer."),b.enqueue(new Uint8Array(m),1,[m])}).catch(m=>{b.error(m)})},b.onCancel=m=>{this._fullReader.cancel(m)}}),d.on("ReaderHeadersReady",f=>{const b=(0,_util.createPromiseCapability)(),m=this._fullReader;return m.headersReady.then(()=>{(!m.isStreamingSupported||!m.isRangeSupported)&&(this._lastProgress&&g.onProgress&&g.onProgress(this._lastProgress),m.onProgress=y=>{g.onProgress&&g.onProgress({loaded:y.loaded,total:y.total})}),b.resolve({isStreamingSupported:m.isStreamingSupported,isRangeSupported:m.isRangeSupported,contentLength:m.contentLength})},b.reject),b.promise}),d.on("GetRangeReader",(f,b)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const m=this._networkStream.getRangeReader(f.begin,f.end);if(!m){b.close();return}b.onPull=()=>{m.read().then(function({value:y,done:k}){if(k){b.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(y),"GetRangeReader - expected an ArrayBuffer."),b.enqueue(new Uint8Array(y),1,[y])}).catch(y=>{b.error(y)})},b.onCancel=y=>{m.cancel(y)}}),d.on("GetDoc",({pdfInfo:f})=>{this._numPages=f.numPages,g._capability.resolve(new PDFDocumentProxy(f,this))}),d.on("DocException",function(f){let b;switch(f.name){case"PasswordException":b=new _util.PasswordException(f.message,f.code);break;case"InvalidPDFException":b=new _util.InvalidPDFException(f.message);break;case"MissingPDFException":b=new _util.MissingPDFException(f.message);break;case"UnexpectedResponseException":b=new _util.UnexpectedResponseException(f.message,f.status);break;case"UnknownErrorException":b=new _util.UnknownErrorException(f.message,f.details);break}g._capability.reject(b)}),d.on("PasswordRequest",f=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),g.onPassword){const b=m=>{this._passwordCapability.resolve({password:m})};try{g.onPassword(b,f.code)}catch(m){this._passwordCapability.reject(m)}}else this._passwordCapability.reject(new _util.PasswordException(f.message,f.code));return this._passwordCapability.promise}),d.on("DataLoaded",f=>{g.onProgress&&g.onProgress({loaded:f.length,total:f.length}),this.downloadInfoCapability.resolve(f)}),d.on("StartRenderPage",f=>{if(this.destroyed)return;this.pageCache[f.pageIndex]._startRenderPage(f.transparency,f.intent)}),d.on("commonobj",f=>{if(this.destroyed)return;const[b,m,y]=f;if(!this.commonObjs.has(b))switch(m){case"Font":const k=this._params;if("error"in y){const w=y.error;(0,_util.warn)(`Error during font loading: ${w}`),this.commonObjs.resolve(b,w);break}let a=null;k.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(w,$){globalThis.FontInspector.fontAdded(w,$)}});const q=new _font_loader.FontFaceObject(y,{isEvalSupported:k.isEvalSupported,disableFontFace:k.disableFontFace,ignoreErrors:k.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(q).catch(w=>d.sendWithPromise("FontFallback",{id:b})).finally(()=>{!k.fontExtraProperties&&q.data&&(q.data=null),this.commonObjs.resolve(b,q)});break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(b,y);break;default:throw new Error(`Got unknown common object type ${m}`)}}),d.on("obj",f=>{if(this.destroyed)return;const[b,m,y,k]=f,a=this.pageCache[m];if(!a.objs.has(b))switch(y){case"Image":a.objs.resolve(b,k);const q=8e6;k&&"data"in k&&k.data.length>q&&(a.cleanupAfterRender=!0);break;default:throw new Error(`Got unknown object type ${y}`)}}),d.on("DocProgress",f=>{this.destroyed||g.onProgress&&g.onProgress({loaded:f.loaded,total:f.total})}),d.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),d.on("FetchBuiltInCMap",(f,b)=>{if(this.destroyed){b.error(new Error("Worker was destroyed"));return}let m=!1;b.onPull=()=>{if(m){b.close();return}m=!0,this.CMapReaderFactory.fetch(f).then(function(y){b.enqueue(y,1,[y.cMapData.buffer])}).catch(function(y){b.error(y)})}})}_onUnsupportedFeature({featureId:d}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(d)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(d){if(!Number.isInteger(d)||d<=0||d>this._numPages)return Promise.reject(new Error("Invalid page request"));const g=d-1;if(g in this.pagePromises)return this.pagePromises[g];const f=this.messageHandler.sendWithPromise("GetPage",{pageIndex:g}).then(b=>{if(this.destroyed)throw new Error("Transport destroyed");const m=new PDFPageProxy(g,b,this,this._params.pdfBug);return this.pageCache[g]=m,m});return this.pagePromises[g]=f,f}getPageIndex(d){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:d}).catch(function(g){return Promise.reject(new Error(g))})}getAnnotations(d,g){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:d,intent:g})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(d){return typeof d!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:d})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(d=>({info:d[0],metadata:d[1]?new _metadata.Metadata(d[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let d=0,g=this.pageCache.length;d<g;d++){const f=this.pageCache[d];if(f&&!f.cleanup())throw new Error(`startCleanup: Page ${d+1} is currently rendering.`)}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const d=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:d.disableAutoFetch,disableFontFace:d.disableFontFace})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(d){return this._objs[d]?this._objs[d]:this._objs[d]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(d,g=null){if(g)return this._ensureObj(d).capability.promise.then(g),null;const f=this._objs[d];if(!f||!f.resolved)throw new Error(`Requesting object that isn't resolved yet ${d}.`);return f.data}has(d){const g=this._objs[d];return g?g.resolved:!1}resolve(d,g){const f=this._ensureObj(d);f.resolved=!0,f.data=g,f.capability.resolve(g)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(d){this._internalRenderTask=d,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function u(){const d=new WeakSet;class g{constructor({callback:b,params:m,objs:y,commonObjs:k,operatorList:a,pageIndex:q,canvasFactory:w,webGLContext:$,useRequestAnimationFrame:Q=!1,pdfBug:C=!1}){this.callback=b,this.params=m,this.objs=y,this.commonObjs=k,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=q,this.canvasFactory=w,this.webGLContext=$,this._pdfBug=C,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=Q===!0&&typeof window!="undefined",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=m.canvasContext.canvas}initializeGraphics(b=!1){if(this.cancelled)return;if(this._canvas){if(d.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");d.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:m,viewport:y,transform:k,imageLayer:a,background:q}=this.params;this.gfx=new _canvas.CanvasGraphics(m,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:k,viewport:y,transparency:b,background:q}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(b=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&d.delete(this._canvas),this.callback(b||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&d.delete(this._canvas),this.callback())))}}return g}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.FontLoader=d.FontFaceObject=void 0;var f=g(2);class b{constructor({docId:a,onUnsupportedFeature:q}){this.constructor===b&&(0,f.unreachable)("Cannot initialize BaseFontLoader."),this.docId=a,this._onUnsupportedFeature=q,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(a){this.nativeFontFaces.push(a),document.fonts.add(a)}insertRule(a){let q=this.styleElement;q||(q=this.styleElement=document.createElement("style"),q.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(q));const w=q.sheet;w.insertRule(a,w.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(a){document.fonts.delete(a)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(a){if(a.attached||a.missingFile)return;if(a.attached=!0,this.isFontLoadingAPISupported){const w=a.createNativeFontFace();if(w){this.addNativeFontFace(w);try{await w.loaded}catch($){throw this._onUnsupportedFeature({featureId:f.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,f.warn)(`Failed to load font '${w.family}': '${$}'.`),a.disableFontFace=!0,$}}return}const q=a.createFontFaceRule();if(q){if(this.insertRule(q),this.isSyncFontLoadingSupported)return;await new Promise(w=>{const $=this._queueLoadingCallback(w);this._prepareFontLoadEvent([q],[a],$)})}}_queueLoadingCallback(a){(0,f.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const a=typeof document!="undefined"&&!!document.fonts;return(0,f.shadow)(this,"isFontLoadingAPISupported",a)}get isSyncFontLoadingSupported(){(0,f.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,f.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(a,q,w){(0,f.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let m;d.FontLoader=m,d.FontLoader=m=class extends b{constructor(a){super(a),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let a=!1;if(typeof navigator=="undefined")a=!0;else{const q=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);q&&q[1]>=14&&(a=!0)}return(0,f.shadow)(this,"isSyncFontLoadingSupported",a)}_queueLoadingCallback(a){function q(){for((0,f.assert)(!$.done,"completeRequest() cannot be called twice."),$.done=!0;w.requests.length>0&&w.requests[0].done;){const Q=w.requests.shift();setTimeout(Q.callback,0)}}const w=this.loadingContext,$={id:`pdfjs-font-loading-${w.nextRequestId++}`,done:!1,complete:q,callback:a};return w.requests.push($),$}get _loadTestFont(){const a=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,f.shadow)(this,"_loadTestFont",a())}_prepareFontLoadEvent(a,q,w){function $(S,A){return S.charCodeAt(A)<<24|S.charCodeAt(A+1)<<16|S.charCodeAt(A+2)<<8|S.charCodeAt(A+3)&255}function Q(S,A,E,_){const D=S.substring(0,A),N=S.substring(A+E);return D+_+N}let C,v;const J=document.createElement("canvas");J.width=1,J.height=1;const ae=J.getContext("2d");let H=0;function Y(S,A){if(H++,H>30){(0,f.warn)("Load test font never loaded."),A();return}if(ae.font="30px "+S,ae.fillText(".",0,20),ae.getImageData(0,0,1,1).data[3]>0){A();return}setTimeout(Y.bind(null,S,A))}const G=`lt${Date.now()}${this.loadTestFontId++}`;let j=this._loadTestFont;j=Q(j,976,G.length,G);const R=16,T=1482184792;let O=$(j,R);for(C=0,v=G.length-3;C<v;C+=4)O=O-T+$(G,C)|0;C<G.length&&(O=O-T+$(G+"XXX",C)|0),j=Q(j,R,4,(0,f.string32)(O));const P=`url(data:font/opentype;base64,${btoa(j)});`,B=`@font-face {font-family:"${G}";src:${P}}`;this.insertRule(B);const M=[];for(C=0,v=q.length;C<v;C++)M.push(q[C].loadedName);M.push(G);const F=document.createElement("div");for(F.style.visibility="hidden",F.style.width=F.style.height="10px",F.style.position="absolute",F.style.top=F.style.left="0px",C=0,v=M.length;C<v;++C){const S=document.createElement("span");S.textContent="Hi",S.style.fontFamily=M[C],F.appendChild(S)}document.body.appendChild(F),Y(G,function(){document.body.removeChild(F),w.complete()})}};class y{constructor(a,{isEvalSupported:q=!0,disableFontFace:w=!1,ignoreErrors:$=!1,onUnsupportedFeature:Q=null,fontRegistry:C=null}){this.compiledGlyphs=Object.create(null);for(const v in a)this[v]=a[v];this.isEvalSupported=q!==!1,this.disableFontFace=w===!0,this.ignoreErrors=$===!0,this._onUnsupportedFeature=Q,this.fontRegistry=C}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const a=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),a}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const a=(0,f.bytesToString)(new Uint8Array(this.data)),q=`url(data:${this.mimetype};base64,${btoa(a)});`,w=`@font-face {font-family:"${this.loadedName}";src:${q}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,q),w}getPathGenerator(a,q){if(this.compiledGlyphs[q]!==void 0)return this.compiledGlyphs[q];let w,$;try{w=a.get(this.loadedName+"_path_"+q)}catch(Q){if(!this.ignoreErrors)throw Q;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:f.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,f.warn)(`getPathGenerator - ignoring character: "${Q}".`),this.compiledGlyphs[q]=function(C,v){}}if(this.isEvalSupported&&f.IsEvalSupportedCached.value){let Q,C="";for(let v=0,J=w.length;v<J;v++)$=w[v],$.args!==void 0?Q=$.args.join(","):Q="",C+="c."+$.cmd+"("+Q+`);
|
|
82
|
+
`;return this.compiledGlyphs[q]=new Function("c","size",C)}return this.compiledGlyphs[q]=function(Q,C){for(let v=0,J=w.length;v<J;v++)$=w[v],$.cmd==="scale"&&($.args=[C,-C]),Q[$.cmd].apply(Q,$.args)}}}d.FontFaceObject=y},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.apiCompatibilityParams=void 0;var f=g(4);const b=Object.create(null);(function(){f.isNodeJS&&(b.disableFontFace=!0)})();const m=Object.freeze(b);d.apiCompatibilityParams=m},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.CanvasGraphics=void 0;var f=g(2),b=g(9),m=16,y=100,k=4096,a=.65,q=1e3,w=16;function $(ae){ae.mozCurrentTransform||(ae._originalSave=ae.save,ae._originalRestore=ae.restore,ae._originalRotate=ae.rotate,ae._originalScale=ae.scale,ae._originalTranslate=ae.translate,ae._originalTransform=ae.transform,ae._originalSetTransform=ae.setTransform,ae._transformMatrix=ae._transformMatrix||[1,0,0,1,0,0],ae._transformStack=[],Object.defineProperty(ae,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(ae,"mozCurrentTransformInverse",{get:function(){var Y=this._transformMatrix,G=Y[0],j=Y[1],L=Y[2],R=Y[3],T=Y[4],O=Y[5],P=G*R-j*L,B=j*L-G*R;return[R/P,j/B,L/B,G/P,(R*T-L*O)/B,(j*T-G*O)/P]}}),ae.save=function(){var Y=this._transformMatrix;this._transformStack.push(Y),this._transformMatrix=Y.slice(0,6),this._originalSave()},ae.restore=function(){var Y=this._transformStack.pop();Y&&(this._transformMatrix=Y,this._originalRestore())},ae.translate=function(Y,G){var j=this._transformMatrix;j[4]=j[0]*Y+j[2]*G+j[4],j[5]=j[1]*Y+j[3]*G+j[5],this._originalTranslate(Y,G)},ae.scale=function(Y,G){var j=this._transformMatrix;j[0]=j[0]*Y,j[1]=j[1]*Y,j[2]=j[2]*G,j[3]=j[3]*G,this._originalScale(Y,G)},ae.transform=function(Y,G,j,L,R,T){var O=this._transformMatrix;this._transformMatrix=[O[0]*Y+O[2]*G,O[1]*Y+O[3]*G,O[0]*j+O[2]*L,O[1]*j+O[3]*L,O[0]*R+O[2]*T+O[4],O[1]*R+O[3]*T+O[5]],ae._originalTransform(Y,G,j,L,R,T)},ae.setTransform=function(Y,G,j,L,R,T){this._transformMatrix=[Y,G,j,L,R,T],ae._originalSetTransform(Y,G,j,L,R,T)},ae.rotate=function(Y){var G=Math.cos(Y),j=Math.sin(Y),L=this._transformMatrix;this._transformMatrix=[L[0]*G+L[2]*j,L[1]*G+L[3]*j,L[0]*-j+L[2]*G,L[1]*-j+L[3]*G,L[4],L[5]],this._originalRotate(Y)})}var Q=function(){function H(Y){this.canvasFactory=Y,this.cache=Object.create(null)}return H.prototype={getCanvas:function(G,j,L,R){var T;return this.cache[G]!==void 0?(T=this.cache[G],this.canvasFactory.reset(T,j,L),T.context.setTransform(1,0,0,1,0,0)):(T=this.canvasFactory.create(j,L),this.cache[G]=T),R&&$(T.context),T},clear(){for(var Y in this.cache){var G=this.cache[Y];this.canvasFactory.destroy(G),delete this.cache[Y]}}},H}();function C(ae){var H=1e3,Y=ae.width,G=ae.height,j,L,R,T=Y+1,O=new Uint8Array(T*(G+1)),P=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),B=Y+7&-8,M=ae.data,F=new Uint8Array(B*G),S=0,A;for(j=0,A=M.length;j<A;j++)for(var E=128,_=M[j];E>0;)F[S++]=_&E?0:255,E>>=1;var D=0;for(S=0,F[S]!==0&&(O[0]=1,++D),L=1;L<Y;L++)F[S]!==F[S+1]&&(O[L]=F[S]?2:1,++D),S++;for(F[S]!==0&&(O[L]=2,++D),j=1;j<G;j++){S=j*B,R=j*T,F[S-B]!==F[S]&&(O[R]=F[S]?1:8,++D);var N=(F[S]?4:0)+(F[S-B]?8:0);for(L=1;L<Y;L++)N=(N>>2)+(F[S+1]?4:0)+(F[S-B+1]?8:0),P[N]&&(O[R+L]=P[N],++D),S++;if(F[S-B]!==F[S]&&(O[R+L]=F[S]?2:4,++D),D>H)return null}for(S=B*(G-1),R=j*T,F[S]!==0&&(O[R]=8,++D),L=1;L<Y;L++)F[S]!==F[S+1]&&(O[R+L]=F[S]?4:8,++D),S++;if(F[S]!==0&&(O[R+L]=4,++D),D>H)return null;var U=new Int32Array([0,T,-1,0,-T,0,0,0,1]),z=[];for(j=0;D&&j<=G;j++){for(var te=j*T,W=te+Y;te<W&&!O[te];)te++;if(te!==W){var re=[te%T,j],ee=O[te],X=te,K;do{var Z=U[ee];do te+=Z;while(!O[te]);K=O[te],K!==5&&K!==10?(ee=K,O[te]=0):(ee=K&51*ee>>4,O[te]&=ee>>2|ee<<2),re.push(te%T),re.push(te/T|0),O[te]||--D}while(X!==te);z.push(re),--j}}var se=function(ie){ie.save(),ie.scale(1/Y,-1/G),ie.translate(0,-G),ie.beginPath();for(let ce=0,he=z.length;ce<he;ce++){var de=z[ce];ie.moveTo(de[0],de[1]);for(let oe=2,ne=de.length;oe<ne;oe+=2)ie.lineTo(de[oe],de[oe+1])}ie.fill(),ie.beginPath(),ie.restore()};return se}var v=function(){function H(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=f.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=f.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return H.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(G,j){this.x=G,this.y=j}},H}(),J=function(){var H=15,Y=10;function G(N,U,z,te,W,re){this.ctx=N,this.current=new v,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=U,this.objs=z,this.canvasFactory=te,this.webGLContext=W,this.imageLayer=re,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new Q(this.canvasFactory),N&&$(N),this._cachedGetSinglePixelWidth=null}function j(N,U){if(typeof ImageData!="undefined"&&U instanceof ImageData){N.putImageData(U,0,0);return}var z=U.height,te=U.width,W=z%w,re=(z-W)/w,ee=W===0?re:re+1,X=N.createImageData(te,w),K=0,Z,se=U.data,ie=X.data,de,ce,he,oe;if(U.kind===f.ImageKind.GRAYSCALE_1BPP){var ne=se.byteLength,ue=new Uint32Array(ie.buffer,0,ie.byteLength>>2),le=ue.length,fe=te+7>>3,pe=4294967295,ve=f.IsLittleEndianCached.value?4278190080:255;for(de=0;de<ee;de++){for(he=de<re?w:W,Z=0,ce=0;ce<he;ce++){for(var xe=ne-K,Ce=0,be=xe>fe?te:xe*8-7,me=be&-8,ge=0,ye=0;Ce<me;Ce+=8)ye=se[K++],ue[Z++]=ye&128?pe:ve,ue[Z++]=ye&64?pe:ve,ue[Z++]=ye&32?pe:ve,ue[Z++]=ye&16?pe:ve,ue[Z++]=ye&8?pe:ve,ue[Z++]=ye&4?pe:ve,ue[Z++]=ye&2?pe:ve,ue[Z++]=ye&1?pe:ve;for(;Ce<be;Ce++)ge===0&&(ye=se[K++],ge=128),ue[Z++]=ye&ge?pe:ve,ge>>=1}for(;Z<le;)ue[Z++]=0;N.putImageData(X,0,de*w)}}else if(U.kind===f.ImageKind.RGBA_32BPP){for(ce=0,oe=te*w*4,de=0;de<re;de++)ie.set(se.subarray(K,K+oe)),K+=oe,N.putImageData(X,0,ce),ce+=w;de<ee&&(oe=te*W*4,ie.set(se.subarray(K,K+oe)),N.putImageData(X,0,ce))}else if(U.kind===f.ImageKind.RGB_24BPP)for(he=w,oe=te*he,de=0;de<ee;de++){for(de>=re&&(he=W,oe=te*he),Z=0,ce=oe;ce--;)ie[Z++]=se[K++],ie[Z++]=se[K++],ie[Z++]=se[K++],ie[Z++]=255;N.putImageData(X,0,de*w)}else throw new Error(`bad image kind: ${U.kind}`)}function L(N,U){for(var z=U.height,te=U.width,W=z%w,re=(z-W)/w,ee=W===0?re:re+1,X=N.createImageData(te,w),K=0,Z=U.data,se=X.data,ie=0;ie<ee;ie++){for(var de=ie<re?w:W,ce=3,he=0;he<de;he++)for(var oe=0,ne=0;ne<te;ne++){if(!oe){var ue=Z[K++];oe=128}se[ce]=ue&oe?0:255,ce+=4,oe>>=1}N.putImageData(X,0,ie*w)}}function R(N,U){for(var z=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],te=0,W=z.length;te<W;te++){var re=z[te];N[re]!==void 0&&(U[re]=N[re])}N.setLineDash!==void 0&&(U.setLineDash(N.getLineDash()),U.lineDashOffset=N.lineDashOffset)}function T(N){N.strokeStyle="#000000",N.fillStyle="#000000",N.fillRule="nonzero",N.globalAlpha=1,N.lineWidth=1,N.lineCap="butt",N.lineJoin="miter",N.miterLimit=10,N.globalCompositeOperation="source-over",N.font="10px sans-serif",N.setLineDash!==void 0&&(N.setLineDash([]),N.lineDashOffset=0)}function O(N,U,z,te){for(var W=N.length,re=3;re<W;re+=4){var ee=N[re];if(ee===0)N[re-3]=U,N[re-2]=z,N[re-1]=te;else if(ee<255){var X=255-ee;N[re-3]=N[re-3]*ee+U*X>>8,N[re-2]=N[re-2]*ee+z*X>>8,N[re-1]=N[re-1]*ee+te*X>>8}}}function P(N,U,z){for(var te=N.length,W=1/255,re=3;re<te;re+=4){var ee=z?z[N[re]]:N[re];U[re]=U[re]*ee*W|0}}function B(N,U,z){for(var te=N.length,W=3;W<te;W+=4){var re=N[W-3]*77+N[W-2]*152+N[W-1]*28;U[W]=z?U[W]*z[re>>8]>>8:U[W]*re>>16}}function M(N,U,z,te,W,re,ee){var X=!!re,K=X?re[0]:0,Z=X?re[1]:0,se=X?re[2]:0,ie;W==="Luminosity"?ie=B:ie=P;for(var de=1048576,ce=Math.min(te,Math.ceil(de/z)),he=0;he<te;he+=ce){var oe=Math.min(ce,te-he),ne=N.getImageData(0,he,z,oe),ue=U.getImageData(0,he,z,oe);X&&O(ne.data,K,Z,se),ie(ne.data,ue.data,ee),N.putImageData(ue,0,he)}}function F(N,U,z,te){var W=U.canvas,re=U.context;N.setTransform(U.scaleX,0,0,U.scaleY,U.offsetX,U.offsetY);var ee=U.backdrop||null;if(!U.transferMap&&te.isEnabled){const X=te.composeSMask({layer:z.canvas,mask:W,properties:{subtype:U.subtype,backdrop:ee}});N.setTransform(1,0,0,1,0,0),N.drawImage(X,U.offsetX,U.offsetY);return}M(re,z,W.width,W.height,U.subtype,ee,U.transferMap),N.drawImage(W,0,0)}var S=["butt","round","square"],A=["miter","round","bevel"],E={},_={};G.prototype={beginDrawing({transform:N,viewport:U,transparency:z=!1,background:te=null}){var W=this.ctx.canvas.width,re=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=te||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,W,re),this.ctx.restore(),z){var ee=this.cachedCanvases.getCanvas("transparent",W,re,!0);this.compositeCtx=this.ctx,this.transparentCanvas=ee.canvas,this.ctx=ee.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),T(this.ctx),N&&this.ctx.transform.apply(this.ctx,N),this.ctx.transform.apply(this.ctx,U.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(U,z,te,W){var re=U.argsArray,ee=U.fnArray,X=z||0,K=re.length;if(K===X)return X;for(var Z=K-X>Y&&typeof te=="function",se=Z?Date.now()+H:0,ie=0,de=this.commonObjs,ce=this.objs,he;;){if(W!==void 0&&X===W.nextBreakPoint)return W.breakIt(X,te),X;if(he=ee[X],he!==f.OPS.dependency)this[he].apply(this,re[X]);else for(const oe of re[X]){const ne=oe.startsWith("g_")?de:ce;if(!ne.has(oe))return ne.get(oe,te),X}if(X++,X===K)return X;if(Z&&++ie>Y){if(Date.now()>se)return te(),X;ie=0}}},endDrawing:function(){this.current.activeSMask!==null&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(U){this.current.lineWidth=U,this.ctx.lineWidth=U},setLineCap:function(U){this.ctx.lineCap=S[U]},setLineJoin:function(U){this.ctx.lineJoin=A[U]},setMiterLimit:function(U){this.ctx.miterLimit=U},setDash:function(U,z){var te=this.ctx;te.setLineDash!==void 0&&(te.setLineDash(U),te.lineDashOffset=z)},setRenderingIntent(N){},setFlatness(N){},setGState:function(U){for(var z=0,te=U.length;z<te;z++){var W=U[z],re=W[0],ee=W[1];switch(re){case"LW":this.setLineWidth(ee);break;case"LC":this.setLineCap(ee);break;case"LJ":this.setLineJoin(ee);break;case"ML":this.setMiterLimit(ee);break;case"D":this.setDash(ee[0],ee[1]);break;case"RI":this.setRenderingIntent(ee);break;case"FL":this.setFlatness(ee);break;case"Font":this.setFont(ee[0],ee[1]);break;case"CA":this.current.strokeAlpha=W[1];break;case"ca":this.current.fillAlpha=W[1],this.ctx.globalAlpha=W[1];break;case"BM":this.ctx.globalCompositeOperation=ee;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=ee?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var U=this.current.activeSMask,z=U.canvas.width,te=U.canvas.height,W="smaskGroupAt"+this.groupLevel,re=this.cachedCanvases.getCanvas(W,z,te,!0),ee=this.ctx,X=ee.mozCurrentTransform;this.ctx.save();var K=re.context;K.scale(1/U.scaleX,1/U.scaleY),K.translate(-U.offsetX,-U.offsetY),K.transform.apply(K,X),U.startTransformInverse=K.mozCurrentTransformInverse,R(ee,K),this.ctx=K,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(ee),this.groupLevel++},suspendSMaskGroup:function(){var U=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),F(this.ctx,this.current.activeSMask,U,this.webGLContext),this.ctx.restore(),this.ctx.save(),R(U,this.ctx),this.current.resumeSMaskCtx=U;var z=f.Util.transform(this.current.activeSMask.startTransformInverse,U.mozCurrentTransform);this.ctx.transform.apply(this.ctx,z),U.save(),U.setTransform(1,0,0,1,0,0),U.clearRect(0,0,U.canvas.width,U.canvas.height),U.restore()},resumeSMaskGroup:function(){var U=this.current.resumeSMaskCtx,z=this.ctx;this.ctx=U,this.groupStack.push(z),this.groupLevel++},endSMaskGroup:function(){var U=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),F(this.ctx,this.current.activeSMask,U,this.webGLContext),this.ctx.restore(),R(U,this.ctx);var z=f.Util.transform(this.current.activeSMask.startTransformInverse,U.mozCurrentTransform);this.ctx.transform.apply(this.ctx,z)},save:function(){this.ctx.save();var U=this.current;this.stateStack.push(U),this.current=U.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),this.current.activeSMask!==null&&(this.stateStack.length===0||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(U,z,te,W,re,ee){this.ctx.transform(U,z,te,W,re,ee),this._cachedGetSinglePixelWidth=null},constructPath:function(U,z){for(var te=this.ctx,W=this.current,re=W.x,ee=W.y,X=0,K=0,Z=U.length;X<Z;X++)switch(U[X]|0){case f.OPS.rectangle:re=z[K++],ee=z[K++];var se=z[K++],ie=z[K++];se===0&&(se=this.getSinglePixelWidth()),ie===0&&(ie=this.getSinglePixelWidth());var de=re+se,ce=ee+ie;this.ctx.moveTo(re,ee),this.ctx.lineTo(de,ee),this.ctx.lineTo(de,ce),this.ctx.lineTo(re,ce),this.ctx.lineTo(re,ee),this.ctx.closePath();break;case f.OPS.moveTo:re=z[K++],ee=z[K++],te.moveTo(re,ee);break;case f.OPS.lineTo:re=z[K++],ee=z[K++],te.lineTo(re,ee);break;case f.OPS.curveTo:re=z[K+4],ee=z[K+5],te.bezierCurveTo(z[K],z[K+1],z[K+2],z[K+3],re,ee),K+=6;break;case f.OPS.curveTo2:te.bezierCurveTo(re,ee,z[K],z[K+1],z[K+2],z[K+3]),re=z[K+2],ee=z[K+3],K+=4;break;case f.OPS.curveTo3:re=z[K+2],ee=z[K+3],te.bezierCurveTo(z[K],z[K+1],re,ee,re,ee),K+=4;break;case f.OPS.closePath:te.closePath();break}W.setCurrentPoint(re,ee)},closePath:function(){this.ctx.closePath()},stroke:function(U){U=typeof U!="undefined"?U:!0;var z=this.ctx,te=this.current.strokeColor;if(z.globalAlpha=this.current.strokeAlpha,te&&te.hasOwnProperty("type")&&te.type==="Pattern"){z.save();const W=z.mozCurrentTransform,re=f.Util.singularValueDecompose2dScale(W)[0];z.strokeStyle=te.getPattern(z,this),z.lineWidth=Math.max(this.getSinglePixelWidth()*a,this.current.lineWidth*re),z.stroke(),z.restore()}else z.lineWidth=Math.max(this.getSinglePixelWidth()*a,this.current.lineWidth),z.stroke();U&&this.consumePath(),z.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(U){U=typeof U!="undefined"?U:!0;var z=this.ctx,te=this.current.fillColor,W=this.current.patternFill,re=!1;W&&(z.save(),this.baseTransform&&z.setTransform.apply(z,this.baseTransform),z.fillStyle=te.getPattern(z,this),re=!0),this.pendingEOFill?(z.fill("evenodd"),this.pendingEOFill=!1):z.fill(),re&&z.restore(),U&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=E},eoClip:function(){this.pendingClip=_},beginText:function(){this.current.textMatrix=f.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var U=this.pendingTextPaths,z=this.ctx;if(U===void 0){z.beginPath();return}z.save(),z.beginPath();for(var te=0;te<U.length;te++){var W=U[te];z.setTransform.apply(z,W.transform),z.translate(W.x,W.y),W.addToPath(z,W.fontSize)}z.restore(),z.clip(),z.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(U){this.current.charSpacing=U},setWordSpacing:function(U){this.current.wordSpacing=U},setHScale:function(U){this.current.textHScale=U/100},setLeading:function(U){this.current.leading=-U},setFont:function(U,z){var te=this.commonObjs.get(U),W=this.current;if(!te)throw new Error(`Can't find font for ${U}`);if(W.fontMatrix=te.fontMatrix?te.fontMatrix:f.FONT_IDENTITY_MATRIX,(W.fontMatrix[0]===0||W.fontMatrix[3]===0)&&(0,f.warn)("Invalid font matrix for font "+U),z<0?(z=-z,W.fontDirection=-1):W.fontDirection=1,this.current.font=te,this.current.fontSize=z,te.isType3Font)return;var re=te.loadedName||"sans-serif";let ee="normal";te.black?ee="900":te.bold&&(ee="bold");var X=te.italic?"italic":"normal",K=`"${re}", ${te.fallbackName}`;let Z=z;z<m?Z=m:z>y&&(Z=y),this.current.fontSizeScale=z/Z,this.ctx.font=`${X} ${ee} ${Z}px ${K}`},setTextRenderingMode:function(U){this.current.textRenderingMode=U},setTextRise:function(U){this.current.textRise=U},moveText:function(U,z){this.current.x=this.current.lineX+=U,this.current.y=this.current.lineY+=z},setLeadingMoveText:function(U,z){this.setLeading(-z),this.moveText(U,z)},setTextMatrix:function(U,z,te,W,re,ee){this.current.textMatrix=[U,z,te,W,re,ee],this.current.textMatrixScale=Math.sqrt(U*U+z*z),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(N,U,z,te){var W=this.ctx,re=this.current,ee=re.font,X=re.textRenderingMode,K=re.fontSize/re.fontSizeScale,Z=X&f.TextRenderingMode.FILL_STROKE_MASK,se=!!(X&f.TextRenderingMode.ADD_TO_PATH_FLAG);const ie=re.patternFill&&!ee.missingFile;var de;if((ee.disableFontFace||se||ie)&&(de=ee.getPathGenerator(this.commonObjs,N)),ee.disableFontFace||ie?(W.save(),W.translate(U,z),W.beginPath(),de(W,K),te&&W.setTransform.apply(W,te),(Z===f.TextRenderingMode.FILL||Z===f.TextRenderingMode.FILL_STROKE)&&W.fill(),(Z===f.TextRenderingMode.STROKE||Z===f.TextRenderingMode.FILL_STROKE)&&W.stroke(),W.restore()):((Z===f.TextRenderingMode.FILL||Z===f.TextRenderingMode.FILL_STROKE)&&W.fillText(N,U,z),(Z===f.TextRenderingMode.STROKE||Z===f.TextRenderingMode.FILL_STROKE)&&W.strokeText(N,U,z)),se){var ce=this.pendingTextPaths||(this.pendingTextPaths=[]);ce.push({transform:W.mozCurrentTransform,x:U,y:z,fontSize:K,addToPath:de})}},get isFontSubpixelAAEnabled(){const{context:N}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);N.scale(1.5,1),N.fillText("I",0,10);for(var U=N.getImageData(0,0,10,10).data,z=!1,te=3;te<U.length;te+=4)if(U[te]>0&&U[te]<255){z=!0;break}return(0,f.shadow)(this,"isFontSubpixelAAEnabled",z)},showText:function(U){var z=this.current,te=z.font;if(te.isType3Font)return this.showType3Text(U);var W=z.fontSize;if(W===0)return;var re=this.ctx,ee=z.fontSizeScale,X=z.charSpacing,K=z.wordSpacing,Z=z.fontDirection,se=z.textHScale*Z,ie=U.length,de=te.vertical,ce=de?1:-1,he=te.defaultVMetrics,oe=W*z.fontMatrix[0],ne=z.textRenderingMode===f.TextRenderingMode.FILL&&!te.disableFontFace&&!z.patternFill;re.save();let ue;if(z.patternFill){re.save();const Le=z.fillColor.getPattern(re,this);ue=re.mozCurrentTransform,re.restore(),re.fillStyle=Le}re.transform.apply(re,z.textMatrix),re.translate(z.x,z.y+z.textRise),Z>0?re.scale(se,-1):re.scale(se,1);var le=z.lineWidth,fe=z.textMatrixScale;if(fe===0||le===0){var pe=z.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;(pe===f.TextRenderingMode.STROKE||pe===f.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,le=this.getSinglePixelWidth()*a)}else le/=fe;ee!==1&&(re.scale(ee,ee),le/=ee),re.lineWidth=le;var ve=0,xe;for(xe=0;xe<ie;++xe){var Ce=U[xe];if((0,f.isNum)(Ce)){ve+=ce*Ce*W/1e3;continue}var be=!1,me=(Ce.isSpace?K:0)+X,ge=Ce.fontChar,ye=Ce.accent,Se,Ee,De,_e,Be=Ce.width;if(de){var Te,Fe,we;Te=Ce.vmetric||he,Fe=Ce.vmetric?Te[1]:Be*.5,Fe=-Fe*oe,we=Te[2]*oe,Be=Te?-Te[0]:Be,Se=Fe/ee,Ee=(ve+we)/ee}else Se=ve/ee,Ee=0;if(te.remeasure&&Be>0){var Ae=re.measureText(ge).width*1e3/W*ee;if(Be<Ae&&this.isFontSubpixelAAEnabled){var ke=Be/Ae;be=!0,re.save(),re.scale(ke,1),Se/=ke}else Be!==Ae&&(Se+=(Be-Ae)/2e3*W/ee)}(Ce.isInFont||te.missingFile)&&(ne&&!ye?re.fillText(ge,Se,Ee):(this.paintChar(ge,Se,Ee,ue),ye&&(De=Se+ye.offset.x/ee,_e=Ee-ye.offset.y/ee,this.paintChar(ye.fontChar,De,_e,ue))));var Pe;de?Pe=Be*oe-me*Z:Pe=Be*oe+me*Z,ve+=Pe,be&&re.restore()}de?z.y-=ve:z.x+=ve*se,re.restore()},showType3Text:function(U){var z=this.ctx,te=this.current,W=te.font,re=te.fontSize,ee=te.fontDirection,X=W.vertical?1:-1,K=te.charSpacing,Z=te.wordSpacing,se=te.textHScale*ee,ie=te.fontMatrix||f.FONT_IDENTITY_MATRIX,de=U.length,ce=te.textRenderingMode===f.TextRenderingMode.INVISIBLE,he,oe,ne,ue;if(!(ce||re===0)){for(this._cachedGetSinglePixelWidth=null,z.save(),z.transform.apply(z,te.textMatrix),z.translate(te.x,te.y),z.scale(se,ee),he=0;he<de;++he){if(oe=U[he],(0,f.isNum)(oe)){ue=X*oe*re/1e3,this.ctx.translate(ue,0),te.x+=ue*se;continue}var le=(oe.isSpace?Z:0)+K,fe=W.charProcOperatorList[oe.operatorListId];if(!fe){(0,f.warn)(`Type3 character "${oe.operatorListId}" is not available.`);continue}this.processingType3=oe,this.save(),z.scale(re,re),z.transform.apply(z,ie),this.executeOperatorList(fe),this.restore();var pe=f.Util.applyTransform([oe.width,0],ie);ne=pe[0]*re+le,z.translate(ne,0),te.x+=ne*se}z.restore(),this.processingType3=null}},setCharWidth:function(U,z){},setCharWidthAndBounds:function(U,z,te,W,re,ee){this.ctx.rect(te,W,re-te,ee-W),this.clip(),this.endPath()},getColorN_Pattern:function(U){var z;if(U[0]==="TilingPattern"){var te=U[1],W=this.baseTransform||this.ctx.mozCurrentTransform.slice(),re={createCanvasGraphics:ee=>new G(ee,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};z=new b.TilingPattern(U,te,this.ctx,re,W)}else z=(0,b.getShadingPatternFromIR)(U);return z},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(U,z,te){var W=f.Util.makeCssRgb(U,z,te);this.ctx.strokeStyle=W,this.current.strokeColor=W},setFillRGBColor:function(U,z,te){var W=f.Util.makeCssRgb(U,z,te);this.ctx.fillStyle=W,this.current.fillColor=W,this.current.patternFill=!1},shadingFill:function(U){var z=this.ctx;this.save();var te=(0,b.getShadingPatternFromIR)(U);z.fillStyle=te.getPattern(z,this,!0);var W=z.mozCurrentTransformInverse;if(W){var re=z.canvas,ee=re.width,X=re.height,K=f.Util.applyTransform([0,0],W),Z=f.Util.applyTransform([0,X],W),se=f.Util.applyTransform([ee,0],W),ie=f.Util.applyTransform([ee,X],W),de=Math.min(K[0],Z[0],se[0],ie[0]),ce=Math.min(K[1],Z[1],se[1],ie[1]),he=Math.max(K[0],Z[0],se[0],ie[0]),oe=Math.max(K[1],Z[1],se[1],ie[1]);this.ctx.fillRect(de,ce,he-de,oe-ce)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,f.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,f.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(U,z){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(U)&&U.length===6&&this.transform.apply(this,U),this.baseTransform=this.ctx.mozCurrentTransform,z){var te=z[2]-z[0],W=z[3]-z[1];this.ctx.rect(z[0],z[1],te,W),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(U){this.save();var z=this.ctx;U.isolated||(0,f.info)("TODO: Support non-isolated groups."),U.knockout&&(0,f.warn)("Knockout groups not supported.");var te=z.mozCurrentTransform;if(U.matrix&&z.transform.apply(z,U.matrix),!U.bbox)throw new Error("Bounding box is required.");var W=f.Util.getAxialAlignedBoundingBox(U.bbox,z.mozCurrentTransform),re=[0,0,z.canvas.width,z.canvas.height];W=f.Util.intersect(W,re)||[0,0,0,0];var ee=Math.floor(W[0]),X=Math.floor(W[1]),K=Math.max(Math.ceil(W[2])-ee,1),Z=Math.max(Math.ceil(W[3])-X,1),se=1,ie=1;K>k&&(se=K/k,K=k),Z>k&&(ie=Z/k,Z=k);var de="groupAt"+this.groupLevel;U.smask&&(de+="_smask_"+this.smaskCounter++%2);var ce=this.cachedCanvases.getCanvas(de,K,Z,!0),he=ce.context;he.scale(1/se,1/ie),he.translate(-ee,-X),he.transform.apply(he,te),U.smask?this.smaskStack.push({canvas:ce.canvas,context:he,offsetX:ee,offsetY:X,scaleX:se,scaleY:ie,subtype:U.smask.subtype,backdrop:U.smask.backdrop,transferMap:U.smask.transferMap||null,startTransformInverse:null}):(z.setTransform(1,0,0,1,0,0),z.translate(ee,X),z.scale(se,ie)),R(z,he),this.ctx=he,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(z),this.groupLevel++,this.current.activeSMask=null},endGroup:function(U){this.groupLevel--;var z=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled!==void 0?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,U.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(z.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(U,z,te){if(this.save(),T(this.ctx),this.current=new v,Array.isArray(U)&&U.length===4){var W=U[2]-U[0],re=U[3]-U[1];this.ctx.rect(U[0],U[1],W,re),this.clip(),this.endPath()}this.transform.apply(this,z),this.transform.apply(this,te)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(U){var z=this.ctx,te=U.width,W=U.height,re=this.current.fillColor,ee=this.current.patternFill,X=this.processingType3;if(X&&X.compiled===void 0&&(te<=q&&W<=q?X.compiled=C({data:U.data,width:te,height:W}):X.compiled=null),X&&X.compiled){X.compiled(z);return}var K=this.cachedCanvases.getCanvas("maskCanvas",te,W),Z=K.context;Z.save(),L(Z,U),Z.globalCompositeOperation="source-in",Z.fillStyle=ee?re.getPattern(Z,this):re,Z.fillRect(0,0,te,W),Z.restore(),this.paintInlineImageXObject(K.canvas)},paintImageMaskXObjectRepeat:function(U,z,te,W){var re=U.width,ee=U.height,X=this.current.fillColor,K=this.current.patternFill,Z=this.cachedCanvases.getCanvas("maskCanvas",re,ee),se=Z.context;se.save(),L(se,U),se.globalCompositeOperation="source-in",se.fillStyle=K?X.getPattern(se,this):X,se.fillRect(0,0,re,ee),se.restore();for(var ie=this.ctx,de=0,ce=W.length;de<ce;de+=2)ie.save(),ie.transform(z,0,0,te,W[de],W[de+1]),ie.scale(1,-1),ie.drawImage(Z.canvas,0,0,re,ee,0,-1,1,1),ie.restore()},paintImageMaskXObjectGroup:function(U){for(var z=this.ctx,te=this.current.fillColor,W=this.current.patternFill,re=0,ee=U.length;re<ee;re++){var X=U[re],K=X.width,Z=X.height,se=this.cachedCanvases.getCanvas("maskCanvas",K,Z),ie=se.context;ie.save(),L(ie,X),ie.globalCompositeOperation="source-in",ie.fillStyle=W?te.getPattern(ie,this):te,ie.fillRect(0,0,K,Z),ie.restore(),z.save(),z.transform.apply(z,X.transform),z.scale(1,-1),z.drawImage(se.canvas,0,0,K,Z,0,-1,1,1),z.restore()}},paintImageXObject:function(U){const z=U.startsWith("g_")?this.commonObjs.get(U):this.objs.get(U);if(!z){(0,f.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(z)},paintImageXObjectRepeat:function(U,z,te,W){const re=U.startsWith("g_")?this.commonObjs.get(U):this.objs.get(U);if(!re){(0,f.warn)("Dependent image isn't ready yet");return}for(var ee=re.width,X=re.height,K=[],Z=0,se=W.length;Z<se;Z+=2)K.push({transform:[z,0,0,te,W[Z],W[Z+1]],x:0,y:0,w:ee,h:X});this.paintInlineImageXObjectGroup(re,K)},paintInlineImageXObject:function(U){var z=U.width,te=U.height,W=this.ctx;this.save(),W.scale(1/z,-1/te);var re=W.mozCurrentTransformInverse,ee=re[0],X=re[1],K=Math.max(Math.sqrt(ee*ee+X*X),1),Z=re[2],se=re[3],ie=Math.max(Math.sqrt(Z*Z+se*se),1),de,ce;if(typeof HTMLElement=="function"&&U instanceof HTMLElement||!U.data)de=U;else{ce=this.cachedCanvases.getCanvas("inlineImage",z,te);var he=ce.context;j(he,U),de=ce.canvas}for(var oe=z,ne=te,ue="prescale1";K>2&&oe>1||ie>2&&ne>1;){var le=oe,fe=ne;K>2&&oe>1&&(le=Math.ceil(oe/2),K/=oe/le),ie>2&&ne>1&&(fe=Math.ceil(ne/2),ie/=ne/fe),ce=this.cachedCanvases.getCanvas(ue,le,fe),he=ce.context,he.clearRect(0,0,le,fe),he.drawImage(de,0,0,oe,ne,0,0,le,fe),de=ce.canvas,oe=le,ne=fe,ue=ue==="prescale1"?"prescale2":"prescale1"}if(W.drawImage(de,0,0,oe,ne,0,-te,z,te),this.imageLayer){var pe=this.getCanvasPosition(0,-te);this.imageLayer.appendImage({imgData:U,left:pe[0],top:pe[1],width:z/re[0],height:te/re[3]})}this.restore()},paintInlineImageXObjectGroup:function(U,z){var te=this.ctx,W=U.width,re=U.height,ee=this.cachedCanvases.getCanvas("inlineImage",W,re),X=ee.context;j(X,U);for(var K=0,Z=z.length;K<Z;K++){var se=z[K];if(te.save(),te.transform.apply(te,se.transform),te.scale(1,-1),te.drawImage(ee.canvas,se.x,se.y,se.w,se.h,0,-1,1,1),this.imageLayer){var ie=this.getCanvasPosition(se.x,se.y);this.imageLayer.appendImage({imgData:U,left:ie[0],top:ie[1],width:W,height:re})}te.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,f.warn)("Unsupported 'paintXObject' command.")},markPoint:function(U){},markPointProps:function(U,z){},beginMarkedContent:function(U){},beginMarkedContentProps:function(U,z){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var U=this.ctx;this.pendingClip&&(this.pendingClip===_?U.clip("evenodd"):U.clip(),this.pendingClip=null),U.beginPath()},getSinglePixelWidth(N){if(this._cachedGetSinglePixelWidth===null){const U=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(U[0]*U[0]+U[1]*U[1],U[2]*U[2]+U[3]*U[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(U,z){var te=this.ctx.mozCurrentTransform;return[te[0]*U+te[2]*z+te[4],te[1]*U+te[3]*z+te[5]]}};for(var D in f.OPS)G.prototype[f.OPS[D]]=G.prototype[D];return G}();d.CanvasGraphics=J},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.getShadingPatternFromIR=k,d.TilingPattern=void 0;var f=g(2),b={};function m(q,w){if(!w||typeof Path2D=="undefined")return;const $=w[2]-w[0],Q=w[3]-w[1],C=new Path2D;C.rect(w[0],w[1],$,Q),q.clip(C)}b.RadialAxial={fromIR:function(w){var $=w[1],Q=w[2],C=w[3],v=w[4],J=w[5],ae=w[6],H=w[7];return{type:"Pattern",getPattern:function(G){m(G,Q);var j;$==="axial"?j=G.createLinearGradient(v[0],v[1],J[0],J[1]):$==="radial"&&(j=G.createRadialGradient(v[0],v[1],ae,J[0],J[1],H));for(var L=0,R=C.length;L<R;++L){var T=C[L];j.addColorStop(T[0],T[1])}return j}}}};var y=function(){function w(C,v,J,ae,H,Y,G,j){var L=v.coords,R=v.colors,T=C.data,O=C.width*4,P;L[J+1]>L[ae+1]&&(P=J,J=ae,ae=P,P=Y,Y=G,G=P),L[ae+1]>L[H+1]&&(P=ae,ae=H,H=P,P=G,G=j,j=P),L[J+1]>L[ae+1]&&(P=J,J=ae,ae=P,P=Y,Y=G,G=P);var B=(L[J]+v.offsetX)*v.scaleX,M=(L[J+1]+v.offsetY)*v.scaleY,F=(L[ae]+v.offsetX)*v.scaleX,S=(L[ae+1]+v.offsetY)*v.scaleY,A=(L[H]+v.offsetX)*v.scaleX,E=(L[H+1]+v.offsetY)*v.scaleY;if(!(M>=E))for(var _=R[Y],D=R[Y+1],N=R[Y+2],U=R[G],z=R[G+1],te=R[G+2],W=R[j],re=R[j+1],ee=R[j+2],X=Math.round(M),K=Math.round(E),Z,se,ie,de,ce,he,oe,ne,ue=X;ue<=K;ue++){if(ue<S){let Ce;ue<M?Ce=0:M===S?Ce=1:Ce=(M-ue)/(M-S),Z=B-(B-F)*Ce,se=_-(_-U)*Ce,ie=D-(D-z)*Ce,de=N-(N-te)*Ce}else{let Ce;ue>E?Ce=1:S===E?Ce=0:Ce=(S-ue)/(S-E),Z=F-(F-A)*Ce,se=U-(U-W)*Ce,ie=z-(z-re)*Ce,de=te-(te-ee)*Ce}let xe;ue<M?xe=0:ue>E?xe=1:xe=(M-ue)/(M-E),ce=B-(B-A)*xe,he=_-(_-W)*xe,oe=D-(D-re)*xe,ne=N-(N-ee)*xe;for(var le=Math.round(Math.min(Z,ce)),fe=Math.round(Math.max(Z,ce)),pe=O*ue+le*4,ve=le;ve<=fe;ve++)xe=(Z-ve)/(Z-ce),xe<0?xe=0:xe>1&&(xe=1),T[pe++]=se-(se-he)*xe|0,T[pe++]=ie-(ie-oe)*xe|0,T[pe++]=de-(de-ne)*xe|0,T[pe++]=255}}function $(C,v,J){var ae=v.coords,H=v.colors,Y,G;switch(v.type){case"lattice":var j=v.verticesPerRow,L=Math.floor(ae.length/j)-1,R=j-1;for(Y=0;Y<L;Y++)for(var T=Y*j,O=0;O<R;O++,T++)w(C,J,ae[T],ae[T+1],ae[T+j],H[T],H[T+1],H[T+j]),w(C,J,ae[T+j+1],ae[T+1],ae[T+j],H[T+j+1],H[T+1],H[T+j]);break;case"triangles":for(Y=0,G=ae.length;Y<G;Y+=3)w(C,J,ae[Y],ae[Y+1],ae[Y+2],H[Y],H[Y+1],H[Y+2]);break;default:throw new Error("illegal figure")}}function Q(C,v,J,ae,H,Y,G,j){var L=1.1,R=3e3,T=2,O=Math.floor(C[0]),P=Math.floor(C[1]),B=Math.ceil(C[2])-O,M=Math.ceil(C[3])-P,F=Math.min(Math.ceil(Math.abs(B*v[0]*L)),R),S=Math.min(Math.ceil(Math.abs(M*v[1]*L)),R),A=B/F,E=M/S,_={coords:J,colors:ae,offsetX:-O,offsetY:-P,scaleX:1/A,scaleY:1/E},D=F+T*2,N=S+T*2,U,z,te,W;if(j.isEnabled)U=j.drawFigures({width:F,height:S,backgroundColor:Y,figures:H,context:_}),z=G.getCanvas("mesh",D,N,!1),z.context.drawImage(U,T,T),U=z.canvas;else{z=G.getCanvas("mesh",D,N,!1);var re=z.context,ee=re.createImageData(F,S);if(Y){var X=ee.data;for(te=0,W=X.length;te<W;te+=4)X[te]=Y[0],X[te+1]=Y[1],X[te+2]=Y[2],X[te+3]=255}for(te=0;te<H.length;te++)$(ee,H[te],_);re.putImageData(ee,T,T),U=z.canvas}return{canvas:U,offsetX:O-T*A,offsetY:P-T*E,scaleX:A,scaleY:E}}return Q}();b.Mesh={fromIR:function(w){var $=w[2],Q=w[3],C=w[4],v=w[5],J=w[6],ae=w[7],H=w[8];return{type:"Pattern",getPattern:function(G,j,L){m(G,ae);var R;if(L)R=f.Util.singularValueDecompose2dScale(G.mozCurrentTransform);else if(R=f.Util.singularValueDecompose2dScale(j.baseTransform),J){var T=f.Util.singularValueDecompose2dScale(J);R=[R[0]*T[0],R[1]*T[1]]}var O=y(v,R,$,Q,C,L?null:H,j.cachedCanvases,j.webGLContext);return L||(G.setTransform.apply(G,j.baseTransform),J&&G.transform.apply(G,J)),G.translate(O.offsetX,O.offsetY),G.scale(O.scaleX,O.scaleY),G.createPattern(O.canvas,"no-repeat")}}}},b.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};function k(q){var w=b[q[0]];if(!w)throw new Error(`Unknown IR type: ${q[0]}`);return w.fromIR(q)}var a=function(){var w={COLORED:1,UNCOLORED:2},$=3e3;function Q(C,v,J,ae,H){this.operatorList=C[2],this.matrix=C[3]||[1,0,0,1,0,0],this.bbox=C[4],this.xstep=C[5],this.ystep=C[6],this.paintType=C[7],this.tilingType=C[8],this.color=v,this.canvasGraphicsFactory=ae,this.baseTransform=H,this.type="Pattern",this.ctx=J}return Q.prototype={createPatternCanvas:function(v){var J=this.operatorList,ae=this.bbox,H=this.xstep,Y=this.ystep,G=this.paintType,j=this.tilingType,L=this.color,R=this.canvasGraphicsFactory;(0,f.info)("TilingType: "+j);var T=ae[0],O=ae[1],P=ae[2],B=ae[3],M=f.Util.singularValueDecompose2dScale(this.matrix),F=f.Util.singularValueDecompose2dScale(this.baseTransform),S=[M[0]*F[0],M[1]*F[1]],A=this.getSizeAndScale(H,this.ctx.canvas.width,S[0]),E=this.getSizeAndScale(Y,this.ctx.canvas.height,S[1]),_=v.cachedCanvases.getCanvas("pattern",A.size,E.size,!0),D=_.context,N=R.createCanvasGraphics(D);return N.groupLevel=v.groupLevel,this.setFillAndStrokeStyleToContext(N,G,L),N.transform(A.scale,0,0,E.scale,0,0),N.transform(1,0,0,1,-T,-O),this.clipBbox(N,ae,T,O,P,B),N.executeOperatorList(J),this.ctx.transform(1,0,0,1,T,O),this.ctx.scale(1/A.scale,1/E.scale),_.canvas},getSizeAndScale:function(v,J,ae){v=Math.abs(v);var H=Math.max($,J),Y=Math.ceil(v*ae);return Y>=H?Y=H:ae=Y/v,{scale:ae,size:Y}},clipBbox:function(v,J,ae,H,Y,G){if(Array.isArray(J)&&J.length===4){var j=Y-ae,L=G-H;v.ctx.rect(ae,H,j,L),v.clip(),v.endPath()}},setFillAndStrokeStyleToContext:function(v,J,ae){const H=v.ctx,Y=v.current;switch(J){case w.COLORED:var G=this.ctx;H.fillStyle=G.fillStyle,H.strokeStyle=G.strokeStyle,Y.fillColor=G.fillStyle,Y.strokeColor=G.strokeStyle;break;case w.UNCOLORED:var j=f.Util.makeCssRgb(ae[0],ae[1],ae[2]);H.fillStyle=j,H.strokeStyle=j,Y.fillColor=j,Y.strokeColor=j;break;default:throw new f.FormatError(`Unsupported paint type: ${J}`)}},getPattern:function(v,J){v=this.ctx,v.setTransform.apply(v,this.baseTransform),v.transform.apply(v,this.matrix);var ae=this.createPatternCanvas(J);return v.createPattern(ae,"repeat")}},Q}();d.TilingPattern=a},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.GlobalWorkerOptions=void 0;const f=Object.create(null);d.GlobalWorkerOptions=f,f.workerPort=f.workerPort===void 0?null:f.workerPort,f.workerSrc=f.workerSrc===void 0?"":f.workerSrc},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.MessageHandler=void 0;var f=g(2);const b={UNKNOWN:0,DATA:1,ERROR:2},m={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function y(a){if(typeof a!="object"||a===null)return a;switch(a.name){case"AbortException":return new f.AbortException(a.message);case"MissingPDFException":return new f.MissingPDFException(a.message);case"UnexpectedResponseException":return new f.UnexpectedResponseException(a.message,a.status);case"UnknownErrorException":return new f.UnknownErrorException(a.message,a.details);default:return new f.UnknownErrorException(a.message,a.toString())}}class k{constructor(q,w,$){this.sourceName=q,this.targetName=w,this.comObj=$,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=Q=>{const C=Q.data;if(C.targetName!==this.sourceName)return;if(C.stream){this._processStreamMessage(C);return}if(C.callback){const J=C.callbackId,ae=this.callbackCapabilities[J];if(!ae)throw new Error(`Cannot resolve callback ${J}`);if(delete this.callbackCapabilities[J],C.callback===b.DATA)ae.resolve(C.data);else if(C.callback===b.ERROR)ae.reject(y(C.reason));else throw new Error("Unexpected callback case");return}const v=this.actionHandler[C.action];if(!v)throw new Error(`Unknown action from worker: ${C.action}`);if(C.callbackId){const J=this.sourceName,ae=C.sourceName;new Promise(function(H){H(v(C.data))}).then(function(H){$.postMessage({sourceName:J,targetName:ae,callback:b.DATA,callbackId:C.callbackId,data:H})},function(H){$.postMessage({sourceName:J,targetName:ae,callback:b.ERROR,callbackId:C.callbackId,reason:y(H)})});return}if(C.streamId){this._createStreamSink(C);return}v(C.data)},$.addEventListener("message",this._onComObjOnMessage)}on(q,w){const $=this.actionHandler;if($[q])throw new Error(`There is already an actionName called "${q}"`);$[q]=w}send(q,w,$){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:q,data:w},$)}sendWithPromise(q,w,$){const Q=this.callbackId++,C=(0,f.createPromiseCapability)();this.callbackCapabilities[Q]=C;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:q,callbackId:Q,data:w},$)}catch(v){C.reject(v)}return C.promise}sendWithStream(q,w,$,Q){const C=this.streamId++,v=this.sourceName,J=this.targetName,ae=this.comObj;return new ReadableStream({start:H=>{const Y=(0,f.createPromiseCapability)();return this.streamControllers[C]={controller:H,startCall:Y,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:v,targetName:J,action:q,streamId:C,data:w,desiredSize:H.desiredSize},Q),Y.promise},pull:H=>{const Y=(0,f.createPromiseCapability)();return this.streamControllers[C].pullCall=Y,ae.postMessage({sourceName:v,targetName:J,stream:m.PULL,streamId:C,desiredSize:H.desiredSize}),Y.promise},cancel:H=>{(0,f.assert)(H instanceof Error,"cancel must have a valid reason");const Y=(0,f.createPromiseCapability)();return this.streamControllers[C].cancelCall=Y,this.streamControllers[C].isClosed=!0,ae.postMessage({sourceName:v,targetName:J,stream:m.CANCEL,streamId:C,reason:y(H)}),Y.promise}},$)}_createStreamSink(q){const w=this,$=this.actionHandler[q.action],Q=q.streamId,C=this.sourceName,v=q.sourceName,J=this.comObj,ae={enqueue(H,Y=1,G){if(this.isCancelled)return;const j=this.desiredSize;this.desiredSize-=Y,j>0&&this.desiredSize<=0&&(this.sinkCapability=(0,f.createPromiseCapability)(),this.ready=this.sinkCapability.promise),w._postMessage({sourceName:C,targetName:v,stream:m.ENQUEUE,streamId:Q,chunk:H},G)},close(){this.isCancelled||(this.isCancelled=!0,J.postMessage({sourceName:C,targetName:v,stream:m.CLOSE,streamId:Q}),delete w.streamSinks[Q])},error(H){(0,f.assert)(H instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,J.postMessage({sourceName:C,targetName:v,stream:m.ERROR,streamId:Q,reason:y(H)}))},sinkCapability:(0,f.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:q.desiredSize,ready:null};ae.sinkCapability.resolve(),ae.ready=ae.sinkCapability.promise,this.streamSinks[Q]=ae,new Promise(function(H){H($(q.data,ae))}).then(function(){J.postMessage({sourceName:C,targetName:v,stream:m.START_COMPLETE,streamId:Q,success:!0})},function(H){J.postMessage({sourceName:C,targetName:v,stream:m.START_COMPLETE,streamId:Q,reason:y(H)})})}_processStreamMessage(q){const w=q.streamId,$=this.sourceName,Q=q.sourceName,C=this.comObj;switch(q.stream){case m.START_COMPLETE:q.success?this.streamControllers[w].startCall.resolve():this.streamControllers[w].startCall.reject(y(q.reason));break;case m.PULL_COMPLETE:q.success?this.streamControllers[w].pullCall.resolve():this.streamControllers[w].pullCall.reject(y(q.reason));break;case m.PULL:if(!this.streamSinks[w]){C.postMessage({sourceName:$,targetName:Q,stream:m.PULL_COMPLETE,streamId:w,success:!0});break}this.streamSinks[w].desiredSize<=0&&q.desiredSize>0&&this.streamSinks[w].sinkCapability.resolve(),this.streamSinks[w].desiredSize=q.desiredSize;const{onPull:v}=this.streamSinks[q.streamId];new Promise(function(ae){ae(v&&v())}).then(function(){C.postMessage({sourceName:$,targetName:Q,stream:m.PULL_COMPLETE,streamId:w,success:!0})},function(ae){C.postMessage({sourceName:$,targetName:Q,stream:m.PULL_COMPLETE,streamId:w,reason:y(ae)})});break;case m.ENQUEUE:if((0,f.assert)(this.streamControllers[w],"enqueue should have stream controller"),this.streamControllers[w].isClosed)break;this.streamControllers[w].controller.enqueue(q.chunk);break;case m.CLOSE:if((0,f.assert)(this.streamControllers[w],"close should have stream controller"),this.streamControllers[w].isClosed)break;this.streamControllers[w].isClosed=!0,this.streamControllers[w].controller.close(),this._deleteStreamController(w);break;case m.ERROR:(0,f.assert)(this.streamControllers[w],"error should have stream controller"),this.streamControllers[w].controller.error(y(q.reason)),this._deleteStreamController(w);break;case m.CANCEL_COMPLETE:q.success?this.streamControllers[w].cancelCall.resolve():this.streamControllers[w].cancelCall.reject(y(q.reason)),this._deleteStreamController(w);break;case m.CANCEL:if(!this.streamSinks[w])break;const{onCancel:J}=this.streamSinks[q.streamId];new Promise(function(ae){ae(J&&J(y(q.reason)))}).then(function(){C.postMessage({sourceName:$,targetName:Q,stream:m.CANCEL_COMPLETE,streamId:w,success:!0})},function(ae){C.postMessage({sourceName:$,targetName:Q,stream:m.CANCEL_COMPLETE,streamId:w,reason:y(ae)})}),this.streamSinks[w].sinkCapability.reject(y(q.reason)),this.streamSinks[w].isCancelled=!0,delete this.streamSinks[w];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(q){await Promise.allSettled([this.streamControllers[q].startCall,this.streamControllers[q].pullCall,this.streamControllers[q].cancelCall].map(function(w){return w&&w.promise})),delete this.streamControllers[q]}_postMessage(q,w){w&&this.postMessageTransfers?this.comObj.postMessage(q,w):this.comObj.postMessage(q)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}d.MessageHandler=k},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.Metadata=void 0;var f=g(2),b=g(13);class m{constructor(k){(0,f.assert)(typeof k=="string","Metadata: input is not a string"),k=this._repair(k);const q=new b.SimpleXMLParser().parseFromString(k);this._metadataMap=new Map,q&&this._parse(q)}_repair(k){return k.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(a,q){const w=q.replace(/\\([0-3])([0-7])([0-7])/g,function(Q,C,v,J){return String.fromCharCode(C*64+v*8+J*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(Q,C){switch(C){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${C} isn't defined.`)});let $="";for(let Q=0,C=w.length;Q<C;Q+=2){const v=w.charCodeAt(Q)*256+w.charCodeAt(Q+1);v>=32&&v<127&&v!==60&&v!==62&&v!==38?$+=String.fromCharCode(v):$+="&#x"+(65536+v).toString(16).substring(1)+";"}return">"+$})}_parse(k){let a=k.documentElement;if(a.nodeName.toLowerCase()!=="rdf:rdf")for(a=a.firstChild;a&&a.nodeName.toLowerCase()!=="rdf:rdf";)a=a.nextSibling;const q=a?a.nodeName.toLowerCase():null;if(!a||q!=="rdf:rdf"||!a.hasChildNodes())return;const w=a.childNodes;for(let $=0,Q=w.length;$<Q;$++){const C=w[$];if(C.nodeName.toLowerCase()==="rdf:description"){for(let v=0,J=C.childNodes.length;v<J;v++)if(C.childNodes[v].nodeName.toLowerCase()!=="#text"){const ae=C.childNodes[v],H=ae.nodeName.toLowerCase();this._metadataMap.set(H,ae.textContent.trim())}}}}get(k){return this._metadataMap.has(k)?this._metadataMap.get(k):null}getAll(){const k=Object.create(null);for(const[a,q]of this._metadataMap)k[a]=q;return k}has(k){return this._metadataMap.has(k)}}d.Metadata=m},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.SimpleXMLParser=void 0;const f={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function b(q,w){const $=q[w];return $===" "||$===`
|
|
83
|
+
`||$==="\r"||$===" "}function m(q){for(let w=0,$=q.length;w<$;w++)if(!b(q,w))return!1;return!0}class y{_resolveEntities(w){return w.replace(/&([^;]+);/g,($,Q)=>{if(Q.substring(0,2)==="#x")return String.fromCharCode(parseInt(Q.substring(2),16));if(Q.substring(0,1)==="#")return String.fromCharCode(parseInt(Q.substring(1),10));switch(Q){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(Q)})}_parseContent(w,$){const Q=[];let C=$;function v(){for(;C<w.length&&b(w,C);)++C}for(;C<w.length&&!b(w,C)&&w[C]!==">"&&w[C]!=="/";)++C;const J=w.substring($,C);for(v();C<w.length&&w[C]!==">"&&w[C]!=="/"&&w[C]!=="?";){v();let ae="",H="";for(;C<w.length&&!b(w,C)&&w[C]!=="=";)ae+=w[C],++C;if(v(),w[C]!=="=")return null;++C,v();const Y=w[C];if(Y!=='"'&&Y!=="'")return null;const G=w.indexOf(Y,++C);if(G<0)return null;H=w.substring(C,G),Q.push({name:ae,value:this._resolveEntities(H)}),C=G+1,v()}return{name:J,attributes:Q,parsed:C-$}}_parseProcessingInstruction(w,$){let Q=$;function C(){for(;Q<w.length&&b(w,Q);)++Q}for(;Q<w.length&&!b(w,Q)&&w[Q]!==">"&&w[Q]!=="/";)++Q;const v=w.substring($,Q);C();const J=Q;for(;Q<w.length&&(w[Q]!=="?"||w[Q+1]!==">");)++Q;const ae=w.substring(J,Q);return{name:v,value:ae,parsed:Q-$}}parseXml(w){let $=0;for(;$<w.length;){const Q=w[$];let C=$;if(Q==="<"){++C;const v=w[C];let J;switch(v){case"/":if(++C,J=w.indexOf(">",C),J<0){this.onError(f.UnterminatedElement);return}this.onEndElement(w.substring(C,J)),C=J+1;break;case"?":++C;const ae=this._parseProcessingInstruction(w,C);if(w.substring(C+ae.parsed,C+ae.parsed+2)!=="?>"){this.onError(f.UnterminatedXmlDeclaration);return}this.onPi(ae.name,ae.value),C+=ae.parsed+2;break;case"!":if(w.substring(C+1,C+3)==="--"){if(J=w.indexOf("-->",C+3),J<0){this.onError(f.UnterminatedComment);return}this.onComment(w.substring(C+3,J)),C=J+3}else if(w.substring(C+1,C+8)==="[CDATA["){if(J=w.indexOf("]]>",C+8),J<0){this.onError(f.UnterminatedCdat);return}this.onCdata(w.substring(C+8,J)),C=J+3}else if(w.substring(C+1,C+8)==="DOCTYPE"){const G=w.indexOf("[",C+8);let j=!1;if(J=w.indexOf(">",C+8),J<0){this.onError(f.UnterminatedDoctypeDeclaration);return}if(G>0&&J>G){if(J=w.indexOf("]>",C+8),J<0){this.onError(f.UnterminatedDoctypeDeclaration);return}j=!0}const L=w.substring(C+8,J+(j?1:0));this.onDoctype(L),C=J+(j?2:1)}else{this.onError(f.MalformedElement);return}break;default:const H=this._parseContent(w,C);if(H===null){this.onError(f.MalformedElement);return}let Y=!1;if(w.substring(C+H.parsed,C+H.parsed+2)==="/>")Y=!0;else if(w.substring(C+H.parsed,C+H.parsed+1)!==">"){this.onError(f.UnterminatedElement);return}this.onBeginElement(H.name,H.attributes,Y),C+=H.parsed+(Y?2:1);break}}else{for(;C<w.length&&w[C]!=="<";)C++;const v=w.substring($,C);this.onText(this._resolveEntities(v))}$=C}}onResolveEntity(w){return`&${w};`}onPi(w,$){}onComment(w){}onCdata(w){}onDoctype(w){}onText(w){}onBeginElement(w,$,Q){}onEndElement(w){}onError(w){}}class k{constructor(w,$){this.nodeName=w,this.nodeValue=$,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const w=this.parentNode.childNodes;if(!w)return;const $=w.indexOf(this);if($!==-1)return w[$+1]}get textContent(){return this.childNodes?this.childNodes.map(function(w){return w.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}class a extends y{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=f.NoError}parseFromString(w){if(this._currentFragment=[],this._stack=[],this._errorCode=f.NoError,this.parseXml(w),this._errorCode!==f.NoError)return;const[$]=this._currentFragment;if(!!$)return{documentElement:$}}onResolveEntity(w){switch(w){case"apos":return"'"}return super.onResolveEntity(w)}onText(w){if(m(w))return;const $=new k("#text",w);this._currentFragment.push($)}onCdata(w){const $=new k("#text",w);this._currentFragment.push($)}onBeginElement(w,$,Q){const C=new k(w);C.childNodes=[],this._currentFragment.push(C),!Q&&(this._stack.push(this._currentFragment),this._currentFragment=C.childNodes)}onEndElement(w){this._currentFragment=this._stack.pop()||[];const $=this._currentFragment[this._currentFragment.length-1];if(!!$)for(let Q=0,C=$.childNodes.length;Q<C;Q++)$.childNodes[Q].parentNode=$}onError(w){this._errorCode=w}}d.SimpleXMLParser=a},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFDataTransportStream=void 0;var f=g(2);class b{constructor(a,q){(0,f.assert)(q,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=a.progressiveDone||!1;const w=a.initialData;if(w&&w.length>0){const $=new Uint8Array(w).buffer;this._queuedChunks.push($)}this._pdfDataRangeTransport=q,this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._contentLength=a.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(($,Q)=>{this._onReceiveData({begin:$,chunk:Q})}),this._pdfDataRangeTransport.addProgressListener(($,Q)=>{this._onProgress({loaded:$,total:Q})}),this._pdfDataRangeTransport.addProgressiveReadListener($=>{this._onReceiveData({chunk:$})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(a){const q=new Uint8Array(a.chunk).buffer;if(a.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(q):this._queuedChunks.push(q);else{const w=this._rangeReaders.some(function($){return $._begin!==a.begin?!1:($._enqueue(q),!0)});(0,f.assert)(w,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(a){if(a.total===void 0){const q=this._rangeReaders[0];q&&q.onProgress&&q.onProgress({loaded:a.loaded})}else{const q=this._fullRequestReader;q&&q.onProgress&&q.onProgress({loaded:a.loaded,total:a.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(a){const q=this._rangeReaders.indexOf(a);q>=0&&this._rangeReaders.splice(q,1)}getFullReader(){(0,f.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const a=this._queuedChunks;return this._queuedChunks=null,new m(this,a,this._progressiveDone)}getRangeReader(a,q){if(q<=this._progressiveDataLength)return null;const w=new y(this,a,q);return this._pdfDataRangeTransport.requestDataRange(a,q),this._rangeReaders.push(w),w}cancelAllRequests(a){this._fullRequestReader&&this._fullRequestReader.cancel(a),this._rangeReaders.slice(0).forEach(function(w){w.cancel(a)}),this._pdfDataRangeTransport.abort()}}d.PDFDataTransportStream=b;class m{constructor(a,q,w=!1){this._stream=a,this._done=w||!1,this._filename=null,this._queuedChunks=q||[],this._loaded=0;for(const $ of this._queuedChunks)this._loaded+=$.byteLength;this._requests=[],this._headersReady=Promise.resolve(),a._fullRequestReader=this,this.onProgress=null}_enqueue(a){this._done||(this._requests.length>0?this._requests.shift().resolve({value:a,done:!1}):this._queuedChunks.push(a),this._loaded+=a.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const a=(0,f.createPromiseCapability)();return this._requests.push(a),a.promise}cancel(a){this._done=!0,this._requests.forEach(function(q){q.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class y{constructor(a,q,w){this._stream=a,this._begin=q,this._end=w,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(a){this._done||(this._requests.length===0?this._queuedChunk=a:(this._requests.shift().resolve({value:a,done:!1}),this._requests.forEach(function(w){w.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const q=this._queuedChunk;return this._queuedChunk=null,{value:q,done:!1}}if(this._done)return{value:void 0,done:!0};const a=(0,f.createPromiseCapability)();return this._requests.push(a),a.promise}cancel(a){this._done=!0,this._requests.forEach(function(q){q.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.WebGLContext=void 0;var f=g(2);class b{constructor({enable:k=!1}){this._enabled=k===!0}get isEnabled(){let k=this._enabled;return k&&(k=m.tryInitGL()),(0,f.shadow)(this,"isEnabled",k)}composeSMask({layer:k,mask:a,properties:q}){return m.composeSMask(k,a,q)}drawFigures({width:k,height:a,backgroundColor:q,figures:w,context:$}){return m.drawFigures(k,a,q,w,$)}clear(){m.cleanup()}}d.WebGLContext=b;var m=function(){function k(P,B,M){var F=P.createShader(M);P.shaderSource(F,B),P.compileShader(F);var S=P.getShaderParameter(F,P.COMPILE_STATUS);if(!S){var A=P.getShaderInfoLog(F);throw new Error("Error during shader compilation: "+A)}return F}function a(P,B){return k(P,B,P.VERTEX_SHADER)}function q(P,B){return k(P,B,P.FRAGMENT_SHADER)}function w(P,B){for(var M=P.createProgram(),F=0,S=B.length;F<S;++F)P.attachShader(M,B[F]);P.linkProgram(M);var A=P.getProgramParameter(M,P.LINK_STATUS);if(!A){var E=P.getProgramInfoLog(M);throw new Error("Error during program linking: "+E)}return M}function $(P,B,M){P.activeTexture(M);var F=P.createTexture();return P.bindTexture(P.TEXTURE_2D,F),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texImage2D(P.TEXTURE_2D,0,P.RGBA,P.RGBA,P.UNSIGNED_BYTE,B),F}var Q,C;function v(){Q||(C=document.createElement("canvas"),Q=C.getContext("webgl",{premultipliedalpha:!1}))}var J=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",ae=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",H=null;function Y(){var P,B;v(),P=C,C=null,B=Q,Q=null;var M=a(B,J),F=q(B,ae),S=w(B,[M,F]);B.useProgram(S);var A={};A.gl=B,A.canvas=P,A.resolutionLocation=B.getUniformLocation(S,"u_resolution"),A.positionLocation=B.getAttribLocation(S,"a_position"),A.backdropLocation=B.getUniformLocation(S,"u_backdrop"),A.subtypeLocation=B.getUniformLocation(S,"u_subtype");var E=B.getAttribLocation(S,"a_texCoord"),_=B.getUniformLocation(S,"u_image"),D=B.getUniformLocation(S,"u_mask"),N=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,N),B.bufferData(B.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),B.STATIC_DRAW),B.enableVertexAttribArray(E),B.vertexAttribPointer(E,2,B.FLOAT,!1,0,0),B.uniform1i(_,0),B.uniform1i(D,1),H=A}function G(P,B,M){var F=P.width,S=P.height;H||Y();var A=H,E=A.canvas,_=A.gl;E.width=F,E.height=S,_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight),_.uniform2f(A.resolutionLocation,F,S),M.backdrop?_.uniform4f(A.resolutionLocation,M.backdrop[0],M.backdrop[1],M.backdrop[2],1):_.uniform4f(A.resolutionLocation,0,0,0,0),_.uniform1i(A.subtypeLocation,M.subtype==="Luminosity"?1:0);var D=$(_,P,_.TEXTURE0),N=$(_,B,_.TEXTURE1),U=_.createBuffer();return _.bindBuffer(_.ARRAY_BUFFER,U),_.bufferData(_.ARRAY_BUFFER,new Float32Array([0,0,F,0,0,S,0,S,F,0,F,S]),_.STATIC_DRAW),_.enableVertexAttribArray(A.positionLocation),_.vertexAttribPointer(A.positionLocation,2,_.FLOAT,!1,0,0),_.clearColor(0,0,0,0),_.enable(_.BLEND),_.blendFunc(_.ONE,_.ONE_MINUS_SRC_ALPHA),_.clear(_.COLOR_BUFFER_BIT),_.drawArrays(_.TRIANGLES,0,6),_.flush(),_.deleteTexture(D),_.deleteTexture(N),_.deleteBuffer(U),E}var j=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",L=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",R=null;function T(){var P,B;v(),P=C,C=null,B=Q,Q=null;var M=a(B,j),F=q(B,L),S=w(B,[M,F]);B.useProgram(S);var A={};A.gl=B,A.canvas=P,A.resolutionLocation=B.getUniformLocation(S,"u_resolution"),A.scaleLocation=B.getUniformLocation(S,"u_scale"),A.offsetLocation=B.getUniformLocation(S,"u_offset"),A.positionLocation=B.getAttribLocation(S,"a_position"),A.colorLocation=B.getAttribLocation(S,"a_color"),R=A}function O(P,B,M,F,S){R||T();var A=R,E=A.canvas,_=A.gl;E.width=P,E.height=B,_.viewport(0,0,_.drawingBufferWidth,_.drawingBufferHeight),_.uniform2f(A.resolutionLocation,P,B);var D=0,N,U,z;for(N=0,U=F.length;N<U;N++)switch(F[N].type){case"lattice":z=F[N].coords.length/F[N].verticesPerRow|0,D+=(z-1)*(F[N].verticesPerRow-1)*6;break;case"triangles":D+=F[N].coords.length;break}var te=new Float32Array(D*2),W=new Uint8Array(D*3),re=S.coords,ee=S.colors,X=0,K=0;for(N=0,U=F.length;N<U;N++){var Z=F[N],se=Z.coords,ie=Z.colors;switch(Z.type){case"lattice":var de=Z.verticesPerRow;z=se.length/de|0;for(var ce=1;ce<z;ce++)for(var he=ce*de+1,oe=1;oe<de;oe++,he++)te[X]=re[se[he-de-1]],te[X+1]=re[se[he-de-1]+1],te[X+2]=re[se[he-de]],te[X+3]=re[se[he-de]+1],te[X+4]=re[se[he-1]],te[X+5]=re[se[he-1]+1],W[K]=ee[ie[he-de-1]],W[K+1]=ee[ie[he-de-1]+1],W[K+2]=ee[ie[he-de-1]+2],W[K+3]=ee[ie[he-de]],W[K+4]=ee[ie[he-de]+1],W[K+5]=ee[ie[he-de]+2],W[K+6]=ee[ie[he-1]],W[K+7]=ee[ie[he-1]+1],W[K+8]=ee[ie[he-1]+2],te[X+6]=te[X+2],te[X+7]=te[X+3],te[X+8]=te[X+4],te[X+9]=te[X+5],te[X+10]=re[se[he]],te[X+11]=re[se[he]+1],W[K+9]=W[K+3],W[K+10]=W[K+4],W[K+11]=W[K+5],W[K+12]=W[K+6],W[K+13]=W[K+7],W[K+14]=W[K+8],W[K+15]=ee[ie[he]],W[K+16]=ee[ie[he]+1],W[K+17]=ee[ie[he]+2],X+=12,K+=18;break;case"triangles":for(var ne=0,ue=se.length;ne<ue;ne++)te[X]=re[se[ne]],te[X+1]=re[se[ne]+1],W[K]=ee[ie[ne]],W[K+1]=ee[ie[ne]+1],W[K+2]=ee[ie[ne]+2],X+=2,K+=3;break}}M?_.clearColor(M[0]/255,M[1]/255,M[2]/255,1):_.clearColor(0,0,0,0),_.clear(_.COLOR_BUFFER_BIT);var le=_.createBuffer();_.bindBuffer(_.ARRAY_BUFFER,le),_.bufferData(_.ARRAY_BUFFER,te,_.STATIC_DRAW),_.enableVertexAttribArray(A.positionLocation),_.vertexAttribPointer(A.positionLocation,2,_.FLOAT,!1,0,0);var fe=_.createBuffer();return _.bindBuffer(_.ARRAY_BUFFER,fe),_.bufferData(_.ARRAY_BUFFER,W,_.STATIC_DRAW),_.enableVertexAttribArray(A.colorLocation),_.vertexAttribPointer(A.colorLocation,3,_.UNSIGNED_BYTE,!1,0,0),_.uniform2f(A.scaleLocation,S.scaleX,S.scaleY),_.uniform2f(A.offsetLocation,S.offsetX,S.offsetY),_.drawArrays(_.TRIANGLES,0,D),_.flush(),_.deleteBuffer(le),_.deleteBuffer(fe),E}return{tryInitGL(){try{return v(),!!Q}catch{}return!1},composeSMask:G,drawFigures:O,cleanup(){H&&H.canvas&&(H.canvas.width=0,H.canvas.height=0),R&&R.canvas&&(R.canvas.width=0,R.canvas.height=0),H=null,R=null}}}()},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.AnnotationLayer=void 0;var f=g(1),b=g(2);class m{static create(D){switch(D.data.annotationType){case b.AnnotationType.LINK:return new k(D);case b.AnnotationType.TEXT:return new a(D);case b.AnnotationType.WIDGET:switch(D.data.fieldType){case"Tx":return new w(D);case"Btn":return D.data.radioButton?new Q(D):D.data.checkBox?new $(D):new C(D);case"Ch":return new v(D)}return new q(D);case b.AnnotationType.POPUP:return new J(D);case b.AnnotationType.FREETEXT:return new H(D);case b.AnnotationType.LINE:return new Y(D);case b.AnnotationType.SQUARE:return new G(D);case b.AnnotationType.CIRCLE:return new j(D);case b.AnnotationType.POLYLINE:return new L(D);case b.AnnotationType.CARET:return new T(D);case b.AnnotationType.INK:return new O(D);case b.AnnotationType.POLYGON:return new R(D);case b.AnnotationType.HIGHLIGHT:return new P(D);case b.AnnotationType.UNDERLINE:return new B(D);case b.AnnotationType.SQUIGGLY:return new M(D);case b.AnnotationType.STRIKEOUT:return new F(D);case b.AnnotationType.STAMP:return new S(D);case b.AnnotationType.FILEATTACHMENT:return new A(D);default:return new y(D)}}}class y{constructor(D,N=!1,U=!1){this.isRenderable=N,this.data=D.data,this.layer=D.layer,this.page=D.page,this.viewport=D.viewport,this.linkService=D.linkService,this.downloadManager=D.downloadManager,this.imageResourcesPath=D.imageResourcesPath,this.renderInteractiveForms=D.renderInteractiveForms,this.svgFactory=D.svgFactory,N&&(this.container=this._createContainer(U))}_createContainer(D=!1){const N=this.data,U=this.page,z=this.viewport,te=document.createElement("section");let W=N.rect[2]-N.rect[0],re=N.rect[3]-N.rect[1];te.setAttribute("data-annotation-id",N.id);const ee=b.Util.normalizeRect([N.rect[0],U.view[3]-N.rect[1]+U.view[1],N.rect[2],U.view[3]-N.rect[3]+U.view[1]]);if(te.style.transform=`matrix(${z.transform.join(",")})`,te.style.transformOrigin=`-${ee[0]}px -${ee[1]}px`,!D&&N.borderStyle.width>0){te.style.borderWidth=`${N.borderStyle.width}px`,N.borderStyle.style!==b.AnnotationBorderStyleType.UNDERLINE&&(W=W-2*N.borderStyle.width,re=re-2*N.borderStyle.width);const X=N.borderStyle.horizontalCornerRadius,K=N.borderStyle.verticalCornerRadius;if(X>0||K>0){const Z=`${X}px / ${K}px`;te.style.borderRadius=Z}switch(N.borderStyle.style){case b.AnnotationBorderStyleType.SOLID:te.style.borderStyle="solid";break;case b.AnnotationBorderStyleType.DASHED:te.style.borderStyle="dashed";break;case b.AnnotationBorderStyleType.BEVELED:(0,b.warn)("Unimplemented border style: beveled");break;case b.AnnotationBorderStyleType.INSET:(0,b.warn)("Unimplemented border style: inset");break;case b.AnnotationBorderStyleType.UNDERLINE:te.style.borderBottomStyle="solid";break}N.color?te.style.borderColor=b.Util.makeCssRgb(N.color[0]|0,N.color[1]|0,N.color[2]|0):te.style.borderWidth=0}return te.style.left=`${ee[0]}px`,te.style.top=`${ee[1]}px`,te.style.width=`${W}px`,te.style.height=`${re}px`,te}_createPopup(D,N,U){N||(N=document.createElement("div"),N.style.height=D.style.height,N.style.width=D.style.width,D.appendChild(N));const te=new ae({container:D,trigger:N,color:U.color,title:U.title,modificationDate:U.modificationDate,contents:U.contents,hideWrapper:!0}).render();te.style.left=D.style.width,D.appendChild(te)}render(){(0,b.unreachable)("Abstract method `AnnotationElement.render` called")}}class k extends y{constructor(D){const N=!!(D.data.url||D.data.dest||D.data.action);super(D,N)}render(){this.container.className="linkAnnotation";const{data:D,linkService:N}=this,U=document.createElement("a");return D.url?(0,f.addLinkAttributes)(U,{url:D.url,target:D.newWindow?f.LinkTarget.BLANK:N.externalLinkTarget,rel:N.externalLinkRel,enabled:N.externalLinkEnabled}):D.action?this._bindNamedAction(U,D.action):this._bindLink(U,D.dest),this.container.appendChild(U),this.container}_bindLink(D,N){D.href=this.linkService.getDestinationHash(N),D.onclick=()=>(N&&this.linkService.navigateTo(N),!1),N&&(D.className="internalLink")}_bindNamedAction(D,N){D.href=this.linkService.getAnchorUrl(""),D.onclick=()=>(this.linkService.executeNamedAction(N),!1),D.className="internalLink"}}class a extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N)}render(){this.container.className="textAnnotation";const D=document.createElement("img");return D.style.height=this.container.style.height,D.style.width=this.container.style.width,D.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",D.alt="[{{type}} Annotation]",D.dataset.l10nId="text_annotation_type",D.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,D,this.data),this.container.appendChild(D),this.container}}class q extends y{render(){return this.container}}class w extends q{constructor(D){const N=D.renderInteractiveForms||!D.data.hasAppearance&&!!D.data.fieldValue;super(D,N)}render(){const D=["left","center","right"];this.container.className="textWidgetAnnotation";let N=null;if(this.renderInteractiveForms){if(this.data.multiLine?(N=document.createElement("textarea"),N.textContent=this.data.fieldValue):(N=document.createElement("input"),N.type="text",N.setAttribute("value",this.data.fieldValue)),N.disabled=this.data.readOnly,N.name=this.data.fieldName,this.data.maxLen!==null&&(N.maxLength=this.data.maxLen),this.data.comb){const z=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;N.classList.add("comb"),N.style.letterSpacing=`calc(${z}px - 1ch)`}}else{N=document.createElement("div"),N.textContent=this.data.fieldValue,N.style.verticalAlign="middle",N.style.display="table-cell";let U=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(U=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(N,U)}return this.data.textAlignment!==null&&(N.style.textAlign=D[this.data.textAlignment]),this.container.appendChild(N),this.container}_setTextStyle(D,N){const U=D.style;if(U.fontSize=`${this.data.fontSize}px`,U.direction=this.data.fontDirection<0?"rtl":"ltr",!N)return;let z="normal";N.black?z="900":N.bold&&(z="bold"),U.fontWeight=z,U.fontStyle=N.italic?"italic":"normal";const te=N.loadedName?`"${N.loadedName}", `:"",W=N.fallbackName||"Helvetica, sans-serif";U.fontFamily=te+W}}class $ extends q{constructor(D){super(D,D.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const D=document.createElement("input");return D.disabled=this.data.readOnly,D.type="checkbox",D.name=this.data.fieldName,this.data.fieldValue&&this.data.fieldValue!=="Off"&&D.setAttribute("checked",!0),this.container.appendChild(D),this.container}}class Q extends q{constructor(D){super(D,D.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const D=document.createElement("input");return D.disabled=this.data.readOnly,D.type="radio",D.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&D.setAttribute("checked",!0),this.container.appendChild(D),this.container}}class C extends k{render(){const D=super.render();return D.className="buttonWidgetAnnotation pushButton",D}}class v extends q{constructor(D){super(D,D.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const D=document.createElement("select");D.disabled=this.data.readOnly,D.name=this.data.fieldName,this.data.combo||(D.size=this.data.options.length,this.data.multiSelect&&(D.multiple=!0));for(const N of this.data.options){const U=document.createElement("option");U.textContent=N.displayValue,U.value=N.exportValue,this.data.fieldValue.includes(N.displayValue)&&U.setAttribute("selected",!0),D.appendChild(U)}return this.container.appendChild(D),this.container}}class J extends y{constructor(D){const N=!!(D.data.title||D.data.contents);super(D,N)}render(){const D=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",D.includes(this.data.parentType))return this.container;const N=`[data-annotation-id="${this.data.parentId}"]`,U=this.layer.querySelector(N);if(!U)return this.container;const z=new ae({container:this.container,trigger:U,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),te=parseFloat(U.style.left),W=parseFloat(U.style.width);return this.container.style.transformOrigin=`-${te+W}px -${U.style.top}`,this.container.style.left=`${te+W}px`,this.container.appendChild(z.render()),this.container}}class ae{constructor(D){this.container=D.container,this.trigger=D.trigger,this.color=D.color,this.title=D.title,this.modificationDate=D.modificationDate,this.contents=D.contents,this.hideWrapper=D.hideWrapper||!1,this.pinned=!1}render(){const N=document.createElement("div");N.className="popupWrapper",this.hideElement=this.hideWrapper?N:this.container,this.hideElement.setAttribute("hidden",!0);const U=document.createElement("div");U.className="popup";const z=this.color;if(z){const ee=.7*(255-z[0])+z[0],X=.7*(255-z[1])+z[1],K=.7*(255-z[2])+z[2];U.style.backgroundColor=b.Util.makeCssRgb(ee|0,X|0,K|0)}const te=document.createElement("h1");te.textContent=this.title,U.appendChild(te);const W=f.PDFDateString.toDateObject(this.modificationDate);if(W){const ee=document.createElement("span");ee.textContent="{{date}}, {{time}}",ee.dataset.l10nId="annotation_date_string",ee.dataset.l10nArgs=JSON.stringify({date:W.toLocaleDateString(),time:W.toLocaleTimeString()}),U.appendChild(ee)}const re=this._formatContents(this.contents);return U.appendChild(re),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),U.addEventListener("click",this._hide.bind(this,!0)),N.appendChild(U),N}_formatContents(D){const N=document.createElement("p"),U=D.split(/(?:\r\n?|\n)/);for(let z=0,te=U.length;z<te;++z){const W=U[z];N.appendChild(document.createTextNode(W)),z<te-1&&N.appendChild(document.createElement("br"))}return N}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(D=!1){D&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(D=!0){D&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class H extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class Y extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){this.container.className="lineAnnotation";const D=this.data,N=D.rect[2]-D.rect[0],U=D.rect[3]-D.rect[1],z=this.svgFactory.create(N,U),te=this.svgFactory.createElement("svg:line");return te.setAttribute("x1",D.rect[2]-D.lineCoordinates[0]),te.setAttribute("y1",D.rect[3]-D.lineCoordinates[1]),te.setAttribute("x2",D.rect[2]-D.lineCoordinates[2]),te.setAttribute("y2",D.rect[3]-D.lineCoordinates[3]),te.setAttribute("stroke-width",D.borderStyle.width||1),te.setAttribute("stroke","transparent"),z.appendChild(te),this.container.append(z),this._createPopup(this.container,te,D),this.container}}class G extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){this.container.className="squareAnnotation";const D=this.data,N=D.rect[2]-D.rect[0],U=D.rect[3]-D.rect[1],z=this.svgFactory.create(N,U),te=D.borderStyle.width,W=this.svgFactory.createElement("svg:rect");return W.setAttribute("x",te/2),W.setAttribute("y",te/2),W.setAttribute("width",N-te),W.setAttribute("height",U-te),W.setAttribute("stroke-width",te||1),W.setAttribute("stroke","transparent"),W.setAttribute("fill","none"),z.appendChild(W),this.container.append(z),this._createPopup(this.container,W,D),this.container}}class j extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){this.container.className="circleAnnotation";const D=this.data,N=D.rect[2]-D.rect[0],U=D.rect[3]-D.rect[1],z=this.svgFactory.create(N,U),te=D.borderStyle.width,W=this.svgFactory.createElement("svg:ellipse");return W.setAttribute("cx",N/2),W.setAttribute("cy",U/2),W.setAttribute("rx",N/2-te/2),W.setAttribute("ry",U/2-te/2),W.setAttribute("stroke-width",te||1),W.setAttribute("stroke","transparent"),W.setAttribute("fill","none"),z.appendChild(W),this.container.append(z),this._createPopup(this.container,W,D),this.container}}class L extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const D=this.data,N=D.rect[2]-D.rect[0],U=D.rect[3]-D.rect[1],z=this.svgFactory.create(N,U);let te=[];for(const re of D.vertices){const ee=re.x-D.rect[0],X=D.rect[3]-re.y;te.push(ee+","+X)}te=te.join(" ");const W=this.svgFactory.createElement(this.svgElementName);return W.setAttribute("points",te),W.setAttribute("stroke-width",D.borderStyle.width||1),W.setAttribute("stroke","transparent"),W.setAttribute("fill","none"),z.appendChild(W),this.container.append(z),this._createPopup(this.container,W,D),this.container}}class R extends L{constructor(D){super(D),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class T extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class O extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const D=this.data,N=D.rect[2]-D.rect[0],U=D.rect[3]-D.rect[1],z=this.svgFactory.create(N,U);for(const te of D.inkLists){let W=[];for(const ee of te){const X=ee.x-D.rect[0],K=D.rect[3]-ee.y;W.push(`${X},${K}`)}W=W.join(" ");const re=this.svgFactory.createElement(this.svgElementName);re.setAttribute("points",W),re.setAttribute("stroke-width",D.borderStyle.width||1),re.setAttribute("stroke","transparent"),re.setAttribute("fill","none"),this._createPopup(this.container,re,D),z.appendChild(re)}return this.container.append(z),this.container}}class P extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class B extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class M extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class F extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class S extends y{constructor(D){const N=!!(D.data.hasPopup||D.data.title||D.data.contents);super(D,N,!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class A extends y{constructor(D){super(D,!0);const{filename:N,content:U}=this.data.file;this.filename=(0,f.getFilenameFromUrl)(N),this.content=U,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,b.stringToPDFString)(N),filename:N,content:U})}render(){this.container.className="fileAttachmentAnnotation";const D=document.createElement("div");return D.style.height=this.container.style.height,D.style.width=this.container.style.width,D.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,D,this.data),this.container.appendChild(D),this.container}_download(){if(!this.downloadManager){(0,b.warn)("Download cannot be started due to unavailable download manager");return}this.downloadManager.downloadData(this.content,this.filename,"")}}class E{static render(D){const N=[],U=[];for(const z of D.annotations)if(!!z){if(z.annotationType===b.AnnotationType.POPUP){U.push(z);continue}N.push(z)}U.length&&N.push(...U);for(const z of N){const te=m.create({data:z,layer:D.div,page:D.page,viewport:D.viewport,linkService:D.linkService,downloadManager:D.downloadManager,imageResourcesPath:D.imageResourcesPath||"",renderInteractiveForms:D.renderInteractiveForms||!1,svgFactory:new f.DOMSVGFactory});te.isRenderable&&D.div.appendChild(te.render())}}static update(D){for(const N of D.annotations){const U=D.div.querySelector(`[data-annotation-id="${N.id}"]`);U&&(U.style.transform=`matrix(${D.viewport.transform.join(",")})`)}D.div.removeAttribute("hidden")}}d.AnnotationLayer=E},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.renderTextLayer=void 0;var f=g(2),b=function(){var y=1e5,k=/\S/;function a(H){return!k.test(H)}function q(H,Y,G){var j=document.createElement("span"),L={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(H._textDivs.push(j),a(Y.str)){L.isWhitespace=!0,H._textDivProperties.set(j,L);return}var R=f.Util.transform(H._viewport.transform,Y.transform),T=Math.atan2(R[1],R[0]),O=G[Y.fontName];O.vertical&&(T+=Math.PI/2);var P=Math.sqrt(R[2]*R[2]+R[3]*R[3]),B=P;O.ascent?B=O.ascent*B:O.descent&&(B=(1+O.descent)*B);let M,F;T===0?(M=R[4],F=R[5]-B):(M=R[4]+B*Math.sin(T),F=R[5]-B*Math.cos(T)),j.style.left=`${M}px`,j.style.top=`${F}px`,j.style.fontSize=`${P}px`,j.style.fontFamily=O.fontFamily,j.textContent=Y.str,H._fontInspectorEnabled&&(j.dataset.fontName=Y.fontName),T!==0&&(L.angle=T*(180/Math.PI));let S=!1;if(Y.str.length>1)S=!0;else if(Y.transform[0]!==Y.transform[3]){const z=Math.abs(Y.transform[0]),te=Math.abs(Y.transform[3]);z!==te&&Math.max(z,te)/Math.min(z,te)>1.5&&(S=!0)}if(S&&(O.vertical?L.canvasWidth=Y.height*H._viewport.scale:L.canvasWidth=Y.width*H._viewport.scale),H._textDivProperties.set(j,L),H._textContentStream&&H._layoutText(j),H._enhanceTextSelection){var A=1,E=0;T!==0&&(A=Math.cos(T),E=Math.sin(T));var _=(O.vertical?Y.height:Y.width)*H._viewport.scale,D=P,N,U;T!==0?(N=[A,E,-E,A,M,F],U=f.Util.getAxialAlignedBoundingBox([0,0,_,D],N)):U=[M,F,M+_,F+D],H._bounds.push({left:U[0],top:U[1],right:U[2],bottom:U[3],div:j,size:[_,D],m:N})}}function w(H){if(!H._canceled){var Y=H._textDivs,G=H._capability,j=Y.length;if(j>y){H._renderingDone=!0,G.resolve();return}if(!H._textContentStream)for(var L=0;L<j;L++)H._layoutText(Y[L]);H._renderingDone=!0,G.resolve()}}function $(H,Y,G){let j=0;for(let L=0;L<G;L++){const R=H[Y++];R>0&&(j=j?Math.min(R,j):R)}return j}function Q(H){for(var Y=H._bounds,G=H._viewport,j=C(G.width,G.height,Y),L=0;L<j.length;L++){var R=Y[L].div,T=H._textDivProperties.get(R);if(T.angle===0){T.paddingLeft=Y[L].left-j[L].left,T.paddingTop=Y[L].top-j[L].top,T.paddingRight=j[L].right-Y[L].right,T.paddingBottom=j[L].bottom-Y[L].bottom,H._textDivProperties.set(R,T);continue}var O=j[L],P=Y[L],B=P.m,M=B[0],F=B[1],S=[[0,0],[0,P.size[1]],[P.size[0],0],P.size],A=new Float64Array(64);S.forEach(function(_,D){var N=f.Util.applyTransform(_,B);A[D+0]=M&&(O.left-N[0])/M,A[D+4]=F&&(O.top-N[1])/F,A[D+8]=M&&(O.right-N[0])/M,A[D+12]=F&&(O.bottom-N[1])/F,A[D+16]=F&&(O.left-N[0])/-F,A[D+20]=M&&(O.top-N[1])/M,A[D+24]=F&&(O.right-N[0])/-F,A[D+28]=M&&(O.bottom-N[1])/M,A[D+32]=M&&(O.left-N[0])/-M,A[D+36]=F&&(O.top-N[1])/-F,A[D+40]=M&&(O.right-N[0])/-M,A[D+44]=F&&(O.bottom-N[1])/-F,A[D+48]=F&&(O.left-N[0])/F,A[D+52]=M&&(O.top-N[1])/-M,A[D+56]=F&&(O.right-N[0])/F,A[D+60]=M&&(O.bottom-N[1])/-M});var E=1+Math.min(Math.abs(M),Math.abs(F));T.paddingLeft=$(A,32,16)/E,T.paddingTop=$(A,48,16)/E,T.paddingRight=$(A,0,16)/E,T.paddingBottom=$(A,16,16)/E,H._textDivProperties.set(R,T)}}function C(H,Y,G){var j=G.map(function(R,T){return{x1:R.left,y1:R.top,x2:R.right,y2:R.bottom,index:T,x1New:void 0,x2New:void 0}});v(H,j);var L=new Array(G.length);return j.forEach(function(R){var T=R.index;L[T]={left:R.x1New,top:0,right:R.x2New,bottom:0}}),G.map(function(R,T){var O=L[T],P=j[T];P.x1=R.top,P.y1=H-O.right,P.x2=R.bottom,P.y2=H-O.left,P.index=T,P.x1New=void 0,P.x2New=void 0}),v(Y,j),j.forEach(function(R){var T=R.index;L[T].top=R.x1New,L[T].bottom=R.x2New}),L}function v(H,Y){Y.sort(function(L,R){return L.x1-R.x1||L.index-R.index});var G={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},j=[{start:-1/0,end:1/0,boundary:G}];Y.forEach(function(L){for(var R=0;R<j.length&&j[R].end<=L.y1;)R++;for(var T=j.length-1;T>=0&&j[T].start>=L.y2;)T--;var O,P,B,M,F=-1/0;for(B=R;B<=T;B++){O=j[B],P=O.boundary;var S;P.x2>L.x1?S=P.index>L.index?P.x1New:L.x1:P.x2New===void 0?S=(P.x2+L.x1)/2:S=P.x2New,S>F&&(F=S)}for(L.x1New=F,B=R;B<=T;B++)O=j[B],P=O.boundary,P.x2New===void 0?P.x2>L.x1?P.index>L.index&&(P.x2New=P.x2):P.x2New=F:P.x2New>F&&(P.x2New=Math.max(F,P.x2));var A=[],E=null;for(B=R;B<=T;B++){O=j[B],P=O.boundary;var _=P.x2>L.x2?P:L;E===_?A[A.length-1].end=O.end:(A.push({start:O.start,end:O.end,boundary:_}),E=_)}for(j[R].start<L.y1&&(A[0].start=L.y1,A.unshift({start:j[R].start,end:L.y1,boundary:j[R].boundary})),L.y2<j[T].end&&(A[A.length-1].end=L.y2,A.push({start:L.y2,end:j[T].end,boundary:j[T].boundary})),B=R;B<=T;B++)if(O=j[B],P=O.boundary,P.x2New===void 0){var D=!1;for(M=R-1;!D&&M>=0&&j[M].start>=P.y1;M--)D=j[M].boundary===P;for(M=T+1;!D&&M<j.length&&j[M].end<=P.y2;M++)D=j[M].boundary===P;for(M=0;!D&&M<A.length;M++)D=A[M].boundary===P;D||(P.x2New=F)}Array.prototype.splice.apply(j,[R,T-R+1].concat(A))}),j.forEach(function(L){var R=L.boundary;R.x2New===void 0&&(R.x2New=Math.max(H,R.x2))})}function J({textContent:H,textContentStream:Y,container:G,viewport:j,textDivs:L,textContentItemsStr:R,enhanceTextSelection:T}){this._textContent=H,this._textContentStream=Y,this._container=G,this._viewport=j,this._textDivs=L||[],this._textContentItemsStr=R||[],this._enhanceTextSelection=!!T,this._fontInspectorEnabled=!!(globalThis.FontInspector&&globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,f.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}J.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new f.AbortException("TextLayer task cancelled.")),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(H,Y){for(let G=0,j=H.length;G<j;G++)this._textContentItemsStr.push(H[G].str),q(this,H[G],Y)},_layoutText(H){const Y=this._textDivProperties.get(H);if(Y.isWhitespace)return;let G="";if(Y.canvasWidth!==0){const{fontSize:j,fontFamily:L}=H.style;(j!==this._layoutTextLastFontSize||L!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${j} ${L}`,this._layoutTextLastFontSize=j,this._layoutTextLastFontFamily=L);const{width:R}=this._layoutTextCtx.measureText(H.textContent);R>0&&(Y.scale=Y.canvasWidth/R,G=`scaleX(${Y.scale})`)}Y.angle!==0&&(G=`rotate(${Y.angle}deg) ${G}`),G.length>0&&(this._enhanceTextSelection&&(Y.originalTransform=G),H.style.transform=G),this._textDivProperties.set(H,Y),this._container.appendChild(H)},_render:function(Y){const G=(0,f.createPromiseCapability)();let j=Object.create(null);const L=document.createElement("canvas");if(L.mozOpaque=!0,this._layoutTextCtx=L.getContext("2d",{alpha:!1}),this._textContent){const R=this._textContent.items,T=this._textContent.styles;this._processItems(R,T),G.resolve()}else if(this._textContentStream){const R=()=>{this._reader.read().then(({value:T,done:O})=>{if(O){G.resolve();return}Object.assign(j,T.styles),this._processItems(T.items,j),R()},G.reject)};this._reader=this._textContentStream.getReader(),R()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');G.promise.then(()=>{j=null,Y?this._renderTimer=setTimeout(()=>{w(this),this._renderTimer=null},Y):w(this)},this._capability.reject)},expandTextDivs:function(Y){if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(Q(this),this._bounds=null);const G=[],j=[];for(var L=0,R=this._textDivs.length;L<R;L++){const T=this._textDivs[L],O=this._textDivProperties.get(T);O.isWhitespace||(Y?(G.length=0,j.length=0,O.originalTransform&&G.push(O.originalTransform),O.paddingTop>0?(j.push(`${O.paddingTop}px`),G.push(`translateY(${-O.paddingTop}px)`)):j.push(0),O.paddingRight>0?j.push(`${O.paddingRight/O.scale}px`):j.push(0),O.paddingBottom>0?j.push(`${O.paddingBottom}px`):j.push(0),O.paddingLeft>0?(j.push(`${O.paddingLeft/O.scale}px`),G.push(`translateX(${-O.paddingLeft/O.scale}px)`)):j.push(0),T.style.padding=j.join(" "),G.length&&(T.style.transform=G.join(" "))):(T.style.padding=null,T.style.transform=O.originalTransform))}}};function ae(H){var Y=new J({textContent:H.textContent,textContentStream:H.textContentStream,container:H.container,viewport:H.viewport,textDivs:H.textDivs,textContentItemsStr:H.textContentItemsStr,enhanceTextSelection:H.enhanceTextSelection});return Y._render(H.timeout),Y}return ae}();d.renderTextLayer=b},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.SVGGraphics=void 0;var f=g(2),b=g(1),m=g(4);let y=function(){throw new Error("Not implemented: SVGGraphics")};d.SVGGraphics=y;{let v=function(j){let L=[];const R=[];for(const T of j){if(T.fn==="save"){L.push({fnId:92,fn:"group",items:[]}),R.push(L),L=L[L.length-1].items;continue}T.fn==="restore"?L=R.pop():L.push(T)}return L},J=function(j){if(Number.isInteger(j))return j.toString();const L=j.toFixed(10);let R=L.length-1;if(L[R]!=="0")return L;do R--;while(L[R]==="0");return L.substring(0,L[R]==="."?R:R+1)},ae=function(j){if(j[4]===0&&j[5]===0){if(j[1]===0&&j[2]===0)return j[0]===1&&j[3]===1?"":`scale(${J(j[0])} ${J(j[3])})`;if(j[0]===j[3]&&j[1]===-j[2]){const L=Math.acos(j[0])*180/Math.PI;return`rotate(${J(L)})`}}else if(j[0]===1&&j[1]===0&&j[2]===0&&j[3]===1)return`translate(${J(j[4])} ${J(j[5])})`;return`matrix(${J(j[0])} ${J(j[1])} ${J(j[2])} ${J(j[3])} ${J(j[4])} ${J(j[5])})`};const k={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},a="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/1999/xlink",w=["butt","round","square"],$=["miter","round","bevel"],Q=function(){const j=new Uint8Array([137,80,78,71,13,10,26,10]),L=12,R=new Int32Array(256);for(let S=0;S<256;S++){let A=S;for(let E=0;E<8;E++)A&1?A=3988292384^A>>1&2147483647:A=A>>1&2147483647;R[S]=A}function T(S,A,E){let _=-1;for(let D=A;D<E;D++){const N=(_^S[D])&255,U=R[N];_=_>>>8^U}return _^-1}function O(S,A,E,_){let D=_;const N=A.length;E[D]=N>>24&255,E[D+1]=N>>16&255,E[D+2]=N>>8&255,E[D+3]=N&255,D+=4,E[D]=S.charCodeAt(0)&255,E[D+1]=S.charCodeAt(1)&255,E[D+2]=S.charCodeAt(2)&255,E[D+3]=S.charCodeAt(3)&255,D+=4,E.set(A,D),D+=A.length;const U=T(E,_+4,D);E[D]=U>>24&255,E[D+1]=U>>16&255,E[D+2]=U>>8&255,E[D+3]=U&255}function P(S,A,E){let _=1,D=0;for(let N=A;N<E;++N)_=(_+(S[N]&255))%65521,D=(D+_)%65521;return D<<16|_}function B(S){if(!m.isNodeJS)return M(S);try{let A;parseInt(process.versions.node)>=8?A=S:A=Buffer.from(S);const E=require("zlib").deflateSync(A,{level:9});return E instanceof Uint8Array?E:new Uint8Array(E)}catch(A){(0,f.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+A)}return M(S)}function M(S){let A=S.length;const E=65535,_=Math.ceil(A/E),D=new Uint8Array(2+A+_*5+4);let N=0;D[N++]=120,D[N++]=156;let U=0;for(;A>E;)D[N++]=0,D[N++]=255,D[N++]=255,D[N++]=0,D[N++]=0,D.set(S.subarray(U,U+E),N),N+=E,U+=E,A-=E;D[N++]=1,D[N++]=A&255,D[N++]=A>>8&255,D[N++]=~A&65535&255,D[N++]=(~A&65535)>>8&255,D.set(S.subarray(U),N),N+=S.length-U;const z=P(S,0,S.length);return D[N++]=z>>24&255,D[N++]=z>>16&255,D[N++]=z>>8&255,D[N++]=z&255,D}function F(S,A,E,_){const D=S.width,N=S.height;let U,z,te;const W=S.data;switch(A){case f.ImageKind.GRAYSCALE_1BPP:z=0,U=1,te=D+7>>3;break;case f.ImageKind.RGB_24BPP:z=2,U=8,te=D*3;break;case f.ImageKind.RGBA_32BPP:z=6,U=8,te=D*4;break;default:throw new Error("invalid format")}const re=new Uint8Array((1+te)*N);let ee=0,X=0;for(let ce=0;ce<N;++ce)re[ee++]=0,re.set(W.subarray(X,X+te),ee),X+=te,ee+=te;if(A===f.ImageKind.GRAYSCALE_1BPP&&_){ee=0;for(let ce=0;ce<N;ce++){ee++;for(let he=0;he<te;he++)re[ee++]^=255}}const K=new Uint8Array([D>>24&255,D>>16&255,D>>8&255,D&255,N>>24&255,N>>16&255,N>>8&255,N&255,U,z,0,0,0]),Z=B(re),se=j.length+L*3+K.length+Z.length,ie=new Uint8Array(se);let de=0;return ie.set(j,de),de+=j.length,O("IHDR",K,ie,de),de+=L+K.length,O("IDATA",Z,ie,de),de+=L+Z.length,O("IEND",new Uint8Array(0),ie,de),(0,f.createObjectURL)(ie,"image/png",E)}return function(A,E,_){const D=A.kind===void 0?f.ImageKind.GRAYSCALE_1BPP:A.kind;return F(A,D,E,_)}}();class C{constructor(){this.fontSizeScale=1,this.fontWeight=k.fontWeight,this.fontSize=0,this.textMatrix=f.IDENTITY_MATRIX,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=f.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=k.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(L,R){this.x=L,this.y=R}}let H=0,Y=0,G=0;d.SVGGraphics=y=class{constructor(L,R,T=!1){this.svgFactory=new b.DOMSVGFactory,this.current=new C,this.transformMatrix=f.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=L,this.objs=R,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!T,this._operatorIdMapping=[];for(const O in f.OPS)this._operatorIdMapping[f.OPS[O]]=O}save(){this.transformStack.push(this.transformMatrix);const L=this.current;this.extraStack.push(L),this.current=L.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(L){this.save(),this.executeOpTree(L),this.restore()}loadDependencies(L){const R=L.fnArray,T=L.argsArray;for(let O=0,P=R.length;O<P;O++)if(R[O]===f.OPS.dependency)for(const B of T[O]){const M=B.startsWith("g_")?this.commonObjs:this.objs,F=new Promise(S=>{M.get(B,S)});this.current.dependencies.push(F)}return Promise.all(this.current.dependencies)}transform(L,R,T,O,P,B){const M=[L,R,T,O,P,B];this.transformMatrix=f.Util.transform(this.transformMatrix,M),this.tgrp=null}getSVG(L,R){this.viewport=R;const T=this._initialize(R);return this.loadDependencies(L).then(()=>(this.transformMatrix=f.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(L)),T))}convertOpList(L){const R=this._operatorIdMapping,T=L.argsArray,O=L.fnArray,P=[];for(let B=0,M=O.length;B<M;B++){const F=O[B];P.push({fnId:F,fn:R[F],args:T[B]})}return v(P)}executeOpTree(L){for(const R of L){const T=R.fn,O=R.fnId,P=R.args;switch(O|0){case f.OPS.beginText:this.beginText();break;case f.OPS.dependency:break;case f.OPS.setLeading:this.setLeading(P);break;case f.OPS.setLeadingMoveText:this.setLeadingMoveText(P[0],P[1]);break;case f.OPS.setFont:this.setFont(P);break;case f.OPS.showText:this.showText(P[0]);break;case f.OPS.showSpacedText:this.showText(P[0]);break;case f.OPS.endText:this.endText();break;case f.OPS.moveText:this.moveText(P[0],P[1]);break;case f.OPS.setCharSpacing:this.setCharSpacing(P[0]);break;case f.OPS.setWordSpacing:this.setWordSpacing(P[0]);break;case f.OPS.setHScale:this.setHScale(P[0]);break;case f.OPS.setTextMatrix:this.setTextMatrix(P[0],P[1],P[2],P[3],P[4],P[5]);break;case f.OPS.setTextRise:this.setTextRise(P[0]);break;case f.OPS.setTextRenderingMode:this.setTextRenderingMode(P[0]);break;case f.OPS.setLineWidth:this.setLineWidth(P[0]);break;case f.OPS.setLineJoin:this.setLineJoin(P[0]);break;case f.OPS.setLineCap:this.setLineCap(P[0]);break;case f.OPS.setMiterLimit:this.setMiterLimit(P[0]);break;case f.OPS.setFillRGBColor:this.setFillRGBColor(P[0],P[1],P[2]);break;case f.OPS.setStrokeRGBColor:this.setStrokeRGBColor(P[0],P[1],P[2]);break;case f.OPS.setStrokeColorN:this.setStrokeColorN(P);break;case f.OPS.setFillColorN:this.setFillColorN(P);break;case f.OPS.shadingFill:this.shadingFill(P[0]);break;case f.OPS.setDash:this.setDash(P[0],P[1]);break;case f.OPS.setRenderingIntent:this.setRenderingIntent(P[0]);break;case f.OPS.setFlatness:this.setFlatness(P[0]);break;case f.OPS.setGState:this.setGState(P[0]);break;case f.OPS.fill:this.fill();break;case f.OPS.eoFill:this.eoFill();break;case f.OPS.stroke:this.stroke();break;case f.OPS.fillStroke:this.fillStroke();break;case f.OPS.eoFillStroke:this.eoFillStroke();break;case f.OPS.clip:this.clip("nonzero");break;case f.OPS.eoClip:this.clip("evenodd");break;case f.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case f.OPS.paintImageXObject:this.paintImageXObject(P[0]);break;case f.OPS.paintInlineImageXObject:this.paintInlineImageXObject(P[0]);break;case f.OPS.paintImageMaskXObject:this.paintImageMaskXObject(P[0]);break;case f.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(P[0],P[1]);break;case f.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case f.OPS.closePath:this.closePath();break;case f.OPS.closeStroke:this.closeStroke();break;case f.OPS.closeFillStroke:this.closeFillStroke();break;case f.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case f.OPS.nextLine:this.nextLine();break;case f.OPS.transform:this.transform(P[0],P[1],P[2],P[3],P[4],P[5]);break;case f.OPS.constructPath:this.constructPath(P[0],P[1]);break;case f.OPS.endPath:this.endPath();break;case 92:this.group(R.items);break;default:(0,f.warn)(`Unimplemented operator ${T}`);break}}}setWordSpacing(L){this.current.wordSpacing=L}setCharSpacing(L){this.current.charSpacing=L}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(L,R,T,O,P,B){const M=this.current;M.textMatrix=M.lineMatrix=[L,R,T,O,P,B],M.textMatrixScale=Math.sqrt(L*L+R*R),M.x=M.lineX=0,M.y=M.lineY=0,M.xcoords=[],M.ycoords=[],M.tspan=this.svgFactory.createElement("svg:tspan"),M.tspan.setAttributeNS(null,"font-family",M.fontFamily),M.tspan.setAttributeNS(null,"font-size",`${J(M.fontSize)}px`),M.tspan.setAttributeNS(null,"y",J(-M.y)),M.txtElement=this.svgFactory.createElement("svg:text"),M.txtElement.appendChild(M.tspan)}beginText(){const L=this.current;L.x=L.lineX=0,L.y=L.lineY=0,L.textMatrix=f.IDENTITY_MATRIX,L.lineMatrix=f.IDENTITY_MATRIX,L.textMatrixScale=1,L.tspan=this.svgFactory.createElement("svg:tspan"),L.txtElement=this.svgFactory.createElement("svg:text"),L.txtgrp=this.svgFactory.createElement("svg:g"),L.xcoords=[],L.ycoords=[]}moveText(L,R){const T=this.current;T.x=T.lineX+=L,T.y=T.lineY+=R,T.xcoords=[],T.ycoords=[],T.tspan=this.svgFactory.createElement("svg:tspan"),T.tspan.setAttributeNS(null,"font-family",T.fontFamily),T.tspan.setAttributeNS(null,"font-size",`${J(T.fontSize)}px`),T.tspan.setAttributeNS(null,"y",J(-T.y))}showText(L){const R=this.current,T=R.font,O=R.fontSize;if(O===0)return;const P=R.fontSizeScale,B=R.charSpacing,M=R.wordSpacing,F=R.fontDirection,S=R.textHScale*F,A=T.vertical,E=A?1:-1,_=T.defaultVMetrics,D=O*R.fontMatrix[0];let N=0;for(const te of L){if(te===null){N+=F*M;continue}else if((0,f.isNum)(te)){N+=E*te*O/1e3;continue}const W=(te.isSpace?M:0)+B,re=te.fontChar;let ee,X,K=te.width;if(A){let se;const ie=te.vmetric||_;se=te.vmetric?ie[1]:K*.5,se=-se*D;const de=ie[2]*D;K=ie?-ie[0]:K,ee=se/P,X=(N+de)/P}else ee=N/P,X=0;(te.isInFont||T.missingFile)&&(R.xcoords.push(R.x+ee),A&&R.ycoords.push(-R.y+X),R.tspan.textContent+=re);let Z;A?Z=K*D-W*F:Z=K*D+W*F,N+=Z}R.tspan.setAttributeNS(null,"x",R.xcoords.map(J).join(" ")),A?R.tspan.setAttributeNS(null,"y",R.ycoords.map(J).join(" ")):R.tspan.setAttributeNS(null,"y",J(-R.y)),A?R.y-=N:R.x+=N*S,R.tspan.setAttributeNS(null,"font-family",R.fontFamily),R.tspan.setAttributeNS(null,"font-size",`${J(R.fontSize)}px`),R.fontStyle!==k.fontStyle&&R.tspan.setAttributeNS(null,"font-style",R.fontStyle),R.fontWeight!==k.fontWeight&&R.tspan.setAttributeNS(null,"font-weight",R.fontWeight);const U=R.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;if(U===f.TextRenderingMode.FILL||U===f.TextRenderingMode.FILL_STROKE?(R.fillColor!==k.fillColor&&R.tspan.setAttributeNS(null,"fill",R.fillColor),R.fillAlpha<1&&R.tspan.setAttributeNS(null,"fill-opacity",R.fillAlpha)):R.textRenderingMode===f.TextRenderingMode.ADD_TO_PATH?R.tspan.setAttributeNS(null,"fill","transparent"):R.tspan.setAttributeNS(null,"fill","none"),U===f.TextRenderingMode.STROKE||U===f.TextRenderingMode.FILL_STROKE){const te=1/(R.textMatrixScale||1);this._setStrokeAttributes(R.tspan,te)}let z=R.textMatrix;R.textRise!==0&&(z=z.slice(),z[5]+=R.textRise),R.txtElement.setAttributeNS(null,"transform",`${ae(z)} scale(${J(S)}, -1)`),R.txtElement.setAttributeNS(a,"xml:space","preserve"),R.txtElement.appendChild(R.tspan),R.txtgrp.appendChild(R.txtElement),this._ensureTransformGroup().appendChild(R.txtElement)}setLeadingMoveText(L,R){this.setLeading(-R),this.moveText(L,R)}addFontStyle(L){if(!L.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const R=(0,f.createObjectURL)(L.data,L.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${L.loadedName}"; src: url(${R}); }
|
|
84
|
+
`}setFont(L){const R=this.current,T=this.commonObjs.get(L[0]);let O=L[1];R.font=T,this.embedFonts&&!T.missingFile&&!this.embeddedFonts[T.loadedName]&&(this.addFontStyle(T),this.embeddedFonts[T.loadedName]=T),R.fontMatrix=T.fontMatrix?T.fontMatrix:f.FONT_IDENTITY_MATRIX;let P="normal";T.black?P="900":T.bold&&(P="bold");const B=T.italic?"italic":"normal";O<0?(O=-O,R.fontDirection=-1):R.fontDirection=1,R.fontSize=O,R.fontFamily=T.loadedName,R.fontWeight=P,R.fontStyle=B,R.tspan=this.svgFactory.createElement("svg:tspan"),R.tspan.setAttributeNS(null,"y",J(-R.y)),R.xcoords=[],R.ycoords=[]}endText(){const L=this.current;L.textRenderingMode&f.TextRenderingMode.ADD_TO_PATH_FLAG&&L.txtElement&&L.txtElement.hasChildNodes()&&(L.element=L.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(L){L>0&&(this.current.lineWidth=L)}setLineCap(L){this.current.lineCap=w[L]}setLineJoin(L){this.current.lineJoin=$[L]}setMiterLimit(L){this.current.miterLimit=L}setStrokeAlpha(L){this.current.strokeAlpha=L}setStrokeRGBColor(L,R,T){this.current.strokeColor=f.Util.makeCssRgb(L,R,T)}setFillAlpha(L){this.current.fillAlpha=L}setFillRGBColor(L,R,T){this.current.fillColor=f.Util.makeCssRgb(L,R,T),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(L){this.current.strokeColor=this._makeColorN_Pattern(L)}setFillColorN(L){this.current.fillColor=this._makeColorN_Pattern(L)}shadingFill(L){const R=this.viewport.width,T=this.viewport.height,O=f.Util.inverseTransform(this.transformMatrix),P=f.Util.applyTransform([0,0],O),B=f.Util.applyTransform([0,T],O),M=f.Util.applyTransform([R,0],O),F=f.Util.applyTransform([R,T],O),S=Math.min(P[0],B[0],M[0],F[0]),A=Math.min(P[1],B[1],M[1],F[1]),E=Math.max(P[0],B[0],M[0],F[0]),_=Math.max(P[1],B[1],M[1],F[1]),D=this.svgFactory.createElement("svg:rect");D.setAttributeNS(null,"x",S),D.setAttributeNS(null,"y",A),D.setAttributeNS(null,"width",E-S),D.setAttributeNS(null,"height",_-A),D.setAttributeNS(null,"fill",this._makeShadingPattern(L)),this.current.fillAlpha<1&&D.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(D)}_makeColorN_Pattern(L){return L[0]==="TilingPattern"?this._makeTilingPattern(L):this._makeShadingPattern(L)}_makeTilingPattern(L){const R=L[1],T=L[2],O=L[3]||f.IDENTITY_MATRIX,[P,B,M,F]=L[4],S=L[5],A=L[6],E=L[7],_=`shading${G++}`,[D,N]=f.Util.applyTransform([P,B],O),[U,z]=f.Util.applyTransform([M,F],O),[te,W]=f.Util.singularValueDecompose2dScale(O),re=S*te,ee=A*W,X=this.svgFactory.createElement("svg:pattern");X.setAttributeNS(null,"id",_),X.setAttributeNS(null,"patternUnits","userSpaceOnUse"),X.setAttributeNS(null,"width",re),X.setAttributeNS(null,"height",ee),X.setAttributeNS(null,"x",`${D}`),X.setAttributeNS(null,"y",`${N}`);const K=this.svg,Z=this.transformMatrix,se=this.current.fillColor,ie=this.current.strokeColor,de=this.svgFactory.create(U-D,z-N);if(this.svg=de,this.transformMatrix=O,E===2){const ce=f.Util.makeCssRgb(...R);this.current.fillColor=ce,this.current.strokeColor=ce}return this.executeOpTree(this.convertOpList(T)),this.svg=K,this.transformMatrix=Z,this.current.fillColor=se,this.current.strokeColor=ie,X.appendChild(de.childNodes[0]),this.defs.appendChild(X),`url(#${_})`}_makeShadingPattern(L){switch(L[0]){case"RadialAxial":const R=`shading${G++}`,T=L[3];let O;switch(L[1]){case"axial":const P=L[4],B=L[5];O=this.svgFactory.createElement("svg:linearGradient"),O.setAttributeNS(null,"id",R),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"x1",P[0]),O.setAttributeNS(null,"y1",P[1]),O.setAttributeNS(null,"x2",B[0]),O.setAttributeNS(null,"y2",B[1]);break;case"radial":const M=L[4],F=L[5],S=L[6],A=L[7];O=this.svgFactory.createElement("svg:radialGradient"),O.setAttributeNS(null,"id",R),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"cx",F[0]),O.setAttributeNS(null,"cy",F[1]),O.setAttributeNS(null,"r",A),O.setAttributeNS(null,"fx",M[0]),O.setAttributeNS(null,"fy",M[1]),O.setAttributeNS(null,"fr",S);break;default:throw new Error(`Unknown RadialAxial type: ${L[1]}`)}for(const P of T){const B=this.svgFactory.createElement("svg:stop");B.setAttributeNS(null,"offset",P[0]),B.setAttributeNS(null,"stop-color",P[1]),O.appendChild(B)}return this.defs.appendChild(O),`url(#${R})`;case"Mesh":return(0,f.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${L[0]}`)}}setDash(L,R){this.current.dashArray=L,this.current.dashPhase=R}constructPath(L,R){const T=this.current;let O=T.x,P=T.y,B=[],M=0;for(const F of L)switch(F|0){case f.OPS.rectangle:O=R[M++],P=R[M++];const S=R[M++],A=R[M++],E=O+S,_=P+A;B.push("M",J(O),J(P),"L",J(E),J(P),"L",J(E),J(_),"L",J(O),J(_),"Z");break;case f.OPS.moveTo:O=R[M++],P=R[M++],B.push("M",J(O),J(P));break;case f.OPS.lineTo:O=R[M++],P=R[M++],B.push("L",J(O),J(P));break;case f.OPS.curveTo:O=R[M+4],P=R[M+5],B.push("C",J(R[M]),J(R[M+1]),J(R[M+2]),J(R[M+3]),J(O),J(P)),M+=6;break;case f.OPS.curveTo2:B.push("C",J(O),J(P),J(R[M]),J(R[M+1]),J(R[M+2]),J(R[M+3])),O=R[M+2],P=R[M+3],M+=4;break;case f.OPS.curveTo3:O=R[M+2],P=R[M+3],B.push("C",J(R[M]),J(R[M+1]),J(O),J(P),J(O),J(P)),M+=4;break;case f.OPS.closePath:B.push("Z");break}B=B.join(" "),T.path&&L.length>0&&L[0]!==f.OPS.rectangle&&L[0]!==f.OPS.moveTo?B=T.path.getAttributeNS(null,"d")+B:(T.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(T.path)),T.path.setAttributeNS(null,"d",B),T.path.setAttributeNS(null,"fill","none"),T.element=T.path,T.setCurrentPoint(O,P)}endPath(){const L=this.current;if(L.path=null,!this.pendingClip)return;if(!L.element){this.pendingClip=null;return}const R=`clippath${H++}`,T=this.svgFactory.createElement("svg:clipPath");T.setAttributeNS(null,"id",R),T.setAttributeNS(null,"transform",ae(this.transformMatrix));const O=L.element.cloneNode(!0);this.pendingClip==="evenodd"?O.setAttributeNS(null,"clip-rule","evenodd"):O.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,T.appendChild(O),this.defs.appendChild(T),L.activeClipUrl&&(L.clipGroup=null,this.extraStack.forEach(function(P){P.clipGroup=null}),T.setAttributeNS(null,"clip-path",L.activeClipUrl)),L.activeClipUrl=`url(#${R})`,this.tgrp=null}clip(L){this.pendingClip=L}closePath(){const L=this.current;if(L.path){const R=`${L.path.getAttributeNS(null,"d")}Z`;L.path.setAttributeNS(null,"d",R)}}setLeading(L){this.current.leading=-L}setTextRise(L){this.current.textRise=L}setTextRenderingMode(L){this.current.textRenderingMode=L}setHScale(L){this.current.textHScale=L/100}setRenderingIntent(L){}setFlatness(L){}setGState(L){for(const[R,T]of L)switch(R){case"LW":this.setLineWidth(T);break;case"LC":this.setLineCap(T);break;case"LJ":this.setLineJoin(T);break;case"ML":this.setMiterLimit(T);break;case"D":this.setDash(T[0],T[1]);break;case"RI":this.setRenderingIntent(T);break;case"FL":this.setFlatness(T);break;case"Font":this.setFont(T);break;case"CA":this.setStrokeAlpha(T);break;case"ca":this.setFillAlpha(T);break;default:(0,f.warn)(`Unimplemented graphic state operator ${R}`);break}}fill(){const L=this.current;L.element&&(L.element.setAttributeNS(null,"fill",L.fillColor),L.element.setAttributeNS(null,"fill-opacity",L.fillAlpha),this.endPath())}stroke(){const L=this.current;L.element&&(this._setStrokeAttributes(L.element),L.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(L,R=1){const T=this.current;let O=T.dashArray;R!==1&&O.length>0&&(O=O.map(function(P){return R*P})),L.setAttributeNS(null,"stroke",T.strokeColor),L.setAttributeNS(null,"stroke-opacity",T.strokeAlpha),L.setAttributeNS(null,"stroke-miterlimit",J(T.miterLimit)),L.setAttributeNS(null,"stroke-linecap",T.lineCap),L.setAttributeNS(null,"stroke-linejoin",T.lineJoin),L.setAttributeNS(null,"stroke-width",J(R*T.lineWidth)+"px"),L.setAttributeNS(null,"stroke-dasharray",O.map(J).join(" ")),L.setAttributeNS(null,"stroke-dashoffset",J(R*T.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y","0"),L.setAttributeNS(null,"width","1px"),L.setAttributeNS(null,"height","1px"),L.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(L)}paintImageXObject(L){const R=this.objs.get(L);if(!R){(0,f.warn)(`Dependent image with object ID ${L} is not ready yet`);return}this.paintInlineImageXObject(R)}paintInlineImageXObject(L,R){const T=L.width,O=L.height,P=Q(L,this.forceDataSchema,!!R),B=this.svgFactory.createElement("svg:rect");B.setAttributeNS(null,"x","0"),B.setAttributeNS(null,"y","0"),B.setAttributeNS(null,"width",J(T)),B.setAttributeNS(null,"height",J(O)),this.current.element=B,this.clip("nonzero");const M=this.svgFactory.createElement("svg:image");M.setAttributeNS(q,"xlink:href",P),M.setAttributeNS(null,"x","0"),M.setAttributeNS(null,"y",J(-O)),M.setAttributeNS(null,"width",J(T)+"px"),M.setAttributeNS(null,"height",J(O)+"px"),M.setAttributeNS(null,"transform",`scale(${J(1/T)} ${J(-1/O)})`),R?R.appendChild(M):this._ensureTransformGroup().appendChild(M)}paintImageMaskXObject(L){const R=this.current,T=L.width,O=L.height,P=R.fillColor;R.maskId=`mask${Y++}`;const B=this.svgFactory.createElement("svg:mask");B.setAttributeNS(null,"id",R.maskId);const M=this.svgFactory.createElement("svg:rect");M.setAttributeNS(null,"x","0"),M.setAttributeNS(null,"y","0"),M.setAttributeNS(null,"width",J(T)),M.setAttributeNS(null,"height",J(O)),M.setAttributeNS(null,"fill",P),M.setAttributeNS(null,"mask",`url(#${R.maskId})`),this.defs.appendChild(B),this._ensureTransformGroup().appendChild(M),this.paintInlineImageXObject(L,B)}paintFormXObjectBegin(L,R){if(Array.isArray(L)&&L.length===6&&this.transform(L[0],L[1],L[2],L[3],L[4],L[5]),R){const T=R[2]-R[0],O=R[3]-R[1],P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x",R[0]),P.setAttributeNS(null,"y",R[1]),P.setAttributeNS(null,"width",J(T)),P.setAttributeNS(null,"height",J(O)),this.current.element=P,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(L){const R=this.svgFactory.create(L.width,L.height),T=this.svgFactory.createElement("svg:defs");R.appendChild(T),this.defs=T;const O=this.svgFactory.createElement("svg:g");return O.setAttributeNS(null,"transform",ae(L.transform)),R.appendChild(O),this.svg=O,R}_ensureClipGroup(){if(!this.current.clipGroup){const L=this.svgFactory.createElement("svg:g");L.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(L),this.current.clipGroup=L}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",ae(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNodeStream=void 0;var f=g(2),b=g(20);const m=require$$3,y=require$$3,k=require$$3,a=require$$3,q=/^file:\/\/\/[a-zA-Z]:\//;function w(G){const j=a.parse(G);return j.protocol==="file:"||j.host?j:/^[a-z]:[/\\]/i.test(G)?a.parse(`file:///${G}`):(j.host||(j.protocol="file:"),j)}class ${constructor(j){this.source=j,this.url=w(j.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&j.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,f.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new H(this):new J(this),this._fullRequestReader}getRangeReader(j,L){if(L<=this._progressiveDataLength)return null;const R=this.isFsUrl?new Y(this,j,L):new ae(this,j,L);return this._rangeRequestReaders.push(R),R}cancelAllRequests(j){this._fullRequestReader&&this._fullRequestReader.cancel(j),this._rangeRequestReaders.slice(0).forEach(function(R){R.cancel(j)})}}d.PDFNodeStream=$;class Q{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null;const L=j.source;this._contentLength=L.length,this._loaded=0,this._filename=null,this._disableRange=L.disableRange||!1,this._rangeChunkSize=L.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!L.disableStream,this._isRangeSupported=!L.disableRange,this._readableStream=null,this._readCapability=(0,f.createPromiseCapability)(),this._headersCapability=(0,f.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=(0,f.createPromiseCapability)(),this.read()):(this._loaded+=j.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",L=>{this._error(L)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new f.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class C{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,f.createPromiseCapability)();const L=j.source;this._isStreamingSupported=!L.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=(0,f.createPromiseCapability)(),this.read()):(this._loaded+=j.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",L=>{this._error(L)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function v(G,j){return{protocol:G.protocol,auth:G.auth,host:G.hostname,port:G.port,path:G.path,method:"GET",headers:j}}class J extends Q{constructor(j){super(j);const L=R=>{if(R.statusCode===404){const B=new f.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=B,this._headersCapability.reject(B);return}this._headersCapability.resolve(),this._setReadableStream(R);const T=B=>this._readableStream.headers[B.toLowerCase()],{allowRangeRequests:O,suggestedLength:P}=(0,b.validateRangeRequestCapabilities)({getResponseHeader:T,isHttp:j.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=O,this._contentLength=P||this._contentLength,this._filename=(0,b.extractFilenameFromHeader)(T)};this._request=null,this._url.protocol==="http:"?this._request=y.request(v(this._url,j.httpHeaders),L):this._request=k.request(v(this._url,j.httpHeaders),L),this._request.on("error",R=>{this._storedError=R,this._headersCapability.reject(R)}),this._request.end()}}class ae extends C{constructor(j,L,R){super(j),this._httpHeaders={};for(const O in j.httpHeaders){const P=j.httpHeaders[O];typeof P!="undefined"&&(this._httpHeaders[O]=P)}this._httpHeaders.Range=`bytes=${L}-${R-1}`;const T=O=>{if(O.statusCode===404){const P=new f.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=P;return}this._setReadableStream(O)};this._request=null,this._url.protocol==="http:"?this._request=y.request(v(this._url,this._httpHeaders),T):this._request=k.request(v(this._url,this._httpHeaders),T),this._request.on("error",O=>{this._storedError=O}),this._request.end()}}class H extends Q{constructor(j){super(j);let L=decodeURIComponent(this._url.path);q.test(this._url.href)&&(L=L.replace(/^\//,"")),m.lstat(L,(R,T)=>{if(R){R.code==="ENOENT"&&(R=new f.MissingPDFException(`Missing PDF "${L}".`)),this._storedError=R,this._headersCapability.reject(R);return}this._contentLength=T.size,this._setReadableStream(m.createReadStream(L)),this._headersCapability.resolve()})}}class Y extends C{constructor(j,L,R){super(j);let T=decodeURIComponent(this._url.path);q.test(this._url.href)&&(T=T.replace(/^\//,"")),this._setReadableStream(m.createReadStream(T,{start:L,end:R-1}))}}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.createResponseStatusError=k,d.extractFilenameFromHeader=y,d.validateRangeRequestCapabilities=m,d.validateResponseStatus=a;var f=g(2),b=g(21);function m({getResponseHeader:q,isHttp:w,rangeChunkSize:$,disableRange:Q}){(0,f.assert)($>0,"Range chunk size must be larger than zero");const C={allowRangeRequests:!1,suggestedLength:void 0},v=parseInt(q("Content-Length"),10);return!Number.isInteger(v)||(C.suggestedLength=v,v<=2*$)||Q||!w||q("Accept-Ranges")!=="bytes"||(q("Content-Encoding")||"identity")!=="identity"||(C.allowRangeRequests=!0),C}function y(q){const w=q("Content-Disposition");if(w){let $=(0,b.getFilenameFromContentDispositionHeader)(w);if($.includes("%"))try{$=decodeURIComponent($)}catch{}if(/\.pdf$/i.test($))return $}return null}function k(q,w){return q===404||q===0&&w.startsWith("file:")?new f.MissingPDFException('Missing PDF "'+w+'".'):new f.UnexpectedResponseException("Unexpected server response ("+q+') while retrieving PDF "'+w+'".',q)}function a(q){return q===200||q===206}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.getFilenameFromContentDispositionHeader=f;function f(b){let m=!0,y=k("filename\\*","i").exec(b);if(y){y=y[1];let v=$(y);return v=unescape(v),v=Q(v),v=C(v),q(v)}if(y=w(b),y){const v=C(y);return q(v)}if(y=k("filename","i").exec(b),y){y=y[1];let v=$(y);return v=C(v),q(v)}function k(v,J){return new RegExp("(?:^|;)\\s*"+v+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',J)}function a(v,J){if(v){if(!/^[\x00-\xFF]+$/.test(J))return J;try{const ae=new TextDecoder(v,{fatal:!0}),H=Array.from(J,function(Y){return Y.charCodeAt(0)&255});J=ae.decode(new Uint8Array(H)),m=!1}catch{if(/^utf-?8$/i.test(v))try{J=decodeURIComponent(escape(J)),m=!1}catch{}}}return J}function q(v){return m&&/[\x80-\xff]/.test(v)&&(v=a("utf-8",v),m&&(v=a("iso-8859-1",v))),v}function w(v){const J=[];let ae;const H=k("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(ae=H.exec(v))!==null;){let[,G,j,L]=ae;if(G=parseInt(G,10),G in J){if(G===0)break;continue}J[G]=[j,L]}const Y=[];for(let G=0;G<J.length&&G in J;++G){let[j,L]=J[G];L=$(L),j&&(L=unescape(L),G===0&&(L=Q(L))),Y.push(L)}return Y.join("")}function $(v){if(v.startsWith('"')){const J=v.slice(1).split('\\"');for(let ae=0;ae<J.length;++ae){const H=J[ae].indexOf('"');H!==-1&&(J[ae]=J[ae].slice(0,H),J.length=ae+1),J[ae]=J[ae].replace(/\\(.)/g,"$1")}v=J.join('"')}return v}function Q(v){const J=v.indexOf("'");if(J===-1)return v;const ae=v.slice(0,J),Y=v.slice(J+1).replace(/^[^']*'/,"");return a(ae,Y)}function C(v){return!v.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(v)?v:v.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(J,ae,H,Y){if(H==="q"||H==="Q")return Y=Y.replace(/_/g," "),Y=Y.replace(/=([0-9a-fA-F]{2})/g,function(G,j){return String.fromCharCode(parseInt(j,16))}),a(ae,Y);try{Y=atob(Y)}catch{}return a(ae,Y)})}return""}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFNetworkStream=void 0;var f=g(2),b=g(20);const m=200,y=206;function k(Q){const C=Q.response;return typeof C!="string"?C:(0,f.stringToBytes)(C).buffer}class a{constructor(C,v){this.url=C,v=v||{},this.isHttp=/^https?:/i.test(C),this.httpHeaders=this.isHttp&&v.httpHeaders||{},this.withCredentials=v.withCredentials||!1,this.getXhr=v.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(C,v,J){const ae={begin:C,end:v};for(const H in J)ae[H]=J[H];return this.request(ae)}requestFull(C){return this.request(C)}request(C){const v=this.getXhr(),J=this.currXhrId++,ae=this.pendingRequests[J]={xhr:v};v.open("GET",this.url),v.withCredentials=this.withCredentials;for(const H in this.httpHeaders){const Y=this.httpHeaders[H];typeof Y!="undefined"&&v.setRequestHeader(H,Y)}return this.isHttp&&"begin"in C&&"end"in C?(v.setRequestHeader("Range",`bytes=${C.begin}-${C.end-1}`),ae.expectedStatus=y):ae.expectedStatus=m,v.responseType="arraybuffer",C.onError&&(v.onerror=function(H){C.onError(v.status)}),v.onreadystatechange=this.onStateChange.bind(this,J),v.onprogress=this.onProgress.bind(this,J),ae.onHeadersReceived=C.onHeadersReceived,ae.onDone=C.onDone,ae.onError=C.onError,ae.onProgress=C.onProgress,v.send(null),J}onProgress(C,v){const J=this.pendingRequests[C];!J||J.onProgress&&J.onProgress(v)}onStateChange(C,v){const J=this.pendingRequests[C];if(!J)return;const ae=J.xhr;if(ae.readyState>=2&&J.onHeadersReceived&&(J.onHeadersReceived(),delete J.onHeadersReceived),ae.readyState!==4||!(C in this.pendingRequests))return;if(delete this.pendingRequests[C],ae.status===0&&this.isHttp){J.onError&&J.onError(ae.status);return}const H=ae.status||m;if(!(H===m&&J.expectedStatus===y)&&H!==J.expectedStatus){J.onError&&J.onError(ae.status);return}const G=k(ae);if(H===y){const j=ae.getResponseHeader("Content-Range"),L=/bytes (\d+)-(\d+)\/(\d+)/.exec(j);J.onDone({begin:parseInt(L[1],10),chunk:G})}else G?J.onDone({begin:0,chunk:G}):J.onError&&J.onError(ae.status)}hasPendingRequests(){for(const C in this.pendingRequests)return!0;return!1}getRequestXhr(C){return this.pendingRequests[C].xhr}isPendingRequest(C){return C in this.pendingRequests}abortAllRequests(){for(const C in this.pendingRequests)this.abortRequest(C|0)}abortRequest(C){const v=this.pendingRequests[C].xhr;delete this.pendingRequests[C],v.abort()}}class q{constructor(C){this._source=C,this._manager=new a(C.url,{httpHeaders:C.httpHeaders,withCredentials:C.withCredentials}),this._rangeChunkSize=C.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(C){const v=this._rangeRequestReaders.indexOf(C);v>=0&&this._rangeRequestReaders.splice(v,1)}getFullReader(){return(0,f.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new w(this._manager,this._source),this._fullRequestReader}getRangeReader(C,v){const J=new $(this._manager,C,v);return J.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(J),J}cancelAllRequests(C){this._fullRequestReader&&this._fullRequestReader.cancel(C),this._rangeRequestReaders.slice(0).forEach(function(J){J.cancel(C)})}}d.PDFNetworkStream=q;class w{constructor(C,v){this._manager=C;const J={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=v.url,this._fullRequestId=C.requestFull(J),this._headersReceivedCapability=(0,f.createPromiseCapability)(),this._disableRange=v.disableRange||!1,this._contentLength=v.length,this._rangeChunkSize=v.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const C=this._fullRequestId,v=this._manager.getRequestXhr(C),J=Y=>v.getResponseHeader(Y),{allowRangeRequests:ae,suggestedLength:H}=(0,b.validateRangeRequestCapabilities)({getResponseHeader:J,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});ae&&(this._isRangeSupported=!0),this._contentLength=H||this._contentLength,this._filename=(0,b.extractFilenameFromHeader)(J),this._isRangeSupported&&this._manager.abortRequest(C),this._headersReceivedCapability.resolve()}_onDone(C){C&&(this._requests.length>0?this._requests.shift().resolve({value:C.chunk,done:!1}):this._cachedChunks.push(C.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(v){v.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(C){const v=this._url,J=(0,b.createResponseStatusError)(C,v);this._storedError=J,this._headersReceivedCapability.reject(J),this._requests.forEach(function(ae){ae.reject(J)}),this._requests=[],this._cachedChunks=[]}_onProgress(C){this.onProgress&&this.onProgress({loaded:C.loaded,total:C.lengthComputable?C.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const C=(0,f.createPromiseCapability)();return this._requests.push(C),C.promise}cancel(C){this._done=!0,this._headersReceivedCapability.reject(C),this._requests.forEach(function(v){v.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class ${constructor(C,v,J){this._manager=C;const ae={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=C.requestRange(v,J,ae),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(C){const v=C.chunk;this._requests.length>0?this._requests.shift().resolve({value:v,done:!1}):this._queuedChunk=v,this._done=!0,this._requests.forEach(function(J){J.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(C){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:C.loaded})}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk!==null){const v=this._queuedChunk;return this._queuedChunk=null,{value:v,done:!1}}if(this._done)return{value:void 0,done:!0};const C=(0,f.createPromiseCapability)();return this._requests.push(C),C.promise}cancel(C){this._done=!0,this._requests.forEach(function(v){v.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(u,d,g){Object.defineProperty(d,"__esModule",{value:!0}),d.PDFFetchStream=void 0;var f=g(2),b=g(20);function m(w,$,Q){return{method:"GET",headers:w,signal:Q&&Q.signal,mode:"cors",credentials:$?"include":"same-origin",redirect:"follow"}}function y(w){const $=new Headers;for(const Q in w){const C=w[Q];typeof C!="undefined"&&$.append(Q,C)}return $}class k{constructor($){this.source=$,this.isHttp=/^https?:/i.test($.url),this.httpHeaders=this.isHttp&&$.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,f.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new a(this),this._fullRequestReader}getRangeReader($,Q){if(Q<=this._progressiveDataLength)return null;const C=new q(this,$,Q);return this._rangeRequestReaders.push(C),C}cancelAllRequests($){this._fullRequestReader&&this._fullRequestReader.cancel($),this._rangeRequestReaders.slice(0).forEach(function(C){C.cancel($)})}}d.PDFFetchStream=k;class a{constructor($){this._stream=$,this._reader=null,this._loaded=0,this._filename=null;const Q=$.source;this._withCredentials=Q.withCredentials||!1,this._contentLength=Q.length,this._headersCapability=(0,f.createPromiseCapability)(),this._disableRange=Q.disableRange||!1,this._rangeChunkSize=Q.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!Q.disableStream,this._isRangeSupported=!Q.disableRange,this._headers=y(this._stream.httpHeaders);const C=Q.url;fetch(C,m(this._headers,this._withCredentials,this._abortController)).then(v=>{if(!(0,b.validateResponseStatus)(v.status))throw(0,b.createResponseStatusError)(v.status,C);this._reader=v.body.getReader(),this._headersCapability.resolve();const J=Y=>v.headers.get(Y),{allowRangeRequests:ae,suggestedLength:H}=(0,b.validateRangeRequestCapabilities)({getResponseHeader:J,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=ae,this._contentLength=H||this._contentLength,this._filename=(0,b.extractFilenameFromHeader)(J),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new f.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:$,done:Q}=await this._reader.read();return Q?{value:$,done:Q}:(this._loaded+=$.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array($).buffer,done:!1})}cancel($){this._reader&&this._reader.cancel($),this._abortController&&this._abortController.abort()}}class q{constructor($,Q,C){this._stream=$,this._reader=null,this._loaded=0;const v=$.source;this._withCredentials=v.withCredentials||!1,this._readCapability=(0,f.createPromiseCapability)(),this._isStreamingSupported=!v.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=y(this._stream.httpHeaders),this._headers.append("Range",`bytes=${Q}-${C-1}`);const J=v.url;fetch(J,m(this._headers,this._withCredentials,this._abortController)).then(ae=>{if(!(0,b.validateResponseStatus)(ae.status))throw(0,b.createResponseStatusError)(ae.status,J);this._readCapability.resolve(),this._reader=ae.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:$,done:Q}=await this._reader.read();return Q?{value:$,done:Q}:(this._loaded+=$.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array($).buffer,done:!1})}cancel($){this._reader&&this._reader.cancel($),this._abortController&&this._abortController.abort()}}}])})})(pdf$1);var pdf_worker={exports:{}};(function(u,d){(function(f,b){u.exports=b()})(commonjsGlobal,function(){return function(g){var f={};function b(m){if(f[m])return f[m].exports;var y=f[m]={i:m,l:!1,exports:{}};return g[m].call(y.exports,y,y.exports,b),y.l=!0,y.exports}return b.m=g,b.c=f,b.d=function(m,y,k){b.o(m,y)||Object.defineProperty(m,y,{enumerable:!0,get:k})},b.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},b.t=function(m,y){if(y&1&&(m=b(m)),y&8||y&4&&typeof m=="object"&&m&&m.__esModule)return m;var k=Object.create(null);if(b.r(k),Object.defineProperty(k,"default",{enumerable:!0,value:m}),y&2&&typeof m!="string")for(var a in m)b.d(k,a,function(q){return m[q]}.bind(null,a));return k},b.n=function(m){var y=m&&m.__esModule?function(){return m.default}:function(){return m};return b.d(y,"a",y),y},b.o=function(m,y){return Object.prototype.hasOwnProperty.call(m,y)},b.p="",b(b.s=0)}([function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"WorkerMessageHandler",{enumerable:!0,get:function(){return m.WorkerMessageHandler}});var m=b(1)},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.WorkerMessageHandler=f.WorkerTask=void 0;var m=b(2),y=b(5),k=b(6),a=b(4),q=b(45),w=b(46),$=b(8),Q=function(){function ae(H){this.name=H,this.terminated=!1,this._capability=(0,m.createPromiseCapability)()}return ae.prototype={get finished(){return this._capability.promise},finish(){this._capability.resolve()},terminate(){this.terminated=!0},ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}},ae}();f.WorkerTask=Q;var C={setup(J,ae){var H=!1;J.on("test",function(G){if(H)return;if(H=!0,!(G instanceof Uint8Array)){J.send("test",null);return}const j=G[0]===255;J.postMessageTransfers=j,J.send("test",{supportTransfers:j})}),J.on("configure",function(G){(0,m.setVerbosityLevel)(G.verbosity)}),J.on("GetDocRequest",function(G){return C.createDocumentHandler(G,ae)})},createDocumentHandler(J,ae){var H,Y=!1,G=null,j=[];const L=(0,m.getVerbosityLevel)(),R=J.apiVersion,T="2.5.207";if(R!==T)throw new Error(`The API version "${R}" does not match the Worker version "${T}".`);const O=[];for(const U in[])O.push(U);if(O.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+O.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if(typeof ReadableStream=="undefined"||typeof Promise.allSettled=="undefined")throw new Error("The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.");var P=J.docId,B=J.docBaseUrl,M=J.docId+"_worker",F=new q.MessageHandler(M,P,ae);F.postMessageTransfers=J.postMessageTransfers;function S(){if(Y)throw new Error("Worker was terminated")}function A(U){j.push(U)}function E(U){U.finish();var z=j.indexOf(U);j.splice(z,1)}async function _(U){await H.ensureDoc("checkHeader"),await H.ensureDoc("parseStartXRef"),await H.ensureDoc("parse",[U]),U||await H.ensureDoc("checkFirstPage");const[z,te]=await Promise.all([H.ensureDoc("numPages"),H.ensureDoc("fingerprint")]);return{numPages:z,fingerprint:te}}function D(U,z){var te=(0,m.createPromiseCapability)();let W;var re=U.source;if(re.data){try{W=new k.LocalPdfManager(P,re.data,re.password,z,B),te.resolve(W)}catch(de){te.reject(de)}return te.promise}var ee,X=[];try{ee=new w.PDFWorkerStream(F)}catch(de){return te.reject(de),te.promise}var K=ee.getFullReader();K.headersReady.then(function(){if(!!K.isRangeSupported){var de=re.disableAutoFetch||K.isStreamingSupported;W=new k.NetworkPdfManager(P,ee,{msgHandler:F,password:re.password,length:K.contentLength,disableAutoFetch:de,rangeChunkSize:re.rangeChunkSize},z,B);for(let ce=0;ce<X.length;ce++)W.sendProgressiveData(X[ce]);X=[],te.resolve(W),G=null}}).catch(function(de){te.reject(de),G=null});var Z=0,se=function(){var de=(0,m.arraysToBytes)(X);re.length&&de.length!==re.length&&(0,m.warn)("reported HTTP length is different from actual");try{W=new k.LocalPdfManager(P,de,re.password,z,B),te.resolve(W)}catch(ce){te.reject(ce)}X=[]},ie=new Promise(function(de,ce){var he=function({value:oe,done:ne}){try{if(S(),ne){W||se(),G=null;return}Z+=(0,m.arrayByteLength)(oe),K.isStreamingSupported||F.send("DocProgress",{loaded:Z,total:Math.max(Z,K.contentLength||0)}),W?W.sendProgressiveData(oe):X.push(oe),K.read().then(he,ce)}catch(ue){ce(ue)}};K.read().then(he,ce)});return ie.catch(function(de){te.reject(de),G=null}),G=function(de){ee.cancelAllRequests(de)},te.promise}function N(U){function z(ee){S(),F.send("GetDoc",{pdfInfo:ee})}function te(ee){if(S(),ee instanceof m.PasswordException){var X=new Q(`PasswordException: response ${ee.code}`);A(X),F.sendWithPromise("PasswordRequest",ee).then(function({password:K}){E(X),H.updatePassword(K),W()}).catch(function(){E(X),F.send("DocException",ee)})}else ee instanceof m.InvalidPDFException||ee instanceof m.MissingPDFException||ee instanceof m.UnexpectedResponseException||ee instanceof m.UnknownErrorException?F.send("DocException",ee):F.send("DocException",new m.UnknownErrorException(ee.message,ee.toString()))}function W(){S(),_(!1).then(z,function(X){if(S(),!(X instanceof $.XRefParseException)){te(X);return}H.requestLoadedStream(),H.onLoadedStream().then(function(){S(),_(!0).then(z,te)})},te)}S();var re={maxImageSize:U.maxImageSize,disableFontFace:U.disableFontFace,ignoreErrors:U.ignoreErrors,isEvalSupported:U.isEvalSupported,fontExtraProperties:U.fontExtraProperties};D(U,re).then(function(ee){if(Y)throw ee.terminate(new m.AbortException("Worker was terminated.")),new Error("Worker was terminated");H=ee,H.onLoadedStream().then(function(X){F.send("DataLoaded",{length:X.bytes.byteLength})})}).then(W,te)}return F.on("GetPage",function(z){return H.getPage(z.pageIndex).then(function(te){return Promise.all([H.ensure(te,"rotate"),H.ensure(te,"ref"),H.ensure(te,"userUnit"),H.ensure(te,"view")]).then(function([W,re,ee,X]){return{rotate:W,ref:re,userUnit:ee,view:X}})})}),F.on("GetPageIndex",function(z){var te=y.Ref.get(z.ref.num,z.ref.gen),W=H.pdfDocument.catalog;return W.getPageIndex(te)}),F.on("GetDestinations",function(z){return H.ensureCatalog("destinations")}),F.on("GetDestination",function(z){return H.ensureCatalog("getDestination",[z.id])}),F.on("GetPageLabels",function(z){return H.ensureCatalog("pageLabels")}),F.on("GetPageLayout",function(z){return H.ensureCatalog("pageLayout")}),F.on("GetPageMode",function(z){return H.ensureCatalog("pageMode")}),F.on("GetViewerPreferences",function(U){return H.ensureCatalog("viewerPreferences")}),F.on("GetOpenAction",function(U){return H.ensureCatalog("openAction")}),F.on("GetAttachments",function(z){return H.ensureCatalog("attachments")}),F.on("GetJavaScript",function(z){return H.ensureCatalog("javaScript")}),F.on("GetOutline",function(z){return H.ensureCatalog("documentOutline")}),F.on("GetPermissions",function(U){return H.ensureCatalog("permissions")}),F.on("GetMetadata",function(z){return Promise.all([H.ensureDoc("documentInfo"),H.ensureCatalog("metadata")])}),F.on("GetData",function(z){return H.requestLoadedStream(),H.onLoadedStream().then(function(te){return te.bytes})}),F.on("GetStats",function(z){return H.pdfDocument.xref.stats}),F.on("GetAnnotations",function({pageIndex:U,intent:z}){return H.getPage(U).then(function(te){return te.getAnnotationsData(z)})}),F.on("GetOperatorList",function(z,te){var W=z.pageIndex;H.getPage(W).then(function(re){var ee=new Q(`GetOperatorList: page ${W}`);A(ee);const X=L>=m.VerbosityLevel.INFOS?Date.now():0;re.getOperatorList({handler:F,sink:te,task:ee,intent:z.intent,renderInteractiveForms:z.renderInteractiveForms}).then(function(K){E(ee),X&&(0,m.info)(`page=${W+1} - getOperatorList: time=${Date.now()-X}ms, len=${K.length}`),te.close()},function(K){E(ee),!ee.terminated&&(F.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorOperatorList}),te.error(K))})})},this),F.on("GetTextContent",function(z,te){var W=z.pageIndex;te.onPull=function(re){},te.onCancel=function(re){},H.getPage(W).then(function(re){var ee=new Q("GetTextContent: page "+W);A(ee);const X=L>=m.VerbosityLevel.INFOS?Date.now():0;re.extractTextContent({handler:F,task:ee,sink:te,normalizeWhitespace:z.normalizeWhitespace,combineTextItems:z.combineTextItems}).then(function(){E(ee),X&&(0,m.info)(`page=${W+1} - getTextContent: time=${Date.now()-X}ms`),te.close()},function(K){E(ee),!ee.terminated&&te.error(K)})})}),F.on("FontFallback",function(U){return H.fontFallback(U.id,F)}),F.on("Cleanup",function(z){return H.cleanup(!0)}),F.on("Terminate",function(z){Y=!0;const te=[];if(H){H.terminate(new m.AbortException("Worker was terminated."));const W=H.cleanup();te.push(W),H=null}else(0,y.clearPrimitiveCaches)();return G&&G(new m.AbortException("Worker was terminated.")),j.forEach(function(W){te.push(W.finished),W.terminate()}),Promise.all(te).then(function(){F.destroy(),F=null})}),F.on("Ready",function(z){N(J),J=null}),M},initializeFromPort(J){var ae=new q.MessageHandler("worker","main",J);C.setup(ae,J),ae.send("ready",null)}};f.WorkerMessageHandler=C;function v(J){return typeof J.postMessage=="function"&&"onmessage"in J}typeof window=="undefined"&&!a.isNodeJS&&typeof self!="undefined"&&v(self)&&C.initializeFromPort(self)},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.arrayByteLength=he,f.arraysToBytes=oe,f.assert=E,f.bytesToString=de,f.createPromiseCapability=Te,f.getVerbosityLevel=M,f.info=F,f.isArrayBuffer=_e,f.isArrayEqual=Be,f.isBool=Se,f.isEmptyObj=ye,f.isNum=Ee,f.isString=De,f.isSameOrigin=_,f.createValidAbsoluteUrl=N,f.removeNullCharacters=ie,f.setVerbosityLevel=B,f.shadow=U,f.string32=ne,f.stringToBytes=ce,f.stringToPDFString=be,f.stringToUTF8String=me,f.utf8StringToString=ge,f.warn=S,f.unreachable=A,f.IsEvalSupportedCached=f.IsLittleEndianCached=f.createObjectURL=f.FormatError=f.Util=f.UnknownErrorException=f.UnexpectedResponseException=f.TextRenderingMode=f.StreamType=f.PermissionFlag=f.PasswordResponses=f.PasswordException=f.MissingPDFException=f.InvalidPDFException=f.AbortException=f.CMapCompressionType=f.ImageKind=f.FontType=f.AnnotationType=f.AnnotationStateModelType=f.AnnotationReviewState=f.AnnotationReplyType=f.AnnotationMarkedState=f.AnnotationFlag=f.AnnotationFieldFlag=f.AnnotationBorderStyleType=f.UNSUPPORTED_FEATURES=f.VerbosityLevel=f.OPS=f.IDENTITY_MATRIX=f.FONT_IDENTITY_MATRIX=f.BaseException=void 0,b(3);const m=[1,0,0,1,0,0];f.IDENTITY_MATRIX=m;const y=[.001,0,0,.001,0,0];f.FONT_IDENTITY_MATRIX=y;const k={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};f.PermissionFlag=k;const a={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};f.TextRenderingMode=a;const q={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};f.ImageKind=q;const w={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};f.AnnotationType=w;const $={MARKED:"Marked",REVIEW:"Review"};f.AnnotationStateModelType=$;const Q={MARKED:"Marked",UNMARKED:"Unmarked"};f.AnnotationMarkedState=Q;const C={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};f.AnnotationReviewState=C;const v={GROUP:"Group",REPLY:"R"};f.AnnotationReplyType=v;const J={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};f.AnnotationFlag=J;const ae={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};f.AnnotationFieldFlag=ae;const H={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};f.AnnotationBorderStyleType=H;const Y={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};f.StreamType=Y;const G={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};f.FontType=G;const j={ERRORS:0,WARNINGS:1,INFOS:5};f.VerbosityLevel=j;const L={NONE:0,BINARY:1,STREAM:2};f.CMapCompressionType=L;const R={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};f.OPS=R;const T={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};f.UNSUPPORTED_FEATURES=T;const O={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};f.PasswordResponses=O;let P=j.WARNINGS;function B(we){Number.isInteger(we)&&(P=we)}function M(){return P}function F(we){P>=j.INFOS&&console.log(`Info: ${we}`)}function S(we){P>=j.WARNINGS&&console.log(`Warning: ${we}`)}function A(we){throw new Error(we)}function E(we,Ae){we||A(Ae)}function _(we,Ae){let ke;try{if(ke=new URL(we),!ke.origin||ke.origin==="null")return!1}catch{return!1}const Pe=new URL(Ae,ke);return ke.origin===Pe.origin}function D(we){if(!we)return!1;switch(we.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function N(we,Ae){if(!we)return null;try{const ke=Ae?new URL(we,Ae):new URL(we);if(D(ke))return ke}catch{}return null}function U(we,Ae,ke){return Object.defineProperty(we,Ae,{value:ke,enumerable:!0,configurable:!0,writable:!1}),ke}const z=function(){function Ae(ke){this.constructor===Ae&&A("Cannot initialize BaseException."),this.message=ke,this.name=this.constructor.name}return Ae.prototype=new Error,Ae.constructor=Ae,Ae}();f.BaseException=z;class te extends z{constructor(Ae,ke){super(Ae),this.code=ke}}f.PasswordException=te;class W extends z{constructor(Ae,ke){super(Ae),this.details=ke}}f.UnknownErrorException=W;class re extends z{}f.InvalidPDFException=re;class ee extends z{}f.MissingPDFException=ee;class X extends z{constructor(Ae,ke){super(Ae),this.status=ke}}f.UnexpectedResponseException=X;class K extends z{}f.FormatError=K;class Z extends z{}f.AbortException=Z;const se=/\x00/g;function ie(we){return typeof we!="string"?(S("The argument for removeNullCharacters must be a string."),we):we.replace(se,"")}function de(we){E(we!==null&&typeof we=="object"&&we.length!==void 0,"Invalid argument for bytesToString");const Ae=we.length,ke=8192;if(Ae<ke)return String.fromCharCode.apply(null,we);const Pe=[];for(let Le=0;Le<Ae;Le+=ke){const Ne=Math.min(Le+ke,Ae),qe=we.subarray(Le,Ne);Pe.push(String.fromCharCode.apply(null,qe))}return Pe.join("")}function ce(we){E(typeof we=="string","Invalid argument for stringToBytes");const Ae=we.length,ke=new Uint8Array(Ae);for(let Pe=0;Pe<Ae;++Pe)ke[Pe]=we.charCodeAt(Pe)&255;return ke}function he(we){return we.length!==void 0?we.length:(E(we.byteLength!==void 0,"arrayByteLength - invalid argument."),we.byteLength)}function oe(we){const Ae=we.length;if(Ae===1&&we[0]instanceof Uint8Array)return we[0];let ke=0;for(let Ne=0;Ne<Ae;Ne++)ke+=he(we[Ne]);let Pe=0;const Le=new Uint8Array(ke);for(let Ne=0;Ne<Ae;Ne++){let qe=we[Ne];qe instanceof Uint8Array||(typeof qe=="string"?qe=ce(qe):qe=new Uint8Array(qe));const Oe=qe.byteLength;Le.set(qe,Pe),Pe+=Oe}return Le}function ne(we){return String.fromCharCode(we>>24&255,we>>16&255,we>>8&255,we&255)}function ue(){const we=new Uint8Array(4);return we[0]=1,new Uint32Array(we.buffer,0,1)[0]===1}const le={get value(){return U(this,"value",ue())}};f.IsLittleEndianCached=le;function fe(){try{return new Function(""),!0}catch{return!1}}const pe={get value(){return U(this,"value",fe())}};f.IsEvalSupportedCached=pe;const ve=["rgb(",0,",",0,",",0,")"];class xe{static makeCssRgb(Ae,ke,Pe){return ve[1]=Ae,ve[3]=ke,ve[5]=Pe,ve.join("")}static transform(Ae,ke){return[Ae[0]*ke[0]+Ae[2]*ke[1],Ae[1]*ke[0]+Ae[3]*ke[1],Ae[0]*ke[2]+Ae[2]*ke[3],Ae[1]*ke[2]+Ae[3]*ke[3],Ae[0]*ke[4]+Ae[2]*ke[5]+Ae[4],Ae[1]*ke[4]+Ae[3]*ke[5]+Ae[5]]}static applyTransform(Ae,ke){const Pe=Ae[0]*ke[0]+Ae[1]*ke[2]+ke[4],Le=Ae[0]*ke[1]+Ae[1]*ke[3]+ke[5];return[Pe,Le]}static applyInverseTransform(Ae,ke){const Pe=ke[0]*ke[3]-ke[1]*ke[2],Le=(Ae[0]*ke[3]-Ae[1]*ke[2]+ke[2]*ke[5]-ke[4]*ke[3])/Pe,Ne=(-Ae[0]*ke[1]+Ae[1]*ke[0]+ke[4]*ke[1]-ke[5]*ke[0])/Pe;return[Le,Ne]}static getAxialAlignedBoundingBox(Ae,ke){const Pe=xe.applyTransform(Ae,ke),Le=xe.applyTransform(Ae.slice(2,4),ke),Ne=xe.applyTransform([Ae[0],Ae[3]],ke),qe=xe.applyTransform([Ae[2],Ae[1]],ke);return[Math.min(Pe[0],Le[0],Ne[0],qe[0]),Math.min(Pe[1],Le[1],Ne[1],qe[1]),Math.max(Pe[0],Le[0],Ne[0],qe[0]),Math.max(Pe[1],Le[1],Ne[1],qe[1])]}static inverseTransform(Ae){const ke=Ae[0]*Ae[3]-Ae[1]*Ae[2];return[Ae[3]/ke,-Ae[1]/ke,-Ae[2]/ke,Ae[0]/ke,(Ae[2]*Ae[5]-Ae[4]*Ae[3])/ke,(Ae[4]*Ae[1]-Ae[5]*Ae[0])/ke]}static apply3dTransform(Ae,ke){return[Ae[0]*ke[0]+Ae[1]*ke[1]+Ae[2]*ke[2],Ae[3]*ke[0]+Ae[4]*ke[1]+Ae[5]*ke[2],Ae[6]*ke[0]+Ae[7]*ke[1]+Ae[8]*ke[2]]}static singularValueDecompose2dScale(Ae){const ke=[Ae[0],Ae[2],Ae[1],Ae[3]],Pe=Ae[0]*ke[0]+Ae[1]*ke[2],Le=Ae[0]*ke[1]+Ae[1]*ke[3],Ne=Ae[2]*ke[0]+Ae[3]*ke[2],qe=Ae[2]*ke[1]+Ae[3]*ke[3],Oe=(Pe+qe)/2,Ge=Math.sqrt((Pe+qe)*(Pe+qe)-4*(Pe*qe-Ne*Le))/2,Ve=Oe+Ge||1,Xe=Oe-Ge||1;return[Math.sqrt(Ve),Math.sqrt(Xe)]}static normalizeRect(Ae){const ke=Ae.slice(0);return Ae[0]>Ae[2]&&(ke[0]=Ae[2],ke[2]=Ae[0]),Ae[1]>Ae[3]&&(ke[1]=Ae[3],ke[3]=Ae[1]),ke}static intersect(Ae,ke){function Pe(Oe,Ge){return Oe-Ge}const Le=[Ae[0],Ae[2],ke[0],ke[2]].sort(Pe),Ne=[Ae[1],Ae[3],ke[1],ke[3]].sort(Pe),qe=[];if(Ae=xe.normalizeRect(Ae),ke=xe.normalizeRect(ke),Le[0]===Ae[0]&&Le[1]===ke[0]||Le[0]===ke[0]&&Le[1]===Ae[0])qe[0]=Le[1],qe[2]=Le[2];else return null;if(Ne[0]===Ae[1]&&Ne[1]===ke[1]||Ne[0]===ke[1]&&Ne[1]===Ae[1])qe[1]=Ne[1],qe[3]=Ne[2];else return null;return qe}}f.Util=xe;const Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function be(we){const Ae=we.length,ke=[];if(we[0]==="\xFE"&&we[1]==="\xFF")for(let Pe=2;Pe<Ae;Pe+=2)ke.push(String.fromCharCode(we.charCodeAt(Pe)<<8|we.charCodeAt(Pe+1)));else if(we[0]==="\xFF"&&we[1]==="\xFE")for(let Pe=2;Pe<Ae;Pe+=2)ke.push(String.fromCharCode(we.charCodeAt(Pe+1)<<8|we.charCodeAt(Pe)));else for(let Pe=0;Pe<Ae;++Pe){const Le=Ce[we.charCodeAt(Pe)];ke.push(Le?String.fromCharCode(Le):we.charAt(Pe))}return ke.join("")}function me(we){return decodeURIComponent(escape(we))}function ge(we){return unescape(encodeURIComponent(we))}function ye(we){for(const Ae in we)return!1;return!0}function Se(we){return typeof we=="boolean"}function Ee(we){return typeof we=="number"}function De(we){return typeof we=="string"}function _e(we){return typeof we=="object"&&we!==null&&we.byteLength!==void 0}function Be(we,Ae){return we.length!==Ae.length?!1:we.every(function(ke,Pe){return ke===Ae[Pe]})}function Te(){const we=Object.create(null);let Ae=!1;return Object.defineProperty(we,"settled",{get(){return Ae}}),we.promise=new Promise(function(ke,Pe){we.resolve=function(Le){Ae=!0,ke(Le)},we.reject=function(Le){Ae=!0,Pe(Le)}}),we}const Fe=function(){const Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(Pe,Le,Ne=!1){if(!Ne&&URL.createObjectURL){const Oe=new Blob([Pe],{type:Le});return URL.createObjectURL(Oe)}let qe=`data:${Le};base64,`;for(let Oe=0,Ge=Pe.length;Oe<Ge;Oe+=3){const Ve=Pe[Oe]&255,Xe=Pe[Oe+1]&255,at=Pe[Oe+2]&255,Re=Ve>>2,Me=(Ve&3)<<4|Xe>>4,ze=Oe+1<Ge?(Xe&15)<<2|at>>6:64,$e=Oe+2<Ge?at&63:64;qe+=Ae[Re]+Ae[Me]+Ae[ze]+Ae[$e]}return qe}}();f.createObjectURL=Fe},function(g,f,b){b(4)},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.isNodeJS=void 0;const m=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;f.isNodeJS=m},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.clearPrimitiveCaches=G,f.isEOF=Q,f.isCmd=v,f.isDict=J,f.isName=C,f.isRef=ae,f.isRefsEqual=H,f.isStream=Y,f.RefSetCache=f.RefSet=f.Ref=f.Name=f.Dict=f.Cmd=f.EOF=void 0,b(2);var m={};f.EOF=m;var y=function(){let L=Object.create(null);function R(T){this.name=T}return R.prototype={},R.get=function(O){var P=L[O];return P||(L[O]=new R(O))},R._clearCache=function(){L=Object.create(null)},R}();f.Name=y;var k=function(){let L=Object.create(null);function R(T){this.cmd=T}return R.prototype={},R.get=function(O){var P=L[O];return P||(L[O]=new R(O))},R._clearCache=function(){L=Object.create(null)},R}();f.Cmd=k;var a=function(){var L=function(){return L};function R(T){this._map=Object.create(null),this.xref=T,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=L}return R.prototype={assignXref:function(O){this.xref=O},get(T,O,P){let B=this._map[T];return B===void 0&&O!==void 0&&(B=this._map[O],B===void 0&&P!==void 0&&(B=this._map[P])),B instanceof q&&this.xref?this.xref.fetch(B,this.suppressEncryption):B},async getAsync(T,O,P){let B=this._map[T];return B===void 0&&O!==void 0&&(B=this._map[O],B===void 0&&P!==void 0&&(B=this._map[P])),B instanceof q&&this.xref?this.xref.fetchAsync(B,this.suppressEncryption):B},getArray(T,O,P){let B=this.get(T,O,P);if(!Array.isArray(B)||!this.xref)return B;B=B.slice();for(let M=0,F=B.length;M<F;M++)B[M]instanceof q&&(B[M]=this.xref.fetch(B[M],this.suppressEncryption));return B},getRaw:function(O){return this._map[O]},getKeys:function(){return Object.keys(this._map)},set:function(O,P){this._map[O]=P},has:function(O){return this._map[O]!==void 0},forEach:function(O){for(var P in this._map)O(P,this.get(P))}},R.empty=new R(null),R.merge=function(T,O){const P=new R(T);for(let B=0,M=O.length;B<M;B++){const F=O[B];if(!!J(F))for(const S in F._map)P._map[S]===void 0&&(P._map[S]=F._map[S])}return P},R}();f.Dict=a;var q=function(){let L=Object.create(null);function R(T,O){this.num=T,this.gen=O}return R.prototype={toString:function(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}},R.get=function(T,O){const P=O===0?`${T}R`:`${T}R${O}`,B=L[P];return B||(L[P]=new R(T,O))},R._clearCache=function(){L=Object.create(null)},R}();f.Ref=q;var w=function(){function L(){this.dict=Object.create(null)}return L.prototype={has:function(T){return T.toString()in this.dict},put:function(T){this.dict[T.toString()]=!0},remove:function(T){delete this.dict[T.toString()]}},L}();f.RefSet=w;var $=function(){function L(){this.dict=Object.create(null)}return L.prototype={get size(){return Object.keys(this.dict).length},get:function(T){return this.dict[T.toString()]},has:function(T){return T.toString()in this.dict},put:function(T,O){this.dict[T.toString()]=O},putAlias:function(T,O){this.dict[T.toString()]=this.get(O)},forEach:function(T){for(const O in this.dict)T(this.dict[O])},clear:function(){this.dict=Object.create(null)}},L}();f.RefSetCache=$;function Q(j){return j===m}function C(j,L){return j instanceof y&&(L===void 0||j.name===L)}function v(j,L){return j instanceof k&&(L===void 0||j.cmd===L)}function J(j,L){return j instanceof a&&(L===void 0||C(j.get("Type"),L))}function ae(j){return j instanceof q}function H(j,L){return j.num===L.num&&j.gen===L.gen}function Y(j){return typeof j=="object"&&j!==null&&j.getBytes!==void 0}function G(){k._clearCache(),y._clearCache(),q._clearCache()}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.NetworkPdfManager=f.LocalPdfManager=void 0;var m=b(2),y=b(7),k=b(8),a=b(9),q=b(12);class w{constructor(){this.constructor===w&&(0,m.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){let v=null;if(this._docBaseUrl){const J=(0,m.createValidAbsoluteUrl)(this._docBaseUrl);J?v=J.href:(0,m.warn)(`Invalid absolute docBaseUrl: "${this._docBaseUrl}".`)}return(0,m.shadow)(this,"docBaseUrl",v)}onLoadedStream(){(0,m.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(v,J){return this.ensure(this.pdfDocument,v,J)}ensureXRef(v,J){return this.ensure(this.pdfDocument.xref,v,J)}ensureCatalog(v,J){return this.ensure(this.pdfDocument.catalog,v,J)}getPage(v){return this.pdfDocument.getPage(v)}fontFallback(v,J){return this.pdfDocument.fontFallback(v,J)}cleanup(v=!1){return this.pdfDocument.cleanup(v)}async ensure(v,J,ae){(0,m.unreachable)("Abstract method `ensure` called")}requestRange(v,J){(0,m.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,m.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(v){(0,m.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(v){this._password=v}terminate(v){(0,m.unreachable)("Abstract method `terminate` called")}}class $ extends w{constructor(v,J,ae,H,Y){super(),this._docId=v,this._password=ae,this._docBaseUrl=Y,this.evaluatorOptions=H;const G=new q.Stream(J);this.pdfDocument=new a.PDFDocument(this,G),this._loadedStreamPromise=Promise.resolve(G)}async ensure(v,J,ae){const H=v[J];return typeof H=="function"?H.apply(v,ae):H}requestRange(v,J){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(v){}}f.LocalPdfManager=$;class Q extends w{constructor(v,J,ae,H,Y){super(),this._docId=v,this._password=ae.password,this._docBaseUrl=Y,this.msgHandler=ae.msgHandler,this.evaluatorOptions=H,this.streamManager=new y.ChunkedStreamManager(J,{msgHandler:ae.msgHandler,length:ae.length,disableAutoFetch:ae.disableAutoFetch,rangeChunkSize:ae.rangeChunkSize}),this.pdfDocument=new a.PDFDocument(this,this.streamManager.getStream())}async ensure(v,J,ae){try{const H=v[J];return typeof H=="function"?H.apply(v,ae):H}catch(H){if(!(H instanceof k.MissingDataException))throw H;return await this.requestRange(H.begin,H.end),this.ensure(v,J,ae)}}requestRange(v,J){return this.streamManager.requestRange(v,J)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(v){this.streamManager.onReceiveData({chunk:v})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(v){this.streamManager.abort(v)}}f.NetworkPdfManager=Q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.ChunkedStreamManager=f.ChunkedStream=void 0;var m=b(2),y=b(8);class k{constructor(w,$,Q){this.bytes=new Uint8Array(w),this.start=0,this.pos=0,this.end=w,this.chunkSize=$,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(w/$),this.manager=Q,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const w=[];for(let $=0,Q=this.numChunks;$<Q;++$)this.loadedChunks[$]||w.push($);return w}getBaseStreams(){return[this]}allChunksLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(w,$){const Q=this.chunkSize;if(w%Q!==0)throw new Error(`Bad begin offset: ${w}`);const C=w+$.byteLength;if(C%Q!==0&&C!==this.bytes.length)throw new Error(`Bad end offset: ${C}`);this.bytes.set(new Uint8Array($),w);const v=Math.floor(w/Q),J=Math.floor((C-1)/Q)+1;for(let ae=v;ae<J;++ae)this.loadedChunks[ae]||(this.loadedChunks[ae]=!0,++this.numChunksLoaded)}onReceiveProgressiveData(w){let $=this.progressiveDataLength;const Q=Math.floor($/this.chunkSize);this.bytes.set(new Uint8Array(w),$),$+=w.byteLength,this.progressiveDataLength=$;const C=$>=this.end?this.numChunks:Math.floor($/this.chunkSize);for(let v=Q;v<C;++v)this.loadedChunks[v]||(this.loadedChunks[v]=!0,++this.numChunksLoaded)}ensureByte(w){if(w<this.progressiveDataLength)return;const $=Math.floor(w/this.chunkSize);if($!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[$])throw new y.MissingDataException(w,w+1);this.lastSuccessfulEnsureByteChunk=$}}ensureRange(w,$){if(w>=$||$<=this.progressiveDataLength)return;const Q=this.chunkSize,C=Math.floor(w/Q),v=Math.floor(($-1)/Q)+1;for(let J=C;J<v;++J)if(!this.loadedChunks[J])throw new y.MissingDataException(w,$)}nextEmptyChunk(w){const $=this.numChunks;for(let Q=0;Q<$;++Q){const C=(w+Q)%$;if(!this.loadedChunks[C])return C}return null}hasChunk(w){return!!this.loadedChunks[w]}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){const w=this.pos;return w>=this.end?-1:(w>=this.progressiveDataLength&&this.ensureByte(w),this.bytes[this.pos++])}getUint16(){const w=this.getByte(),$=this.getByte();return w===-1||$===-1?-1:(w<<8)+$}getInt32(){const w=this.getByte(),$=this.getByte(),Q=this.getByte(),C=this.getByte();return(w<<24)+($<<16)+(Q<<8)+C}getBytes(w,$=!1){const Q=this.bytes,C=this.pos,v=this.end;if(!w){v>this.progressiveDataLength&&this.ensureRange(C,v);const H=Q.subarray(C,v);return $?new Uint8ClampedArray(H):H}let J=C+w;J>v&&(J=v),J>this.progressiveDataLength&&this.ensureRange(C,J),this.pos=J;const ae=Q.subarray(C,J);return $?new Uint8ClampedArray(ae):ae}peekByte(){const w=this.getByte();return w!==-1&&this.pos--,w}peekBytes(w,$=!1){const Q=this.getBytes(w,$);return this.pos-=Q.length,Q}getByteRange(w,$){return w<0&&(w=0),$>this.end&&($=this.end),$>this.progressiveDataLength&&this.ensureRange(w,$),this.bytes.subarray(w,$)}skip(w){w||(w=1),this.pos+=w}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(w,$,Q){$?w+$>this.progressiveDataLength&&this.ensureRange(w,w+$):w>=this.progressiveDataLength&&this.ensureByte(w);function C(){}C.prototype=Object.create(this),C.prototype.getMissingChunks=function(){const J=this.chunkSize,ae=Math.floor(this.start/J),H=Math.floor((this.end-1)/J)+1,Y=[];for(let G=ae;G<H;++G)this.loadedChunks[G]||Y.push(G);return Y},C.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks?!0:this.getMissingChunks().length===0};const v=new C;return v.pos=v.start=w,v.end=w+$||this.end,v.dict=Q,v}}f.ChunkedStream=k;class a{constructor(w,$){this.length=$.length,this.chunkSize=$.rangeChunkSize,this.stream=new k(this.length,this.chunkSize,this),this.pdfNetworkStream=w,this.disableAutoFetch=$.disableAutoFetch,this.msgHandler=$.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,m.createPromiseCapability)()}onLoadedStream(){return this._loadedStreamCapability.promise}sendRequest(w,$){const Q=this.pdfNetworkStream.getRangeReader(w,$);Q.isStreamingSupported||(Q.onProgress=this.onProgress.bind(this));let C=[],v=0;new Promise((ae,H)=>{const Y=G=>{try{if(!G.done){const L=G.value;C.push(L),v+=(0,m.arrayByteLength)(L),Q.isStreamingSupported&&this.onProgress({loaded:v}),Q.read().then(Y,H);return}const j=(0,m.arraysToBytes)(C);C=null,ae(j)}catch(j){H(j)}};Q.read().then(Y,H)}).then(ae=>{this.aborted||this.onReceiveData({chunk:ae,begin:w})})}requestAllChunks(){const w=this.stream.getMissingChunks();return this._requestChunks(w),this._loadedStreamCapability.promise}_requestChunks(w){const $=this.currRequestId++,Q=Object.create(null);this.chunksNeededByRequest[$]=Q;for(const ae of w)this.stream.hasChunk(ae)||(Q[ae]=!0);if((0,m.isEmptyObj)(Q))return Promise.resolve();const C=(0,m.createPromiseCapability)();this.promisesByRequest[$]=C;const v=[];for(let ae in Q)ae=ae|0,ae in this.requestsByChunk||(this.requestsByChunk[ae]=[],v.push(ae)),this.requestsByChunk[ae].push($);if(!v.length)return C.promise;const J=this.groupChunks(v);for(const ae of J){const H=ae.beginChunk*this.chunkSize,Y=Math.min(ae.endChunk*this.chunkSize,this.length);this.sendRequest(H,Y)}return C.promise}getStream(){return this.stream}requestRange(w,$){$=Math.min($,this.length);const Q=this.getBeginChunk(w),C=this.getEndChunk($),v=[];for(let J=Q;J<C;++J)v.push(J);return this._requestChunks(v)}requestRanges(w=[]){const $=[];for(const Q of w){const C=this.getBeginChunk(Q.begin),v=this.getEndChunk(Q.end);for(let J=C;J<v;++J)$.includes(J)||$.push(J)}return $.sort(function(Q,C){return Q-C}),this._requestChunks($)}groupChunks(w){const $=[];let Q=-1,C=-1;for(let v=0,J=w.length;v<J;++v){const ae=w[v];Q<0&&(Q=ae),C>=0&&C+1!==ae&&($.push({beginChunk:Q,endChunk:C+1}),Q=ae),v+1===w.length&&$.push({beginChunk:Q,endChunk:ae+1}),C=ae}return $}onProgress(w){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+w.loaded,total:this.length})}onReceiveData(w){const $=w.chunk,Q=w.begin===void 0,C=Q?this.progressiveDataLength:w.begin,v=C+$.byteLength,J=Math.floor(C/this.chunkSize),ae=v<this.length?Math.floor(v/this.chunkSize):Math.ceil(v/this.chunkSize);Q?(this.stream.onReceiveProgressiveData($),this.progressiveDataLength=v):this.stream.onReceiveData(C,$),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);const H=[];for(let Y=J;Y<ae;++Y){const G=this.requestsByChunk[Y]||[];delete this.requestsByChunk[Y];for(const j of G){const L=this.chunksNeededByRequest[j];Y in L&&delete L[Y],(0,m.isEmptyObj)(L)&&H.push(j)}}if(!this.disableAutoFetch&&(0,m.isEmptyObj)(this.requestsByChunk)){let Y;if(this.stream.numChunksLoaded===1){const G=this.stream.numChunks-1;this.stream.hasChunk(G)||(Y=G)}else Y=this.stream.nextEmptyChunk(ae);Number.isInteger(Y)&&this._requestChunks([Y])}for(const Y of H){const G=this.promisesByRequest[Y];delete this.promisesByRequest[Y],G.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(w){this._loadedStreamCapability.reject(w)}getBeginChunk(w){return Math.floor(w/this.chunkSize)}getEndChunk(w){return Math.floor((w-1)/this.chunkSize)+1}abort(w){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(w);for(const $ in this.promisesByRequest)this.promisesByRequest[$].reject(w)}}f.ChunkedStreamManager=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getLookupTableFactory=y,f.getInheritableProperty=w,f.toRomanNumerals=Q,f.log2=C,f.readInt8=v,f.readUint16=J,f.readUint32=ae,f.isWhiteSpace=H,f.XRefParseException=f.XRefEntryException=f.MissingDataException=void 0;var m=b(2);function y(Y){let G;return function(){return Y&&(G=Object.create(null),Y(G),Y=null),G}}class k extends m.BaseException{constructor(G,j){super(`Missing data [${G}, ${j})`),this.begin=G,this.end=j}}f.MissingDataException=k;class a extends m.BaseException{}f.XRefEntryException=a;class q extends m.BaseException{}f.XRefParseException=q;function w({dict:Y,key:G,getArray:j=!1,stopWhenFound:L=!0}){let T=0,O;for(;Y;){const P=j?Y.getArray(G):Y.get(G);if(P!==void 0){if(L)return P;O||(O=[]),O.push(P)}if(++T>100){(0,m.warn)(`getInheritableProperty: maximum loop count exceeded for "${G}"`);break}Y=Y.get("Parent")}return O}const $=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function Q(Y,G=!1){(0,m.assert)(Number.isInteger(Y)&&Y>0,"The number should be a positive integer.");const j=[];let L;for(;Y>=1e3;)Y-=1e3,j.push("M");L=Y/100|0,Y%=100,j.push($[L]),L=Y/10|0,Y%=10,j.push($[10+L]),j.push($[20+Y]);const R=j.join("");return G?R.toLowerCase():R}function C(Y){return Y<=0?0:Math.ceil(Math.log2(Y))}function v(Y,G){return Y[G]<<24>>24}function J(Y,G){return Y[G]<<8|Y[G+1]}function ae(Y,G){return(Y[G]<<24|Y[G+1]<<16|Y[G+2]<<8|Y[G+3])>>>0}function H(Y){return Y===32||Y===9||Y===13||Y===10}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFDocument=f.Page=void 0;var m=b(2),y=b(10),k=b(5),a=b(8),q=b(12),w=b(25),$=b(22),Q=b(11),C=b(26),v=b(27),J=b(41);const ae=1,H=[0,0,612,792];function Y(F,S){return S==="display"&&F.viewable||S==="print"&&F.printable}class G{constructor({pdfManager:S,xref:A,pageIndex:E,pageDict:_,ref:D,fontCache:N,builtInCMapCache:U,globalImageCache:z,pdfFunctionFactory:te}){this.pdfManager=S,this.pageIndex=E,this.pageDict=_,this.xref=A,this.ref=D,this.fontCache=N,this.builtInCMapCache=U,this.globalImageCache=z,this.pdfFunctionFactory=te,this.evaluatorOptions=S.evaluatorOptions,this.resourcesPromise=null;const W={obj:0};this.idFactory={createObjId(){return`p${E}_${++W.obj}`},getDocId(){return`g_${S.docId}`}}}_getInheritableProperty(S,A=!1){const E=(0,a.getInheritableProperty)({dict:this.pageDict,key:S,getArray:A,stopWhenFound:!1});return Array.isArray(E)?E.length===1||!(0,k.isDict)(E[0])?E[0]:k.Dict.merge(this.xref,E):E}get content(){return this.pageDict.get("Contents")}get resources(){return(0,m.shadow)(this,"resources",this._getInheritableProperty("Resources")||k.Dict.empty)}_getBoundingBox(S){const A=this._getInheritableProperty(S,!0);if(Array.isArray(A)&&A.length===4){if(A[2]-A[0]!==0&&A[3]-A[1]!==0)return A;(0,m.warn)(`Empty /${S} entry.`)}return null}get mediaBox(){return(0,m.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||H)}get cropBox(){return(0,m.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let S=this.pageDict.get("UserUnit");return(!(0,m.isNum)(S)||S<=0)&&(S=ae),(0,m.shadow)(this,"userUnit",S)}get view(){const{cropBox:S,mediaBox:A}=this;let E;if(S===A||(0,m.isArrayEqual)(S,A))E=A;else{const _=m.Util.intersect(S,A);_&&_[2]-_[0]!==0&&_[3]-_[1]!==0?E=_:(0,m.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,m.shadow)(this,"view",E||A)}get rotate(){let S=this._getInheritableProperty("Rotate")||0;return S%90!==0?S=0:S>=360?S=S%360:S<0&&(S=(S%360+360)%360),(0,m.shadow)(this,"rotate",S)}getContentStream(){const S=this.content;let A;if(Array.isArray(S)){const E=this.xref,_=[];for(const D of S)_.push(E.fetchIfRef(D));A=new q.StreamsSequenceStream(_)}else(0,k.isStream)(S)?A=S:A=new q.NullStream;return A}loadResources(S){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new y.ObjectLoader(this.resources,S,this.xref).load())}getOperatorList({handler:S,sink:A,task:E,intent:_,renderInteractiveForms:D}){const N=this.pdfManager.ensure(this,"getContentStream"),U=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),z=new v.PartialEvaluator({xref:this.xref,handler:S,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),W=Promise.all([N,U]).then(([re])=>{const ee=new C.OperatorList(_,A,this.pageIndex);return S.send("StartRenderPage",{transparency:z.hasBlendModes(this.resources),pageIndex:this.pageIndex,intent:_}),z.getOperatorList({stream:re,task:E,resources:this.resources,operatorList:ee}).then(function(){return ee})});return Promise.all([W,this._parsedAnnotations]).then(function([re,ee]){if(ee.length===0)return re.flush(!0),{length:re.totalLength};const X=[];for(const K of ee)Y(K,_)&&X.push(K.getOperatorList(z,E,D).catch(function(Z){return(0,m.warn)(`getOperatorList - ignoring annotation data during "${E.name}" task: "${Z}".`),null}));return Promise.all(X).then(function(K){re.addOp(m.OPS.beginAnnotations,[]);for(const Z of K)re.addOpList(Z);return re.addOp(m.OPS.endAnnotations,[]),re.flush(!0),{length:re.totalLength}})})}extractTextContent({handler:S,task:A,normalizeWhitespace:E,sink:_,combineTextItems:D}){const N=this.pdfManager.ensure(this,"getContentStream"),U=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([N,U]).then(([te])=>new v.PartialEvaluator({xref:this.xref,handler:S,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}).getTextContent({stream:te,task:A,resources:this.resources,normalizeWhitespace:E,combineTextItems:D,sink:_}))}getAnnotationsData(S){return this._parsedAnnotations.then(function(A){const E=[];for(let _=0,D=A.length;_<D;_++)(!S||Y(A[_],S))&&E.push(A[_].data);return E})}get annotations(){return(0,m.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}get _parsedAnnotations(){const S=this.pdfManager.ensure(this,"annotations").then(()=>{const A=[];for(const E of this.annotations)A.push(w.AnnotationFactory.create(this.xref,E,this.pdfManager,this.idFactory).catch(function(_){return(0,m.warn)(`_parsedAnnotations: "${_}".`),null}));return Promise.all(A).then(function(E){return E.filter(_=>!!_)})});return(0,m.shadow)(this,"_parsedAnnotations",S)}}f.Page=G;const j=new Uint8Array([37,80,68,70,45]),L=new Uint8Array([115,116,97,114,116,120,114,101,102]),R=new Uint8Array([101,110,100,111,98,106]),T=1024,O="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",P=/^[1-9]\.[0-9]$/;function B(F,S,A=1024,E=!1){const _=S.length,D=F.peekBytes(A),N=D.length-_;if(N<=0)return!1;if(E){const U=_-1;let z=D.length-1;for(;z>=U;){let te=0;for(;te<_&&D[z-te]===S[U-te];)te++;if(te>=_)return F.pos+=z-U,!0;z--}}else{let U=0;for(;U<=N;){let z=0;for(;z<_&&D[U+z]===S[z];)z++;if(z>=_)return F.pos+=U,!0;U++}}return!1}class M{constructor(S,A){let E;if((0,k.isStream)(A))E=A;else if((0,m.isArrayBuffer)(A))E=new q.Stream(A);else throw new Error("PDFDocument: Unknown argument type");if(E.length<=0)throw new m.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=S,this.stream=E,this.xref=new y.XRef(E,S),this.pdfFunctionFactory=new J.PDFFunctionFactory({xref:this.xref,isEvalSupported:S.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}parse(S){this.setup(S);const A=this.catalog.catDict.get("Version");(0,k.isName)(A)&&(this.pdfFormatVersion=A.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");const E=this.acroForm.get("Fields");(!Array.isArray(E)||E.length===0)&&!this.xfa&&(this.acroForm=null)}}catch(E){if(E instanceof a.MissingDataException)throw E;(0,m.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{const E=this.catalog.catDict.get("Collection");(0,k.isDict)(E)&&E.getKeys().length>0&&(this.collection=E)}catch(E){if(E instanceof a.MissingDataException)throw E;(0,m.info)("Cannot fetch Collection dictionary.")}}get linearization(){let S=null;try{S=Q.Linearization.create(this.stream)}catch(A){if(A instanceof a.MissingDataException)throw A;(0,m.info)(A)}return(0,m.shadow)(this,"linearization",S)}get startXRef(){const S=this.stream;let A=0;if(this.linearization)S.reset(),B(S,R)&&(A=S.pos+6-S.start);else{const _=L.length;let D=!1,N=S.end;for(;!D&&N>0;)N-=1024-_,N<0&&(N=0),S.pos=N,D=B(S,L,1024,!0);if(D){S.skip(9);let U;do U=S.getByte();while((0,a.isWhiteSpace)(U));let z="";for(;U>=32&&U<=57;)z+=String.fromCharCode(U),U=S.getByte();A=parseInt(z,10),isNaN(A)&&(A=0)}}return(0,m.shadow)(this,"startXRef",A)}checkHeader(){const S=this.stream;if(S.reset(),!B(S,j))return;S.moveStart();const A=12;let E="",_;for(;(_=S.getByte())>32&&!(E.length>=A);)E+=String.fromCharCode(_);this.pdfFormatVersion||(this.pdfFormatVersion=E.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}setup(S){this.xref.parse(S),this.catalog=new y.Catalog(this.pdfManager,this.xref)}get numPages(){const S=this.linearization,A=S?S.numPages:this.catalog.numPages;return(0,m.shadow)(this,"numPages",A)}get documentInfo(){const S={Title:m.isString,Author:m.isString,Subject:m.isString,Keywords:m.isString,Creator:m.isString,Producer:m.isString,CreationDate:m.isString,ModDate:m.isString,Trapped:k.isName};let A=this.pdfFormatVersion;(typeof A!="string"||!P.test(A))&&((0,m.warn)(`Invalid PDF header version number: ${A}`),A=null);const E={PDFFormatVersion:A,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};let _;try{_=this.xref.trailer.get("Info")}catch(D){if(D instanceof a.MissingDataException)throw D;(0,m.info)("The document information dictionary is invalid.")}if((0,k.isDict)(_))for(const D of _.getKeys()){const N=_.get(D);if(S[D])S[D](N)?E[D]=typeof N!="string"?N:(0,m.stringToPDFString)(N):(0,m.info)(`Bad value in document info for "${D}".`);else if(typeof D=="string"){let U;if((0,m.isString)(N))U=(0,m.stringToPDFString)(N);else if((0,k.isName)(N)||(0,m.isNum)(N)||(0,m.isBool)(N))U=N;else{(0,m.info)(`Unsupported value in document info for (custom) "${D}".`);continue}E.Custom||(E.Custom=Object.create(null)),E.Custom[D]=U}}return(0,m.shadow)(this,"documentInfo",E)}get fingerprint(){let S;const A=this.xref.trailer.get("ID");Array.isArray(A)&&A[0]&&(0,m.isString)(A[0])&&A[0]!==O?S=(0,m.stringToBytes)(A[0]):S=(0,$.calculateMD5)(this.stream.getByteRange(0,T),0,T);const E=[];for(let _=0,D=S.length;_<D;_++){const N=S[_].toString(16);E.push(N.padStart(2,"0"))}return(0,m.shadow)(this,"fingerprint",E.join(""))}_getLinearizationPage(S){const{catalog:A,linearization:E}=this,_=k.Ref.get(E.objectNumberFirst,0);return this.xref.fetchAsync(_).then(D=>{if((0,k.isDict)(D,"Page")||(0,k.isDict)(D)&&!D.has("Type")&&D.has("Contents"))return _&&!A.pageKidsCountCache.has(_)&&A.pageKidsCountCache.put(_,1),[D,_];throw new m.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}).catch(D=>((0,m.info)(D),A.getPageDict(S)))}getPage(S){if(this._pagePromises[S]!==void 0)return this._pagePromises[S];const{catalog:A,linearization:E}=this,_=E&&E.pageFirst===S?this._getLinearizationPage(S):A.getPageDict(S);return this._pagePromises[S]=_.then(([D,N])=>new G({pdfManager:this.pdfManager,xref:this.xref,pageIndex:S,pageDict:D,ref:N,fontCache:A.fontCache,builtInCMapCache:A.builtInCMapCache,globalImageCache:A.globalImageCache,pdfFunctionFactory:this.pdfFunctionFactory}))}checkFirstPage(){return this.getPage(0).catch(async S=>{if(S instanceof a.XRefEntryException)throw this._pagePromises.length=0,await this.cleanup(),new a.XRefParseException})}fontFallback(S,A){return this.catalog.fontFallback(S,A)}async cleanup(S=!1){return this.catalog?this.catalog.cleanup(S):(0,k.clearPrimitiveCaches)()}}f.PDFDocument=M},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.FileSpec=f.XRef=f.ObjectLoader=f.Catalog=void 0;var m=b(2),y=b(5),k=b(11),a=b(8),q=b(22),w=b(23),$=b(24);function Q(j){return(0,y.isDict)(j)?j.get("D"):j}class C{constructor(L,R){if(this.pdfManager=L,this.xref=R,this.catDict=R.getCatalogObj(),!(0,y.isDict)(this.catDict))throw new m.FormatError("Catalog object is not a dictionary.");this.fontCache=new y.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new $.GlobalImageCache,this.pageKidsCountCache=new y.RefSetCache}get metadata(){const L=this.catDict.getRaw("Metadata");if(!(0,y.isRef)(L))return(0,m.shadow)(this,"metadata",null);const R=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),T=this.xref.fetch(L,R);let O;if(T&&(0,y.isDict)(T.dict)){const P=T.dict.get("Type"),B=T.dict.get("Subtype");if((0,y.isName)(P,"Metadata")&&(0,y.isName)(B,"XML"))try{O=(0,m.stringToUTF8String)((0,m.bytesToString)(T.getBytes()))}catch(M){if(M instanceof a.MissingDataException)throw M;(0,m.info)("Skipping invalid metadata.")}}return(0,m.shadow)(this,"metadata",O)}get toplevelPagesDict(){const L=this.catDict.get("Pages");if(!(0,y.isDict)(L))throw new m.FormatError("Invalid top-level pages dictionary.");return(0,m.shadow)(this,"toplevelPagesDict",L)}get documentOutline(){let L=null;try{L=this._readDocumentOutline()}catch(R){if(R instanceof a.MissingDataException)throw R;(0,m.warn)("Unable to read document outline.")}return(0,m.shadow)(this,"documentOutline",L)}_readDocumentOutline(){let L=this.catDict.get("Outlines");if(!(0,y.isDict)(L)||(L=L.getRaw("First"),!(0,y.isRef)(L)))return null;const R={items:[]},T=[{obj:L,parent:R}],O=new y.RefSet;O.put(L);const P=this.xref,B=new Uint8ClampedArray(3);for(;T.length>0;){const M=T.shift(),F=P.fetchIfRef(M.obj);if(F===null)continue;if(!F.has("Title"))throw new m.FormatError("Invalid outline item encountered.");const S={url:null,dest:null};C.parseDestDictionary({destDict:F,resultObj:S,docBaseUrl:this.pdfManager.docBaseUrl});const A=F.get("Title"),E=F.get("F")||0,_=F.getArray("C"),D=F.get("Count");let N=B;Array.isArray(_)&&_.length===3&&(_[0]!==0||_[1]!==0||_[2]!==0)&&(N=w.ColorSpace.singletons.rgb.getRgb(_,0));const U={dest:S.dest,url:S.url,unsafeUrl:S.unsafeUrl,newWindow:S.newWindow,title:(0,m.stringToPDFString)(A),color:N,count:Number.isInteger(D)?D:void 0,bold:!!(E&2),italic:!!(E&1),items:[]};M.parent.items.push(U),L=F.getRaw("First"),(0,y.isRef)(L)&&!O.has(L)&&(T.push({obj:L,parent:U}),O.put(L)),L=F.getRaw("Next"),(0,y.isRef)(L)&&!O.has(L)&&(T.push({obj:L,parent:M.parent}),O.put(L))}return R.items.length>0?R.items:null}get permissions(){let L=null;try{L=this._readPermissions()}catch(R){if(R instanceof a.MissingDataException)throw R;(0,m.warn)("Unable to read permissions.")}return(0,m.shadow)(this,"permissions",L)}_readPermissions(){const L=this.xref.trailer.get("Encrypt");if(!(0,y.isDict)(L))return null;let R=L.get("P");if(!(0,m.isNum)(R))return null;R+=2**32;const T=[];for(const O in m.PermissionFlag){const P=m.PermissionFlag[O];R&P&&T.push(P)}return T}get numPages(){const L=this.toplevelPagesDict.get("Count");if(!Number.isInteger(L))throw new m.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,m.shadow)(this,"numPages",L)}get destinations(){const L=this._readDests(),R=Object.create(null);if(L instanceof ae){const T=L.getAll();for(const O in T)R[O]=Q(T[O])}else L instanceof y.Dict&&L.forEach(function(T,O){O&&(R[T]=Q(O))});return(0,m.shadow)(this,"destinations",R)}getDestination(L){const R=this._readDests();return R instanceof ae||R instanceof y.Dict?Q(R.get(L)||null):null}_readDests(){const L=this.catDict.get("Names");if(L&&L.has("Dests"))return new ae(L.getRaw("Dests"),this.xref);if(this.catDict.has("Dests"))return this.catDict.get("Dests")}get pageLabels(){let L=null;try{L=this._readPageLabels()}catch(R){if(R instanceof a.MissingDataException)throw R;(0,m.warn)("Unable to read page labels.")}return(0,m.shadow)(this,"pageLabels",L)}_readPageLabels(){const L=this.catDict.getRaw("PageLabels");if(!L)return null;const R=new Array(this.numPages);let T=null,O="";const B=new H(L,this.xref).getAll();let M="",F=1;for(let S=0,A=this.numPages;S<A;S++){if(S in B){const E=B[S];if(!(0,y.isDict)(E))throw new m.FormatError("PageLabel is not a dictionary.");if(E.has("Type")&&!(0,y.isName)(E.get("Type"),"PageLabel"))throw new m.FormatError("Invalid type in PageLabel dictionary.");if(E.has("S")){const _=E.get("S");if(!(0,y.isName)(_))throw new m.FormatError("Invalid style in PageLabel dictionary.");T=_.name}else T=null;if(E.has("P")){const _=E.get("P");if(!(0,m.isString)(_))throw new m.FormatError("Invalid prefix in PageLabel dictionary.");O=(0,m.stringToPDFString)(_)}else O="";if(E.has("St")){const _=E.get("St");if(!(Number.isInteger(_)&&_>=1))throw new m.FormatError("Invalid start in PageLabel dictionary.");F=_}else F=1}switch(T){case"D":M=F;break;case"R":case"r":M=(0,a.toRomanNumerals)(F,T==="r");break;case"A":case"a":const E=26,N=T==="a"?97:65,U=F-1,z=String.fromCharCode(N+U%E),te=[];for(let W=0,re=U/E|0;W<=re;W++)te.push(z);M=te.join("");break;default:if(T)throw new m.FormatError(`Invalid style "${T}" in PageLabel dictionary.`);M=""}R[S]=O+M,F++}return R}get pageLayout(){const L=this.catDict.get("PageLayout");let R="";if((0,y.isName)(L))switch(L.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":R=L.name}return(0,m.shadow)(this,"pageLayout",R)}get pageMode(){const L=this.catDict.get("PageMode");let R="UseNone";if((0,y.isName)(L))switch(L.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":R=L.name}return(0,m.shadow)(this,"pageMode",R)}get viewerPreferences(){const L={HideToolbar:m.isBool,HideMenubar:m.isBool,HideWindowUI:m.isBool,FitWindow:m.isBool,CenterWindow:m.isBool,DisplayDocTitle:m.isBool,NonFullScreenPageMode:y.isName,Direction:y.isName,ViewArea:y.isName,ViewClip:y.isName,PrintArea:y.isName,PrintClip:y.isName,PrintScaling:y.isName,Duplex:y.isName,PickTrayByPDFSize:m.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},R=this.catDict.get("ViewerPreferences");let T=null;if((0,y.isDict)(R))for(const O in L){if(!R.has(O))continue;const P=R.get(O);if(!L[O](P)){(0,m.info)(`Bad value in ViewerPreferences for "${O}".`);continue}let B;switch(O){case"NonFullScreenPageMode":switch(P.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":B=P.name;break;default:B="UseNone"}break;case"Direction":switch(P.name){case"L2R":case"R2L":B=P.name;break;default:B="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(P.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":B=P.name;break;default:B="CropBox"}break;case"PrintScaling":switch(P.name){case"None":case"AppDefault":B=P.name;break;default:B="AppDefault"}break;case"Duplex":switch(P.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":B=P.name;break;default:B="None"}break;case"PrintPageRange":if(P.length%2!==0)break;P.every((S,A,E)=>Number.isInteger(S)&&S>0&&(A===0||S>=E[A-1])&&S<=this.numPages)&&(B=P);break;case"NumCopies":P>0&&(B=P);break;default:if(typeof P!="boolean")throw new m.FormatError(`viewerPreferences - expected a boolean value for: ${O}`);B=P}B!==void 0?(T||(T=Object.create(null)),T[O]=B):(0,m.info)(`Bad value in ViewerPreferences for "${O}".`)}return(0,m.shadow)(this,"viewerPreferences",T)}get openAction(){const L=this.catDict.get("OpenAction");let R=null;if((0,y.isDict)(L)){const T=new y.Dict(this.xref);T.set("A",L);const O={url:null,dest:null,action:null};C.parseDestDictionary({destDict:T,resultObj:O}),Array.isArray(O.dest)?(R||(R=Object.create(null)),R.dest=O.dest):O.action&&(R||(R=Object.create(null)),R.action=O.action)}else Array.isArray(L)&&(R||(R=Object.create(null)),R.dest=L);return(0,m.shadow)(this,"openAction",R)}get attachments(){const L=this.catDict.get("Names");let R=null;if(L&&L.has("EmbeddedFiles")){const O=new ae(L.getRaw("EmbeddedFiles"),this.xref).getAll();for(const P in O){const B=new Y(O[P],this.xref);R||(R=Object.create(null)),R[(0,m.stringToPDFString)(P)]=B.serializable}}return(0,m.shadow)(this,"attachments",R)}get javaScript(){const L=this.catDict.get("Names");let R=null;function T(P){const B=P.get("S");if(!(0,y.isName)(B,"JavaScript"))return;let M=P.get("JS");if((0,y.isStream)(M))M=(0,m.bytesToString)(M.getBytes());else if(!(0,m.isString)(M))return;R||(R=[]),R.push((0,m.stringToPDFString)(M))}if(L&&L.has("JavaScript")){const B=new ae(L.getRaw("JavaScript"),this.xref).getAll();for(const M in B){const F=B[M];(0,y.isDict)(F)&&T(F)}}const O=this.catDict.get("OpenAction");return(0,y.isDict)(O)&&(0,y.isName)(O.get("S"),"JavaScript")&&T(O),(0,m.shadow)(this,"javaScript",R)}fontFallback(L,R){const T=[];return this.fontCache.forEach(function(O){T.push(O)}),Promise.all(T).then(O=>{for(const P of O)if(P.loadedName===L){P.fallback(R);return}})}cleanup(L=!1){(0,y.clearPrimitiveCaches)(),this.globalImageCache.clear(L),this.pageKidsCountCache.clear();const R=[];return this.fontCache.forEach(function(T){R.push(T)}),Promise.all(R).then(T=>{for(const{dict:O}of T)delete O.translated;this.fontCache.clear(),this.builtInCMapCache.clear()})}getPageDict(L){const R=(0,m.createPromiseCapability)(),T=[this.catDict.getRaw("Pages")],O=new y.RefSet,P=this.xref,B=this.pageKidsCountCache;let M,F=0;function S(){for(;T.length;){const A=T.pop();if((0,y.isRef)(A)){if(M=B.get(A),M>0&&F+M<L){F+=M;continue}if(O.has(A)){R.reject(new m.FormatError("Pages tree contains circular reference."));return}O.put(A),P.fetchAsync(A).then(function(_){if((0,y.isDict)(_,"Page")||(0,y.isDict)(_)&&!_.has("Kids")){L===F?(A&&!B.has(A)&&B.put(A,1),R.resolve([_,A])):(F++,S());return}T.push(_),S()},R.reject);return}if(!(0,y.isDict)(A)){R.reject(new m.FormatError("Page dictionary kid reference points to wrong type of object."));return}if(M=A.get("Count"),Number.isInteger(M)&&M>=0){const _=A.objId;if(_&&!B.has(_)&&B.put(_,M),F+M<=L){F+=M;continue}}const E=A.get("Kids");if(!Array.isArray(E)){if((0,y.isName)(A.get("Type"),"Page")||!A.has("Type")&&A.has("Contents")){if(F===L){R.resolve([A,null]);return}F++;continue}R.reject(new m.FormatError("Page dictionary kids object is not an array."));return}for(let _=E.length-1;_>=0;_--)T.push(E[_])}R.reject(new Error(`Page index ${L} not found.`))}return S(),R.promise}getPageIndex(L){const R=this.xref;function T(B){let M=0,F;return R.fetchAsync(B).then(function(S){if((0,y.isRefsEqual)(B,L)&&!(0,y.isDict)(S,"Page")&&!((0,y.isDict)(S)&&!S.has("Type")&&S.has("Contents")))throw new m.FormatError("The reference does not point to a /Page dictionary.");if(!S)return null;if(!(0,y.isDict)(S))throw new m.FormatError("Node must be a dictionary.");return F=S.getRaw("Parent"),S.getAsync("Parent")}).then(function(S){if(!S)return null;if(!(0,y.isDict)(S))throw new m.FormatError("Parent must be a dictionary.");return S.getAsync("Kids")}).then(function(S){if(!S)return null;const A=[];let E=!1;for(let _=0,D=S.length;_<D;_++){const N=S[_];if(!(0,y.isRef)(N))throw new m.FormatError("Kid must be a reference.");if((0,y.isRefsEqual)(N,B)){E=!0;break}A.push(R.fetchAsync(N).then(function(U){if(!(0,y.isDict)(U))throw new m.FormatError("Kid node must be a dictionary.");U.has("Count")?M+=U.get("Count"):M++}))}if(!E)throw new m.FormatError("Kid reference not found in parent's kids.");return Promise.all(A).then(function(){return[M,F]})})}let O=0;function P(B){return T(B).then(function(M){if(!M)return O;const[F,S]=M;return O+=F,P(S)})}return P(L)}static parseDestDictionary(L){function R(A){return A.startsWith("www.")?`http://${A}`:A}function T(A){try{return(0,m.stringToUTF8String)(A)}catch{return A}}const O=L.destDict;if(!(0,y.isDict)(O)){(0,m.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const P=L.resultObj;if(typeof P!="object"){(0,m.warn)("parseDestDictionary: `resultObj` must be an object.");return}const B=L.docBaseUrl||null;let M=O.get("A"),F,S;if(!(0,y.isDict)(M)&&O.has("Dest")&&(M=O.get("Dest")),(0,y.isDict)(M)){const A=M.get("S");if(!(0,y.isName)(A)){(0,m.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const E=A.name;switch(E){case"URI":F=M.get("URI"),(0,y.isName)(F)?F="/"+F.name:(0,m.isString)(F)&&(F=R(F));break;case"GoTo":S=M.get("D");break;case"Launch":case"GoToR":const _=M.get("F");(0,y.isDict)(_)?F=_.get("F")||null:(0,m.isString)(_)&&(F=_);let D=M.get("D");if(D&&((0,y.isName)(D)&&(D=D.name),(0,m.isString)(F))){const W=F.split("#")[0];(0,m.isString)(D)?F=W+"#"+D:Array.isArray(D)&&(F=W+"#"+JSON.stringify(D))}const N=M.get("NewWindow");(0,m.isBool)(N)&&(P.newWindow=N);break;case"Named":const U=M.get("N");(0,y.isName)(U)&&(P.action=U.name);break;case"JavaScript":const z=M.get("JS");let te;if((0,y.isStream)(z)?te=(0,m.bytesToString)(z.getBytes()):(0,m.isString)(z)&&(te=z),te){const W=["app.launchURL","window.open"],ee=new RegExp("^\\s*("+W.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec((0,m.stringToPDFString)(te));if(ee&&ee[2]){F=ee[2],ee[3]==="true"&&ee[1]==="app.launchURL"&&(P.newWindow=!0);break}}default:(0,m.warn)(`parseDestDictionary: unsupported action type "${E}".`);break}}else O.has("Dest")&&(S=O.get("Dest"));if((0,m.isString)(F)){F=T(F);const A=(0,m.createValidAbsoluteUrl)(F,B);A&&(P.url=A.href),P.unsafeUrl=F}S&&((0,y.isName)(S)&&(S=S.name),((0,m.isString)(S)||Array.isArray(S))&&(P.dest=S))}}f.Catalog=C;var v=function(){function L(R,T){this.stream=R,this.pdfManager=T,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return L.prototype={setStartXRef:function(T){this.startXRefQueue=[T]},parse:function(T){var O;T?((0,m.warn)("Indexing all PDF objects"),O=this.indexObjects()):O=this.readXRef(),O.assignXref(this),this.trailer=O;let P;try{P=O.get("Encrypt")}catch(S){if(S instanceof a.MissingDataException)throw S;(0,m.warn)(`XRef.parse - Invalid "Encrypt" reference: "${S}".`)}if((0,y.isDict)(P)){var B=O.get("ID"),M=B&&B.length?B[0]:"";P.suppressEncryption=!0,this.encrypt=new q.CipherTransformFactory(P,M,this.pdfManager.password)}let F;try{F=O.get("Root")}catch(S){if(S instanceof a.MissingDataException)throw S;(0,m.warn)(`XRef.parse - Invalid "Root" reference: "${S}".`)}if((0,y.isDict)(F)&&F.has("Pages"))this.root=F;else throw T?new m.FormatError("Invalid root reference"):new a.XRefParseException},processXRefTable:function(T){"tableState"in this||(this.tableState={entryNum:0,streamPos:T.lexer.stream.pos,parserBuf1:T.buf1,parserBuf2:T.buf2});var O=this.readXRefTable(T);if(!(0,y.isCmd)(O,"trailer"))throw new m.FormatError("Invalid XRef table: could not find trailer dictionary");var P=T.getObj();if(!(0,y.isDict)(P)&&P.dict&&(P=P.dict),!(0,y.isDict)(P))throw new m.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,P},readXRefTable:function(T){var O=T.lexer.stream,P=this.tableState;O.pos=P.streamPos,T.buf1=P.parserBuf1,T.buf2=P.parserBuf2;for(var B;;){if(!("firstEntryNum"in P)||!("entryCount"in P)){if((0,y.isCmd)(B=T.getObj(),"trailer"))break;P.firstEntryNum=B,P.entryCount=T.getObj()}var M=P.firstEntryNum,F=P.entryCount;if(!Number.isInteger(M)||!Number.isInteger(F))throw new m.FormatError("Invalid XRef table: wrong types in subsection header");for(var S=P.entryNum;S<F;S++){P.streamPos=O.pos,P.entryNum=S,P.parserBuf1=T.buf1,P.parserBuf2=T.buf2;var A={};A.offset=T.getObj(),A.gen=T.getObj();var E=T.getObj();if(E instanceof y.Cmd)switch(E.cmd){case"f":A.free=!0;break;case"n":A.uncompressed=!0;break}if(!Number.isInteger(A.offset)||!Number.isInteger(A.gen)||!(A.free||A.uncompressed))throw new m.FormatError(`Invalid entry in XRef subsection: ${M}, ${F}`);S===0&&A.free&&M===1&&(M=0),this.entries[S+M]||(this.entries[S+M]=A)}P.entryNum=0,P.streamPos=O.pos,P.parserBuf1=T.buf1,P.parserBuf2=T.buf2,delete P.firstEntryNum,delete P.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new m.FormatError("Invalid XRef table: unexpected first object");return B},processXRefStream:function(T){if(!("streamState"in this)){var O=T.dict,P=O.get("W"),B=O.get("Index");B||(B=[0,O.get("Size")]),this.streamState={entryRanges:B,byteWidths:P,entryNum:0,streamPos:T.pos}}return this.readXRefStream(T),delete this.streamState,T.dict},readXRefStream:function(T){var O,P,B=this.streamState;T.pos=B.streamPos;for(var M=B.byteWidths,F=M[0],S=M[1],A=M[2],E=B.entryRanges;E.length>0;){var _=E[0],D=E[1];if(!Number.isInteger(_)||!Number.isInteger(D))throw new m.FormatError(`Invalid XRef range fields: ${_}, ${D}`);if(!Number.isInteger(F)||!Number.isInteger(S)||!Number.isInteger(A))throw new m.FormatError(`Invalid XRef entry fields length: ${_}, ${D}`);for(O=B.entryNum;O<D;++O){B.entryNum=O,B.streamPos=T.pos;var N=0,U=0,z=0;for(P=0;P<F;++P)N=N<<8|T.getByte();for(F===0&&(N=1),P=0;P<S;++P)U=U<<8|T.getByte();for(P=0;P<A;++P)z=z<<8|T.getByte();var te={};switch(te.offset=U,te.gen=z,N){case 0:te.free=!0;break;case 1:te.uncompressed=!0;break;case 2:break;default:throw new m.FormatError(`Invalid XRef entry type: ${N}`)}this.entries[_+O]||(this.entries[_+O]=te)}B.entryNum=0,B.streamPos=T.pos,E.splice(0,2)}},indexObjects:function(){var T=9,O=10,P=13,B=32,M=37,F=60;function S(fe,pe){for(var ve="",xe=fe[pe];xe!==O&&xe!==P&&xe!==F&&!(++pe>=fe.length);)ve+=String.fromCharCode(xe),xe=fe[pe];return ve}function A(fe,pe,ve){for(var xe=ve.length,Ce=fe.length,be=0;pe<Ce;){for(var me=0;me<xe&&fe[pe+me]===ve[me];)++me;if(me>=xe)break;pe++,be++}return be}var E=/^(\d+)\s+(\d+)\s+obj\b/;const _=/\bendobj[\b\s]$/,D=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,N=25;var U=new Uint8Array([116,114,97,105,108,101,114]),z=new Uint8Array([115,116,97,114,116,120,114,101,102]);const te=new Uint8Array([111,98,106]);var W=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var re=this.stream;re.pos=0;for(var ee=re.getBytes(),X=re.start,K=ee.length,Z=[],se=[];X<K;){var ie=ee[X];if(ie===T||ie===O||ie===P||ie===B){++X;continue}if(ie===M){do{if(++X,X>=K)break;ie=ee[X]}while(ie!==O&&ie!==P);continue}var de=S(ee,X),ce;if(de.startsWith("xref")&&(de.length===4||/\s/.test(de[4])))X+=A(ee,X,U),Z.push(X),X+=A(ee,X,z);else if(ce=E.exec(de)){const fe=ce[1]|0,pe=ce[2]|0;(!this.entries[fe]||this.entries[fe].gen===pe)&&(this.entries[fe]={offset:X-re.start,gen:pe,uncompressed:!0});let ve,xe=X+de.length;for(;xe<ee.length;){const be=xe+A(ee,xe,te)+4;ve=be-X;const me=Math.max(be-N,xe),ge=(0,m.bytesToString)(ee.subarray(me,be));if(_.test(ge))break;{const ye=D.exec(ge);if(ye&&ye[1]){(0,m.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),ve-=ye[1].length;break}}xe=be}const Ce=ee.subarray(X,X+ve);var he=A(Ce,0,W);he<ve&&Ce[he+5]<64&&(se.push(X-re.start),this.xrefstms[X-re.start]=1),X+=ve}else de.startsWith("trailer")&&(de.length===7||/\s/.test(de[7]))?(Z.push(X),X+=A(ee,X,z)):X+=de.length+1}var oe,ne;for(oe=0,ne=se.length;oe<ne;++oe)this.startXRefQueue.push(se[oe]),this.readXRef(!0);let ue;for(oe=0,ne=Z.length;oe<ne;++oe){re.pos=Z[oe];const fe=new k.Parser({lexer:new k.Lexer(re),xref:this,allowStreams:!0,recoveryMode:!0});var le=fe.getObj();if(!(0,y.isCmd)(le,"trailer"))continue;const pe=fe.getObj();if(!(0,y.isDict)(pe))continue;let ve;try{ve=pe.get("Root")}catch(xe){if(xe instanceof a.MissingDataException)throw xe;continue}if(!(!(0,y.isDict)(ve)||!ve.has("Pages"))){if(pe.has("ID"))return pe;ue=pe}}if(ue)return ue;throw new m.InvalidPDFException("Invalid PDF structure.")},readXRef:function(T){var O=this.stream;const P=Object.create(null);try{for(;this.startXRefQueue.length;){var B=this.startXRefQueue[0];if(P[B]){(0,m.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}P[B]=!0,O.pos=B+O.start;const A=new k.Parser({lexer:new k.Lexer(O),xref:this,allowStreams:!0});var M=A.getObj(),F;if((0,y.isCmd)(M,"xref")){if(F=this.processXRefTable(A),this.topDict||(this.topDict=F),M=F.get("XRefStm"),Number.isInteger(M)){var S=M;S in this.xrefstms||(this.xrefstms[S]=1,this.startXRefQueue.push(S))}}else if(Number.isInteger(M)){if(!Number.isInteger(A.getObj())||!(0,y.isCmd)(A.getObj(),"obj")||!(0,y.isStream)(M=A.getObj()))throw new m.FormatError("Invalid XRef stream");if(F=this.processXRefStream(M),this.topDict||(this.topDict=F),!F)throw new m.FormatError("Failed to read XRef stream")}else throw new m.FormatError("Invalid XRef stream header");M=F.get("Prev"),Number.isInteger(M)?this.startXRefQueue.push(M):(0,y.isRef)(M)&&this.startXRefQueue.push(M.num),this.startXRefQueue.shift()}return this.topDict}catch(A){if(A instanceof a.MissingDataException)throw A;(0,m.info)("(while reading XRef): "+A)}if(!T)throw new a.XRefParseException},getEntry:function(T){var O=this.entries[T];return O&&!O.free&&O.offset?O:null},fetchIfRef:function(T,O){return T instanceof y.Ref?this.fetch(T,O):T},fetch:function(T,O){if(!(T instanceof y.Ref))throw new Error("ref object is not a reference");const P=T.num,B=this._cacheMap.get(P);if(B!==void 0)return B instanceof y.Dict&&!B.objId&&(B.objId=T.toString()),B;let M=this.getEntry(P);return M===null?(this._cacheMap.set(P,M),M):(M.uncompressed?M=this.fetchUncompressed(T,M,O):M=this.fetchCompressed(T,M,O),(0,y.isDict)(M)?M.objId=T.toString():(0,y.isStream)(M)&&(M.dict.objId=T.toString()),M)},fetchUncompressed(R,T,O=!1){var P=R.gen,B=R.num;if(T.gen!==P)throw new a.XRefEntryException(`Inconsistent generation in XRef: ${R}`);var M=this.stream.makeSubStream(T.offset+this.stream.start);const F=new k.Parser({lexer:new k.Lexer(M),xref:this,allowStreams:!0});var S=F.getObj(),A=F.getObj(),E=F.getObj();if(S!==B||A!==P||!(E instanceof y.Cmd))throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${R}`);if(E.cmd!=="obj"){if(E.cmd.startsWith("obj")&&(B=parseInt(E.cmd.substring(3),10),!Number.isNaN(B)))return B;throw new a.XRefEntryException(`Bad (uncompressed) XRef entry: ${R}`)}return this.encrypt&&!O?T=F.getObj(this.encrypt.createCipherTransform(B,P)):T=F.getObj(),(0,y.isStream)(T)||this._cacheMap.set(B,T),T},fetchCompressed(R,T,O=!1){const P=T.offset,B=this.fetch(y.Ref.get(P,0));if(!(0,y.isStream)(B))throw new m.FormatError("bad ObjStm stream");const M=B.dict.get("First"),F=B.dict.get("N");if(!Number.isInteger(M)||!Number.isInteger(F))throw new m.FormatError("invalid first and n parameters for ObjStm stream");const S=new k.Parser({lexer:new k.Lexer(B),xref:this,allowStreams:!0}),A=new Array(F);for(let _=0;_<F;++_){const D=S.getObj();if(!Number.isInteger(D))throw new m.FormatError(`invalid object number in the ObjStm stream: ${D}`);const N=S.getObj();if(!Number.isInteger(N))throw new m.FormatError(`invalid object offset in the ObjStm stream: ${N}`);A[_]=D}const E=new Array(F);for(let _=0;_<F;++_){const D=S.getObj();if(E[_]=D,S.buf1 instanceof y.Cmd&&S.buf1.cmd==="endobj"&&S.shift(),(0,y.isStream)(D))continue;const N=A[_],U=this.entries[N];U&&U.offset===P&&U.gen===_&&this._cacheMap.set(N,D)}if(T=E[T.gen],T===void 0)throw new a.XRefEntryException(`Bad (compressed) XRef entry: ${R}`);return T},async fetchIfRefAsync(R,T){return R instanceof y.Ref?this.fetchAsync(R,T):R},async fetchAsync(R,T){try{return this.fetch(R,T)}catch(O){if(!(O instanceof a.MissingDataException))throw O;return await this.pdfManager.requestRange(O.begin,O.end),this.fetchAsync(R,T)}},getCatalogObj:function(){return this.root}},L}();f.XRef=v;class J{constructor(L,R,T){this.constructor===J&&(0,m.unreachable)("Cannot initialize NameOrNumberTree."),this.root=L,this.xref=R,this._type=T}getAll(){const L=Object.create(null);if(!this.root)return L;const R=this.xref,T=new y.RefSet;T.put(this.root);const O=[this.root];for(;O.length>0;){const P=R.fetchIfRef(O.shift());if(!(0,y.isDict)(P))continue;if(P.has("Kids")){const M=P.get("Kids");for(let F=0,S=M.length;F<S;F++){const A=M[F];if(T.has(A))throw new m.FormatError(`Duplicate entry in "${this._type}" tree.`);O.push(A),T.put(A)}continue}const B=P.get(this._type);if(Array.isArray(B))for(let M=0,F=B.length;M<F;M+=2)L[R.fetchIfRef(B[M])]=R.fetchIfRef(B[M+1])}return L}get(L){if(!this.root)return null;const R=this.xref;let T=R.fetchIfRef(this.root),O=0;const P=10;for(;T.has("Kids");){if(++O>P)return(0,m.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const M=T.get("Kids");if(!Array.isArray(M))return null;let F=0,S=M.length-1;for(;F<=S;){const A=F+S>>1,_=R.fetchIfRef(M[A]).get("Limits");if(L<R.fetchIfRef(_[0]))S=A-1;else if(L>R.fetchIfRef(_[1]))F=A+1;else{T=R.fetchIfRef(M[A]);break}}if(F>S)return null}const B=T.get(this._type);if(Array.isArray(B)){let M=0,F=B.length-2;for(;M<=F;){const S=M+F>>1,A=S+(S&1),E=R.fetchIfRef(B[A]);if(L<E)F=A-2;else if(L>E)M=A+2;else return R.fetchIfRef(B[A+1])}(0,m.info)(`Falling back to an exhaustive search, for key "${L}", in "${this._type}" tree.`);for(let S=0,A=B.length;S<A;S+=2)if(R.fetchIfRef(B[S])===L)return(0,m.warn)(`The "${L}" key was found at an incorrect, i.e. out-of-order, position in "${this._type}" tree.`),R.fetchIfRef(B[S+1])}return null}}class ae extends J{constructor(L,R){super(L,R,"Names")}}class H extends J{constructor(L,R){super(L,R,"Nums")}}var Y=function(){function L(T,O){!T||!(0,y.isDict)(T)||(this.xref=O,this.root=T,T.has("FS")&&(this.fs=T.get("FS")),this.description=T.has("Desc")?(0,m.stringToPDFString)(T.get("Desc")):"",T.has("RF")&&(0,m.warn)("Related file specifications are not supported"),this.contentAvailable=!0,T.has("EF")||(this.contentAvailable=!1,(0,m.warn)("Non-embedded file specifications are not supported")))}function R(T){return T.has("UF")?T.get("UF"):T.has("F")?T.get("F"):T.has("Unix")?T.get("Unix"):T.has("Mac")?T.get("Mac"):T.has("DOS")?T.get("DOS"):null}return L.prototype={get filename(){if(!this._filename&&this.root){var T=R(this.root)||"unnamed";this._filename=(0,m.stringToPDFString)(T).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=R(this.root.get("EF")));var T=null;if(this.contentRef){var O=this.xref,P=O.fetchIfRef(this.contentRef);P&&(0,y.isStream)(P)?T=P.getBytes():(0,m.warn)("Embedded file specification points to non-existing/invalid content")}else(0,m.warn)("Embedded file specification does not have a content");return T},get serializable(){return{filename:this.filename,content:this.content}}},L}();f.FileSpec=Y;const G=function(){function j(T){return T instanceof y.Ref||T instanceof y.Dict||Array.isArray(T)||(0,y.isStream)(T)}function L(T,O){if(T instanceof y.Dict||(0,y.isStream)(T)){const P=T instanceof y.Dict?T:T.dict,B=P.getKeys();for(let M=0,F=B.length;M<F;M++){const S=P.getRaw(B[M]);j(S)&&O.push(S)}}else if(Array.isArray(T))for(let P=0,B=T.length;P<B;P++){const M=T[P];j(M)&&O.push(M)}}function R(T,O,P){this.dict=T,this.keys=O,this.xref=P,this.refSet=null}return R.prototype={async load(){if(!this.xref.stream.allChunksLoaded||this.xref.stream.allChunksLoaded())return;const{keys:T,dict:O}=this;this.refSet=new y.RefSet;const P=[];for(let B=0,M=T.length;B<M;B++){const F=O.getRaw(T[B]);F!==void 0&&P.push(F)}return this._walk(P)},async _walk(T){const O=[],P=[];for(;T.length;){let B=T.pop();if(B instanceof y.Ref){if(this.refSet.has(B))continue;try{this.refSet.put(B),B=this.xref.fetch(B)}catch(M){if(!(M instanceof a.MissingDataException))throw M;O.push(B),P.push({begin:M.begin,end:M.end})}}if(B&&B.getBaseStreams){const M=B.getBaseStreams();let F=!1;for(let S=0,A=M.length;S<A;S++){const E=M[S];E.allChunksLoaded&&!E.allChunksLoaded()&&(F=!0,P.push({begin:E.start,end:E.end}))}F&&O.push(B)}L(B,T)}if(P.length){await this.xref.stream.manager.requestRanges(P);for(let B=0,M=O.length;B<M;B++){const F=O[B];F instanceof y.Ref&&this.refSet.remove(F)}return this._walk(O)}this.refSet=null}},R}();f.ObjectLoader=G},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.Parser=f.Linearization=f.Lexer=void 0;var m=b(12),y=b(2),k=b(5),a=b(8),q=b(13),w=b(15),$=b(18),Q=b(20);const C=1e3,v=5552;function J(L){const R=L.length;let T=1,O=0;for(let P=0;P<R;++P)T+=L[P]&255,O+=T;return O%65521<<16|T%65521}class ae{constructor({lexer:R,xref:T,allowStreams:O=!1,recoveryMode:P=!1}){this.lexer=R,this.xref=T,this.allowStreams=O,this.recoveryMode=P,this.imageCache=Object.create(null),this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof k.Cmd&&this.buf2.cmd==="ID"?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(R){if(R instanceof a.MissingDataException)throw R;return!1}}getObj(R=null){const T=this.buf1;if(this.shift(),T instanceof k.Cmd)switch(T.cmd){case"BI":return this.makeInlineImage(R);case"[":const O=[];for(;!(0,k.isCmd)(this.buf1,"]")&&!(0,k.isEOF)(this.buf1);)O.push(this.getObj(R));if((0,k.isEOF)(this.buf1)){if(!this.recoveryMode)throw new y.FormatError("End of file inside array");return O}return this.shift(),O;case"<<":const P=new k.Dict(this.xref);for(;!(0,k.isCmd)(this.buf1,">>")&&!(0,k.isEOF)(this.buf1);){if(!(0,k.isName)(this.buf1)){(0,y.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const B=this.buf1.name;if(this.shift(),(0,k.isEOF)(this.buf1))break;P.set(B,this.getObj(R))}if((0,k.isEOF)(this.buf1)){if(!this.recoveryMode)throw new y.FormatError("End of file inside dictionary");return P}return(0,k.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(P,R):P:(this.shift(),P);default:return T}if(Number.isInteger(T)){if(Number.isInteger(this.buf1)&&(0,k.isCmd)(this.buf2,"R")){const O=k.Ref.get(T,this.buf1);return this.shift(),this.shift(),O}return T}return typeof T=="string"&&R?R.decryptString(T):T}findDefaultInlineStreamEnd(R){const A=R.pos;let E=0,_,D;for(;(_=R.getByte())!==-1;)if(E===0)E=_===69?1:0;else if(E===1)E=_===73?2:0;else if((0,y.assert)(E===2,"findDefaultInlineStreamEnd - invalid state."),_===32||_===10||_===13){D=R.pos;const U=R.peekBytes(10);for(let z=0,te=U.length;z<te;z++)if(_=U[z],!(_===0&&U[z+1]!==0)&&_!==10&&_!==13&&(_<32||_>127)){E=0;break}if(E===2)break}else E=0;_===-1&&((0,y.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),D&&((0,y.warn)('... trying to recover by using the last "EI" occurrence.'),R.skip(-(R.pos-D))));let N=4;return R.skip(-N),_=R.peekByte(),R.skip(N),(0,a.isWhiteSpace)(_)||N--,R.pos-N-A}findDCTDecodeInlineStreamEnd(R){const T=R.pos;let O=!1,P,B;for(;(P=R.getByte())!==-1;)if(P===255){switch(R.getByte()){case 0:break;case 255:R.skip(-1);break;case 217:O=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:B=R.getUint16(),B>2?R.skip(B-2):R.skip(-2);break}if(O)break}const M=R.pos-T;return P===-1?((0,y.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),R.skip(-M),this.findDefaultInlineStreamEnd(R)):(this.inlineStreamSkipEI(R),M)}findASCII85DecodeInlineStreamEnd(R){const P=R.pos;let B;for(;(B=R.getByte())!==-1;)if(B===126){const F=R.pos;for(B=R.peekByte();(0,a.isWhiteSpace)(B);)R.skip(),B=R.peekByte();if(B===62){R.skip();break}if(R.pos>F){const S=R.peekBytes(2);if(S[0]===69&&S[1]===73)break}}const M=R.pos-P;return B===-1?((0,y.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),R.skip(-M),this.findDefaultInlineStreamEnd(R)):(this.inlineStreamSkipEI(R),M)}findASCIIHexDecodeInlineStreamEnd(R){const O=R.pos;let P;for(;(P=R.getByte())!==-1&&P!==62;);const B=R.pos-O;return P===-1?((0,y.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),R.skip(-B),this.findDefaultInlineStreamEnd(R)):(this.inlineStreamSkipEI(R),B)}inlineStreamSkipEI(R){let P=0,B;for(;(B=R.getByte())!==-1;)if(P===0)P=B===69?1:0;else if(P===1)P=B===73?2:0;else if(P===2)break}makeInlineImage(R){const T=this.lexer,O=T.stream,P=new k.Dict(this.xref);let B;for(;!(0,k.isCmd)(this.buf1,"ID")&&!(0,k.isEOF)(this.buf1);){if(!(0,k.isName)(this.buf1))throw new y.FormatError("Dictionary key must be a name object");const D=this.buf1.name;if(this.shift(),(0,k.isEOF)(this.buf1))break;P.set(D,this.getObj(R))}T.beginInlineImagePos!==-1&&(B=O.pos-T.beginInlineImagePos);const M=P.get("Filter","F");let F;if((0,k.isName)(M))F=M.name;else if(Array.isArray(M)){const D=this.xref.fetchIfRef(M[0]);(0,k.isName)(D)&&(F=D.name)}const S=O.pos;let A;F==="DCTDecode"||F==="DCT"?A=this.findDCTDecodeInlineStreamEnd(O):F==="ASCII85Decode"||F==="A85"?A=this.findASCII85DecodeInlineStreamEnd(O):F==="ASCIIHexDecode"||F==="AHx"?A=this.findASCIIHexDecodeInlineStreamEnd(O):A=this.findDefaultInlineStreamEnd(O);let E=O.makeSubStream(S,A,P),_;if(A<C&&B<v){const D=E.getBytes();E.reset();const N=O.pos;O.pos=T.beginInlineImagePos;const U=O.getBytes(B);O.pos=N,_=J(D)+"_"+J(U);const z=this.imageCache[_];if(z!==void 0)return this.buf2=k.Cmd.get("EI"),this.shift(),z.reset(),z}return R&&(E=R.createStream(E,A)),E=this.filter(E,P,A),E.dict=P,_!==void 0&&(E.cacheKey=`inline_${A}_${_}`,this.imageCache[_]=E),this.buf2=k.Cmd.get("EI"),this.shift(),E}_findStreamLength(R,T){const{stream:O}=this.lexer;O.pos=R;const P=2048,B=T.length;for(;O.pos<O.end;){const M=O.peekBytes(P),F=M.length-B;if(F<=0)break;let S=0;for(;S<F;){let A=0;for(;A<B&&M[S+A]===T[A];)A++;if(A>=B)return O.pos+=S,O.pos-R;S++}O.pos+=F}return-1}makeStream(R,T){const O=this.lexer;let P=O.stream;O.skipToNextLine();const B=P.pos-1;let M=R.get("Length");if(Number.isInteger(M)||((0,y.info)(`Bad length "${M}" in stream`),M=0),P.pos=B+M,O.nextChar(),this.tryShift()&&(0,k.isCmd)(this.buf2,"endstream"))this.shift();else{const F=new Uint8Array([101,110,100,115,116,114,101,97,109]);let S=this._findStreamLength(B,F);if(S<0){for(let E=1;E<=1;E++){const _=F.length-E,D=F.slice(0,_),N=this._findStreamLength(B,D);if(N>=0){const U=P.peekBytes(_+1)[_];if(!(0,a.isWhiteSpace)(U))break;(0,y.info)(`Found "${(0,y.bytesToString)(D)}" when searching for endstream command.`),S=N;break}}if(S<0)throw new y.FormatError("Missing endstream command.")}M=S,O.nextChar(),this.shift(),this.shift()}return this.shift(),P=P.makeSubStream(B,M,R),T&&(P=T.createStream(P,M)),P=this.filter(P,R,M),P.dict=R,P}filter(R,T,O){let P=T.get("Filter","F"),B=T.get("DecodeParms","DP");if((0,k.isName)(P))return Array.isArray(B)&&(0,y.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(R,P.name,O,B);let M=O;if(Array.isArray(P)){const F=P,S=B;for(let A=0,E=F.length;A<E;++A){if(P=this.xref.fetchIfRef(F[A]),!(0,k.isName)(P))throw new y.FormatError(`Bad filter name "${P}"`);B=null,Array.isArray(S)&&A in S&&(B=this.xref.fetchIfRef(S[A])),R=this.makeFilter(R,P.name,M,B),M=null}}return R}makeFilter(R,T,O,P){if(O===0)return(0,y.warn)(`Empty "${T}" stream.`),new m.NullStream;try{const B=this.xref.stats.streamTypes;if(T==="FlateDecode"||T==="Fl")return B[y.StreamType.FLATE]=!0,P?new m.PredictorStream(new m.FlateStream(R,O),O,P):new m.FlateStream(R,O);if(T==="LZWDecode"||T==="LZW"){B[y.StreamType.LZW]=!0;let M=1;return P?(P.has("EarlyChange")&&(M=P.get("EarlyChange")),new m.PredictorStream(new m.LZWStream(R,O,M),O,P)):new m.LZWStream(R,O,M)}return T==="DCTDecode"||T==="DCT"?(B[y.StreamType.DCT]=!0,new $.JpegStream(R,O,R.dict,P)):T==="JPXDecode"||T==="JPX"?(B[y.StreamType.JPX]=!0,new Q.JpxStream(R,O,R.dict,P)):T==="ASCII85Decode"||T==="A85"?(B[y.StreamType.A85]=!0,new m.Ascii85Stream(R,O)):T==="ASCIIHexDecode"||T==="AHx"?(B[y.StreamType.AHX]=!0,new m.AsciiHexStream(R,O)):T==="CCITTFaxDecode"||T==="CCF"?(B[y.StreamType.CCF]=!0,new q.CCITTFaxStream(R,O,P)):T==="RunLengthDecode"||T==="RL"?(B[y.StreamType.RLX]=!0,new m.RunLengthStream(R,O)):T==="JBIG2Decode"?(B[y.StreamType.JBIG]=!0,new w.Jbig2Stream(R,O,R.dict,P)):((0,y.warn)(`Filter "${T}" is not supported.`),R)}catch(B){if(B instanceof a.MissingDataException)throw B;return(0,y.warn)(`Invalid stream: "${B}"`),new m.NullStream}}}f.Parser=ae;const H=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Y(L){return L>=48&&L<=57?L&15:L>=65&&L<=70||L>=97&&L<=102?(L&15)+9:-1}class G{constructor(R,T=null){this.stream=R,this.nextChar(),this.strBuf=[],this.knownCommands=T,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let R=this.currentChar,T=!1,O=0,P=0;if(R===45?(P=-1,R=this.nextChar(),R===45&&(R=this.nextChar())):R===43&&(P=1,R=this.nextChar()),R===10||R===13)do R=this.nextChar();while(R===10||R===13);if(R===46&&(O=10,R=this.nextChar()),R<48||R>57){if(O===10&&P===0&&((0,a.isWhiteSpace)(R)||R===-1))return(0,y.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new y.FormatError(`Invalid number: ${String.fromCharCode(R)} (charCode ${R})`)}P=P||1;let B=R-48,M=0,F=1;for(;(R=this.nextChar())>=0;)if(R>=48&&R<=57){const S=R-48;T?M=M*10+S:(O!==0&&(O*=10),B=B*10+S)}else if(R===46)if(O===0)O=1;else break;else if(R===45)(0,y.warn)("Badly formatted number: minus sign in the middle");else if(R===69||R===101){if(R=this.peekChar(),R===43||R===45)F=R===45?-1:1,this.nextChar();else if(R<48||R>57)break;T=!0}else break;return O!==0&&(B/=O),T&&(B*=10**(F*M)),P*B}getString(){let R=1,T=!1;const O=this.strBuf;O.length=0;let P=this.nextChar();for(;;){let B=!1;switch(P|0){case-1:(0,y.warn)("Unterminated string"),T=!0;break;case 40:++R,O.push("(");break;case 41:--R===0?(this.nextChar(),T=!0):O.push(")");break;case 92:switch(P=this.nextChar(),P){case-1:(0,y.warn)("Unterminated string"),T=!0;break;case 110:O.push(`
|
|
85
|
+
`);break;case 114:O.push("\r");break;case 116:O.push(" ");break;case 98:O.push("\b");break;case 102:O.push("\f");break;case 92:case 40:case 41:O.push(String.fromCharCode(P));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let M=P&15;P=this.nextChar(),B=!0,P>=48&&P<=55&&(M=(M<<3)+(P&15),P=this.nextChar(),P>=48&&P<=55&&(B=!1,M=(M<<3)+(P&15))),O.push(String.fromCharCode(M));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:O.push(String.fromCharCode(P));break}break;default:O.push(String.fromCharCode(P));break}if(T)break;B||(P=this.nextChar())}return O.join("")}getName(){let R,T;const O=this.strBuf;for(O.length=0;(R=this.nextChar())>=0&&!H[R];)if(R===35){if(R=this.nextChar(),H[R]){(0,y.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),O.push("#");break}const P=Y(R);if(P!==-1){T=R,R=this.nextChar();const B=Y(R);if(B===-1){if((0,y.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(R)}) in hexadecimal number.`),O.push("#",String.fromCharCode(T)),H[R])break;O.push(String.fromCharCode(R));continue}O.push(String.fromCharCode(P<<4|B))}else O.push("#",String.fromCharCode(R))}else O.push(String.fromCharCode(R));return O.length>127&&(0,y.warn)(`Name token is longer than allowed by the spec: ${O.length}`),k.Name.get(O.join(""))}_hexStringWarn(R){if(this._hexStringNumWarn++===5){(0,y.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,y.warn)(`getHexString - ignoring invalid character: ${R}`)}getHexString(){const R=this.strBuf;R.length=0;let T=this.currentChar,O=!0,P,B;for(this._hexStringNumWarn=0;;)if(T<0){(0,y.warn)("Unterminated hex string");break}else if(T===62){this.nextChar();break}else if(H[T]===1){T=this.nextChar();continue}else{if(O){if(P=Y(T),P===-1){this._hexStringWarn(T),T=this.nextChar();continue}}else{if(B=Y(T),B===-1){this._hexStringWarn(T),T=this.nextChar();continue}R.push(String.fromCharCode(P<<4|B))}O=!O,T=this.nextChar()}return R.join("")}getObj(){let R=!1,T=this.currentChar;for(;;){if(T<0)return k.EOF;if(R)(T===10||T===13)&&(R=!1);else if(T===37)R=!0;else if(H[T]!==1)break;T=this.nextChar()}switch(T|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),k.Cmd.get("[");case 93:return this.nextChar(),k.Cmd.get("]");case 60:return T=this.nextChar(),T===60?(this.nextChar(),k.Cmd.get("<<")):this.getHexString();case 62:return T=this.nextChar(),T===62?(this.nextChar(),k.Cmd.get(">>")):k.Cmd.get(">");case 123:return this.nextChar(),k.Cmd.get("{");case 125:return this.nextChar(),k.Cmd.get("}");case 41:throw this.nextChar(),new y.FormatError(`Illegal character: ${T}`)}let O=String.fromCharCode(T);const P=this.knownCommands;let B=P&&P[O]!==void 0;for(;(T=this.nextChar())>=0&&!H[T];){const M=O+String.fromCharCode(T);if(B&&P[M]===void 0)break;if(O.length===128)throw new y.FormatError(`Command token too long: ${O.length}`);O=M,B=P&&P[O]!==void 0}return O==="true"?!0:O==="false"?!1:O==="null"?null:(O==="BI"&&(this.beginInlineImagePos=this.stream.pos),k.Cmd.get(O))}skipToNextLine(){let R=this.currentChar;for(;R>=0;){if(R===13){R=this.nextChar(),R===10&&this.nextChar();break}else if(R===10){this.nextChar();break}R=this.nextChar()}}}f.Lexer=G;class j{static create(R){function T(_,D,N=!1){const U=_.get(D);if(Number.isInteger(U)&&(N?U>=0:U>0))return U;throw new Error(`The "${D}" parameter in the linearization dictionary is invalid.`)}function O(_){const D=_.get("H");let N;if(Array.isArray(D)&&((N=D.length)===2||N===4)){for(let U=0;U<N;U++){const z=D[U];if(!(Number.isInteger(z)&&z>0))throw new Error(`Hint (${U}) in the linearization dictionary is invalid.`)}return D}throw new Error("Hint array in the linearization dictionary is invalid.")}const P=new ae({lexer:new G(R),xref:null}),B=P.getObj(),M=P.getObj(),F=P.getObj(),S=P.getObj();let A,E;if(Number.isInteger(B)&&Number.isInteger(M)&&(0,k.isCmd)(F,"obj")&&(0,k.isDict)(S)&&(0,y.isNum)(A=S.get("Linearized"))&&A>0){if((E=T(S,"L"))!==R.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:E,hints:O(S),objectNumberFirst:T(S,"O"),endFirst:T(S,"E"),numPages:T(S,"N"),mainXRefEntriesOffset:T(S,"T"),pageFirst:S.has("P")?T(S,"P",!0):0}}}f.Linearization=j},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.LZWStream=f.StringStream=f.StreamsSequenceStream=f.Stream=f.RunLengthStream=f.PredictorStream=f.NullStream=f.FlateStream=f.DecodeStream=f.DecryptStream=f.AsciiHexStream=f.Ascii85Stream=void 0;var m=b(2),y=b(5),k=b(8),a=function(){function L(R,T,O,P){this.bytes=R instanceof Uint8Array?R:new Uint8Array(R),this.start=T||0,this.pos=this.start,this.end=T+O||this.bytes.length,this.dict=P}return L.prototype={get length(){return this.end-this.start},get isEmpty(){return this.length===0},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var T=this.getByte(),O=this.getByte();return T===-1||O===-1?-1:(T<<8)+O},getInt32:function(){var T=this.getByte(),O=this.getByte(),P=this.getByte(),B=this.getByte();return(T<<24)+(O<<16)+(P<<8)+B},getBytes(R,T=!1){var O=this.bytes,P=this.pos,B=this.end;if(!R){const S=O.subarray(P,B);return T?new Uint8ClampedArray(S):S}var M=P+R;M>B&&(M=B),this.pos=M;const F=O.subarray(P,M);return T?new Uint8ClampedArray(F):F},peekByte:function(){var T=this.getByte();return T!==-1&&this.pos--,T},peekBytes(R,T=!1){var O=this.getBytes(R,T);return this.pos-=O.length,O},getByteRange(R,T){return R<0&&(R=0),T>this.end&&(T=this.end),this.bytes.subarray(R,T)},skip:function(T){T||(T=1),this.pos+=T},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(T,O,P){return new L(this.bytes.buffer,T,O,P)}},L}();f.Stream=a;var q=function(){function L(R){const T=(0,m.stringToBytes)(R);a.call(this,T)}return L.prototype=a.prototype,L}();f.StringStream=q;var w=function(){var L=new Uint8Array(0);function R(T){if(this._rawMinBufferLength=T||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=L,this.minBufferLength=512,T)for(;this.minBufferLength<T;)this.minBufferLength*=2}return R.prototype={get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},ensureBuffer:function(O){var P=this.buffer;if(O<=P.byteLength)return P;for(var B=this.minBufferLength;B<O;)B*=2;var M=new Uint8Array(B);return M.set(P),this.buffer=M},getByte:function(){for(var O=this.pos;this.bufferLength<=O;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var O=this.getByte(),P=this.getByte();return O===-1||P===-1?-1:(O<<8)+P},getInt32:function(){var O=this.getByte(),P=this.getByte(),B=this.getByte(),M=this.getByte();return(O<<24)+(P<<16)+(B<<8)+M},getBytes(T,O=!1){var P,B=this.pos;if(T){for(this.ensureBuffer(B+T),P=B+T;!this.eof&&this.bufferLength<P;)this.readBlock();var M=this.bufferLength;P>M&&(P=M)}else{for(;!this.eof;)this.readBlock();P=this.bufferLength}this.pos=P;const F=this.buffer.subarray(B,P);return O&&!(F instanceof Uint8ClampedArray)?new Uint8ClampedArray(F):F},peekByte:function(){var O=this.getByte();return O!==-1&&this.pos--,O},peekBytes(T,O=!1){var P=this.getBytes(T,O);return this.pos-=P.length,P},makeSubStream:function(O,P,B){for(var M=O+P;this.bufferLength<=M&&!this.eof;)this.readBlock();return new a(this.buffer,O,P,B)},getByteRange(T,O){(0,m.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(O){O||(O=1),this.pos+=O},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},R}();f.DecodeStream=w;var $=function(){function L(R){this.streams=R;let T=0;for(let O=0,P=R.length;O<P;O++){const B=R[O];B instanceof w?T+=B._rawMinBufferLength:T+=B.length}w.call(this,T)}return L.prototype=Object.create(w.prototype),L.prototype.readBlock=function(){var T=this.streams;if(T.length===0){this.eof=!0;return}var O=T.shift(),P=O.getBytes(),B=this.bufferLength,M=B+P.length,F=this.ensureBuffer(M);F.set(P,B),this.bufferLength=M},L.prototype.getBaseStreams=function(){for(var T=[],O=0,P=this.streams.length;O<P;O++){var B=this.streams[O];B.getBaseStreams&&T.push(...B.getBaseStreams())}return T},L}();f.StreamsSequenceStream=$;var Q=function(){var L=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),R=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),T=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),O=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],P=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function B(M,F){this.str=M,this.dict=M.dict;var S=M.getByte(),A=M.getByte();if(S===-1||A===-1)throw new m.FormatError(`Invalid header in flate stream: ${S}, ${A}`);if((S&15)!==8)throw new m.FormatError(`Unknown compression method in flate stream: ${S}, ${A}`);if(((S<<8)+A)%31!==0)throw new m.FormatError(`Bad FCHECK in flate stream: ${S}, ${A}`);if(A&32)throw new m.FormatError(`FDICT bit set in flate stream: ${S}, ${A}`);this.codeSize=0,this.codeBuf=0,w.call(this,F)}return B.prototype=Object.create(w.prototype),B.prototype.getBits=function(F){for(var S=this.str,A=this.codeSize,E=this.codeBuf,_;A<F;){if((_=S.getByte())===-1)throw new m.FormatError("Bad encoding in flate stream");E|=_<<A,A+=8}return _=E&(1<<F)-1,this.codeBuf=E>>F,this.codeSize=A-=F,_},B.prototype.getCode=function(F){for(var S=this.str,A=F[0],E=F[1],_=this.codeSize,D=this.codeBuf,N;_<E&&(N=S.getByte())!==-1;)D|=N<<_,_+=8;var U=A[D&(1<<E)-1],z=U>>16,te=U&65535;if(z<1||_<z)throw new m.FormatError("Bad encoding in flate stream");return this.codeBuf=D>>z,this.codeSize=_-z,te},B.prototype.generateHuffmanTable=function(F){var S=F.length,A=0,E;for(E=0;E<S;++E)F[E]>A&&(A=F[E]);for(var _=1<<A,D=new Int32Array(_),N=1,U=0,z=2;N<=A;++N,U<<=1,z<<=1)for(var te=0;te<S;++te)if(F[te]===N){var W=0,re=U;for(E=0;E<N;++E)W=W<<1|re&1,re>>=1;for(E=W;E<_;E+=z)D[E]=N<<16|te;++U}return[D,A]},B.prototype.readBlock=function(){var F,S,A=this.str,E=this.getBits(3);if(E&1&&(this.eof=!0),E>>=1,E===0){var _;if((_=A.getByte())===-1)throw new m.FormatError("Bad block header in flate stream");var D=_;if((_=A.getByte())===-1)throw new m.FormatError("Bad block header in flate stream");if(D|=_<<8,(_=A.getByte())===-1)throw new m.FormatError("Bad block header in flate stream");var N=_;if((_=A.getByte())===-1)throw new m.FormatError("Bad block header in flate stream");if(N|=_<<8,N!==(~D&65535)&&(D!==0||N!==0))throw new m.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const xe=this.bufferLength,Ce=xe+D;if(F=this.ensureBuffer(Ce),this.bufferLength=Ce,D===0)A.peekByte()===-1&&(this.eof=!0);else{const be=A.getBytes(D);F.set(be,xe),be.length<D&&(this.eof=!0)}return}var U,z;if(E===1)U=O,z=P;else if(E===2){var te=this.getBits(5)+257,W=this.getBits(5)+1,re=this.getBits(4)+4,ee=new Uint8Array(L.length),X;for(X=0;X<re;++X)ee[L[X]]=this.getBits(3);var K=this.generateHuffmanTable(ee);S=0,X=0;for(var Z=te+W,se=new Uint8Array(Z),ie,de,ce;X<Z;){var he=this.getCode(K);if(he===16)ie=2,de=3,ce=S;else if(he===17)ie=3,de=3,ce=S=0;else if(he===18)ie=7,de=11,ce=S=0;else{se[X++]=S=he;continue}for(var oe=this.getBits(ie)+de;oe-- >0;)se[X++]=ce}U=this.generateHuffmanTable(se.subarray(0,te)),z=this.generateHuffmanTable(se.subarray(te,Z))}else throw new m.FormatError("Unknown block type in flate stream");F=this.buffer;for(var ne=F?F.length:0,ue=this.bufferLength;;){var le=this.getCode(U);if(le<256){ue+1>=ne&&(F=this.ensureBuffer(ue+1),ne=F.length),F[ue++]=le;continue}if(le===256){this.bufferLength=ue;return}le-=257,le=R[le];var fe=le>>16;fe>0&&(fe=this.getBits(fe)),S=(le&65535)+fe,le=this.getCode(z),le=T[le],fe=le>>16,fe>0&&(fe=this.getBits(fe));var pe=(le&65535)+fe;ue+S>=ne&&(F=this.ensureBuffer(ue+S),ne=F.length);for(var ve=0;ve<S;++ve,++ue)F[ue]=F[ue-pe]}},B}();f.FlateStream=Q;var C=function(){function L(R,T,O){if(!(0,y.isDict)(O))return R;var P=this.predictor=O.get("Predictor")||1;if(P<=1)return R;if(P!==2&&(P<10||P>15))throw new m.FormatError(`Unsupported predictor: ${P}`);P===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=R,this.dict=R.dict;var B=this.colors=O.get("Colors")||1,M=this.bits=O.get("BitsPerComponent")||8,F=this.columns=O.get("Columns")||1;return this.pixBytes=B*M+7>>3,this.rowBytes=F*B*M+7>>3,w.call(this,T),this}return L.prototype=Object.create(w.prototype),L.prototype.readBlockTiff=function(){var T=this.rowBytes,O=this.bufferLength,P=this.ensureBuffer(O+T),B=this.bits,M=this.colors,F=this.str.getBytes(T);if(this.eof=!F.length,!this.eof){var S=0,A=0,E=0,_=0,D=O,N;if(B===1&&M===1)for(N=0;N<T;++N){var U=F[N]^S;U^=U>>1,U^=U>>2,U^=U>>4,S=(U&1)<<7,P[D++]=U}else if(B===8){for(N=0;N<M;++N)P[D++]=F[N];for(;N<T;++N)P[D]=P[D-M]+F[N],D++}else if(B===16){var z=M*2;for(N=0;N<z;++N)P[D++]=F[N];for(;N<T;N+=2){var te=((F[N]&255)<<8)+(F[N+1]&255)+((P[D-z]&255)<<8)+(P[D-z+1]&255);P[D++]=te>>8&255,P[D++]=te&255}}else{var W=new Uint8Array(M+1),re=(1<<B)-1,ee=0,X=O,K=this.columns;for(N=0;N<K;++N)for(var Z=0;Z<M;++Z)E<B&&(S=S<<8|F[ee++]&255,E+=8),W[Z]=W[Z]+(S>>E-B)&re,E-=B,A=A<<B|W[Z],_+=B,_>=8&&(P[X++]=A>>_-8&255,_-=8);_>0&&(P[X++]=(A<<8-_)+(S&(1<<8-_)-1))}this.bufferLength+=T}},L.prototype.readBlockPng=function(){var T=this.rowBytes,O=this.pixBytes,P=this.str.getByte(),B=this.str.getBytes(T);if(this.eof=!B.length,!this.eof){var M=this.bufferLength,F=this.ensureBuffer(M+T),S=F.subarray(M-T,M);S.length===0&&(S=new Uint8Array(T));var A,E=M,_,D;switch(P){case 0:for(A=0;A<T;++A)F[E++]=B[A];break;case 1:for(A=0;A<O;++A)F[E++]=B[A];for(;A<T;++A)F[E]=F[E-O]+B[A]&255,E++;break;case 2:for(A=0;A<T;++A)F[E++]=S[A]+B[A]&255;break;case 3:for(A=0;A<O;++A)F[E++]=(S[A]>>1)+B[A];for(;A<T;++A)F[E]=(S[A]+F[E-O]>>1)+B[A]&255,E++;break;case 4:for(A=0;A<O;++A)_=S[A],D=B[A],F[E++]=_+D;for(;A<T;++A){_=S[A];var N=S[A-O],U=F[E-O],z=U+_-N,te=z-U;te<0&&(te=-te);var W=z-_;W<0&&(W=-W);var re=z-N;re<0&&(re=-re),D=B[A],te<=W&&te<=re?F[E++]=U+D:W<=re?F[E++]=_+D:F[E++]=N+D}break;default:throw new m.FormatError(`Unsupported predictor: ${P}`)}this.bufferLength+=T}},L}();f.PredictorStream=C;var v=function(){function L(T,O,P){this.str=T,this.dict=T.dict,this.decrypt=P,this.nextChunk=null,this.initialized=!1,w.call(this,O)}var R=512;return L.prototype=Object.create(w.prototype),L.prototype.readBlock=function(){var O;if(this.initialized?O=this.nextChunk:(O=this.str.getBytes(R),this.initialized=!0),!O||O.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(R);var P=this.nextChunk&&this.nextChunk.length>0,B=this.decrypt;O=B(O,!P);var M=this.bufferLength,F,S=O.length,A=this.ensureBuffer(M+S);for(F=0;F<S;F++)A[M++]=O[F];this.bufferLength=M},L}();f.DecryptStream=v;var J=function(){function L(R,T){this.str=R,this.dict=R.dict,this.input=new Uint8Array(5),T&&(T=.8*T),w.call(this,T)}return L.prototype=Object.create(w.prototype),L.prototype.readBlock=function(){for(var T=126,O=122,P=-1,B=this.str,M=B.getByte();(0,k.isWhiteSpace)(M);)M=B.getByte();if(M===P||M===T){this.eof=!0;return}var F=this.bufferLength,S,A;if(M===O){for(S=this.ensureBuffer(F+4),A=0;A<4;++A)S[F+A]=0;this.bufferLength+=4}else{var E=this.input;for(E[0]=M,A=1;A<5;++A){for(M=B.getByte();(0,k.isWhiteSpace)(M);)M=B.getByte();if(E[A]=M,M===P||M===T)break}if(S=this.ensureBuffer(F+A-1),this.bufferLength+=A-1,A<5){for(;A<5;++A)E[A]=33+84;this.eof=!0}var _=0;for(A=0;A<5;++A)_=_*85+(E[A]-33);for(A=3;A>=0;--A)S[F+A]=_&255,_>>=8}},L}();f.Ascii85Stream=J;var ae=function(){function L(R,T){this.str=R,this.dict=R.dict,this.firstDigit=-1,T&&(T=.5*T),w.call(this,T)}return L.prototype=Object.create(w.prototype),L.prototype.readBlock=function(){var T=8e3,O=this.str.getBytes(T);if(!O.length){this.eof=!0;return}for(var P=O.length+1>>1,B=this.ensureBuffer(this.bufferLength+P),M=this.bufferLength,F=this.firstDigit,S=0,A=O.length;S<A;S++){var E=O[S],_;if(E>=48&&E<=57)_=E&15;else if(E>=65&&E<=70||E>=97&&E<=102)_=(E&15)+9;else if(E===62){this.eof=!0;break}else continue;F<0?F=_:(B[M++]=F<<4|_,F=-1)}F>=0&&this.eof&&(B[M++]=F<<4,F=-1),this.firstDigit=F,this.bufferLength=M},L}();f.AsciiHexStream=ae;var H=function(){function L(R,T){this.str=R,this.dict=R.dict,w.call(this,T)}return L.prototype=Object.create(w.prototype),L.prototype.readBlock=function(){var T=this.str.getBytes(2);if(!T||T.length<2||T[0]===128){this.eof=!0;return}var O,P=this.bufferLength,B=T[0];if(B<128){if(O=this.ensureBuffer(P+B+1),O[P++]=T[1],B>0){var M=this.str.getBytes(B);O.set(M,P),P+=B}}else{B=257-B;var F=T[1];O=this.ensureBuffer(P+B+1);for(var S=0;S<B;S++)O[P++]=F}this.bufferLength=P},L}();f.RunLengthStream=H;var Y=function(){function L(R,T,O){this.str=R,this.dict=R.dict,this.cachedData=0,this.bitsCached=0;for(var P=4096,B={earlyChange:O,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(P),dictionaryLengths:new Uint16Array(P),dictionaryPrevCodes:new Uint16Array(P),currentSequence:new Uint8Array(P),currentSequenceLength:0},M=0;M<256;++M)B.dictionaryValues[M]=M,B.dictionaryLengths[M]=1;this.lzwState=B,w.call(this,T)}return L.prototype=Object.create(w.prototype),L.prototype.readBits=function(T){for(var O=this.bitsCached,P=this.cachedData;O<T;){var B=this.str.getByte();if(B===-1)return this.eof=!0,null;P=P<<8|B,O+=8}return this.bitsCached=O-=T,this.cachedData=P,this.lastCode=null,P>>>O&(1<<T)-1},L.prototype.readBlock=function(){var T=512,O=T*2,P=T,B,M,F,S=this.lzwState;if(!!S){var A=S.earlyChange,E=S.nextCode,_=S.dictionaryValues,D=S.dictionaryLengths,N=S.dictionaryPrevCodes,U=S.codeLength,z=S.prevCode,te=S.currentSequence,W=S.currentSequenceLength,re=0,ee=this.bufferLength,X=this.ensureBuffer(this.bufferLength+O);for(B=0;B<T;B++){var K=this.readBits(U),Z=W>0;if(K<256)te[0]=K,W=1;else if(K>=258)if(K<E)for(W=D[K],M=W-1,F=K;M>=0;M--)te[M]=_[F],F=N[F];else te[W++]=te[0];else if(K===256){U=9,E=258,W=0;continue}else{this.eof=!0,delete this.lzwState;break}if(Z&&(N[E]=z,D[E]=D[z]+1,_[E]=te[0],E++,U=E+A&E+A-1?U:Math.min(Math.log(E+A)/.6931471805599453+1,12)|0),z=K,re+=W,O<re){do O+=P;while(O<re);X=this.ensureBuffer(this.bufferLength+O)}for(M=0;M<W;M++)X[ee++]=te[M]}S.nextCode=E,S.codeLength=U,S.prevCode=z,S.currentSequenceLength=W,this.bufferLength=ee}},L}();f.LZWStream=Y;var G=function(){function L(){a.call(this,new Uint8Array(0))}return L.prototype=a.prototype,L}();f.NullStream=G},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.CCITTFaxStream=void 0;var m=b(5),y=b(14),k=b(12),a=function(){function w($,Q,C){this.str=$,this.dict=$.dict,(0,m.isDict)(C)||(C=m.Dict.empty);const v={next(){return $.getByte()}};this.ccittFaxDecoder=new y.CCITTFaxDecoder(v,{K:C.get("K"),EndOfLine:C.get("EndOfLine"),EncodedByteAlign:C.get("EncodedByteAlign"),Columns:C.get("Columns"),Rows:C.get("Rows"),EndOfBlock:C.get("EndOfBlock"),BlackIs1:C.get("BlackIs1")}),k.DecodeStream.call(this,Q)}return w.prototype=Object.create(k.DecodeStream.prototype),w.prototype.readBlock=function(){for(;!this.eof;){const $=this.ccittFaxDecoder.readNextChar();if($===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=$}},w}();f.CCITTFaxStream=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.CCITTFaxDecoder=void 0;var m=b(2);const y=function(){const G=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],j=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],L=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],R=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],T=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],O=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function P(B,M={}){if(!B||typeof B.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=B,this.eof=!1,this.encoding=M.K||0,this.eoline=M.EndOfLine||!1,this.byteAlign=M.EncodedByteAlign||!1,this.columns=M.Columns||1728,this.rows=M.Rows||0;let F=M.EndOfBlock;F==null&&(F=!0),this.eoblock=F,this.black=M.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let S;for(;(S=this._lookBits(12))===0;)this._eatBits(1);S===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return P.prototype={readNextChar(){if(this.eof)return-1;const B=this.refLine,M=this.codingLine,F=this.columns;let S,A,E,_;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let N,U,z;if(this.nextLine2D){for(_=0;M[_]<F;++_)B[_]=M[_];for(B[_++]=F,B[_]=F,M[0]=0,this.codingPos=0,S=0,A=0;M[this.codingPos]<F;)switch(N=this._getTwoDimCode(),N){case 0:this._addPixels(B[S+1],A),B[S+1]<F&&(S+=2);break;case 1:if(N=U=0,A){do N+=z=this._getBlackCode();while(z>=64);do U+=z=this._getWhiteCode();while(z>=64)}else{do N+=z=this._getWhiteCode();while(z>=64);do U+=z=this._getBlackCode();while(z>=64)}for(this._addPixels(M[this.codingPos]+N,A),M[this.codingPos]<F&&this._addPixels(M[this.codingPos]+U,A^1);B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 7:if(this._addPixels(B[S]+3,A),A^=1,M[this.codingPos]<F)for(++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 5:if(this._addPixels(B[S]+2,A),A^=1,M[this.codingPos]<F)for(++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 3:if(this._addPixels(B[S]+1,A),A^=1,M[this.codingPos]<F)for(++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 2:if(this._addPixels(B[S],A),A^=1,M[this.codingPos]<F)for(++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 8:if(this._addPixelsNeg(B[S]-3,A),A^=1,M[this.codingPos]<F)for(S>0?--S:++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 6:if(this._addPixelsNeg(B[S]-2,A),A^=1,M[this.codingPos]<F)for(S>0?--S:++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case 4:if(this._addPixelsNeg(B[S]-1,A),A^=1,M[this.codingPos]<F)for(S>0?--S:++S;B[S]<=M[this.codingPos]&&B[S]<F;)S+=2;break;case-1:this._addPixels(F,0),this.eof=!0;break;default:(0,m.info)("bad 2d code"),this._addPixels(F,0),this.err=!0}}else for(M[0]=0,this.codingPos=0,A=0;M[this.codingPos]<F;){if(N=0,A)do N+=z=this._getBlackCode();while(z>=64);else do N+=z=this._getWhiteCode();while(z>=64);this._addPixels(M[this.codingPos]+N,A),A^=1}let te=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(N=this._lookBits(12),this.eoline)for(;N!==-1&&N!==1;)this._eatBits(1),N=this._lookBits(12);else for(;N===0;)this._eatBits(1),N=this._lookBits(12);N===1?(this._eatBits(12),te=!0):N===-1&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&te&&this.byteAlign){if(N=this._lookBits(12),N===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(_=0;_<4;++_)N=this._lookBits(12),N!==1&&(0,m.info)("bad rtc code: "+N),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(N=this._lookBits(13),N===-1)return this.eof=!0,-1;if(N>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(N&1))}M[0]>0?this.outputBits=M[this.codingPos=0]:this.outputBits=M[this.codingPos=1],this.row++}let D;if(this.outputBits>=8)D=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&M[this.codingPos]<F&&(this.codingPos++,this.outputBits=M[this.codingPos]-M[this.codingPos-1]);else{E=8,D=0;do this.outputBits>E?(D<<=E,this.codingPos&1||(D|=255>>8-E),this.outputBits-=E,E=0):(D<<=this.outputBits,this.codingPos&1||(D|=255>>8-this.outputBits),E-=this.outputBits,this.outputBits=0,M[this.codingPos]<F?(this.codingPos++,this.outputBits=M[this.codingPos]-M[this.codingPos-1]):E>0&&(D<<=E,E=0));while(E)}return this.black&&(D^=255),D},_addPixels(B,M){const F=this.codingLine;let S=this.codingPos;B>F[S]&&(B>this.columns&&((0,m.info)("row is wrong length"),this.err=!0,B=this.columns),S&1^M&&++S,F[S]=B),this.codingPos=S},_addPixelsNeg(B,M){const F=this.codingLine;let S=this.codingPos;if(B>F[S])B>this.columns&&((0,m.info)("row is wrong length"),this.err=!0,B=this.columns),S&1^M&&++S,F[S]=B;else if(B<F[S]){for(B<0&&((0,m.info)("invalid code"),this.err=!0,B=0);S>0&&B<F[S-1];)--S;F[S]=B}this.codingPos=S},_findTableCode(B,M,F,S){const A=S||0;for(let E=B;E<=M;++E){let _=this._lookBits(E);if(_===-1)return[!0,1,!1];if(E<M&&(_<<=M-E),!A||_>=A){const D=F[_-A];if(D[0]===E)return this._eatBits(E),[!0,D[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let B=0,M;if(this.eoblock){if(B=this._lookBits(7),M=G[B],M&&M[0]>0)return this._eatBits(M[0]),M[1]}else{const F=this._findTableCode(1,7,G);if(F[0]&&F[2])return F[1]}return(0,m.info)("Bad two dim code"),-1},_getWhiteCode(){let B=0,M;if(this.eoblock){if(B=this._lookBits(12),B===-1)return 1;if(B>>5===0?M=j[B]:M=L[B>>3],M[0]>0)return this._eatBits(M[0]),M[1]}else{let F=this._findTableCode(1,9,L);if(F[0]||(F=this._findTableCode(11,12,j),F[0]))return F[1]}return(0,m.info)("bad white code"),this._eatBits(1),1},_getBlackCode(){let B,M;if(this.eoblock){if(B=this._lookBits(13),B===-1)return 1;if(B>>7===0?M=R[B]:B>>9===0&&B>>7!==0?M=T[(B>>1)-64]:M=O[B>>7],M[0]>0)return this._eatBits(M[0]),M[1]}else{let F=this._findTableCode(2,6,O);if(F[0]||(F=this._findTableCode(7,12,T,64),F[0])||(F=this._findTableCode(10,13,R),F[0]))return F[1]}return(0,m.info)("bad black code"),this._eatBits(1),1},_lookBits(B){let M;for(;this.inputBits<B;){if((M=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<B-this.inputBits&65535>>16-B;this.inputBuf=this.inputBuf<<8|M,this.inputBits+=8}return this.inputBuf>>this.inputBits-B&65535>>16-B},_eatBits(B){(this.inputBits-=B)<0&&(this.inputBits=0)}},P}();f.CCITTFaxDecoder=y},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.Jbig2Stream=void 0;var m=b(5),y=b(12),k=b(16),a=b(2);const q=function(){function $(Q,C,v,J){this.stream=Q,this.maybeLength=C,this.dict=v,this.params=J,y.DecodeStream.call(this,C)}return $.prototype=Object.create(y.DecodeStream.prototype),Object.defineProperty($.prototype,"bytes",{get(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),$.prototype.ensureBuffer=function(Q){},$.prototype.readBlock=function(){if(this.eof)return;const Q=new k.Jbig2Image,C=[];if((0,m.isDict)(this.params)){const ae=this.params.get("JBIG2Globals");if((0,m.isStream)(ae)){const H=ae.getBytes();C.push({data:H,start:0,end:H.length})}}C.push({data:this.bytes,start:0,end:this.bytes.length});const v=Q.parseChunks(C),J=v.length;for(let ae=0;ae<J;ae++)v[ae]^=255;this.buffer=v,this.bufferLength=J,this.eof=!0},$}();f.Jbig2Stream=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.Jbig2Image=void 0;var m=b(2),y=b(8),k=b(17),a=b(14);class q extends m.BaseException{constructor(Q){super(`JBIG2 error: ${Q}`)}}var w=function(){function Q(){}Q.prototype={getContexts(ne){return ne in this?this[ne]:this[ne]=new Int8Array(1<<16)}};function C(ne,ue,le){this.data=ne,this.start=ue,this.end=le}C.prototype={get decoder(){var ne=new k.ArithmeticDecoder(this.data,this.start,this.end);return(0,m.shadow)(this,"decoder",ne)},get contextCache(){var ne=new Q;return(0,m.shadow)(this,"contextCache",ne)}};function v(ne,ue,le){var fe=ne.getContexts(ue),pe=1;function ve(be){for(var me=0,ge=0;ge<be;ge++){var ye=le.readBit(fe,pe);pe=pe<256?pe<<1|ye:(pe<<1|ye)&511|256,me=me<<1|ye}return me>>>0}var xe=ve(1),Ce=ve(1)?ve(1)?ve(1)?ve(1)?ve(1)?ve(32)+4436:ve(12)+340:ve(8)+84:ve(6)+20:ve(4)+4:ve(2);return xe===0?Ce:Ce>0?-Ce:null}function J(ne,ue,le){for(var fe=ne.getContexts("IAID"),pe=1,ve=0;ve<le;ve++){var xe=ue.readBit(fe,pe);pe=pe<<1|xe}return le<31?pe&(1<<le)-1:pe&2147483647}var ae=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],H=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],Y=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],G=[39717,1941,229,405],j=[32,8];function L(ne,ue,le){var fe=le.decoder,pe=le.contextCache.getContexts("GB"),ve,xe,Ce,be,me,ge,ye,Se=[],Ee=31735;for(xe=0;xe<ue;xe++)for(me=Se[xe]=new Uint8Array(ne),ge=xe<1?me:Se[xe-1],ye=xe<2?me:Se[xe-2],ve=ye[0]<<13|ye[1]<<12|ye[2]<<11|ge[0]<<7|ge[1]<<6|ge[2]<<5|ge[3]<<4,Ce=0;Ce<ne;Ce++)me[Ce]=be=fe.readBit(pe,ve),ve=(ve&Ee)<<1|(Ce+3<ne?ye[Ce+3]<<11:0)|(Ce+4<ne?ge[Ce+4]<<4:0)|be;return Se}function R(ne,ue,le,fe,pe,ve,xe,Ce){if(ne){const ft=new Z(Ce.data,Ce.start,Ce.end);return he(ft,ue,le,!1)}if(fe===0&&!ve&&!pe&&xe.length===4&&xe[0].x===3&&xe[0].y===-1&&xe[1].x===-3&&xe[1].y===-1&&xe[2].x===2&&xe[2].y===-2&&xe[3].x===-2&&xe[3].y===-2)return L(ue,le,Ce);var be=!!ve,me=H[fe].concat(xe);me.sort(function(ft,gt){return ft.y-gt.y||ft.x-gt.x});var ge=me.length,ye=new Int8Array(ge),Se=new Int8Array(ge),Ee=[],De=0,_e=0,Be=0,Te=0,Fe,we;for(we=0;we<ge;we++)ye[we]=me[we].x,Se[we]=me[we].y,_e=Math.min(_e,me[we].x),Be=Math.max(Be,me[we].x),Te=Math.min(Te,me[we].y),we<ge-1&&me[we].y===me[we+1].y&&me[we].x===me[we+1].x-1?De|=1<<ge-1-we:Ee.push(we);var Ae=Ee.length,ke=new Int8Array(Ae),Pe=new Int8Array(Ae),Le=new Uint16Array(Ae);for(Fe=0;Fe<Ae;Fe++)we=Ee[Fe],ke[Fe]=me[we].x,Pe[Fe]=me[we].y,Le[Fe]=1<<ge-1-we;for(var Ne=-_e,qe=-Te,Oe=ue-Be,Ge=G[fe],Ve=new Uint8Array(ue),Xe=[],at=Ce.decoder,Re=Ce.contextCache.getContexts("GB"),Me=0,ze,$e,je,Ze=0,Qe,ut,lt=0;lt<le;lt++){if(pe){var Ft=at.readBit(Re,Ge);if(Me^=Ft,Me){Xe.push(Ve);continue}}for(Ve=new Uint8Array(Ve),Xe.push(Ve),ze=0;ze<ue;ze++){if(be&&ve[lt][ze]){Ve[ze]=0;continue}if(ze>=Ne&&ze<Oe&<>=qe)for(Ze=Ze<<1&De,we=0;we<Ae;we++)$e=lt+Pe[we],je=ze+ke[we],Qe=Xe[$e][je],Qe&&(Qe=Le[we],Ze|=Qe);else for(Ze=0,ut=ge-1,we=0;we<ge;we++,ut--)je=ze+ye[we],je>=0&&je<ue&&($e=lt+Se[we],$e>=0&&(Qe=Xe[$e][je],Qe&&(Ze|=Qe<<ut)));var kt=at.readBit(Re,Ze);Ve[ze]=kt}}return Xe}function T(ne,ue,le,fe,pe,ve,xe,Ce,be){var me=Y[le].coding;le===0&&(me=me.concat([Ce[0]]));var ge=me.length,ye=new Int32Array(ge),Se=new Int32Array(ge),Ee;for(Ee=0;Ee<ge;Ee++)ye[Ee]=me[Ee].x,Se[Ee]=me[Ee].y;var De=Y[le].reference;le===0&&(De=De.concat([Ce[1]]));var _e=De.length,Be=new Int32Array(_e),Te=new Int32Array(_e);for(Ee=0;Ee<_e;Ee++)Be[Ee]=De[Ee].x,Te[Ee]=De[Ee].y;for(var Fe=fe[0].length,we=fe.length,Ae=j[le],ke=[],Pe=be.decoder,Le=be.contextCache.getContexts("GR"),Ne=0,qe=0;qe<ue;qe++){if(xe){var Oe=Pe.readBit(Le,Ae);if(Ne^=Oe,Ne)throw new q("prediction is not supported")}var Ge=new Uint8Array(ne);ke.push(Ge);for(var Ve=0;Ve<ne;Ve++){var Xe,at,Re=0;for(Ee=0;Ee<ge;Ee++)Xe=qe+Se[Ee],at=Ve+ye[Ee],Xe<0||at<0||at>=ne?Re<<=1:Re=Re<<1|ke[Xe][at];for(Ee=0;Ee<_e;Ee++)Xe=qe+Te[Ee]-ve,at=Ve+Be[Ee]-pe,Xe<0||Xe>=we||at<0||at>=Fe?Re<<=1:Re=Re<<1|fe[Xe][at];var Me=Pe.readBit(Le,Re);Ge[Ve]=Me}}return ke}function O(ne,ue,le,fe,pe,ve,xe,Ce,be,me,ge,ye){if(ne&&ue)throw new q("symbol refinement with Huffman is not supported");var Se=[],Ee=0,De=(0,y.log2)(le.length+fe),_e=ge.decoder,Be=ge.contextCache;let Te,Fe;for(ne&&(Te=K(1),Fe=[],De=Math.max(De,1));Se.length<fe;){var we=ne?ve.tableDeltaHeight.decode(ye):v(Be,"IADH",_e);Ee+=we;let je=0,Ze=0;const Qe=ne?Fe.length:0;for(;;){var Ae=ne?ve.tableDeltaWidth.decode(ye):v(Be,"IADW",_e);if(Ae===null)break;je+=Ae,Ze+=je;var ke;if(ue){var Pe=v(Be,"IAAI",_e);if(Pe>1)ke=P(ne,ue,je,Ee,0,Pe,1,le.concat(Se),De,0,0,1,0,ve,be,me,ge,0,ye);else{var Le=J(Be,_e,De),Ne=v(Be,"IARDX",_e),qe=v(Be,"IARDY",_e),Oe=Le<le.length?le[Le]:Se[Le-le.length];ke=T(je,Ee,be,Oe,Ne,qe,!1,me,ge)}Se.push(ke)}else ne?Fe.push(je):(ke=R(!1,je,Ee,xe,!1,null,Ce,ge),Se.push(ke))}if(ne&&!ue){const ut=ve.tableBitmapSize.decode(ye);ye.byteAlign();let lt;if(ut===0)lt=ce(ye,Ze,Ee);else{const kt=ye.end,ft=ye.position+ut;ye.end=ft,lt=he(ye,Ze,Ee,!1),ye.end=kt,ye.position=ft}const Ft=Fe.length;if(Qe===Ft-1)Se.push(lt);else{let kt,ft,gt=0,Dt,At,Rt;for(kt=Qe;kt<Ft;kt++){for(At=Fe[kt],Dt=gt+At,Rt=[],ft=0;ft<Ee;ft++)Rt.push(lt[ft].subarray(gt,Dt));Se.push(Rt),gt=Dt}}}}for(var Ge=[],Ve=[],Xe=!1,at=le.length+fe;Ve.length<at;){for(var Re=ne?Te.decode(ye):v(Be,"IAEX",_e);Re--;)Ve.push(Xe);Xe=!Xe}for(var Me=0,ze=le.length;Me<ze;Me++)Ve[Me]&&Ge.push(le[Me]);for(var $e=0;$e<fe;Me++,$e++)Ve[Me]&&Ge.push(Se[$e]);return Ge}function P(ne,ue,le,fe,pe,ve,xe,Ce,be,me,ge,ye,Se,Ee,De,_e,Be,Te,Fe){if(ne&&ue)throw new q("refinement with Huffman is not supported");var we=[],Ae,ke;for(Ae=0;Ae<fe;Ae++){if(ke=new Uint8Array(le),pe)for(var Pe=0;Pe<le;Pe++)ke[Pe]=pe;we.push(ke)}var Le=Be.decoder,Ne=Be.contextCache,qe=ne?-Ee.tableDeltaT.decode(Fe):-v(Ne,"IADT",Le),Oe=0;for(Ae=0;Ae<ve;){var Ge=ne?Ee.tableDeltaT.decode(Fe):v(Ne,"IADT",Le);qe+=Ge;var Ve=ne?Ee.tableFirstS.decode(Fe):v(Ne,"IAFS",Le);Oe+=Ve;var Xe=Oe;do{let Lt=0;xe>1&&(Lt=ne?Fe.readBits(Te):v(Ne,"IAIT",Le));var at=xe*qe+Lt,Re=ne?Ee.symbolIDTable.decode(Fe):J(Ne,Le,be),Me=ue&&(ne?Fe.readBit():v(Ne,"IARI",Le)),ze=Ce[Re],$e=ze[0].length,je=ze.length;if(Me){var Ze=v(Ne,"IARDW",Le),Qe=v(Ne,"IARDH",Le),ut=v(Ne,"IARDX",Le),lt=v(Ne,"IARDY",Le);$e+=Ze,je+=Qe,ze=T($e,je,De,ze,(Ze>>1)+ut,(Qe>>1)+lt,!1,_e,Be)}var Ft=at-(ye&1?0:je-1),kt=Xe-(ye&2?$e-1:0),ft,gt,Dt;if(me){for(ft=0;ft<je;ft++)if(ke=we[kt+ft],!!ke){Dt=ze[ft];var At=Math.min(le-Ft,$e);switch(Se){case 0:for(gt=0;gt<At;gt++)ke[Ft+gt]|=Dt[gt];break;case 2:for(gt=0;gt<At;gt++)ke[Ft+gt]^=Dt[gt];break;default:throw new q(`operator ${Se} is not supported`)}}Xe+=je-1}else{for(gt=0;gt<je;gt++)if(ke=we[Ft+gt],!!ke)switch(Dt=ze[gt],Se){case 0:for(ft=0;ft<$e;ft++)ke[kt+ft]|=Dt[ft];break;case 2:for(ft=0;ft<$e;ft++)ke[kt+ft]^=Dt[ft];break;default:throw new q(`operator ${Se} is not supported`)}Xe+=$e-1}Ae++;var Rt=ne?Ee.tableDeltaS.decode(Fe):v(Ne,"IADS",Le);if(Rt===null)break;Xe+=Rt+ge}while(!0)}return we}function B(ne,ue,le,fe,pe,ve){const xe=[];ne||(xe.push({x:-ue,y:0}),pe===0&&(xe.push({x:-3,y:-1}),xe.push({x:2,y:-2}),xe.push({x:-2,y:-2})));const Ce=(fe+1)*ue,be=R(ne,Ce,le,pe,!1,null,xe,ve),me=[];for(let ge=0;ge<=fe;ge++){const ye=[],Se=ue*ge,Ee=Se+ue;for(let De=0;De<le;De++)ye.push(be[De].subarray(Se,Ee));me.push(ye)}return me}function M(ne,ue,le,fe,pe,ve,xe,Ce,be,me,ge,ye,Se,Ee,De){if(xe)throw new q("skip is not supported");if(Ce!==0)throw new q("operator "+Ce+" is not supported in halftone region");const Be=[];let Te,Fe,we;for(Te=0;Te<pe;Te++){if(we=new Uint8Array(fe),ve)for(Fe=0;Fe<fe;Fe++)we[Fe]=ve;Be.push(we)}const Ae=ue.length,ke=ue[0],Pe=ke[0].length,Le=ke.length,Ne=(0,y.log2)(Ae),qe=[];ne||(qe.push({x:le<=1?3:2,y:-1}),le===0&&(qe.push({x:-3,y:-1}),qe.push({x:2,y:-2}),qe.push({x:-2,y:-2})));const Oe=[];let Ge,Ve;for(ne&&(Ge=new Z(De.data,De.start,De.end)),Te=Ne-1;Te>=0;Te--)ne?Ve=he(Ge,be,me,!0):Ve=R(!1,be,me,le,!1,null,qe,De),Oe[Te]=Ve;let Xe,at,Re,Me,ze,$e,je,Ze,Qe;for(Xe=0;Xe<me;Xe++)for(at=0;at<be;at++){for(Re=0,Me=0,Fe=Ne-1;Fe>=0;Fe--)Re=Oe[Fe][Xe][at]^Re,Me|=Re<<Fe;if(ze=ue[Me],$e=ge+Xe*Ee+at*Se>>8,je=ye+Xe*Se-at*Ee>>8,$e>=0&&$e+Pe<=fe&&je>=0&&je+Le<=pe)for(Te=0;Te<Le;Te++)for(Qe=Be[je+Te],Ze=ze[Te],Fe=0;Fe<Pe;Fe++)Qe[$e+Fe]|=Ze[Fe];else{let ut,lt;for(Te=0;Te<Le;Te++)if(lt=je+Te,!(lt<0||lt>=pe))for(Qe=Be[lt],Ze=ze[Te],Fe=0;Fe<Pe;Fe++)ut=$e+Fe,ut>=0&&ut<fe&&(Qe[ut]|=Ze[Fe])}}return Be}function F(ne,ue){var le={};le.number=(0,y.readUint32)(ne,ue);var fe=ne[ue+4],pe=fe&63;if(!ae[pe])throw new q("invalid segment type: "+pe);le.type=pe,le.typeName=ae[pe],le.deferredNonRetain=!!(fe&128);var ve=!!(fe&64),xe=ne[ue+5],Ce=xe>>5&7,be=[xe&31],me=ue+6;if(xe===7){Ce=(0,y.readUint32)(ne,me-1)&536870911,me+=3;var ge=Ce+7>>3;for(be[0]=ne[me++];--ge>0;)be.push(ne[me++])}else if(xe===5||xe===6)throw new q("invalid referred-to flags");le.retainBits=be;let ye=4;le.number<=256?ye=1:le.number<=65536&&(ye=2);var Se=[],Ee,De;for(Ee=0;Ee<Ce;Ee++){let ke;ye===1?ke=ne[me]:ye===2?ke=(0,y.readUint16)(ne,me):ke=(0,y.readUint32)(ne,me),Se.push(ke),me+=ye}if(le.referredTo=Se,ve?(le.pageAssociation=(0,y.readUint32)(ne,me),me+=4):le.pageAssociation=ne[me++],le.length=(0,y.readUint32)(ne,me),me+=4,le.length===4294967295)if(pe===38){var _e=A(ne,me),Be=ne[me+E],Te=!!(Be&1),Fe=6,we=new Uint8Array(Fe);for(Te||(we[0]=255,we[1]=172),we[2]=_e.height>>>24&255,we[3]=_e.height>>16&255,we[4]=_e.height>>8&255,we[5]=_e.height&255,Ee=me,De=ne.length;Ee<De;Ee++){for(var Ae=0;Ae<Fe&&we[Ae]===ne[Ee+Ae];)Ae++;if(Ae===Fe){le.length=Ee+Fe;break}}if(le.length===4294967295)throw new q("segment end was not found")}else throw new q("invalid unknown segment length");return le.headerEnd=me,le}function S(ne,ue,le,fe){for(var pe=[],ve=le;ve<fe;){var xe=F(ue,ve);ve=xe.headerEnd;var Ce={header:xe,data:ue};if(ne.randomAccess||(Ce.start=ve,ve+=xe.length,Ce.end=ve),pe.push(Ce),xe.type===51)break}if(ne.randomAccess)for(var be=0,me=pe.length;be<me;be++)pe[be].start=ve,ve+=pe[be].header.length,pe[be].end=ve;return pe}function A(ne,ue){return{width:(0,y.readUint32)(ne,ue),height:(0,y.readUint32)(ne,ue+4),x:(0,y.readUint32)(ne,ue+8),y:(0,y.readUint32)(ne,ue+12),combinationOperator:ne[ue+16]&7}}var E=17;function _(ne,ue){var le=ne.header,fe=ne.data,pe=ne.start,ve=ne.end,xe,Ce,be,me;switch(le.type){case 0:var ge={},ye=(0,y.readUint16)(fe,pe);if(ge.huffman=!!(ye&1),ge.refinement=!!(ye&2),ge.huffmanDHSelector=ye>>2&3,ge.huffmanDWSelector=ye>>4&3,ge.bitmapSizeSelector=ye>>6&1,ge.aggregationInstancesSelector=ye>>7&1,ge.bitmapCodingContextUsed=!!(ye&256),ge.bitmapCodingContextRetained=!!(ye&512),ge.template=ye>>10&3,ge.refinementTemplate=ye>>12&1,pe+=2,!ge.huffman){for(me=ge.template===0?4:1,Ce=[],be=0;be<me;be++)Ce.push({x:(0,y.readInt8)(fe,pe),y:(0,y.readInt8)(fe,pe+1)}),pe+=2;ge.at=Ce}if(ge.refinement&&!ge.refinementTemplate){for(Ce=[],be=0;be<2;be++)Ce.push({x:(0,y.readInt8)(fe,pe),y:(0,y.readInt8)(fe,pe+1)}),pe+=2;ge.refinementAt=Ce}ge.numberOfExportedSymbols=(0,y.readUint32)(fe,pe),pe+=4,ge.numberOfNewSymbols=(0,y.readUint32)(fe,pe),pe+=4,xe=[ge,le.number,le.referredTo,fe,pe,ve];break;case 6:case 7:var Se={};Se.info=A(fe,pe),pe+=E;var Ee=(0,y.readUint16)(fe,pe);if(pe+=2,Se.huffman=!!(Ee&1),Se.refinement=!!(Ee&2),Se.logStripSize=Ee>>2&3,Se.stripSize=1<<Se.logStripSize,Se.referenceCorner=Ee>>4&3,Se.transposed=!!(Ee&64),Se.combinationOperator=Ee>>7&3,Se.defaultPixelValue=Ee>>9&1,Se.dsOffset=Ee<<17>>27,Se.refinementTemplate=Ee>>15&1,Se.huffman){var De=(0,y.readUint16)(fe,pe);pe+=2,Se.huffmanFS=De&3,Se.huffmanDS=De>>2&3,Se.huffmanDT=De>>4&3,Se.huffmanRefinementDW=De>>6&3,Se.huffmanRefinementDH=De>>8&3,Se.huffmanRefinementDX=De>>10&3,Se.huffmanRefinementDY=De>>12&3,Se.huffmanRefinementSizeSelector=!!(De&16384)}if(Se.refinement&&!Se.refinementTemplate){for(Ce=[],be=0;be<2;be++)Ce.push({x:(0,y.readInt8)(fe,pe),y:(0,y.readInt8)(fe,pe+1)}),pe+=2;Se.refinementAt=Ce}Se.numberOfSymbolInstances=(0,y.readUint32)(fe,pe),pe+=4,xe=[Se,le.referredTo,fe,pe,ve];break;case 16:const Ae={},ke=fe[pe++];Ae.mmr=!!(ke&1),Ae.template=ke>>1&3,Ae.patternWidth=fe[pe++],Ae.patternHeight=fe[pe++],Ae.maxPatternIndex=(0,y.readUint32)(fe,pe),pe+=4,xe=[Ae,le.number,fe,pe,ve];break;case 22:case 23:const Pe={};Pe.info=A(fe,pe),pe+=E;const Le=fe[pe++];Pe.mmr=!!(Le&1),Pe.template=Le>>1&3,Pe.enableSkip=!!(Le&8),Pe.combinationOperator=Le>>4&7,Pe.defaultPixelValue=Le>>7&1,Pe.gridWidth=(0,y.readUint32)(fe,pe),pe+=4,Pe.gridHeight=(0,y.readUint32)(fe,pe),pe+=4,Pe.gridOffsetX=(0,y.readUint32)(fe,pe)&4294967295,pe+=4,Pe.gridOffsetY=(0,y.readUint32)(fe,pe)&4294967295,pe+=4,Pe.gridVectorX=(0,y.readUint16)(fe,pe),pe+=2,Pe.gridVectorY=(0,y.readUint16)(fe,pe),pe+=2,xe=[Pe,le.referredTo,fe,pe,ve];break;case 38:case 39:var _e={};_e.info=A(fe,pe),pe+=E;var Be=fe[pe++];if(_e.mmr=!!(Be&1),_e.template=Be>>1&3,_e.prediction=!!(Be&8),!_e.mmr){for(me=_e.template===0?4:1,Ce=[],be=0;be<me;be++)Ce.push({x:(0,y.readInt8)(fe,pe),y:(0,y.readInt8)(fe,pe+1)}),pe+=2;_e.at=Ce}xe=[_e,fe,pe,ve];break;case 48:var Te={width:(0,y.readUint32)(fe,pe),height:(0,y.readUint32)(fe,pe+4),resolutionX:(0,y.readUint32)(fe,pe+8),resolutionY:(0,y.readUint32)(fe,pe+12)};Te.height===4294967295&&delete Te.height;var Fe=fe[pe+16];(0,y.readUint16)(fe,pe+17),Te.lossless=!!(Fe&1),Te.refinement=!!(Fe&2),Te.defaultPixelValue=Fe>>2&1,Te.combinationOperator=Fe>>3&3,Te.requiresBuffer=!!(Fe&32),Te.combinationOperatorOverride=!!(Fe&64),xe=[Te];break;case 49:break;case 50:break;case 51:break;case 53:xe=[le.number,fe,pe,ve];break;case 62:break;default:throw new q(`segment type ${le.typeName}(${le.type}) is not implemented`)}var we="on"+le.typeName;we in ue&&ue[we].apply(ue,xe)}function D(ne,ue){for(var le=0,fe=ne.length;le<fe;le++)_(ne[le],ue)}function N(ne){for(var ue=new z,le=0,fe=ne.length;le<fe;le++){var pe=ne[le],ve=S({},pe.data,pe.start,pe.end);D(ve,ue)}return ue.buffer}function U(ne){const ue=ne.length;let le=0;if(ne[le]!==151||ne[le+1]!==74||ne[le+2]!==66||ne[le+3]!==50||ne[le+4]!==13||ne[le+5]!==10||ne[le+6]!==26||ne[le+7]!==10)throw new q("parseJbig2 - invalid header.");const fe=Object.create(null);le+=8;const pe=ne[le++];fe.randomAccess=!(pe&1),pe&2||(fe.numberOfPages=(0,y.readUint32)(ne,le),le+=4);const ve=S(fe,ne,le,ue),xe=new z;D(ve,xe);const{width:Ce,height:be}=xe.currentPageInfo,me=xe.buffer,ge=new Uint8ClampedArray(Ce*be);let ye=0,Se=0;for(let Ee=0;Ee<be;Ee++){let De=0,_e;for(let Be=0;Be<Ce;Be++)De||(De=128,_e=me[Se++]),ge[ye++]=_e&De?0:255,De>>=1}return{imgData:ge,width:Ce,height:be}}function z(){}z.prototype={onPageInformation:function(ue){this.currentPageInfo=ue;var le=ue.width+7>>3,fe=new Uint8ClampedArray(le*ue.height);if(ue.defaultPixelValue)for(var pe=0,ve=fe.length;pe<ve;pe++)fe[pe]=255;this.buffer=fe},drawBitmap:function(ue,le){var fe=this.currentPageInfo,pe=ue.width,ve=ue.height,xe=fe.width+7>>3,Ce=fe.combinationOperatorOverride?ue.combinationOperator:fe.combinationOperator,be=this.buffer,me=128>>(ue.x&7),ge=ue.y*xe+(ue.x>>3),ye,Se,Ee,De;switch(Ce){case 0:for(ye=0;ye<ve;ye++){for(Ee=me,De=ge,Se=0;Se<pe;Se++)le[ye][Se]&&(be[De]|=Ee),Ee>>=1,Ee||(Ee=128,De++);ge+=xe}break;case 2:for(ye=0;ye<ve;ye++){for(Ee=me,De=ge,Se=0;Se<pe;Se++)le[ye][Se]&&(be[De]^=Ee),Ee>>=1,Ee||(Ee=128,De++);ge+=xe}break;default:throw new q(`operator ${Ce} is not supported`)}},onImmediateGenericRegion:function(ue,le,fe,pe){var ve=ue.info,xe=new C(le,fe,pe),Ce=R(ue.mmr,ve.width,ve.height,ue.template,ue.prediction,null,ue.at,xe);this.drawBitmap(ve,Ce)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(ue,le,fe,pe,ve,xe){let Ce,be;ue.huffman&&(Ce=de(ue,fe,this.customTables),be=new Z(pe,ve,xe));var me=this.symbols;me||(this.symbols=me={});for(var ge=[],ye=0,Se=fe.length;ye<Se;ye++){const De=me[fe[ye]];De&&(ge=ge.concat(De))}var Ee=new C(pe,ve,xe);me[le]=O(ue.huffman,ue.refinement,ge,ue.numberOfNewSymbols,ue.numberOfExportedSymbols,Ce,ue.template,ue.at,ue.refinementTemplate,ue.refinementAt,Ee,be)},onImmediateTextRegion:function(ue,le,fe,pe,ve){var xe=ue.info;let Ce,be;for(var me=this.symbols,ge=[],ye=0,Se=le.length;ye<Se;ye++){const Be=me[le[ye]];Be&&(ge=ge.concat(Be))}var Ee=(0,y.log2)(ge.length);ue.huffman&&(be=new Z(fe,pe,ve),Ce=ie(ue,le,this.customTables,ge.length,be));var De=new C(fe,pe,ve),_e=P(ue.huffman,ue.refinement,xe.width,xe.height,ue.defaultPixelValue,ue.numberOfSymbolInstances,ue.stripSize,ge,Ee,ue.transposed,ue.dsOffset,ue.referenceCorner,ue.combinationOperator,Ce,ue.refinementTemplate,ue.refinementAt,De,ue.logStripSize,be);this.drawBitmap(xe,_e)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(ne,ue,le,fe,pe){let ve=this.patterns;ve||(this.patterns=ve={});const xe=new C(le,fe,pe);ve[ue]=B(ne.mmr,ne.patternWidth,ne.patternHeight,ne.maxPatternIndex,ne.template,xe)},onImmediateHalftoneRegion(ne,ue,le,fe,pe){const ve=this.patterns[ue[0]],xe=ne.info,Ce=new C(le,fe,pe),be=M(ne.mmr,ve,ne.template,xe.width,xe.height,ne.defaultPixelValue,ne.enableSkip,ne.combinationOperator,ne.gridWidth,ne.gridHeight,ne.gridOffsetX,ne.gridOffsetY,ne.gridVectorX,ne.gridVectorY,Ce);this.drawBitmap(xe,be)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(ne,ue,le,fe){let pe=this.customTables;pe||(this.customTables=pe={}),pe[ne]=ee(ue,le,fe)}};function te(ne){ne.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=ne[0],this.rangeLength=0,this.prefixCode=ne[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=ne[0],this.prefixLength=ne[1],this.rangeLength=ne[2],this.prefixCode=ne[3],this.isLowerRange=ne[4]==="lower")}function W(ne){this.children=[],ne?(this.isLeaf=!0,this.rangeLength=ne.rangeLength,this.rangeLow=ne.rangeLow,this.isLowerRange=ne.isLowerRange,this.isOOB=ne.isOOB):this.isLeaf=!1}W.prototype={buildTree(ne,ue){const le=ne.prefixCode>>ue&1;if(ue<=0)this.children[le]=new W(ne);else{let fe=this.children[le];fe||(this.children[le]=fe=new W(null)),fe.buildTree(ne,ue-1)}},decodeNode(ne){if(this.isLeaf){if(this.isOOB)return null;const le=ne.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-le:le)}const ue=this.children[ne.readBit()];if(!ue)throw new q("invalid Huffman data");return ue.decodeNode(ne)}};function re(ne,ue){ue||this.assignPrefixCodes(ne),this.rootNode=new W(null);for(let le=0,fe=ne.length;le<fe;le++){const pe=ne[le];pe.prefixLength>0&&this.rootNode.buildTree(pe,pe.prefixLength-1)}}re.prototype={decode(ne){return this.rootNode.decodeNode(ne)},assignPrefixCodes(ne){const ue=ne.length;let le=0;for(let me=0;me<ue;me++)le=Math.max(le,ne[me].prefixLength);const fe=new Uint32Array(le+1);for(let me=0;me<ue;me++)fe[ne[me].prefixLength]++;let pe=1,ve=0,xe,Ce,be;for(fe[0]=0;pe<=le;){for(ve=ve+fe[pe-1]<<1,xe=ve,Ce=0;Ce<ue;)be=ne[Ce],be.prefixLength===pe&&(be.prefixCode=xe,xe++),Ce++;pe++}}};function ee(ne,ue,le){const fe=ne[ue],pe=(0,y.readUint32)(ne,ue+1)&4294967295,ve=(0,y.readUint32)(ne,ue+5)&4294967295,xe=new Z(ne,ue+9,le),Ce=(fe>>1&7)+1,be=(fe>>4&7)+1,me=[];let ge,ye,Se=pe;do ge=xe.readBits(Ce),ye=xe.readBits(be),me.push(new te([Se,ge,ye,0])),Se+=1<<ye;while(Se<ve);return ge=xe.readBits(Ce),me.push(new te([pe-1,ge,32,0,"lower"])),ge=xe.readBits(Ce),me.push(new te([ve,ge,32,0])),fe&1&&(ge=xe.readBits(Ce),me.push(new te([ge,0]))),new re(me,!1)}const X={};function K(ne){let ue=X[ne];if(ue)return ue;let le;switch(ne){case 1:le=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:le=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:le=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:le=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:le=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:le=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:le=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:le=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:le=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:le=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:le=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:le=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:le=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:le=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:le=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new q(`standard table B.${ne} does not exist`)}for(let fe=0,pe=le.length;fe<pe;fe++)le[fe]=new te(le[fe]);return ue=new re(le,!0),X[ne]=ue,ue}function Z(ne,ue,le){this.data=ne,this.start=ue,this.end=le,this.position=ue,this.shift=-1,this.currentByte=0}Z.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new q("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const ne=this.currentByte>>this.shift&1;return this.shift--,ne},readBits(ne){let ue=0,le;for(le=ne-1;le>=0;le--)ue|=this.readBit()<<le;return ue},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}};function se(ne,ue,le){let fe=0;for(let pe=0,ve=ue.length;pe<ve;pe++){const xe=le[ue[pe]];if(xe){if(ne===fe)return xe;fe++}}throw new q("can't find custom Huffman table")}function ie(ne,ue,le,fe,pe){const ve=[];for(let Se=0;Se<=34;Se++){const Ee=pe.readBits(4);ve.push(new te([Se,Ee,0,0]))}const xe=new re(ve,!1);ve.length=0;for(let Se=0;Se<fe;){const Ee=xe.decode(pe);if(Ee>=32){let De,_e,Be;switch(Ee){case 32:if(Se===0)throw new q("no previous value in symbol ID table");_e=pe.readBits(2)+3,De=ve[Se-1].prefixLength;break;case 33:_e=pe.readBits(3)+3,De=0;break;case 34:_e=pe.readBits(7)+11,De=0;break;default:throw new q("invalid code length in symbol ID table")}for(Be=0;Be<_e;Be++)ve.push(new te([Se,De,0,0])),Se++}else ve.push(new te([Se,Ee,0,0])),Se++}pe.byteAlign();const Ce=new re(ve,!1);let be=0,me,ge,ye;switch(ne.huffmanFS){case 0:case 1:me=K(ne.huffmanFS+6);break;case 3:me=se(be,ue,le),be++;break;default:throw new q("invalid Huffman FS selector")}switch(ne.huffmanDS){case 0:case 1:case 2:ge=K(ne.huffmanDS+8);break;case 3:ge=se(be,ue,le),be++;break;default:throw new q("invalid Huffman DS selector")}switch(ne.huffmanDT){case 0:case 1:case 2:ye=K(ne.huffmanDT+11);break;case 3:ye=se(be,ue,le),be++;break;default:throw new q("invalid Huffman DT selector")}if(ne.refinement)throw new q("refinement with Huffman is not supported");return{symbolIDTable:Ce,tableFirstS:me,tableDeltaS:ge,tableDeltaT:ye}}function de(ne,ue,le){let fe=0,pe,ve;switch(ne.huffmanDHSelector){case 0:case 1:pe=K(ne.huffmanDHSelector+4);break;case 3:pe=se(fe,ue,le),fe++;break;default:throw new q("invalid Huffman DH selector")}switch(ne.huffmanDWSelector){case 0:case 1:ve=K(ne.huffmanDWSelector+2);break;case 3:ve=se(fe,ue,le),fe++;break;default:throw new q("invalid Huffman DW selector")}let xe,Ce;return ne.bitmapSizeSelector?(xe=se(fe,ue,le),fe++):xe=K(1),ne.aggregationInstancesSelector?Ce=se(fe,ue,le):Ce=K(1),{tableDeltaHeight:pe,tableDeltaWidth:ve,tableBitmapSize:xe,tableAggregateInstances:Ce}}function ce(ne,ue,le){const fe=[];for(let pe=0;pe<le;pe++){const ve=new Uint8Array(ue);fe.push(ve);for(let xe=0;xe<ue;xe++)ve[xe]=ne.readBit();ne.byteAlign()}return fe}function he(ne,ue,le,fe){const pe={K:-1,Columns:ue,Rows:le,BlackIs1:!0,EndOfBlock:fe},ve=new a.CCITTFaxDecoder(ne,pe),xe=[];let Ce,be=!1;for(let me=0;me<le;me++){const ge=new Uint8Array(ue);xe.push(ge);let ye=-1;for(let Se=0;Se<ue;Se++)ye<0&&(Ce=ve.readNextChar(),Ce===-1&&(Ce=0,be=!0),ye=7),ge[Se]=Ce>>ye&1,ye--}if(fe&&!be)for(let ge=0;ge<5&&ve.readNextChar()!==-1;ge++);return xe}function oe(){}return oe.prototype={parseChunks(ne){return N(ne)},parse(ne){const{imgData:ue,width:le,height:fe}=U(ne);return this.width=le,this.height=fe,ue}},oe}();f.Jbig2Image=w},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.ArithmeticDecoder=void 0;const m=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class y{constructor(a,q,w){this.data=a,this.bp=q,this.dataEnd=w,this.chigh=a[q],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const a=this.data;let q=this.bp;a[q]===255?a[q+1]>143?(this.clow+=65280,this.ct=8):(q++,this.clow+=a[q]<<9,this.ct=7,this.bp=q):(q++,this.clow+=q<this.dataEnd?a[q]<<8:65280,this.ct=8,this.bp=q),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(a,q){let w=a[q]>>1,$=a[q]&1;const Q=m[w],C=Q.qe;let v,J=this.a-C;if(this.chigh<C)J<C?(J=C,v=$,w=Q.nmps):(J=C,v=1^$,Q.switchFlag===1&&($=v),w=Q.nlps);else{if(this.chigh-=C,(J&32768)!==0)return this.a=J,$;J<C?(v=1^$,Q.switchFlag===1&&($=v),w=Q.nlps):(v=$,w=Q.nmps)}do this.ct===0&&this.byteIn(),J<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((J&32768)===0);return this.a=J,a[q]=w<<1|$,v}}f.ArithmeticDecoder=y},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.JpegStream=void 0;var m=b(12),y=b(5),k=b(19),a=b(2);const q=function(){function $(Q,C,v,J){let ae;for(;(ae=Q.getByte())!==-1;)if(ae===255){Q.skip(-1);break}this.stream=Q,this.maybeLength=C,this.dict=v,this.params=J,m.DecodeStream.call(this,C)}return $.prototype=Object.create(m.DecodeStream.prototype),Object.defineProperty($.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),$.prototype.ensureBuffer=function(Q){},$.prototype.readBlock=function(){if(this.eof)return;const Q={decodeTransform:void 0,colorTransform:void 0},C=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(C)){const ae=this.dict.get("BitsPerComponent")||8,H=C.length,Y=new Int32Array(H);let G=!1;const j=(1<<ae)-1;for(let L=0;L<H;L+=2)Y[L]=(C[L+1]-C[L])*256|0,Y[L+1]=C[L]*j|0,(Y[L]!==256||Y[L+1]!==0)&&(G=!0);G&&(Q.decodeTransform=Y)}if((0,y.isDict)(this.params)){const ae=this.params.get("ColorTransform");Number.isInteger(ae)&&(Q.colorTransform=ae)}const v=new k.JpegImage(Q);v.parse(this.bytes);const J=v.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=J,this.bufferLength=J.length,this.eof=!0},$}();f.JpegStream=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.JpegImage=void 0;var m=b(2),y=b(8);class k extends m.BaseException{constructor(Q){super(`JPEG error: ${Q}`)}}class a extends m.BaseException{constructor(Q,C){super(Q),this.scanLines=C}}class q extends m.BaseException{}var w=function(){var Q=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),C=4017,v=799,J=3406,ae=2276,H=1567,Y=3784,G=5793,j=2896;function L({decodeTransform:F=null,colorTransform:S=-1}={}){this._decodeTransform=F,this._colorTransform=S}function R(F,S){for(var A=0,E=[],_,D,N=16;N>0&&!F[N-1];)N--;E.push({children:[],index:0});var U=E[0],z;for(_=0;_<N;_++){for(D=0;D<F[_];D++){for(U=E.pop(),U.children[U.index]=S[A];U.index>0;)U=E.pop();for(U.index++,E.push(U);E.length<=_;)E.push(z={children:[],index:0}),U.children[U.index]=z.children,U=z;A++}_+1<N&&(E.push(z={children:[],index:0}),U.children[U.index]=z.children,U=z)}return E[0].children}function T(F,S,A){return 64*((F.blocksPerLine+1)*S+A)}function O(F,S,A,E,_,D,N,U,z,te=!1){var W=A.mcusPerLine,re=A.progressive;const ee=S;let X=0,K=0;function Z(){if(K>0)return K--,X>>K&1;if(X=F[S++],X===255){var ke=F[S++];if(ke){if(ke===220&&te){S+=2;const Pe=(0,y.readUint16)(F,S);if(S+=2,Pe>0&&Pe!==A.scanLines)throw new a("Found DNL marker (0xFFDC) while parsing scan data",Pe)}else if(ke===217){if(te){const Pe=ve*8;if(Pe>0&&Pe<A.scanLines/10)throw new a("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",Pe)}throw new q("Found EOI marker (0xFFD9) while parsing scan data")}throw new k(`unexpected marker ${(X<<8|ke).toString(16)}`)}}return K=7,X>>>7}function se(ke){for(var Pe=ke;;){switch(Pe=Pe[Z()],typeof Pe){case"number":return Pe;case"object":continue}throw new k("invalid huffman sequence")}}function ie(ke){for(var Pe=0;ke>0;)Pe=Pe<<1|Z(),ke--;return Pe}function de(ke){if(ke===1)return Z()===1?1:-1;var Pe=ie(ke);return Pe>=1<<ke-1?Pe:Pe+(-1<<ke)+1}function ce(ke,Pe){var Le=se(ke.huffmanTableDC),Ne=Le===0?0:de(Le);ke.blockData[Pe]=ke.pred+=Ne;for(var qe=1;qe<64;){var Oe=se(ke.huffmanTableAC),Ge=Oe&15,Ve=Oe>>4;if(Ge===0){if(Ve<15)break;qe+=16;continue}qe+=Ve;var Xe=Q[qe];ke.blockData[Pe+Xe]=de(Ge),qe++}}function he(ke,Pe){var Le=se(ke.huffmanTableDC),Ne=Le===0?0:de(Le)<<z;ke.blockData[Pe]=ke.pred+=Ne}function oe(ke,Pe){ke.blockData[Pe]|=Z()<<z}var ne=0;function ue(ke,Pe){if(ne>0){ne--;return}for(var Le=D,Ne=N;Le<=Ne;){var qe=se(ke.huffmanTableAC),Oe=qe&15,Ge=qe>>4;if(Oe===0){if(Ge<15){ne=ie(Ge)+(1<<Ge)-1;break}Le+=16;continue}Le+=Ge;var Ve=Q[Le];ke.blockData[Pe+Ve]=de(Oe)*(1<<z),Le++}}var le=0,fe;function pe(ke,Pe){for(var Le=D,Ne=N,qe=0,Oe,Ge;Le<=Ne;){const Ve=Pe+Q[Le],Xe=ke.blockData[Ve]<0?-1:1;switch(le){case 0:if(Ge=se(ke.huffmanTableAC),Oe=Ge&15,qe=Ge>>4,Oe===0)qe<15?(ne=ie(qe)+(1<<qe),le=4):(qe=16,le=1);else{if(Oe!==1)throw new k("invalid ACn encoding");fe=de(Oe),le=qe?2:3}continue;case 1:case 2:ke.blockData[Ve]?ke.blockData[Ve]+=Xe*(Z()<<z):(qe--,qe===0&&(le=le===2?3:0));break;case 3:ke.blockData[Ve]?ke.blockData[Ve]+=Xe*(Z()<<z):(ke.blockData[Ve]=fe<<z,le=0);break;case 4:ke.blockData[Ve]&&(ke.blockData[Ve]+=Xe*(Z()<<z));break}Le++}le===4&&(ne--,ne===0&&(le=0))}let ve=0;function xe(ke,Pe,Le,Ne,qe){var Oe=Le/W|0,Ge=Le%W;ve=Oe*ke.v+Ne;var Ve=Ge*ke.h+qe;const Xe=T(ke,ve,Ve);Pe(ke,Xe)}function Ce(ke,Pe,Le){ve=Le/ke.blocksPerLine|0;var Ne=Le%ke.blocksPerLine;const qe=T(ke,ve,Ne);Pe(ke,qe)}var be=E.length,me,ge,ye,Se,Ee,De;re?D===0?De=U===0?he:oe:De=U===0?ue:pe:De=ce;var _e=0,Be,Te;be===1?Te=E[0].blocksPerLine*E[0].blocksPerColumn:Te=W*A.mcusPerColumn;for(var Fe,we;_e<=Te;){var Ae=_?Math.min(Te-_e,_):Te;if(Ae>0){for(ge=0;ge<be;ge++)E[ge].pred=0;if(ne=0,be===1)for(me=E[0],Ee=0;Ee<Ae;Ee++)Ce(me,De,_e),_e++;else for(Ee=0;Ee<Ae;Ee++){for(ge=0;ge<be;ge++)for(me=E[ge],Fe=me.h,we=me.v,ye=0;ye<we;ye++)for(Se=0;Se<Fe;Se++)xe(me,De,_e,ye,Se);_e++}}if(K=0,Be=M(F,S),!Be)break;if(Be.invalid){const ke=Ae>0?"unexpected":"excessive";(0,m.warn)(`decodeScan - ${ke} MCU data, current marker is: ${Be.invalid}`),S=Be.offset}if(Be.marker>=65488&&Be.marker<=65495)S+=2;else break}return S-ee}function P(F,S,A){var E=F.quantizationTable,_=F.blockData,D,N,U,z,te,W,re,ee,X,K,Z,se,ie,de,ce,he,oe;if(!E)throw new k("missing required Quantization Table.");for(var ne=0;ne<64;ne+=8){if(X=_[S+ne],K=_[S+ne+1],Z=_[S+ne+2],se=_[S+ne+3],ie=_[S+ne+4],de=_[S+ne+5],ce=_[S+ne+6],he=_[S+ne+7],X*=E[ne],(K|Z|se|ie|de|ce|he)===0){oe=G*X+512>>10,A[ne]=oe,A[ne+1]=oe,A[ne+2]=oe,A[ne+3]=oe,A[ne+4]=oe,A[ne+5]=oe,A[ne+6]=oe,A[ne+7]=oe;continue}K*=E[ne+1],Z*=E[ne+2],se*=E[ne+3],ie*=E[ne+4],de*=E[ne+5],ce*=E[ne+6],he*=E[ne+7],D=G*X+128>>8,N=G*ie+128>>8,U=Z,z=ce,te=j*(K-he)+128>>8,ee=j*(K+he)+128>>8,W=se<<4,re=de<<4,D=D+N+1>>1,N=D-N,oe=U*Y+z*H+128>>8,U=U*H-z*Y+128>>8,z=oe,te=te+re+1>>1,re=te-re,ee=ee+W+1>>1,W=ee-W,D=D+z+1>>1,z=D-z,N=N+U+1>>1,U=N-U,oe=te*ae+ee*J+2048>>12,te=te*J-ee*ae+2048>>12,ee=oe,oe=W*v+re*C+2048>>12,W=W*C-re*v+2048>>12,re=oe,A[ne]=D+ee,A[ne+7]=D-ee,A[ne+1]=N+re,A[ne+6]=N-re,A[ne+2]=U+W,A[ne+5]=U-W,A[ne+3]=z+te,A[ne+4]=z-te}for(var ue=0;ue<8;++ue){if(X=A[ue],K=A[ue+8],Z=A[ue+16],se=A[ue+24],ie=A[ue+32],de=A[ue+40],ce=A[ue+48],he=A[ue+56],(K|Z|se|ie|de|ce|he)===0){oe=G*X+8192>>14,oe<-2040?oe=0:oe>=2024?oe=255:oe=oe+2056>>4,_[S+ue]=oe,_[S+ue+8]=oe,_[S+ue+16]=oe,_[S+ue+24]=oe,_[S+ue+32]=oe,_[S+ue+40]=oe,_[S+ue+48]=oe,_[S+ue+56]=oe;continue}D=G*X+2048>>12,N=G*ie+2048>>12,U=Z,z=ce,te=j*(K-he)+2048>>12,ee=j*(K+he)+2048>>12,W=se,re=de,D=(D+N+1>>1)+4112,N=D-N,oe=U*Y+z*H+2048>>12,U=U*H-z*Y+2048>>12,z=oe,te=te+re+1>>1,re=te-re,ee=ee+W+1>>1,W=ee-W,D=D+z+1>>1,z=D-z,N=N+U+1>>1,U=N-U,oe=te*ae+ee*J+2048>>12,te=te*J-ee*ae+2048>>12,ee=oe,oe=W*v+re*C+2048>>12,W=W*C-re*v+2048>>12,re=oe,X=D+ee,he=D-ee,K=N+re,ce=N-re,Z=U+W,de=U-W,se=z+te,ie=z-te,X<16?X=0:X>=4080?X=255:X>>=4,K<16?K=0:K>=4080?K=255:K>>=4,Z<16?Z=0:Z>=4080?Z=255:Z>>=4,se<16?se=0:se>=4080?se=255:se>>=4,ie<16?ie=0:ie>=4080?ie=255:ie>>=4,de<16?de=0:de>=4080?de=255:de>>=4,ce<16?ce=0:ce>=4080?ce=255:ce>>=4,he<16?he=0:he>=4080?he=255:he>>=4,_[S+ue]=X,_[S+ue+8]=K,_[S+ue+16]=Z,_[S+ue+24]=se,_[S+ue+32]=ie,_[S+ue+40]=de,_[S+ue+48]=ce,_[S+ue+56]=he}}function B(F,S){for(var A=S.blocksPerLine,E=S.blocksPerColumn,_=new Int16Array(64),D=0;D<E;D++)for(var N=0;N<A;N++){var U=T(S,D,N);P(S,U,_)}return S.blockData}function M(F,S,A=S){const E=F.length-1;var _=A<S?A:S;if(S>=E)return null;var D=(0,y.readUint16)(F,S);if(D>=65472&&D<=65534)return{invalid:null,marker:D,offset:S};for(var N=(0,y.readUint16)(F,_);!(N>=65472&&N<=65534);){if(++_>=E)return null;N=(0,y.readUint16)(F,_)}return{invalid:D.toString(16),marker:N,offset:_}}return L.prototype={parse(F,{dnlScanLines:S=null}={}){function A(){const ke=(0,y.readUint16)(F,_);_+=2;let Pe=_+ke-2;var Le=M(F,Pe,_);Le&&Le.invalid&&((0,m.warn)("readDataBlock - incorrect length, current marker is: "+Le.invalid),Pe=Le.offset);var Ne=F.subarray(_,Pe);return _+=Ne.length,Ne}function E(ke){for(var Pe=Math.ceil(ke.samplesPerLine/8/ke.maxH),Le=Math.ceil(ke.scanLines/8/ke.maxV),Ne=0;Ne<ke.components.length;Ne++){Ee=ke.components[Ne];var qe=Math.ceil(Math.ceil(ke.samplesPerLine/8)*Ee.h/ke.maxH),Oe=Math.ceil(Math.ceil(ke.scanLines/8)*Ee.v/ke.maxV),Ge=Pe*Ee.h,Ve=Le*Ee.v,Xe=64*Ve*(Ge+1);Ee.blockData=new Int16Array(Xe),Ee.blocksPerLine=qe,Ee.blocksPerColumn=Oe}ke.mcusPerLine=Pe,ke.mcusPerColumn=Le}var _=0,D=null,N=null,U,z;let te=0;var W=[],re=[],ee=[];let X=(0,y.readUint16)(F,_);if(_+=2,X!==65496)throw new k("SOI not found");X=(0,y.readUint16)(F,_),_+=2;e:for(;X!==65497;){var K,Z,se;switch(X){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var ie=A();X===65504&&ie[0]===74&&ie[1]===70&&ie[2]===73&&ie[3]===70&&ie[4]===0&&(D={version:{major:ie[5],minor:ie[6]},densityUnits:ie[7],xDensity:ie[8]<<8|ie[9],yDensity:ie[10]<<8|ie[11],thumbWidth:ie[12],thumbHeight:ie[13],thumbData:ie.subarray(14,14+3*ie[12]*ie[13])}),X===65518&&ie[0]===65&&ie[1]===100&&ie[2]===111&&ie[3]===98&&ie[4]===101&&(N={version:ie[5]<<8|ie[6],flags0:ie[7]<<8|ie[8],flags1:ie[9]<<8|ie[10],transformCode:ie[11]});break;case 65499:const ke=(0,y.readUint16)(F,_);_+=2;for(var de=ke+_-2,ce;_<de;){var he=F[_++],oe=new Uint16Array(64);if(he>>4===0)for(Z=0;Z<64;Z++)ce=Q[Z],oe[ce]=F[_++];else if(he>>4===1)for(Z=0;Z<64;Z++)ce=Q[Z],oe[ce]=(0,y.readUint16)(F,_),_+=2;else throw new k("DQT - invalid table spec");W[he&15]=oe}break;case 65472:case 65473:case 65474:if(U)throw new k("Only single frame JPEGs supported");_+=2,U={},U.extended=X===65473,U.progressive=X===65474,U.precision=F[_++];const Pe=(0,y.readUint16)(F,_);_+=2,U.scanLines=S||Pe,U.samplesPerLine=(0,y.readUint16)(F,_),_+=2,U.components=[],U.componentIds={};var ne=F[_++],ue,le=0,fe=0;for(K=0;K<ne;K++){ue=F[_];var pe=F[_+1]>>4,ve=F[_+1]&15;le<pe&&(le=pe),fe<ve&&(fe=ve);var xe=F[_+2];se=U.components.push({h:pe,v:ve,quantizationId:xe,quantizationTable:null}),U.componentIds[ue]=se-1,_+=3}U.maxH=le,U.maxV=fe,E(U);break;case 65476:const Le=(0,y.readUint16)(F,_);for(_+=2,K=2;K<Le;){var Ce=F[_++],be=new Uint8Array(16),me=0;for(Z=0;Z<16;Z++,_++)me+=be[Z]=F[_];var ge=new Uint8Array(me);for(Z=0;Z<me;Z++,_++)ge[Z]=F[_];K+=17+me,(Ce>>4===0?ee:re)[Ce&15]=R(be,ge)}break;case 65501:_+=2,z=(0,y.readUint16)(F,_),_+=2;break;case 65498:const Ne=++te===1&&!S;_+=2;var ye=F[_++],Se=[],Ee;for(K=0;K<ye;K++){var De=U.componentIds[F[_++]];Ee=U.components[De];var _e=F[_++];Ee.huffmanTableDC=ee[_e>>4],Ee.huffmanTableAC=re[_e&15],Se.push(Ee)}var Be=F[_++],Te=F[_++],Fe=F[_++];try{var we=O(F,_,U,Se,z,Be,Te,Fe>>4,Fe&15,Ne);_+=we}catch(Oe){if(Oe instanceof a)return(0,m.warn)(`${Oe.message} -- attempting to re-parse the JPEG image.`),this.parse(F,{dnlScanLines:Oe.scanLines});if(Oe instanceof q){(0,m.warn)(`${Oe.message} -- ignoring the rest of the image data.`);break e}throw Oe}break;case 65500:_+=4;break;case 65535:F[_]!==255&&_--;break;default:const qe=M(F,_-2,_-3);if(qe&&qe.invalid){(0,m.warn)("JpegImage.parse - unexpected data, current marker is: "+qe.invalid),_=qe.offset;break}if(_>=F.length-1){(0,m.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new k("JpegImage.parse - unknown marker: "+X.toString(16))}X=(0,y.readUint16)(F,_),_+=2}for(this.width=U.samplesPerLine,this.height=U.scanLines,this.jfif=D,this.adobe=N,this.components=[],K=0;K<U.components.length;K++){Ee=U.components[K];var Ae=W[Ee.quantizationId];Ae&&(Ee.quantizationTable=Ae),this.components.push({output:B(U,Ee),scaleX:Ee.h/U.maxH,scaleY:Ee.v/U.maxV,blocksPerLine:Ee.blocksPerLine,blocksPerColumn:Ee.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData(F,S,A=!1){var E=this.width/F,_=this.height/S,D,N,U,z,te,W,re,ee,X,K,Z=0,se,ie=this.components.length,de=F*S*ie,ce=new Uint8ClampedArray(de),he=new Uint32Array(F),oe=4294967288;let ne;for(re=0;re<ie;re++){if(D=this.components[re],N=D.scaleX*E,U=D.scaleY*_,Z=re,se=D.output,z=D.blocksPerLine+1<<3,N!==ne){for(te=0;te<F;te++)ee=0|te*N,he[te]=(ee&oe)<<3|ee&7;ne=N}for(W=0;W<S;W++)for(ee=0|W*U,K=z*(ee&oe)|(ee&7)<<3,te=0;te<F;te++)ce[Z]=se[K+he[te]],Z+=ie}let ue=this._decodeTransform;if(!A&&ie===4&&!ue&&(ue=new Int32Array([-256,255,-256,255,-256,255,-256,255])),ue)for(re=0;re<de;)for(ee=0,X=0;ee<ie;ee++,re++,X+=2)ce[re]=(ce[re]*ue[X]>>8)+ue[X+1];return ce},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform!==0:this._colorTransform===1},_convertYccToRgb:function(S){for(var A,E,_,D=0,N=S.length;D<N;D+=3)A=S[D],E=S[D+1],_=S[D+2],S[D]=A-179.456+1.402*_,S[D+1]=A+135.459-.344*E-.714*_,S[D+2]=A-226.816+1.772*E;return S},_convertYcckToRgb:function(S){for(var A,E,_,D,N=0,U=0,z=S.length;U<z;U+=4)A=S[U],E=S[U+1],_=S[U+2],D=S[U+3],S[N++]=-122.67195406894+E*(-660635669420364e-19*E+.000437130475926232*_-54080610064599e-18*A+.00048449797120281*D-.154362151871126)+_*(-.000957964378445773*_+.000817076911346625*A-.00477271405408747*D+1.53380253221734)+A*(.000961250184130688*A-.00266257332283933*D+.48357088451265)+D*(-.000336197177618394*D+.484791561490776),S[N++]=107.268039397724+E*(219927104525741e-19*E-.000640992018297945*_+.000659397001245577*A+.000426105652938837*D-.176491792462875)+_*(-.000778269941513683*_+.00130872261408275*A+.000770482631801132*D-.151051492775562)+A*(.00126935368114843*A-.00265090189010898*D+.25802910206845)+D*(-.000318913117588328*D-.213742400323665),S[N++]=-20.810012546947+E*(-.000570115196973677*E-263409051004589e-19*_+.0020741088115012*A-.00288260236853442*D+.814272968359295)+_*(-153496057440975e-19*_-.000132689043961446*A+.000560833691242812*D-.195152027534049)+A*(.00174418132927582*A-.00255243321439347*D+.116935020465145)+D*(-.000343531996510555*D+.24165260232407);return S.subarray(0,N)},_convertYcckToCmyk:function(S){for(var A,E,_,D=0,N=S.length;D<N;D+=4)A=S[D],E=S[D+1],_=S[D+2],S[D]=434.456-A-1.402*_,S[D+1]=119.541-A+.344*E+.714*_,S[D+2]=481.816-A-1.772*E;return S},_convertCmykToRgb:function(S){for(var A,E,_,D,N=0,U=0,z=S.length;U<z;U+=4)A=S[U],E=S[U+1],_=S[U+2],D=S[U+3],S[N++]=255+A*(-6747147073602441e-20*A+.0008379262121013727*E+.0002894718188643294*_+.003264231057537806*D-1.1185611867203937)+E*(26374107616089405e-21*E-8626949158638572e-20*_-.0002748769067499491*D-.02155688794978967)+_*(-3878099212869363e-20*_-.0003267808279485286*D+.0686742238595345)-D*(.0003361971776183937*D+.7430659151342254),S[N++]=255+A*(.00013596372813588848*A+.000924537132573585*E+.00010567359618683593*_+.0004791864687436512*D-.3109689587515875)+E*(-.00023545346108370344*E+.0002702845253534714*_+.0020200308977307156*D-.7488052167015494)+_*(6834815998235662e-20*_+.00015168452363460973*D-.09751927774728933)-D*(.0003189131175883281*D+.7364883807733168),S[N++]=255+A*(13598650411385307e-21*A+.00012423956175490851*E+.0004751985097583589*_-36729317476630422e-22*D-.05562186980264034)+E*(.00016141380598724676*E+.0009692239130725186*_+.0007782692450036253*D-.44015232367526463)+_*(5068882914068769e-22*_+.0017778369011375071*D-.7591454649749609)-D*(.0003435319965105553*D+.7063770186160144);return S.subarray(0,N)},getData({width:F,height:S,forceRGB:A=!1,isSourcePDF:E=!1}){if(this.numComponents>4)throw new k("Unsupported color mode");var _=this._getLinearizedBlockData(F,S,E);if(this.numComponents===1&&A){for(var D=_.length,N=new Uint8ClampedArray(D*3),U=0,z=0;z<D;z++){var te=_[z];N[U++]=te,N[U++]=te,N[U++]=te}return N}else{if(this.numComponents===3&&this._isColorConversionNeeded)return this._convertYccToRgb(_);if(this.numComponents===4){if(this._isColorConversionNeeded)return A?this._convertYcckToRgb(_):this._convertYcckToCmyk(_);if(A)return this._convertCmykToRgb(_)}}return _}},L}();f.JpegImage=w},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.JpxStream=void 0;var m=b(12),y=b(21),k=b(2);const a=function(){function w($,Q,C,v){this.stream=$,this.maybeLength=Q,this.dict=C,this.params=v,m.DecodeStream.call(this,Q)}return w.prototype=Object.create(m.DecodeStream.prototype),Object.defineProperty(w.prototype,"bytes",{get:function(){return(0,k.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),w.prototype.ensureBuffer=function($){},w.prototype.readBlock=function(){if(this.eof)return;const $=new y.JpxImage;$.parse(this.bytes);const Q=$.width,C=$.height,v=$.componentsCount,J=$.tiles.length;if(J===1)this.buffer=$.tiles[0].items;else{const ae=new Uint8ClampedArray(Q*C*v);for(let H=0;H<J;H++){const Y=$.tiles[H],G=Y.width,j=Y.height,L=Y.left,R=Y.top,T=Y.items;let O=0,P=(Q*R+L)*v;const B=Q*v,M=G*v;for(let F=0;F<j;F++){const S=T.subarray(O,O+M);ae.set(S,P),O+=M,P+=B}}this.buffer=ae}this.bufferLength=this.buffer.length,this.eof=!0},w}();f.JpxStream=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.JpxImage=void 0;var m=b(2),y=b(8),k=b(17);class a extends m.BaseException{constructor($){super(`JPX error: ${$}`)}}var q=function(){var $={LL:0,LH:1,HL:1,HH:2};function Q(){this.failOnCorruptedImage=!1}Q.prototype={parse:function(re){var ee=(0,y.readUint16)(re,0);if(ee===65359){this.parseCodestream(re,0,re.length);return}for(var X=0,K=re.length;X<K;){var Z=8,se=(0,y.readUint32)(re,X),ie=(0,y.readUint32)(re,X+4);if(X+=Z,se===1&&(se=(0,y.readUint32)(re,X)*4294967296+(0,y.readUint32)(re,X+4),X+=8,Z+=8),se===0&&(se=K-X+Z),se<Z)throw new a("Invalid box field size");var de=se-Z,ce=!0;switch(ie){case 1785737832:ce=!1;break;case 1668246642:var he=re[X];if(he===1){var oe=(0,y.readUint32)(re,X+3);switch(oe){case 16:case 17:case 18:break;default:(0,m.warn)("Unknown colorspace "+oe);break}}else he===2&&(0,m.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(re,X,X+de);break;case 1783636e3:(0,y.readUint32)(re,X)!==218793738&&(0,m.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var ne=String.fromCharCode(ie>>24&255,ie>>16&255,ie>>8&255,ie&255);(0,m.warn)("Unsupported header type "+ie+" ("+ne+")");break}ce&&(X+=de)}},parseImageProperties:function(re){for(var ee=re.getByte();ee>=0;){var X=ee;ee=re.getByte();var K=X<<8|ee;if(K===65361){re.skip(4);var Z=re.getInt32()>>>0,se=re.getInt32()>>>0,ie=re.getInt32()>>>0,de=re.getInt32()>>>0;re.skip(16);var ce=re.getUint16();this.width=Z-ie,this.height=se-de,this.componentsCount=ce,this.bitsPerComponent=8;return}}throw new a("No size marker found in JPX stream")},parseCodestream:function(re,ee,X){var K={},Z=!1;try{for(var se=ee;se+1<X;){var ie=(0,y.readUint16)(re,se);se+=2;var de=0,ce,he,oe,ne,ue,le;switch(ie){case 65359:K.mainHeader=!0;break;case 65497:break;case 65361:de=(0,y.readUint16)(re,se);var fe={};fe.Xsiz=(0,y.readUint32)(re,se+4),fe.Ysiz=(0,y.readUint32)(re,se+8),fe.XOsiz=(0,y.readUint32)(re,se+12),fe.YOsiz=(0,y.readUint32)(re,se+16),fe.XTsiz=(0,y.readUint32)(re,se+20),fe.YTsiz=(0,y.readUint32)(re,se+24),fe.XTOsiz=(0,y.readUint32)(re,se+28),fe.YTOsiz=(0,y.readUint32)(re,se+32);var pe=(0,y.readUint16)(re,se+36);fe.Csiz=pe;var ve=[];ce=se+38;for(var xe=0;xe<pe;xe++){var Ce={precision:(re[ce]&127)+1,isSigned:!!(re[ce]&128),XRsiz:re[ce+1],YRsiz:re[ce+2]};ce+=3,C(Ce,fe),ve.push(Ce)}K.SIZ=fe,K.components=ve,v(K,ve),K.QCC=[],K.COC=[];break;case 65372:de=(0,y.readUint16)(re,se);var be={};switch(ce=se+2,he=re[ce++],he&31){case 0:ne=8,ue=!0;break;case 1:ne=16,ue=!1;break;case 2:ne=16,ue=!0;break;default:throw new Error("Invalid SQcd value "+he)}for(be.noQuantization=ne===8,be.scalarExpounded=ue,be.guardBits=he>>5,oe=[];ce<de+se;){var me={};ne===8?(me.epsilon=re[ce++]>>3,me.mu=0):(me.epsilon=re[ce]>>3,me.mu=(re[ce]&7)<<8|re[ce+1],ce+=2),oe.push(me)}be.SPqcds=oe,K.mainHeader?K.QCD=be:(K.currentTile.QCD=be,K.currentTile.QCC=[]);break;case 65373:de=(0,y.readUint16)(re,se);var ge={};ce=se+2;var ye;switch(K.SIZ.Csiz<257?ye=re[ce++]:(ye=(0,y.readUint16)(re,ce),ce+=2),he=re[ce++],he&31){case 0:ne=8,ue=!0;break;case 1:ne=16,ue=!1;break;case 2:ne=16,ue=!0;break;default:throw new Error("Invalid SQcd value "+he)}for(ge.noQuantization=ne===8,ge.scalarExpounded=ue,ge.guardBits=he>>5,oe=[];ce<de+se;)me={},ne===8?(me.epsilon=re[ce++]>>3,me.mu=0):(me.epsilon=re[ce]>>3,me.mu=(re[ce]&7)<<8|re[ce+1],ce+=2),oe.push(me);ge.SPqcds=oe,K.mainHeader?K.QCC[ye]=ge:K.currentTile.QCC[ye]=ge;break;case 65362:de=(0,y.readUint16)(re,se);var Se={};ce=se+2;var Ee=re[ce++];Se.entropyCoderWithCustomPrecincts=!!(Ee&1),Se.sopMarkerUsed=!!(Ee&2),Se.ephMarkerUsed=!!(Ee&4),Se.progressionOrder=re[ce++],Se.layersCount=(0,y.readUint16)(re,ce),ce+=2,Se.multipleComponentTransform=re[ce++],Se.decompositionLevelsCount=re[ce++],Se.xcb=(re[ce++]&15)+2,Se.ycb=(re[ce++]&15)+2;var De=re[ce++];if(Se.selectiveArithmeticCodingBypass=!!(De&1),Se.resetContextProbabilities=!!(De&2),Se.terminationOnEachCodingPass=!!(De&4),Se.verticallyStripe=!!(De&8),Se.predictableTermination=!!(De&16),Se.segmentationSymbolUsed=!!(De&32),Se.reversibleTransformation=re[ce++],Se.entropyCoderWithCustomPrecincts){for(var _e=[];ce<de+se;){var Be=re[ce++];_e.push({PPx:Be&15,PPy:Be>>4})}Se.precinctsSizes=_e}var Te=[];if(Se.selectiveArithmeticCodingBypass&&Te.push("selectiveArithmeticCodingBypass"),Se.resetContextProbabilities&&Te.push("resetContextProbabilities"),Se.terminationOnEachCodingPass&&Te.push("terminationOnEachCodingPass"),Se.verticallyStripe&&Te.push("verticallyStripe"),Se.predictableTermination&&Te.push("predictableTermination"),Te.length>0)throw Z=!0,new Error("Unsupported COD options ("+Te.join(", ")+")");K.mainHeader?K.COD=Se:(K.currentTile.COD=Se,K.currentTile.COC=[]);break;case 65424:de=(0,y.readUint16)(re,se),le={},le.index=(0,y.readUint16)(re,se+2),le.length=(0,y.readUint32)(re,se+4),le.dataEnd=le.length+se-2,le.partIndex=re[se+8],le.partsCount=re[se+9],K.mainHeader=!1,le.partIndex===0&&(le.COD=K.COD,le.COC=K.COC.slice(0),le.QCD=K.QCD,le.QCC=K.QCC.slice(0)),K.currentTile=le;break;case 65427:le=K.currentTile,le.partIndex===0&&(E(K,le.index),B(K)),de=le.dataEnd-se,M(K,re,se,de);break;case 65365:case 65367:case 65368:case 65380:de=(0,y.readUint16)(re,se);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+ie.toString(16))}se+=de}}catch(Fe){if(Z||this.failOnCorruptedImage)throw new a(Fe.message);(0,m.warn)("JPX: Trying to recover from: "+Fe.message)}this.tiles=A(K),this.width=K.SIZ.Xsiz-K.SIZ.XOsiz,this.height=K.SIZ.Ysiz-K.SIZ.YOsiz,this.componentsCount=K.SIZ.Csiz}};function C(W,re){W.x0=Math.ceil(re.XOsiz/W.XRsiz),W.x1=Math.ceil(re.Xsiz/W.XRsiz),W.y0=Math.ceil(re.YOsiz/W.YRsiz),W.y1=Math.ceil(re.Ysiz/W.YRsiz),W.width=W.x1-W.x0,W.height=W.y1-W.y0}function v(W,re){for(var ee=W.SIZ,X,K=[],Z=Math.ceil((ee.Xsiz-ee.XTOsiz)/ee.XTsiz),se=Math.ceil((ee.Ysiz-ee.YTOsiz)/ee.YTsiz),ie=0;ie<se;ie++)for(var de=0;de<Z;de++)X={},X.tx0=Math.max(ee.XTOsiz+de*ee.XTsiz,ee.XOsiz),X.ty0=Math.max(ee.YTOsiz+ie*ee.YTsiz,ee.YOsiz),X.tx1=Math.min(ee.XTOsiz+(de+1)*ee.XTsiz,ee.Xsiz),X.ty1=Math.min(ee.YTOsiz+(ie+1)*ee.YTsiz,ee.Ysiz),X.width=X.tx1-X.tx0,X.height=X.ty1-X.ty0,X.components=[],K.push(X);W.tiles=K;for(var ce=ee.Csiz,he=0,oe=ce;he<oe;he++)for(var ne=re[he],ue=0,le=K.length;ue<le;ue++){var fe={};X=K[ue],fe.tcx0=Math.ceil(X.tx0/ne.XRsiz),fe.tcy0=Math.ceil(X.ty0/ne.YRsiz),fe.tcx1=Math.ceil(X.tx1/ne.XRsiz),fe.tcy1=Math.ceil(X.ty1/ne.YRsiz),fe.width=fe.tcx1-fe.tcx0,fe.height=fe.tcy1-fe.tcy0,X.components[he]=fe}}function J(W,re,ee){var X=re.codingStyleParameters,K={};return X.entropyCoderWithCustomPrecincts?(K.PPx=X.precinctsSizes[ee].PPx,K.PPy=X.precinctsSizes[ee].PPy):(K.PPx=15,K.PPy=15),K.xcb_=ee>0?Math.min(X.xcb,K.PPx-1):Math.min(X.xcb,K.PPx),K.ycb_=ee>0?Math.min(X.ycb,K.PPy-1):Math.min(X.ycb,K.PPy),K}function ae(W,re,ee){var X=1<<ee.PPx,K=1<<ee.PPy,Z=re.resLevel===0,se=1<<ee.PPx+(Z?0:-1),ie=1<<ee.PPy+(Z?0:-1),de=re.trx1>re.trx0?Math.ceil(re.trx1/X)-Math.floor(re.trx0/X):0,ce=re.try1>re.try0?Math.ceil(re.try1/K)-Math.floor(re.try0/K):0,he=de*ce;re.precinctParameters={precinctWidth:X,precinctHeight:K,numprecinctswide:de,numprecinctshigh:ce,numprecincts:he,precinctWidthInSubband:se,precinctHeightInSubband:ie}}function H(W,re,ee){var X=ee.xcb_,K=ee.ycb_,Z=1<<X,se=1<<K,ie=re.tbx0>>X,de=re.tby0>>K,ce=re.tbx1+Z-1>>X,he=re.tby1+se-1>>K,oe=re.resolution.precinctParameters,ne=[],ue=[],le,fe,pe,ve;for(fe=de;fe<he;fe++)for(le=ie;le<ce;le++){pe={cbx:le,cby:fe,tbx0:Z*le,tby0:se*fe,tbx1:Z*(le+1),tby1:se*(fe+1)},pe.tbx0_=Math.max(re.tbx0,pe.tbx0),pe.tby0_=Math.max(re.tby0,pe.tby0),pe.tbx1_=Math.min(re.tbx1,pe.tbx1),pe.tby1_=Math.min(re.tby1,pe.tby1);var xe=Math.floor((pe.tbx0_-re.tbx0)/oe.precinctWidthInSubband),Ce=Math.floor((pe.tby0_-re.tby0)/oe.precinctHeightInSubband);if(ve=xe+Ce*oe.numprecinctswide,pe.precinctNumber=ve,pe.subbandType=re.type,pe.Lblock=3,!(pe.tbx1_<=pe.tbx0_||pe.tby1_<=pe.tby0_)){ne.push(pe);var be=ue[ve];be!==void 0?(le<be.cbxMin?be.cbxMin=le:le>be.cbxMax&&(be.cbxMax=le),fe<be.cbyMin?be.cbxMin=fe:fe>be.cbyMax&&(be.cbyMax=fe)):ue[ve]=be={cbxMin:le,cbyMin:fe,cbxMax:le,cbyMax:fe},pe.precinct=be}}re.codeblockParameters={codeblockWidth:X,codeblockHeight:K,numcodeblockwide:ce-ie+1,numcodeblockhigh:he-de+1},re.codeblocks=ne,re.precincts=ue}function Y(W,re,ee){for(var X=[],K=W.subbands,Z=0,se=K.length;Z<se;Z++)for(var ie=K[Z],de=ie.codeblocks,ce=0,he=de.length;ce<he;ce++){var oe=de[ce];oe.precinctNumber===re&&X.push(oe)}return{layerNumber:ee,codeblocks:X}}function G(W){for(var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=X.codingStyleDefaultParameters.layersCount,Z=re.Csiz,se=0,ie=0;ie<Z;ie++)se=Math.max(se,X.components[ie].codingStyleParameters.decompositionLevelsCount);var de=0,ce=0,he=0,oe=0;this.nextPacket=function(){for(;de<K;de++){for(;ce<=se;ce++){for(;he<Z;he++){var ue=X.components[he];if(!(ce>ue.codingStyleParameters.decompositionLevelsCount)){for(var le=ue.resolutions[ce],fe=le.precinctParameters.numprecincts;oe<fe;){var pe=Y(le,oe,de);return oe++,pe}oe=0}}he=0}ce=0}throw new a("Out of packets")}}function j(W){for(var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=X.codingStyleDefaultParameters.layersCount,Z=re.Csiz,se=0,ie=0;ie<Z;ie++)se=Math.max(se,X.components[ie].codingStyleParameters.decompositionLevelsCount);var de=0,ce=0,he=0,oe=0;this.nextPacket=function(){for(;de<=se;de++){for(;ce<K;ce++){for(;he<Z;he++){var ue=X.components[he];if(!(de>ue.codingStyleParameters.decompositionLevelsCount)){for(var le=ue.resolutions[de],fe=le.precinctParameters.numprecincts;oe<fe;){var pe=Y(le,oe,ce);return oe++,pe}oe=0}}he=0}ce=0}throw new a("Out of packets")}}function L(W){var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=X.codingStyleDefaultParameters.layersCount,Z=re.Csiz,se,ie,de,ce,he=0;for(de=0;de<Z;de++){const le=X.components[de];he=Math.max(he,le.codingStyleParameters.decompositionLevelsCount)}var oe=new Int32Array(he+1);for(ie=0;ie<=he;++ie){var ne=0;for(de=0;de<Z;++de){var ue=X.components[de].resolutions;ie<ue.length&&(ne=Math.max(ne,ue[ie].precinctParameters.numprecincts))}oe[ie]=ne}se=0,ie=0,de=0,ce=0,this.nextPacket=function(){for(;ie<=he;ie++){for(;ce<oe[ie];ce++){for(;de<Z;de++){const xe=X.components[de];if(!(ie>xe.codingStyleParameters.decompositionLevelsCount)){var fe=xe.resolutions[ie],pe=fe.precinctParameters.numprecincts;if(!(ce>=pe)){for(;se<K;){var ve=Y(fe,ce,se);return se++,ve}se=0}}}de=0}ce=0}throw new a("Out of packets")}}function R(W){var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=X.codingStyleDefaultParameters.layersCount,Z=re.Csiz,se=P(X),ie=se,de=0,ce=0,he=0,oe=0,ne=0;this.nextPacket=function(){for(;ne<ie.maxNumHigh;ne++){for(;oe<ie.maxNumWide;oe++){for(;he<Z;he++){for(var le=X.components[he],fe=le.codingStyleParameters.decompositionLevelsCount;ce<=fe;ce++){var pe=le.resolutions[ce],ve=se.components[he].resolutions[ce],xe=O(oe,ne,ve,ie,pe);if(xe!==null){for(;de<K;){var Ce=Y(pe,xe,de);return de++,Ce}de=0}}ce=0}he=0}oe=0}throw new a("Out of packets")}}function T(W){var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=X.codingStyleDefaultParameters.layersCount,Z=re.Csiz,se=P(X),ie=0,de=0,ce=0,he=0,oe=0;this.nextPacket=function(){for(;ce<Z;++ce){for(var ue=X.components[ce],le=se.components[ce],fe=ue.codingStyleParameters.decompositionLevelsCount;oe<le.maxNumHigh;oe++){for(;he<le.maxNumWide;he++){for(;de<=fe;de++){var pe=ue.resolutions[de],ve=le.resolutions[de],xe=O(he,oe,ve,le,pe);if(xe!==null){for(;ie<K;){var Ce=Y(pe,xe,ie);return ie++,Ce}ie=0}}de=0}he=0}oe=0}throw new a("Out of packets")}}function O(W,re,ee,X,K){var Z=W*X.minWidth,se=re*X.minHeight;if(Z%ee.width!==0||se%ee.height!==0)return null;var ie=se/ee.width*K.precinctParameters.numprecinctswide;return Z/ee.height+ie}function P(W){for(var re=W.components.length,ee=Number.MAX_VALUE,X=Number.MAX_VALUE,K=0,Z=0,se=new Array(re),ie=0;ie<re;ie++){for(var de=W.components[ie],ce=de.codingStyleParameters.decompositionLevelsCount,he=new Array(ce+1),oe=Number.MAX_VALUE,ne=Number.MAX_VALUE,ue=0,le=0,fe=1,pe=ce;pe>=0;--pe){var ve=de.resolutions[pe],xe=fe*ve.precinctParameters.precinctWidth,Ce=fe*ve.precinctParameters.precinctHeight;oe=Math.min(oe,xe),ne=Math.min(ne,Ce),ue=Math.max(ue,ve.precinctParameters.numprecinctswide),le=Math.max(le,ve.precinctParameters.numprecinctshigh),he[pe]={width:xe,height:Ce},fe<<=1}ee=Math.min(ee,oe),X=Math.min(X,ne),K=Math.max(K,ue),Z=Math.max(Z,le),se[ie]={resolutions:he,minWidth:oe,minHeight:ne,maxNumWide:ue,maxNumHigh:le}}return{components:se,minWidth:ee,minHeight:X,maxNumWide:K,maxNumHigh:Z}}function B(W){for(var re=W.SIZ,ee=W.currentTile.index,X=W.tiles[ee],K=re.Csiz,Z=0;Z<K;Z++){for(var se=X.components[Z],ie=se.codingStyleParameters.decompositionLevelsCount,de=[],ce=[],he=0;he<=ie;he++){var oe=J(W,se,he),ne={},ue=1<<ie-he;ne.trx0=Math.ceil(se.tcx0/ue),ne.try0=Math.ceil(se.tcy0/ue),ne.trx1=Math.ceil(se.tcx1/ue),ne.try1=Math.ceil(se.tcy1/ue),ne.resLevel=he,ae(W,ne,oe),de.push(ne);var le;if(he===0)le={},le.type="LL",le.tbx0=Math.ceil(se.tcx0/ue),le.tby0=Math.ceil(se.tcy0/ue),le.tbx1=Math.ceil(se.tcx1/ue),le.tby1=Math.ceil(se.tcy1/ue),le.resolution=ne,H(W,le,oe),ce.push(le),ne.subbands=[le];else{var fe=1<<ie-he+1,pe=[];le={},le.type="HL",le.tbx0=Math.ceil(se.tcx0/fe-.5),le.tby0=Math.ceil(se.tcy0/fe),le.tbx1=Math.ceil(se.tcx1/fe-.5),le.tby1=Math.ceil(se.tcy1/fe),le.resolution=ne,H(W,le,oe),ce.push(le),pe.push(le),le={},le.type="LH",le.tbx0=Math.ceil(se.tcx0/fe),le.tby0=Math.ceil(se.tcy0/fe-.5),le.tbx1=Math.ceil(se.tcx1/fe),le.tby1=Math.ceil(se.tcy1/fe-.5),le.resolution=ne,H(W,le,oe),ce.push(le),pe.push(le),le={},le.type="HH",le.tbx0=Math.ceil(se.tcx0/fe-.5),le.tby0=Math.ceil(se.tcy0/fe-.5),le.tbx1=Math.ceil(se.tcx1/fe-.5),le.tby1=Math.ceil(se.tcy1/fe-.5),le.resolution=ne,H(W,le,oe),ce.push(le),pe.push(le),ne.subbands=pe}}se.resolutions=de,se.subbands=ce}var ve=X.codingStyleDefaultParameters.progressionOrder;switch(ve){case 0:X.packetsIterator=new G(W);break;case 1:X.packetsIterator=new j(W);break;case 2:X.packetsIterator=new L(W);break;case 3:X.packetsIterator=new R(W);break;case 4:X.packetsIterator=new T(W);break;default:throw new a(`Unsupported progression order ${ve}`)}}function M(W,re,ee,X){var K=0,Z,se=0,ie=!1;function de(Ge){for(;se<Ge;){var Ve=re[ee+K];K++,ie?(Z=Z<<7|Ve,se+=7,ie=!1):(Z=Z<<8|Ve,se+=8),Ve===255&&(ie=!0)}return se-=Ge,Z>>>se&(1<<Ge)-1}function ce(Ge){return re[ee+K-1]===255&&re[ee+K]===Ge?(he(1),!0):re[ee+K]===255&&re[ee+K+1]===Ge?(he(2),!0):!1}function he(Ge){K+=Ge}function oe(){se=0,ie&&(K++,ie=!1)}function ne(){if(de(1)===0)return 1;if(de(1)===0)return 2;var Ge=de(2);return Ge<3?Ge+3:(Ge=de(5),Ge<31?Ge+6:(Ge=de(7),Ge+37))}for(var ue=W.currentTile.index,le=W.tiles[ue],fe=W.COD.sopMarkerUsed,pe=W.COD.ephMarkerUsed,ve=le.packetsIterator;K<X;){oe(),fe&&ce(145)&&he(4);var xe=ve.nextPacket();if(!!de(1)){for(var Ce=xe.layerNumber,be=[],me,ge=0,ye=xe.codeblocks.length;ge<ye;ge++){me=xe.codeblocks[ge];var Se=me.precinct,Ee=me.cbx-Se.cbxMin,De=me.cby-Se.cbyMin,_e=!1,Be=!1,Te;if(me.included!==void 0)_e=!!de(1);else{Se=me.precinct;var Fe,we;if(Se.inclusionTree!==void 0)Fe=Se.inclusionTree;else{var Ae=Se.cbxMax-Se.cbxMin+1,ke=Se.cbyMax-Se.cbyMin+1;Fe=new D(Ae,ke,Ce),we=new _(Ae,ke),Se.inclusionTree=Fe,Se.zeroBitPlanesTree=we}if(Fe.reset(Ee,De,Ce))for(;;)if(de(1)){if(Te=!Fe.nextLevel(),Te){me.included=!0,_e=Be=!0;break}}else{Fe.incrementValue(Ce);break}}if(!!_e){if(Be){for(we=Se.zeroBitPlanesTree,we.reset(Ee,De);;)if(de(1)){if(Te=!we.nextLevel(),Te)break}else we.incrementValue();me.zeroBitPlanes=we.value}for(var Pe=ne();de(1);)me.Lblock++;var Le=(0,y.log2)(Pe),Ne=(Pe<1<<Le?Le-1:Le)+me.Lblock,qe=de(Ne);be.push({codeblock:me,codingpasses:Pe,dataLength:qe})}}for(oe(),pe&&ce(146);be.length>0;){var Oe=be.shift();me=Oe.codeblock,me.data===void 0&&(me.data=[]),me.data.push({data:re,start:ee+K,end:ee+K+Oe.dataLength,codingpasses:Oe.codingpasses}),K+=Oe.dataLength}}}return K}function F(W,re,ee,X,K,Z,se,ie){for(var de=X.tbx0,ce=X.tby0,he=X.tbx1-X.tbx0,oe=X.codeblocks,ne=X.type.charAt(0)==="H"?1:0,ue=X.type.charAt(1)==="H"?re:0,le=0,fe=oe.length;le<fe;++le){var pe=oe[le],ve=pe.tbx1_-pe.tbx0_,xe=pe.tby1_-pe.tby0_;if(!(ve===0||xe===0)&&pe.data!==void 0){var Ce,be;Ce=new N(ve,xe,pe.subbandType,pe.zeroBitPlanes,Z),be=2;var me=pe.data,ge=0,ye=0,Se,Ee,De;for(Se=0,Ee=me.length;Se<Ee;Se++)De=me[Se],ge+=De.end-De.start,ye+=De.codingpasses;var _e=new Uint8Array(ge),Be=0;for(Se=0,Ee=me.length;Se<Ee;Se++){De=me[Se];var Te=De.data.subarray(De.start,De.end);_e.set(Te,Be),Be+=Te.length}var Fe=new k.ArithmeticDecoder(_e,0,ge);for(Ce.setDecoder(Fe),Se=0;Se<ye;Se++){switch(be){case 0:Ce.runSignificancePropagationPass();break;case 1:Ce.runMagnitudeRefinementPass();break;case 2:Ce.runCleanupPass(),ie&&Ce.checkSegmentationSymbol();break}be=(be+1)%3}var we=pe.tbx0_-de+(pe.tby0_-ce)*he,Ae=Ce.coefficentsSign,ke=Ce.coefficentsMagnitude,Pe=Ce.bitsDecoded,Le=se?0:.5,Ne,qe,Oe;Be=0;var Ge=X.type!=="LL";for(Se=0;Se<xe;Se++){var Ve=we/he|0,Xe=2*Ve*(re-he)+ne+ue;for(Ne=0;Ne<ve;Ne++){if(qe=ke[Be],qe!==0){qe=(qe+Le)*K,Ae[Be]!==0&&(qe=-qe),Oe=Pe[Be];var at=Ge?Xe+(we<<1):we;se&&Oe>=Z?W[at]=qe:W[at]=qe*(1<<Z-Oe)}we++,Be++}we+=he-ve}}}}function S(W,re,ee){for(var X=re.components[ee],K=X.codingStyleParameters,Z=X.quantizationParameters,se=K.decompositionLevelsCount,ie=Z.SPqcds,de=Z.scalarExpounded,ce=Z.guardBits,he=K.segmentationSymbolUsed,oe=W.components[ee].precision,ne=K.reversibleTransformation,ue=ne?new te:new z,le=[],fe=0,pe=0;pe<=se;pe++){for(var ve=X.resolutions[pe],xe=ve.trx1-ve.trx0,Ce=ve.try1-ve.try0,be=new Float32Array(xe*Ce),me=0,ge=ve.subbands.length;me<ge;me++){var ye,Se;de?(ye=ie[fe].mu,Se=ie[fe].epsilon,fe++):(ye=ie[0].mu,Se=ie[0].epsilon+(pe>0?1-pe:0));var Ee=ve.subbands[me],De=$[Ee.type],_e=ne?1:2**(oe+De-Se)*(1+ye/2048),Be=ce+Se-1;F(be,xe,Ce,Ee,_e,Be,ne,he)}le.push({width:xe,height:Ce,items:be})}var Te=ue.calculate(le,X.tcx0,X.tcy0);return{left:X.tcx0,top:X.tcy0,width:Te.width,height:Te.height,items:Te.items}}function A(W){for(var re=W.SIZ,ee=W.components,X=re.Csiz,K=[],Z=0,se=W.tiles.length;Z<se;Z++){var ie=W.tiles[Z],de=[],ce;for(ce=0;ce<X;ce++)de[ce]=S(W,ie,ce);var he=de[0],oe=new Uint8ClampedArray(he.items.length*X),ne={left:he.left,top:he.top,width:he.width,height:he.height,items:oe},ue,le,fe=0,pe,ve,xe,Ce,be;if(ie.codingStyleDefaultParameters.multipleComponentTransform){var me=X===4,ge=de[0].items,ye=de[1].items,Se=de[2].items,Ee=me?de[3].items:null;ue=ee[0].precision-8,le=(128<<ue)+.5;var De=ie.components[0],_e=X-3;if(ve=ge.length,De.codingStyleParameters.reversibleTransformation)for(pe=0;pe<ve;pe++,fe+=_e){xe=ge[pe]+le,Ce=ye[pe],be=Se[pe];const Te=xe-(be+Ce>>2);oe[fe++]=Te+be>>ue,oe[fe++]=Te>>ue,oe[fe++]=Te+Ce>>ue}else for(pe=0;pe<ve;pe++,fe+=_e)xe=ge[pe]+le,Ce=ye[pe],be=Se[pe],oe[fe++]=xe+1.402*be>>ue,oe[fe++]=xe-.34413*Ce-.71414*be>>ue,oe[fe++]=xe+1.772*Ce>>ue;if(me)for(pe=0,fe=3;pe<ve;pe++,fe+=4)oe[fe]=Ee[pe]+le>>ue}else for(ce=0;ce<X;ce++){var Be=de[ce].items;for(ue=ee[ce].precision-8,le=(128<<ue)+.5,fe=ce,pe=0,ve=Be.length;pe<ve;pe++)oe[fe]=Be[pe]+le>>ue,fe+=X}K.push(ne)}return K}function E(W,re){for(var ee=W.SIZ,X=ee.Csiz,K=W.tiles[re],Z=0;Z<X;Z++){var se=K.components[Z],ie=W.currentTile.QCC[Z]!==void 0?W.currentTile.QCC[Z]:W.currentTile.QCD;se.quantizationParameters=ie;var de=W.currentTile.COC[Z]!==void 0?W.currentTile.COC[Z]:W.currentTile.COD;se.codingStyleParameters=de}K.codingStyleDefaultParameters=W.currentTile.COD}var _=function(){function re(ee,X){var K=(0,y.log2)(Math.max(ee,X))+1;this.levels=[];for(var Z=0;Z<K;Z++){var se={width:ee,height:X,items:[]};this.levels.push(se),ee=Math.ceil(ee/2),X=Math.ceil(X/2)}}return re.prototype={reset:function(X,K){for(var Z=0,se=0,ie;Z<this.levels.length;){ie=this.levels[Z];var de=X+K*ie.width;if(ie.items[de]!==void 0){se=ie.items[de];break}ie.index=de,X>>=1,K>>=1,Z++}Z--,ie=this.levels[Z],ie.items[ie.index]=se,this.currentLevel=Z,delete this.value},incrementValue:function(){var X=this.levels[this.currentLevel];X.items[X.index]++},nextLevel:function(){var X=this.currentLevel,K=this.levels[X],Z=K.items[K.index];return X--,X<0?(this.value=Z,!1):(this.currentLevel=X,K=this.levels[X],K.items[K.index]=Z,!0)}},re}(),D=function(){function re(ee,X,K){var Z=(0,y.log2)(Math.max(ee,X))+1;this.levels=[];for(var se=0;se<Z;se++){for(var ie=new Uint8Array(ee*X),de=0,ce=ie.length;de<ce;de++)ie[de]=K;var he={width:ee,height:X,items:ie};this.levels.push(he),ee=Math.ceil(ee/2),X=Math.ceil(X/2)}}return re.prototype={reset:function(X,K,Z){for(var se=0;se<this.levels.length;){var ie=this.levels[se],de=X+K*ie.width;ie.index=de;var ce=ie.items[de];if(ce===255)break;if(ce>Z)return this.currentLevel=se,this.propagateValues(),!1;X>>=1,K>>=1,se++}return this.currentLevel=se-1,!0},incrementValue:function(X){var K=this.levels[this.currentLevel];K.items[K.index]=X+1,this.propagateValues()},propagateValues:function(){for(var X=this.currentLevel,K=this.levels[X],Z=K.items[K.index];--X>=0;)K=this.levels[X],K.items[K.index]=Z},nextLevel:function(){var X=this.currentLevel,K=this.levels[X],Z=K.items[K.index];return K.items[K.index]=255,X--,X<0?!1:(this.currentLevel=X,K=this.levels[X],K.items[K.index]=Z,!0)}},re}(),N=function(){var re=17,ee=18,X=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),K=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),Z=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function se(ie,de,ce,he,oe){this.width=ie,this.height=de;let ne;ce==="HH"?ne=Z:ce==="HL"?ne=K:ne=X,this.contextLabelTable=ne;var ue=ie*de;this.neighborsSignificance=new Uint8Array(ue),this.coefficentsSign=new Uint8Array(ue);let le;oe>14?le=new Uint32Array(ue):oe>6?le=new Uint16Array(ue):le=new Uint8Array(ue),this.coefficentsMagnitude=le,this.processingFlags=new Uint8Array(ue);var fe=new Uint8Array(ue);if(he!==0)for(var pe=0;pe<ue;pe++)fe[pe]=he;this.bitsDecoded=fe,this.reset()}return se.prototype={setDecoder:function(de){this.decoder=de},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=4<<1|0,this.contexts[re]=46<<1|0,this.contexts[ee]=3<<1|0},setNeighborsSignificance:function(de,ce,he){var oe=this.neighborsSignificance,ne=this.width,ue=this.height,le=ce>0,fe=ce+1<ne,pe;de>0&&(pe=he-ne,le&&(oe[pe-1]+=16),fe&&(oe[pe+1]+=16),oe[pe]+=4),de+1<ue&&(pe=he+ne,le&&(oe[pe-1]+=16),fe&&(oe[pe+1]+=16),oe[pe]+=4),le&&(oe[he-1]+=1),fe&&(oe[he+1]+=1),oe[he]|=128},runSignificancePropagationPass:function(){for(var de=this.decoder,ce=this.width,he=this.height,oe=this.coefficentsMagnitude,ne=this.coefficentsSign,ue=this.neighborsSignificance,le=this.processingFlags,fe=this.contexts,pe=this.contextLabelTable,ve=this.bitsDecoded,xe=-2,Ce=1,be=2,me=0;me<he;me+=4)for(var ge=0;ge<ce;ge++)for(var ye=me*ce+ge,Se=0;Se<4;Se++,ye+=ce){var Ee=me+Se;if(Ee>=he)break;if(le[ye]&=xe,!(oe[ye]||!ue[ye])){var De=pe[ue[ye]],_e=de.readBit(fe,De);if(_e){var Be=this.decodeSignBit(Ee,ge,ye);ne[ye]=Be,oe[ye]=1,this.setNeighborsSignificance(Ee,ge,ye),le[ye]|=be}ve[ye]++,le[ye]|=Ce}}},decodeSignBit:function(de,ce,he){var oe=this.width,ne=this.height,ue=this.coefficentsMagnitude,le=this.coefficentsSign,fe,pe,ve,xe,Ce,be;xe=ce>0&&ue[he-1]!==0,ce+1<oe&&ue[he+1]!==0?(ve=le[he+1],xe?(pe=le[he-1],fe=1-ve-pe):fe=1-ve-ve):xe?(pe=le[he-1],fe=1-pe-pe):fe=0;var me=3*fe;return xe=de>0&&ue[he-oe]!==0,de+1<ne&&ue[he+oe]!==0?(ve=le[he+oe],xe?(pe=le[he-oe],fe=1-ve-pe+me):fe=1-ve-ve+me):xe?(pe=le[he-oe],fe=1-pe-pe+me):fe=me,fe>=0?(Ce=9+fe,be=this.decoder.readBit(this.contexts,Ce)):(Ce=9-fe,be=this.decoder.readBit(this.contexts,Ce)^1),be},runMagnitudeRefinementPass:function(){for(var de=this.decoder,ce=this.width,he=this.height,oe=this.coefficentsMagnitude,ne=this.neighborsSignificance,ue=this.contexts,le=this.bitsDecoded,fe=this.processingFlags,pe=1,ve=2,xe=ce*he,Ce=ce*4,be=0,me;be<xe;be=me){me=Math.min(xe,be+Ce);for(var ge=0;ge<ce;ge++)for(var ye=be+ge;ye<me;ye+=ce)if(!(!oe[ye]||(fe[ye]&pe)!==0)){var Se=16;if((fe[ye]&ve)!==0){fe[ye]^=ve;var Ee=ne[ye]&127;Se=Ee===0?15:14}var De=de.readBit(ue,Se);oe[ye]=oe[ye]<<1|De,le[ye]++,fe[ye]|=pe}}},runCleanupPass:function(){for(var de=this.decoder,ce=this.width,he=this.height,oe=this.neighborsSignificance,ne=this.coefficentsMagnitude,ue=this.coefficentsSign,le=this.contexts,fe=this.contextLabelTable,pe=this.bitsDecoded,ve=this.processingFlags,xe=1,Ce=2,be=ce,me=ce*2,ge=ce*3,ye,Se=0;Se<he;Se=ye){ye=Math.min(Se+4,he);for(var Ee=Se*ce,De=Se+3<he,_e=0;_e<ce;_e++){var Be=Ee+_e,Te=De&&ve[Be]===0&&ve[Be+be]===0&&ve[Be+me]===0&&ve[Be+ge]===0&&oe[Be]===0&&oe[Be+be]===0&&oe[Be+me]===0&&oe[Be+ge]===0,Fe=0,we=Be,Ae=Se,ke;if(Te){var Pe=de.readBit(le,ee);if(!Pe){pe[Be]++,pe[Be+be]++,pe[Be+me]++,pe[Be+ge]++;continue}Fe=de.readBit(le,re)<<1|de.readBit(le,re),Fe!==0&&(Ae=Se+Fe,we+=Fe*ce),ke=this.decodeSignBit(Ae,_e,we),ue[we]=ke,ne[we]=1,this.setNeighborsSignificance(Ae,_e,we),ve[we]|=Ce,we=Be;for(var Le=Se;Le<=Ae;Le++,we+=ce)pe[we]++;Fe++}for(Ae=Se+Fe;Ae<ye;Ae++,we+=ce)if(!(ne[we]||(ve[we]&xe)!==0)){var Ne=fe[oe[we]],qe=de.readBit(le,Ne);qe===1&&(ke=this.decodeSignBit(Ae,_e,we),ue[we]=ke,ne[we]=1,this.setNeighborsSignificance(Ae,_e,we),ve[we]|=Ce),pe[we]++}}}},checkSegmentationSymbol:function(){var de=this.decoder,ce=this.contexts,he=de.readBit(ce,re)<<3|de.readBit(ce,re)<<2|de.readBit(ce,re)<<1|de.readBit(ce,re);if(he!==10)throw new a("Invalid segmentation symbol")}},se}(),U=function(){function re(){}return re.prototype.calculate=function(X,K,Z){for(var se=X[0],ie=1,de=X.length;ie<de;ie++)se=this.iterate(se,X[ie],K,Z);return se},re.prototype.extend=function(X,K,Z){var se=K-1,ie=K+1,de=K+Z-2,ce=K+Z;X[se--]=X[ie++],X[ce++]=X[de--],X[se--]=X[ie++],X[ce++]=X[de--],X[se--]=X[ie++],X[ce++]=X[de--],X[se]=X[ie],X[ce]=X[de]},re.prototype.iterate=function(X,K,Z,se){var ie=X.width,de=X.height,ce=X.items,he=K.width,oe=K.height,ne=K.items,ue,le,fe,pe,ve,xe;for(fe=0,ue=0;ue<de;ue++)for(pe=ue*2*he,le=0;le<ie;le++,fe++,pe+=2)ne[pe]=ce[fe];ce=X.items=null;var Ce=4,be=new Float32Array(he+2*Ce);if(he===1){if((Z&1)!==0)for(xe=0,fe=0;xe<oe;xe++,fe+=he)ne[fe]*=.5}else for(xe=0,fe=0;xe<oe;xe++,fe+=he)be.set(ne.subarray(fe,fe+he),Ce),this.extend(be,Ce,he),this.filter(be,Ce,he),ne.set(be.subarray(Ce,Ce+he),fe);var me=16,ge=[];for(ue=0;ue<me;ue++)ge.push(new Float32Array(oe+2*Ce));var ye,Se=0;if(X=Ce+oe,oe===1){if((se&1)!==0)for(ve=0;ve<he;ve++)ne[ve]*=.5}else for(ve=0;ve<he;ve++){if(Se===0){for(me=Math.min(he-ve,me),fe=ve,pe=Ce;pe<X;fe+=he,pe++)for(ye=0;ye<me;ye++)ge[ye][pe]=ne[fe+ye];Se=me}Se--;var Ee=ge[Se];if(this.extend(Ee,Ce,oe),this.filter(Ee,Ce,oe),Se===0)for(fe=ve-me+1,pe=Ce;pe<X;fe+=he,pe++)for(ye=0;ye<me;ye++)ne[fe+ye]=ge[ye][pe]}return{width:he,height:oe,items:ne}},re}(),z=function(){function re(){U.call(this)}return re.prototype=Object.create(U.prototype),re.prototype.filter=function(X,K,Z){var se=Z>>1;K=K|0;var ie,de,ce,he,oe=-1.586134342059924,ne=-.052980118572961,ue=.882911075530934,le=.443506852043971,fe=1.230174104914001,pe=1/fe;for(ie=K-3,de=se+4;de--;ie+=2)X[ie]*=pe;for(ie=K-2,ce=le*X[ie-1],de=se+3;de--&&(he=le*X[ie+1],X[ie]=fe*X[ie]-ce-he,de--);ie+=2)ie+=2,ce=le*X[ie+1],X[ie]=fe*X[ie]-ce-he;for(ie=K-1,ce=ue*X[ie-1],de=se+2;de--&&(he=ue*X[ie+1],X[ie]-=ce+he,de--);ie+=2)ie+=2,ce=ue*X[ie+1],X[ie]-=ce+he;for(ie=K,ce=ne*X[ie-1],de=se+1;de--&&(he=ne*X[ie+1],X[ie]-=ce+he,de--);ie+=2)ie+=2,ce=ne*X[ie+1],X[ie]-=ce+he;if(se!==0)for(ie=K+1,ce=oe*X[ie-1],de=se;de--&&(he=oe*X[ie+1],X[ie]-=ce+he,de--);ie+=2)ie+=2,ce=oe*X[ie+1],X[ie]-=ce+he},re}(),te=function(){function re(){U.call(this)}return re.prototype=Object.create(U.prototype),re.prototype.filter=function(X,K,Z){var se=Z>>1;K=K|0;var ie,de;for(ie=K,de=se+1;de--;ie+=2)X[ie]-=X[ie-1]+X[ie+1]+2>>2;for(ie=K+1,de=se;de--;ie+=2)X[ie]+=X[ie-1]+X[ie+1]>>1},re}();return Q}();f.JpxImage=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.calculateSHA512=f.calculateSHA384=f.calculateSHA256=f.calculateMD5=f.PDF20=f.PDF17=f.CipherTransformFactory=f.ARCFourCipher=f.AES256Cipher=f.AES128Cipher=void 0;var m=b(2),y=b(5),k=b(12),a=function(){function T(O){this.a=0,this.b=0;var P=new Uint8Array(256),B,M=0,F,S=O.length;for(B=0;B<256;++B)P[B]=B;for(B=0;B<256;++B)F=P[B],M=M+F+O[B%S]&255,P[B]=P[M],P[M]=F;this.s=P}return T.prototype={encryptBlock:function(P){var B,M=P.length,F,S,A=this.a,E=this.b,_=this.s,D=new Uint8Array(M);for(B=0;B<M;++B)A=A+1&255,F=_[A],E=E+F&255,S=_[E],_[A]=S,_[E]=F,D[B]=P[B]^_[F+S&255];return this.a=A,this.b=E,D}},T.prototype.decryptBlock=T.prototype.encryptBlock,T}();f.ARCFourCipher=a;var q=function(){var T=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),O=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function P(B,M,F){var S=1732584193,A=-271733879,E=-1732584194,_=271733878,D=F+72&-64,N=new Uint8Array(D),U,z,te;for(U=0;U<F;++U)N[U]=B[M++];for(N[U++]=128,te=D-8;U<te;)N[U++]=0;N[U++]=F<<3&255,N[U++]=F>>5&255,N[U++]=F>>13&255,N[U++]=F>>21&255,N[U++]=F>>>29&255,N[U++]=0,N[U++]=0,N[U++]=0;var W=new Int32Array(16);for(U=0;U<D;){for(z=0;z<16;++z,U+=4)W[z]=N[U]|N[U+1]<<8|N[U+2]<<16|N[U+3]<<24;var re=S,ee=A,X=E,K=_,Z,se;for(z=0;z<64;++z){z<16?(Z=ee&X|~ee&K,se=z):z<32?(Z=K&ee|~K&X,se=5*z+1&15):z<48?(Z=ee^X^K,se=3*z+5&15):(Z=X^(ee|~K),se=7*z&15);var ie=K,de=re+Z+O[z]+W[se]|0,ce=T[z];K=X,X=ee,ee=ee+(de<<ce|de>>>32-ce)|0,re=ie}S=S+re|0,A=A+ee|0,E=E+X|0,_=_+K|0}return new Uint8Array([S&255,S>>8&255,S>>16&255,S>>>24&255,A&255,A>>8&255,A>>16&255,A>>>24&255,E&255,E>>8&255,E>>16&255,E>>>24&255,_&255,_>>8&255,_>>16&255,_>>>24&255])}return P}();f.calculateMD5=q;var w=function(){function T(O,P){this.high=O|0,this.low=P|0}return T.prototype={and:function(P){this.high&=P.high,this.low&=P.low},xor:function(P){this.high^=P.high,this.low^=P.low},or:function(P){this.high|=P.high,this.low|=P.low},shiftRight:function(P){P>=32?(this.low=this.high>>>P-32|0,this.high=0):(this.low=this.low>>>P|this.high<<32-P,this.high=this.high>>>P|0)},shiftLeft:function(P){P>=32?(this.high=this.low<<P-32,this.low=0):(this.high=this.high<<P|this.low>>>32-P,this.low=this.low<<P)},rotateRight:function(P){var B,M;P&32?(M=this.low,B=this.high):(B=this.low,M=this.high),P&=31,this.low=B>>>P|M<<32-P,this.high=M>>>P|B<<32-P},not:function(){this.high=~this.high,this.low=~this.low},add:function(P){var B=(this.low>>>0)+(P.low>>>0),M=(this.high>>>0)+(P.high>>>0);B>4294967295&&(M+=1),this.low=B|0,this.high=M|0},copyTo:function(P,B){P[B]=this.high>>>24&255,P[B+1]=this.high>>16&255,P[B+2]=this.high>>8&255,P[B+3]=this.high&255,P[B+4]=this.low>>>24&255,P[B+5]=this.low>>16&255,P[B+6]=this.low>>8&255,P[B+7]=this.low&255},assign:function(P){this.high=P.high,this.low=P.low}},T}(),$=function(){function T(_,D){return _>>>D|_<<32-D}function O(_,D,N){return _&D^~_&N}function P(_,D,N){return _&D^_&N^D&N}function B(_){return T(_,2)^T(_,13)^T(_,22)}function M(_){return T(_,6)^T(_,11)^T(_,25)}function F(_){return T(_,7)^T(_,18)^_>>>3}function S(_){return T(_,17)^T(_,19)^_>>>10}var A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function E(_,D,N){var U=1779033703,z=3144134277,te=1013904242,W=2773480762,re=1359893119,ee=2600822924,X=528734635,K=1541459225,Z=Math.ceil((N+9)/64)*64,se=new Uint8Array(Z),ie,de,ce;for(ie=0;ie<N;++ie)se[ie]=_[D++];for(se[ie++]=128,ce=Z-8;ie<ce;)se[ie++]=0;se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=N>>>29&255,se[ie++]=N>>21&255,se[ie++]=N>>13&255,se[ie++]=N>>5&255,se[ie++]=N<<3&255;var he=new Uint32Array(64);for(ie=0;ie<Z;){for(de=0;de<16;++de)he[de]=se[ie]<<24|se[ie+1]<<16|se[ie+2]<<8|se[ie+3],ie+=4;for(de=16;de<64;++de)he[de]=S(he[de-2])+he[de-7]+F(he[de-15])+he[de-16]|0;var oe=U,ne=z,ue=te,le=W,fe=re,pe=ee,ve=X,xe=K,Ce,be;for(de=0;de<64;++de)Ce=xe+M(fe)+O(fe,pe,ve)+A[de]+he[de],be=B(oe)+P(oe,ne,ue),xe=ve,ve=pe,pe=fe,fe=le+Ce|0,le=ue,ue=ne,ne=oe,oe=Ce+be|0;U=U+oe|0,z=z+ne|0,te=te+ue|0,W=W+le|0,re=re+fe|0,ee=ee+pe|0,X=X+ve|0,K=K+xe|0}return new Uint8Array([U>>24&255,U>>16&255,U>>8&255,U&255,z>>24&255,z>>16&255,z>>8&255,z&255,te>>24&255,te>>16&255,te>>8&255,te&255,W>>24&255,W>>16&255,W>>8&255,W&255,re>>24&255,re>>16&255,re>>8&255,re&255,ee>>24&255,ee>>16&255,ee>>8&255,ee&255,X>>24&255,X>>16&255,X>>8&255,X&255,K>>24&255,K>>16&255,K>>8&255,K&255])}return E}();f.calculateSHA256=$;var Q=function(){function T(E,_,D,N,U){E.assign(_),E.and(D),U.assign(_),U.not(),U.and(N),E.xor(U)}function O(E,_,D,N,U){E.assign(_),E.and(D),U.assign(_),U.and(N),E.xor(U),U.assign(D),U.and(N),E.xor(U)}function P(E,_,D){E.assign(_),E.rotateRight(28),D.assign(_),D.rotateRight(34),E.xor(D),D.assign(_),D.rotateRight(39),E.xor(D)}function B(E,_,D){E.assign(_),E.rotateRight(14),D.assign(_),D.rotateRight(18),E.xor(D),D.assign(_),D.rotateRight(41),E.xor(D)}function M(E,_,D){E.assign(_),E.rotateRight(1),D.assign(_),D.rotateRight(8),E.xor(D),D.assign(_),D.shiftRight(7),E.xor(D)}function F(E,_,D){E.assign(_),E.rotateRight(19),D.assign(_),D.rotateRight(61),E.xor(D),D.assign(_),D.shiftRight(6),E.xor(D)}var S=[new w(1116352408,3609767458),new w(1899447441,602891725),new w(3049323471,3964484399),new w(3921009573,2173295548),new w(961987163,4081628472),new w(1508970993,3053834265),new w(2453635748,2937671579),new w(2870763221,3664609560),new w(3624381080,2734883394),new w(310598401,1164996542),new w(607225278,1323610764),new w(1426881987,3590304994),new w(1925078388,4068182383),new w(2162078206,991336113),new w(2614888103,633803317),new w(3248222580,3479774868),new w(3835390401,2666613458),new w(4022224774,944711139),new w(264347078,2341262773),new w(604807628,2007800933),new w(770255983,1495990901),new w(1249150122,1856431235),new w(1555081692,3175218132),new w(1996064986,2198950837),new w(2554220882,3999719339),new w(2821834349,766784016),new w(2952996808,2566594879),new w(3210313671,3203337956),new w(3336571891,1034457026),new w(3584528711,2466948901),new w(113926993,3758326383),new w(338241895,168717936),new w(666307205,1188179964),new w(773529912,1546045734),new w(1294757372,1522805485),new w(1396182291,2643833823),new w(1695183700,2343527390),new w(1986661051,1014477480),new w(2177026350,1206759142),new w(2456956037,344077627),new w(2730485921,1290863460),new w(2820302411,3158454273),new w(3259730800,3505952657),new w(3345764771,106217008),new w(3516065817,3606008344),new w(3600352804,1432725776),new w(4094571909,1467031594),new w(275423344,851169720),new w(430227734,3100823752),new w(506948616,1363258195),new w(659060556,3750685593),new w(883997877,3785050280),new w(958139571,3318307427),new w(1322822218,3812723403),new w(1537002063,2003034995),new w(1747873779,3602036899),new w(1955562222,1575990012),new w(2024104815,1125592928),new w(2227730452,2716904306),new w(2361852424,442776044),new w(2428436474,593698344),new w(2756734187,3733110249),new w(3204031479,2999351573),new w(3329325298,3815920427),new w(3391569614,3928383900),new w(3515267271,566280711),new w(3940187606,3454069534),new w(4118630271,4000239992),new w(116418474,1914138554),new w(174292421,2731055270),new w(289380356,3203993006),new w(460393269,320620315),new w(685471733,587496836),new w(852142971,1086792851),new w(1017036298,365543100),new w(1126000580,2618297676),new w(1288033470,3409855158),new w(1501505948,4234509866),new w(1607167915,987167468),new w(1816402316,1246189591)];function A(E,_,D,N){N=!!N;var U,z,te,W,re,ee,X,K;N?(U=new w(3418070365,3238371032),z=new w(1654270250,914150663),te=new w(2438529370,812702999),W=new w(355462360,4144912697),re=new w(1731405415,4290775857),ee=new w(2394180231,1750603025),X=new w(3675008525,1694076839),K=new w(1203062813,3204075428)):(U=new w(1779033703,4089235720),z=new w(3144134277,2227873595),te=new w(1013904242,4271175723),W=new w(2773480762,1595750129),re=new w(1359893119,2917565137),ee=new w(2600822924,725511199),X=new w(528734635,4215389547),K=new w(1541459225,327033209));var Z=Math.ceil((D+17)/128)*128,se=new Uint8Array(Z),ie,de,ce;for(ie=0;ie<D;++ie)se[ie]=E[_++];for(se[ie++]=128,ce=Z-16;ie<ce;)se[ie++]=0;se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=0,se[ie++]=D>>>29&255,se[ie++]=D>>21&255,se[ie++]=D>>13&255,se[ie++]=D>>5&255,se[ie++]=D<<3&255;var he=new Array(80);for(ie=0;ie<80;ie++)he[ie]=new w(0,0);var oe=new w(0,0),ne=new w(0,0),ue=new w(0,0),le=new w(0,0),fe=new w(0,0),pe=new w(0,0),ve=new w(0,0),xe=new w(0,0),Ce=new w(0,0),be=new w(0,0),me=new w(0,0),ge=new w(0,0),ye;for(ie=0;ie<Z;){for(de=0;de<16;++de)he[de].high=se[ie]<<24|se[ie+1]<<16|se[ie+2]<<8|se[ie+3],he[de].low=se[ie+4]<<24|se[ie+5]<<16|se[ie+6]<<8|se[ie+7],ie+=8;for(de=16;de<80;++de)ye=he[de],F(ye,he[de-2],ge),ye.add(he[de-7]),M(me,he[de-15],ge),ye.add(me),ye.add(he[de-16]);for(oe.assign(U),ne.assign(z),ue.assign(te),le.assign(W),fe.assign(re),pe.assign(ee),ve.assign(X),xe.assign(K),de=0;de<80;++de)Ce.assign(xe),B(me,fe,ge),Ce.add(me),T(me,fe,pe,ve,ge),Ce.add(me),Ce.add(S[de]),Ce.add(he[de]),P(be,oe,ge),O(me,oe,ne,ue,ge),be.add(me),ye=xe,xe=ve,ve=pe,pe=fe,le.add(Ce),fe=le,le=ue,ue=ne,ne=oe,ye.assign(Ce),ye.add(be),oe=ye;U.add(oe),z.add(ne),te.add(ue),W.add(le),re.add(fe),ee.add(pe),X.add(ve),K.add(xe)}var Se;return N?(Se=new Uint8Array(48),U.copyTo(Se,0),z.copyTo(Se,8),te.copyTo(Se,16),W.copyTo(Se,24),re.copyTo(Se,32),ee.copyTo(Se,40)):(Se=new Uint8Array(64),U.copyTo(Se,0),z.copyTo(Se,8),te.copyTo(Se,16),W.copyTo(Se,24),re.copyTo(Se,32),ee.copyTo(Se,40),X.copyTo(Se,48),K.copyTo(Se,56)),Se}return A}();f.calculateSHA512=Q;var C=function(){function T(O,P,B){return Q(O,P,B,!0)}return T}();f.calculateSHA384=C;var v=function(){function T(){}return T.prototype={decryptBlock:function(P){return P}},T}();class J{constructor(){this.constructor===J&&(0,m.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let T=0;T<256;T++)T<128?this._mixCol[T]=T<<1:this._mixCol[T]=T<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(T){(0,m.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(T,O){let P,B,M;const F=new Uint8Array(16);F.set(T);for(let S=0,A=this._keySize;S<16;++S,++A)F[S]^=O[A];for(let S=this._cyclesOfRepetition-1;S>=1;--S){P=F[13],F[13]=F[9],F[9]=F[5],F[5]=F[1],F[1]=P,P=F[14],B=F[10],F[14]=F[6],F[10]=F[2],F[6]=P,F[2]=B,P=F[15],B=F[11],M=F[7],F[15]=F[3],F[11]=P,F[7]=B,F[3]=M;for(let A=0;A<16;++A)F[A]=this._inv_s[F[A]];for(let A=0,E=S*16;A<16;++A,++E)F[A]^=O[E];for(let A=0;A<16;A+=4){const E=this._mix[F[A]],_=this._mix[F[A+1]],D=this._mix[F[A+2]],N=this._mix[F[A+3]];P=E^_>>>8^_<<24^D>>>16^D<<16^N>>>24^N<<8,F[A]=P>>>24&255,F[A+1]=P>>16&255,F[A+2]=P>>8&255,F[A+3]=P&255}}P=F[13],F[13]=F[9],F[9]=F[5],F[5]=F[1],F[1]=P,P=F[14],B=F[10],F[14]=F[6],F[10]=F[2],F[6]=P,F[2]=B,P=F[15],B=F[11],M=F[7],F[15]=F[3],F[11]=P,F[7]=B,F[3]=M;for(let S=0;S<16;++S)F[S]=this._inv_s[F[S]],F[S]^=O[S];return F}_encrypt(T,O){const P=this._s;let B,M,F;const S=new Uint8Array(16);S.set(T);for(let A=0;A<16;++A)S[A]^=O[A];for(let A=1;A<this._cyclesOfRepetition;A++){for(let E=0;E<16;++E)S[E]=P[S[E]];F=S[1],S[1]=S[5],S[5]=S[9],S[9]=S[13],S[13]=F,F=S[2],M=S[6],S[2]=S[10],S[6]=S[14],S[10]=F,S[14]=M,F=S[3],M=S[7],B=S[11],S[3]=S[15],S[7]=F,S[11]=M,S[15]=B;for(let E=0;E<16;E+=4){const _=S[E+0],D=S[E+1],N=S[E+2],U=S[E+3];B=_^D^N^U,S[E+0]^=B^this._mixCol[_^D],S[E+1]^=B^this._mixCol[D^N],S[E+2]^=B^this._mixCol[N^U],S[E+3]^=B^this._mixCol[U^_]}for(let E=0,_=A*16;E<16;++E,++_)S[E]^=O[_]}for(let A=0;A<16;++A)S[A]=P[S[A]];F=S[1],S[1]=S[5],S[5]=S[9],S[9]=S[13],S[13]=F,F=S[2],M=S[6],S[2]=S[10],S[6]=S[14],S[10]=F,S[14]=M,F=S[3],M=S[7],B=S[11],S[3]=S[15],S[7]=F,S[11]=M,S[15]=B;for(let A=0,E=this._keySize;A<16;++A,++E)S[A]^=O[E];return S}_decryptBlock2(T,O){const P=T.length;let B=this.buffer,M=this.bufferPosition;const F=[];let S=this.iv;for(let _=0;_<P;++_){if(B[M]=T[_],++M,M<16)continue;const D=this._decrypt(B,this._key);for(let N=0;N<16;++N)D[N]^=S[N];S=B,F.push(D),B=new Uint8Array(16),M=0}if(this.buffer=B,this.bufferLength=M,this.iv=S,F.length===0)return new Uint8Array(0);let A=16*F.length;if(O){const _=F[F.length-1];let D=_[15];if(D<=16){for(let N=15,U=16-D;N>=U;--N)if(_[N]!==D){D=0;break}A-=D,F[F.length-1]=_.subarray(0,16-D)}}const E=new Uint8Array(A);for(let _=0,D=0,N=F.length;_<N;++_,D+=16)E.set(F[_],D);return E}decryptBlock(T,O,P=null){const B=T.length,M=this.buffer;let F=this.bufferPosition;if(P)this.iv=P;else{for(let S=0;F<16&&S<B;++S,++F)M[F]=T[S];if(F<16)return this.bufferLength=F,new Uint8Array(0);this.iv=M,T=T.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(T,O)}encrypt(T,O){const P=T.length;let B=this.buffer,M=this.bufferPosition;const F=[];O||(O=new Uint8Array(16));for(let E=0;E<P;++E){if(B[M]=T[E],++M,M<16)continue;for(let D=0;D<16;++D)B[D]^=O[D];const _=this._encrypt(B,this._key);O=_,F.push(_),B=new Uint8Array(16),M=0}if(this.buffer=B,this.bufferLength=M,this.iv=O,F.length===0)return new Uint8Array(0);const S=16*F.length,A=new Uint8Array(S);for(let E=0,_=0,D=F.length;E<D;++E,_+=16)A.set(F[E],_);return A}}class ae extends J{constructor(T){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(T)}_expandKey(T){const P=this._s,B=this._rcon,M=new Uint8Array(176);M.set(T);for(let F=16,S=1;F<176;++S){let A=M[F-3],E=M[F-2],_=M[F-1],D=M[F-4];A=P[A],E=P[E],_=P[_],D=P[D],A=A^B[S];for(let N=0;N<4;++N)M[F]=A^=M[F-16],F++,M[F]=E^=M[F-16],F++,M[F]=_^=M[F-16],F++,M[F]=D^=M[F-16],F++}return M}}f.AES128Cipher=ae;class H extends J{constructor(T){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(T)}_expandKey(T){const P=this._s,B=new Uint8Array(240);B.set(T);let M=1,F,S,A,E;for(let _=32,D=1;_<240;++D){_%32===16?(F=P[F],S=P[S],A=P[A],E=P[E]):_%32===0&&(F=B[_-3],S=B[_-2],A=B[_-1],E=B[_-4],F=P[F],S=P[S],A=P[A],E=P[E],F=F^M,(M<<=1)>=256&&(M=(M^27)&255));for(let N=0;N<4;++N)B[_]=F^=B[_-32],_++,B[_]=S^=B[_-32],_++,B[_]=A^=B[_-32],_++,B[_]=E^=B[_-32],_++}return B}}f.AES256Cipher=H;var Y=function(){function T(P,B){if(P.length!==B.length)return!1;for(var M=0;M<P.length;M++)if(P[M]!==B[M])return!1;return!0}function O(){}return O.prototype={checkOwnerPassword:function(B,M,F,S){var A=new Uint8Array(B.length+56);A.set(B,0),A.set(M,B.length),A.set(F,B.length+M.length);var E=$(A,0,A.length);return T(E,S)},checkUserPassword:function(B,M,F){var S=new Uint8Array(B.length+8);S.set(B,0),S.set(M,B.length);var A=$(S,0,S.length);return T(A,F)},getOwnerKey:function(B,M,F,S){var A=new Uint8Array(B.length+56);A.set(B,0),A.set(M,B.length),A.set(F,B.length+M.length);var E=$(A,0,A.length),_=new H(E);return _.decryptBlock(S,!1,new Uint8Array(16))},getUserKey:function(B,M,F){var S=new Uint8Array(B.length+8);S.set(B,0),S.set(M,B.length);var A=$(S,0,S.length),E=new H(A);return E.decryptBlock(F,!1,new Uint8Array(16))}},O}();f.PDF17=Y;var G=function(){function T(M,F){var S=new Uint8Array(M.length+F.length);return S.set(M,0),S.set(F,M.length),S}function O(M,F,S){for(var A=$(F,0,F.length).subarray(0,32),E=[0],_=0;_<64||E[E.length-1]>_-32;){var D=M.length+A.length+S.length,N=new Uint8Array(D*64),U=T(M,A);U=T(U,S);for(var z=0,te=0;z<64;z++,te+=D)N.set(U,te);var W=new ae(A.subarray(0,16));E=W.encrypt(N,A.subarray(16,32));for(var re=0,ee=0;ee<16;ee++)re*=256%3,re%=3,re+=(E[ee]>>>0)%3,re%=3;re===0?A=$(E,0,E.length):re===1?A=C(E,0,E.length):re===2&&(A=Q(E,0,E.length)),_++}return A.subarray(0,32)}function P(){}function B(M,F){if(M.length!==F.length)return!1;for(var S=0;S<M.length;S++)if(M[S]!==F[S])return!1;return!0}return P.prototype={hash:function(F,S,A){return O(F,S,A)},checkOwnerPassword:function(F,S,A,E){var _=new Uint8Array(F.length+56);_.set(F,0),_.set(S,F.length),_.set(A,F.length+S.length);var D=O(F,_,A);return B(D,E)},checkUserPassword:function(F,S,A){var E=new Uint8Array(F.length+8);E.set(F,0),E.set(S,F.length);var _=O(F,E,[]);return B(_,A)},getOwnerKey:function(F,S,A,E){var _=new Uint8Array(F.length+56);_.set(F,0),_.set(S,F.length),_.set(A,F.length+S.length);var D=O(F,_,A),N=new H(D);return N.decryptBlock(E,!1,new Uint8Array(16))},getUserKey:function(F,S,A){var E=new Uint8Array(F.length+8);E.set(F,0),E.set(S,F.length);var _=O(F,E,[]),D=new H(_);return D.decryptBlock(A,!1,new Uint8Array(16))}},P}();f.PDF20=G;var j=function(){function T(O,P){this.StringCipherConstructor=O,this.StreamCipherConstructor=P}return T.prototype={createStream:function(P,B){var M=new this.StreamCipherConstructor;return new k.DecryptStream(P,B,function(S,A){return M.decryptBlock(S,A)})},decryptString:function(P){var B=new this.StringCipherConstructor,M=(0,m.stringToBytes)(P);return M=B.decryptBlock(M,!0),(0,m.bytesToString)(M)}},T}(),L=function(){var T=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function O(E,_,D,N,U,z,te,W,re,ee,X,K){if(_){var Z=Math.min(127,_.length);_=_.subarray(0,Z)}else _=[];var se;return E===6?se=new G:se=new Y,se.checkUserPassword(_,W,te)?se.getUserKey(_,re,X):_.length&&se.checkOwnerPassword(_,N,z,D)?se.getOwnerKey(_,U,z,ee):null}function P(E,_,D,N,U,z,te,W){var re=40+D.length+E.length,ee=new Uint8Array(re),X=0,K,Z;if(_)for(Z=Math.min(32,_.length);X<Z;++X)ee[X]=_[X];for(K=0;X<32;)ee[X++]=T[K++];for(K=0,Z=D.length;K<Z;++K)ee[X++]=D[K];for(ee[X++]=U&255,ee[X++]=U>>8&255,ee[X++]=U>>16&255,ee[X++]=U>>>24&255,K=0,Z=E.length;K<Z;++K)ee[X++]=E[K];z>=4&&!W&&(ee[X++]=255,ee[X++]=255,ee[X++]=255,ee[X++]=255);var se=q(ee,0,X),ie=te>>3;if(z>=3)for(K=0;K<50;++K)se=q(se,0,ie);var de=se.subarray(0,ie),ce,he;if(z>=3){for(X=0;X<32;++X)ee[X]=T[X];for(K=0,Z=E.length;K<Z;++K)ee[X++]=E[K];ce=new a(de),he=ce.encryptBlock(q(ee,0,X)),Z=de.length;var oe=new Uint8Array(Z),ne;for(K=1;K<=19;++K){for(ne=0;ne<Z;++ne)oe[ne]=de[ne]^K;ce=new a(oe),he=ce.encryptBlock(he)}for(K=0,Z=he.length;K<Z;++K)if(N[K]!==he[K])return null}else for(ce=new a(de),he=ce.encryptBlock(T),K=0,Z=he.length;K<Z;++K)if(N[K]!==he[K])return null;return de}function B(E,_,D,N){var U=new Uint8Array(32),z=0,te,W;for(W=Math.min(32,E.length);z<W;++z)U[z]=E[z];for(te=0;z<32;)U[z++]=T[te++];var re=q(U,0,z),ee=N>>3;if(D>=3)for(te=0;te<50;++te)re=q(re,0,re.length);var X,K;if(D>=3){K=_;var Z=new Uint8Array(ee),se;for(te=19;te>=0;te--){for(se=0;se<ee;++se)Z[se]=re[se]^te;X=new a(Z),K=X.encryptBlock(K)}}else X=new a(re.subarray(0,ee)),K=X.encryptBlock(_);return K}var M=y.Name.get("Identity");function F(E,_,D){var N=E.get("Filter");if(!(0,y.isName)(N,"Standard"))throw new m.FormatError("unknown encryption method");this.dict=E;var U=E.get("V");if(!Number.isInteger(U)||U!==1&&U!==2&&U!==4&&U!==5)throw new m.FormatError("unsupported encryption algorithm");this.algorithm=U;var z=E.get("Length");if(!z)if(U<=3)z=40;else{var te=E.get("CF"),W=E.get("StmF");if((0,y.isDict)(te)&&(0,y.isName)(W)){te.suppressEncryption=!0;var re=te.get(W.name);z=re&&re.get("Length")||128,z<40&&(z<<=3)}}if(!Number.isInteger(z)||z<40||z%8!==0)throw new m.FormatError("invalid key length");var ee=(0,m.stringToBytes)(E.get("O")).subarray(0,32),X=(0,m.stringToBytes)(E.get("U")).subarray(0,32),K=E.get("P"),Z=E.get("R"),se=(U===4||U===5)&&E.get("EncryptMetadata")!==!1;this.encryptMetadata=se;var ie=(0,m.stringToBytes)(_),de;if(D){if(Z===6)try{D=(0,m.utf8StringToString)(D)}catch{(0,m.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}de=(0,m.stringToBytes)(D)}var ce;if(U!==5)ce=P(ie,de,ee,X,K,Z,z,se);else{var he=(0,m.stringToBytes)(E.get("O")).subarray(32,40),oe=(0,m.stringToBytes)(E.get("O")).subarray(40,48),ne=(0,m.stringToBytes)(E.get("U")).subarray(0,48),ue=(0,m.stringToBytes)(E.get("U")).subarray(32,40),le=(0,m.stringToBytes)(E.get("U")).subarray(40,48),fe=(0,m.stringToBytes)(E.get("OE")),pe=(0,m.stringToBytes)(E.get("UE"));(0,m.stringToBytes)(E.get("Perms")),ce=O(Z,de,ee,he,oe,ne,X,ue,le,fe,pe)}if(!ce&&!D)throw new m.PasswordException("No password given",m.PasswordResponses.NEED_PASSWORD);if(!ce&&D){var ve=B(de,ee,Z,z);ce=P(ie,ve,ee,X,K,Z,z,se)}if(!ce)throw new m.PasswordException("Incorrect Password",m.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=ce,U>=4){var xe=E.get("CF");(0,y.isDict)(xe)&&(xe.suppressEncryption=!0),this.cf=xe,this.stmf=E.get("StmF")||M,this.strf=E.get("StrF")||M,this.eff=E.get("EFF")||this.stmf}}function S(E,_,D,N){var U=new Uint8Array(D.length+9),z,te;for(z=0,te=D.length;z<te;++z)U[z]=D[z];U[z++]=E&255,U[z++]=E>>8&255,U[z++]=E>>16&255,U[z++]=_&255,U[z++]=_>>8&255,N&&(U[z++]=115,U[z++]=65,U[z++]=108,U[z++]=84);var W=q(U,0,z);return W.subarray(0,Math.min(D.length+5,16))}function A(E,_,D,N,U){if(!(0,y.isName)(_))throw new m.FormatError("Invalid crypt filter name.");var z=E.get(_.name),te;if(z!=null&&(te=z.get("CFM")),!te||te.name==="None")return function(){return new v};if(te.name==="V2")return function(){return new a(S(D,N,U,!1))};if(te.name==="AESV2")return function(){return new ae(S(D,N,U,!0))};if(te.name==="AESV3")return function(){return new H(U)};throw new m.FormatError("Unknown crypto method")}return F.prototype={createCipherTransform:function(_,D){if(this.algorithm===4||this.algorithm===5)return new j(A(this.cf,this.stmf,_,D,this.encryptionKey),A(this.cf,this.strf,_,D,this.encryptionKey));var N=S(_,D,this.encryptionKey,!1),U=function(){return new a(N)};return new j(U,U)}},F}();f.CipherTransformFactory=L},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.ColorSpace=void 0;var m=b(2),y=b(5);function k(Y,G,j,L,R,T,O){O=O!==1?0:O;const B=j/R,M=L/T;let F=0,S;const A=new Uint16Array(R),E=j*3;for(let _=0;_<R;_++)A[_]=Math.floor(_*B)*3;for(let _=0;_<T;_++){const D=Math.floor(_*M)*E;for(let N=0;N<R;N++)S=D+A[N],G[F++]=Y[S++],G[F++]=Y[S++],G[F++]=Y[S++],F+=O}}class a{constructor(G,j){this.constructor===a&&(0,m.unreachable)("Cannot initialize ColorSpace."),this.name=G,this.numComps=j}getRgb(G,j){const L=new Uint8ClampedArray(3);return this.getRgbItem(G,j,L,0),L}getRgbItem(G,j,L,R){(0,m.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(G,j,L,R,T,O,P){(0,m.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(G,j){(0,m.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(G){return!1}isDefaultDecode(G,j){return a.isDefaultDecode(G,this.numComps)}fillRgb(G,j,L,R,T,O,P,B,M){const F=j*L;let S=null;const A=1<<P,E=L!==T||j!==R;if(this.isPassthrough(P))S=B;else if(this.numComps===1&&F>A&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const _=P<=8?new Uint8Array(A):new Uint16Array(A);for(let N=0;N<A;N++)_[N]=N;const D=new Uint8ClampedArray(A*3);if(this.getRgbBuffer(_,0,A,D,0,P,0),E){S=new Uint8Array(F*3);let N=0;for(let U=0;U<F;++U){const z=B[U]*3;S[N++]=D[z],S[N++]=D[z+1],S[N++]=D[z+2]}}else{let N=0;for(let U=0;U<F;++U){const z=B[U]*3;G[N++]=D[z],G[N++]=D[z+1],G[N++]=D[z+2],N+=M}}}else E?(S=new Uint8ClampedArray(F*3),this.getRgbBuffer(B,0,F,S,0,P,0)):this.getRgbBuffer(B,0,R*O,G,0,P,M);if(S)if(E)k(S,G,j,L,R,T,M);else{let _=0,D=0;for(let N=0,U=R*O;N<U;N++)G[_++]=S[D++],G[_++]=S[D++],G[_++]=S[D++],_+=M}}get usesZeroToOneRange(){return(0,m.shadow)(this,"usesZeroToOneRange",!0)}static parse(G,j,L,R){const T=this.parseToIR(G,j,L,R);return this.fromIR(T)}static fromIR(G){const j=Array.isArray(G)?G[0]:G;let L,R,T;switch(j){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return L=G[1],R=G[2],T=G[3],new J(L,R,T);case"CalRGBCS":L=G[1],R=G[2],T=G[3];const O=G[4];return new ae(L,R,T,O);case"PatternCS":let P=G[1];return P&&(P=this.fromIR(P)),new w(P);case"IndexedCS":const B=G[1],M=G[2],F=G[3];return new $(this.fromIR(B),M,F);case"AlternateCS":const S=G[1],A=G[2],E=G[3];return new q(S,this.fromIR(A),E);case"LabCS":L=G[1],R=G[2];const _=G[3];return new H(L,R,_);default:throw new m.FormatError(`Unknown colorspace name: ${j}`)}}static parseToIR(G,j,L=null,R){if(G=j.fetchIfRef(G),(0,y.isName)(G))switch(G.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,y.isDict)(L)){const T=L.get("ColorSpace");if((0,y.isDict)(T)){const O=T.get(G.name);if(O){if((0,y.isName)(O))return this.parseToIR(O,j,L,R);G=O;break}}}throw new m.FormatError(`unrecognized colorspace ${G.name}`)}if(Array.isArray(G)){const T=j.fetchIfRef(G[0]).name;let O,P,B,M,F,S;switch(T){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return P=j.fetchIfRef(G[1]),M=P.getArray("WhitePoint"),F=P.getArray("BlackPoint"),S=P.get("Gamma"),["CalGrayCS",M,F,S];case"CalRGB":P=j.fetchIfRef(G[1]),M=P.getArray("WhitePoint"),F=P.getArray("BlackPoint"),S=P.getArray("Gamma");const A=P.getArray("Matrix");return["CalRGBCS",M,F,S,A];case"ICCBased":const _=j.fetchIfRef(G[1]).dict;if(O=_.get("N"),B=_.get("Alternate"),B){const ee=this.parseToIR(B,j,L,R);if(this.fromIR(ee,R).numComps===O)return ee;(0,m.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(O===1)return"DeviceGrayCS";if(O===3)return"DeviceRgbCS";if(O===4)return"DeviceCmykCS";break;case"Pattern":let D=G[1]||null;return D&&(D=this.parseToIR(D,j,L,R)),["PatternCS",D];case"Indexed":case"I":const N=this.parseToIR(G[1],j,L,R),U=j.fetchIfRef(G[2])+1;let z=j.fetchIfRef(G[3]);return(0,y.isStream)(z)&&(z=z.getBytes()),["IndexedCS",N,U,z];case"Separation":case"DeviceN":const te=j.fetchIfRef(G[1]);O=Array.isArray(te)?te.length:1,B=this.parseToIR(G[2],j,L,R);const W=R.create(j.fetchIfRef(G[3]));return["AlternateCS",O,B,W];case"Lab":P=j.fetchIfRef(G[1]),M=P.getArray("WhitePoint"),F=P.getArray("BlackPoint");const re=P.getArray("Range");return["LabCS",M,F,re];default:throw new m.FormatError(`unimplemented color space object "${T}"`)}}throw new m.FormatError(`unrecognized color space object: "${G}"`)}static isDefaultDecode(G,j){if(!Array.isArray(G))return!0;if(j*2!==G.length)return(0,m.warn)("The decode map is not the correct length"),!0;for(let L=0,R=G.length;L<R;L+=2)if(G[L]!==0||G[L+1]!==1)return!1;return!0}static get singletons(){return(0,m.shadow)(this,"singletons",{get gray(){return(0,m.shadow)(this,"gray",new Q)},get rgb(){return(0,m.shadow)(this,"rgb",new C)},get cmyk(){return(0,m.shadow)(this,"cmyk",new v)}})}}f.ColorSpace=a;class q extends a{constructor(G,j,L){super("Alternate",G),this.base=j,this.tintFn=L,this.tmpBuf=new Float32Array(j.numComps)}getRgbItem(G,j,L,R){const T=this.tmpBuf;this.tintFn(G,j,T,0),this.base.getRgbItem(T,0,L,R)}getRgbBuffer(G,j,L,R,T,O,P){const B=this.tintFn,M=this.base,F=1/((1<<O)-1),S=M.numComps,A=M.usesZeroToOneRange,E=(M.isPassthrough(8)||!A)&&P===0;let _=E?T:0;const D=E?R:new Uint8ClampedArray(S*L),N=this.numComps,U=new Float32Array(N),z=new Float32Array(S);let te,W;for(te=0;te<L;te++){for(W=0;W<N;W++)U[W]=G[j++]*F;if(B(U,0,z,0),A)for(W=0;W<S;W++)D[_++]=z[W]*255;else M.getRgbItem(z,0,D,_),_+=S}E||M.getRgbBuffer(D,0,L,R,T,8,P)}getOutputLength(G,j){return this.base.getOutputLength(G*this.base.numComps/this.numComps,j)}}class w extends a{constructor(G){super("Pattern",null),this.base=G}isDefaultDecode(G,j){(0,m.unreachable)("Should not call PatternCS.isDefaultDecode")}}class $ extends a{constructor(G,j,L){super("Indexed",1),this.base=G,this.highVal=j;const T=G.numComps*j;if((0,y.isStream)(L)){this.lookup=new Uint8Array(T);const O=L.getBytes(T);this.lookup.set(O)}else if((0,m.isString)(L)){this.lookup=new Uint8Array(T);for(let O=0;O<T;++O)this.lookup[O]=L.charCodeAt(O)}else if(L instanceof Uint8Array)this.lookup=L;else throw new m.FormatError(`Unrecognized lookup table: ${L}`)}getRgbItem(G,j,L,R){const T=this.base.numComps,O=G[j]*T;this.base.getRgbBuffer(this.lookup,O,1,L,R,8,0)}getRgbBuffer(G,j,L,R,T,O,P){const B=this.base,M=B.numComps,F=B.getOutputLength(M,P),S=this.lookup;for(let A=0;A<L;++A){const E=G[j++]*M;B.getRgbBuffer(S,E,1,R,T,8,P),T+=F}}getOutputLength(G,j){return this.base.getOutputLength(G*this.base.numComps,j)}isDefaultDecode(G,j){return Array.isArray(G)?G.length!==2?((0,m.warn)("Decode map length is not correct"),!0):!Number.isInteger(j)||j<1?((0,m.warn)("Bits per component is not correct"),!0):G[0]===0&&G[1]===(1<<j)-1:!0}}class Q extends a{constructor(){super("DeviceGray",1)}getRgbItem(G,j,L,R){const T=G[j]*255;L[R]=L[R+1]=L[R+2]=T}getRgbBuffer(G,j,L,R,T,O,P){const B=255/((1<<O)-1);let M=j,F=T;for(let S=0;S<L;++S){const A=B*G[M++];R[F++]=A,R[F++]=A,R[F++]=A,F+=P}}getOutputLength(G,j){return G*(3+j)}}class C extends a{constructor(){super("DeviceRGB",3)}getRgbItem(G,j,L,R){L[R]=G[j]*255,L[R+1]=G[j+1]*255,L[R+2]=G[j+2]*255}getRgbBuffer(G,j,L,R,T,O,P){if(O===8&&P===0){R.set(G.subarray(j,j+L*3),T);return}const B=255/((1<<O)-1);let M=j,F=T;for(let S=0;S<L;++S)R[F++]=B*G[M++],R[F++]=B*G[M++],R[F++]=B*G[M++],F+=P}getOutputLength(G,j){return G*(3+j)/3|0}isPassthrough(G){return G===8}}const v=function(){function G(L,R,T,O,P){const B=L[R]*T,M=L[R+1]*T,F=L[R+2]*T,S=L[R+3]*T;O[P]=255+B*(-4.387332384609988*B+54.48615194189176*M+18.82290502165302*F+212.25662451639585*S+-285.2331026137004)+M*(1.7149763477362134*M-5.6096736904047315*F+-17.873870861415444*S-5.497006427196366)+F*(-2.5217340131683033*F-21.248923337353073*S+17.5119270841813)+S*(-21.86122147463605*S-189.48180835922747),O[P+1]=255+B*(8.841041422036149*B+60.118027045597366*M+6.871425592049007*F+31.159100130055922*S+-79.2970844816548)+M*(-15.310361306967817*M+17.575251261109482*F+131.35250912493976*S-190.9453302588951)+F*(4.444339102852739*F+9.8632861493405*S-24.86741582555878)+S*(-20.737325471181034*S-187.80453709719578),O[P+2]=255+B*(.8842522430003296*B+8.078677503112928*M+30.89978309703729*F-.23883238689178934*S+-14.183576799673286)+M*(10.49593273432072*M+63.02378494754052*F+50.606957656360734*S-112.23884253719248)+F*(.03296041114873217*F+115.60384449646641*S+-193.58209356861505)+S*(-22.33816807309886*S-180.12613974708367)}class j extends a{constructor(){super("DeviceCMYK",4)}getRgbItem(R,T,O,P){G(R,T,1,O,P)}getRgbBuffer(R,T,O,P,B,M,F){const S=1/((1<<M)-1);for(let A=0;A<O;A++)G(R,T,S,P,B),T+=4,B+=3+F}getOutputLength(R,T){return R/4*(3+T)|0}}return j}(),J=function(){function G(L,R,T,O,P,B){const F=(R[T]*B)**L.G,S=L.YW*F,A=Math.max(295.8*S**.3333333333333333-40.8,0);O[P]=A,O[P+1]=A,O[P+2]=A}class j extends a{constructor(R,T,O){if(super("CalGray",1),!R)throw new m.FormatError("WhitePoint missing - required for color space CalGray");if(T=T||[0,0,0],O=O||1,this.XW=R[0],this.YW=R[1],this.ZW=R[2],this.XB=T[0],this.YB=T[1],this.ZB=T[2],this.G=O,this.XW<0||this.ZW<0||this.YW!==1)throw new m.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,m.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),(this.XB!==0||this.YB!==0||this.ZB!==0)&&(0,m.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,m.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}getRgbItem(R,T,O,P){G(this,R,T,O,P,1)}getRgbBuffer(R,T,O,P,B,M,F){const S=1/((1<<M)-1);for(let A=0;A<O;++A)G(this,R,T,P,B,S),T+=1,B+=3+F}getOutputLength(R,T){return R*(3+T)}}return j}(),ae=function(){const G=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),j=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),L=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),R=new Float32Array([1,1,1]),T=new Float32Array(3),O=new Float32Array(3),P=new Float32Array(3),B=((8+16)/116)**3/8;function M(W,re,ee){ee[0]=W[0]*re[0]+W[1]*re[1]+W[2]*re[2],ee[1]=W[3]*re[0]+W[4]*re[1]+W[5]*re[2],ee[2]=W[6]*re[0]+W[7]*re[1]+W[8]*re[2]}function F(W,re,ee){ee[0]=re[0]*1/W[0],ee[1]=re[1]*1/W[1],ee[2]=re[2]*1/W[2]}function S(W,re,ee){ee[0]=re[0]*.95047/W[0],ee[1]=re[1]*1/W[1],ee[2]=re[2]*1.08883/W[2]}function A(W){return W<=.0031308?E(0,1,12.92*W):E(0,1,(1+.055)*W**(1/2.4)-.055)}function E(W,re,ee){return Math.max(W,Math.min(re,ee))}function _(W){return W<0?-_(-W):W>8?((W+16)/116)**3:W*B}function D(W,re,ee){if(W[0]===0&&W[1]===0&&W[2]===0){ee[0]=re[0],ee[1]=re[1],ee[2]=re[2];return}const X=_(0),K=X,Z=_(W[0]),se=X,ie=_(W[1]),de=X,ce=_(W[2]),he=(1-K)/(1-Z),oe=1-he,ne=(1-se)/(1-ie),ue=1-ne,le=(1-de)/(1-ce),fe=1-le;ee[0]=re[0]*he+oe,ee[1]=re[1]*ne+ue,ee[2]=re[2]*le+fe}function N(W,re,ee){if(W[0]===1&&W[2]===1){ee[0]=re[0],ee[1]=re[1],ee[2]=re[2];return}const X=ee;M(G,re,X);const K=T;F(W,X,K),M(j,K,ee)}function U(W,re,ee){const X=ee;M(G,re,X);const K=T;S(W,X,K),M(j,K,ee)}function z(W,re,ee,X,K,Z){const se=E(0,1,re[ee]*Z),ie=E(0,1,re[ee+1]*Z),de=E(0,1,re[ee+2]*Z),ce=se**W.GR,he=ie**W.GG,oe=de**W.GB,ne=W.MXA*ce+W.MXB*he+W.MXC*oe,ue=W.MYA*ce+W.MYB*he+W.MYC*oe,le=W.MZA*ce+W.MZB*he+W.MZC*oe,fe=O;fe[0]=ne,fe[1]=ue,fe[2]=le;const pe=P;N(W.whitePoint,fe,pe);const ve=O;D(W.blackPoint,pe,ve);const xe=P;U(R,ve,xe);const Ce=O;M(L,xe,Ce),X[K]=A(Ce[0])*255,X[K+1]=A(Ce[1])*255,X[K+2]=A(Ce[2])*255}class te extends a{constructor(re,ee,X,K){if(super("CalRGB",3),!re)throw new m.FormatError("WhitePoint missing - required for color space CalRGB");ee=ee||new Float32Array(3),X=X||new Float32Array([1,1,1]),K=K||new Float32Array([1,0,0,0,1,0,0,0,1]);const Z=re[0],se=re[1],ie=re[2];this.whitePoint=re;const de=ee[0],ce=ee[1],he=ee[2];if(this.blackPoint=ee,this.GR=X[0],this.GG=X[1],this.GB=X[2],this.MXA=K[0],this.MYA=K[1],this.MZA=K[2],this.MXB=K[3],this.MYB=K[4],this.MZB=K[5],this.MXC=K[6],this.MYC=K[7],this.MZC=K[8],Z<0||ie<0||se!==1)throw new m.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(de<0||ce<0||he<0)&&((0,m.info)(`Invalid BlackPoint for ${this.name} [${de}, ${ce}, ${he}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,m.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(re,ee,X,K){z(this,re,ee,X,K,1)}getRgbBuffer(re,ee,X,K,Z,se,ie){const de=1/((1<<se)-1);for(let ce=0;ce<X;++ce)z(this,re,ee,K,Z,de),ee+=3,Z+=3+ie}getOutputLength(re,ee){return re*(3+ee)/3|0}}return te}(),H=function(){function G(T){let O;return T>=6/29?O=T*T*T:O=108/841*(T-4/29),O}function j(T,O,P,B){return P+T*(B-P)/O}function L(T,O,P,B,M,F){let S=O[P],A=O[P+1],E=O[P+2];B!==!1&&(S=j(S,B,0,100),A=j(A,B,T.amin,T.amax),E=j(E,B,T.bmin,T.bmax)),A>T.amax?A=T.amax:A<T.amin&&(A=T.amin),E>T.bmax?E=T.bmax:E<T.bmin&&(E=T.bmin);const _=(S+16)/116,D=_+A/500,N=_-E/200,U=T.XW*G(D),z=T.YW*G(_),te=T.ZW*G(N);let W,re,ee;T.ZW<1?(W=U*3.1339+z*-1.617+te*-.4906,re=U*-.9785+z*1.916+te*.0333,ee=U*.072+z*-.229+te*1.4057):(W=U*3.2406+z*-1.5372+te*-.4986,re=U*-.9689+z*1.8758+te*.0415,ee=U*.0557+z*-.204+te*1.057),M[F]=Math.sqrt(W)*255,M[F+1]=Math.sqrt(re)*255,M[F+2]=Math.sqrt(ee)*255}class R extends a{constructor(O,P,B){if(super("Lab",3),!O)throw new m.FormatError("WhitePoint missing - required for color space Lab");if(P=P||[0,0,0],B=B||[-100,100,-100,100],this.XW=O[0],this.YW=O[1],this.ZW=O[2],this.amin=B[0],this.amax=B[1],this.bmin=B[2],this.bmax=B[3],this.XB=P[0],this.YB=P[1],this.ZB=P[2],this.XW<0||this.ZW<0||this.YW!==1)throw new m.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,m.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,m.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(O,P,B,M){L(this,O,P,!1,B,M)}getRgbBuffer(O,P,B,M,F,S,A){const E=(1<<S)-1;for(let _=0;_<B;_++)L(this,O,P,E,M,F),P+=3,F+=3+A}getOutputLength(O,P){return O*(3+P)/3|0}isDefaultDecode(O,P){return!0}get usesZeroToOneRange(){return(0,m.shadow)(this,"usesZeroToOneRange",!1)}}return R}()},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.GlobalImageCache=f.LocalImageCache=void 0;var m=b(2),y=b(5);class k{constructor(){this._nameRefMap=new Map,this._imageMap=new Map,this._imageCache=new y.RefSetCache}getByName(w){const $=this._nameRefMap.get(w);return $?this.getByRef($):this._imageMap.get(w)||null}getByRef(w){return this._imageCache.get(w)||null}set(w,$=null,Q){if(!w)throw new Error('LocalImageCache.set - expected "name" argument.');if($){if(this._imageCache.has($))return;this._nameRefMap.set(w,$),this._imageCache.put($,Q);return}this._imageMap.has(w)||this._imageMap.set(w,Q)}}f.LocalImageCache=k;class a{static get NUM_PAGES_THRESHOLD(){return(0,m.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MAX_IMAGES_TO_CACHE(){return(0,m.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}constructor(){this._refCache=new y.RefSetCache,this._imageCache=new y.RefSetCache}shouldCache(w,$){const Q=this._refCache.get(w);return!((Q?Q.size+(Q.has($)?0:1):1)<a.NUM_PAGES_THRESHOLD||!this._imageCache.has(w)&&this._imageCache.size>=a.MAX_IMAGES_TO_CACHE)}addPageIndex(w,$){let Q=this._refCache.get(w);Q||(Q=new Set,this._refCache.put(w,Q)),Q.add($)}getData(w,$){if(!this._refCache.has(w))return null;const Q=this._refCache.get(w);return Q.size<a.NUM_PAGES_THRESHOLD||!this._imageCache.has(w)?null:(Q.add($),this._imageCache.get(w))}setData(w,$){if(!this._refCache.has(w))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');if(!this._imageCache.has(w)){if(this._imageCache.size>=a.MAX_IMAGES_TO_CACHE){(0,m.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE.");return}this._imageCache.put(w,$)}}clear(w=!1){w||this._refCache.clear(),this._imageCache.clear()}}f.GlobalImageCache=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getQuadPoints=C,f.MarkupAnnotation=f.AnnotationFactory=f.AnnotationBorderStyle=f.Annotation=void 0;var m=b(2),y=b(10),k=b(5),a=b(23),q=b(8),w=b(26),$=b(12);class Q{static create(ee,X,K,Z){return K.ensure(this,"_create",[ee,X,K,Z])}static _create(ee,X,K,Z){const se=ee.fetchIfRef(X);if(!(0,k.isDict)(se))return;const ie=(0,k.isRef)(X)?X.toString():`annot_${Z.createObjId()}`;let de=se.get("Subtype");de=(0,k.isName)(de)?de.name:null;const ce={xref:ee,dict:se,subtype:de,id:ie,pdfManager:K};switch(de){case"Link":return new T(ce);case"Text":return new R(ce);case"Widget":let he=(0,q.getInheritableProperty)({dict:se,key:"FT"});switch(he=(0,k.isName)(he)?he.name:null,he){case"Tx":return new G(ce);case"Btn":return new j(ce);case"Ch":return new L(ce)}return(0,m.warn)('Unimplemented widget field type "'+he+'", falling back to base field type.'),new Y(ce);case"Popup":return new O(ce);case"FreeText":return new P(ce);case"Line":return new B(ce);case"Square":return new M(ce);case"Circle":return new F(ce);case"PolyLine":return new S(ce);case"Polygon":return new A(ce);case"Caret":return new E(ce);case"Ink":return new _(ce);case"Highlight":return new D(ce);case"Underline":return new N(ce);case"Squiggly":return new U(ce);case"StrikeOut":return new z(ce);case"Stamp":return new te(ce);case"FileAttachment":return new W(ce);default:return de?(0,m.warn)('Unimplemented annotation type "'+de+'", falling back to base annotation.'):(0,m.warn)("Annotation is missing the required /Subtype."),new J(ce)}}}f.AnnotationFactory=Q;function C(re,ee){if(!re.has("QuadPoints"))return null;const X=re.getArray("QuadPoints");if(!Array.isArray(X)||X.length%8>0)return null;const K=[];for(let Z=0,se=X.length/8;Z<se;Z++){K.push([]);for(let ie=Z*8,de=Z*8+8;ie<de;ie+=2){const ce=X[ie],he=X[ie+1];if(ce<ee[0]||ce>ee[2]||he<ee[1]||he>ee[3])return null;K[Z].push({x:ce,y:he})}}return K}function v(re,ee,X){const[K,Z,se,ie]=m.Util.getAxialAlignedBoundingBox(ee,X);if(K===se||Z===ie)return[1,0,0,1,re[0],re[1]];const de=(re[2]-re[0])/(se-K),ce=(re[3]-re[1])/(ie-Z);return[de,0,0,ce,re[0]-K*de,re[1]-Z*ce]}class J{constructor(ee){const X=ee.dict;this.setContents(X.get("Contents")),this.setModificationDate(X.get("M")),this.setFlags(X.get("F")),this.setRectangle(X.getArray("Rect")),this.setColor(X.getArray("C")),this.setBorderStyle(X),this.setAppearance(X),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:ee.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:ee.subtype}}_hasFlag(ee,X){return!!(ee&X)}_isViewable(ee){return!this._hasFlag(ee,m.AnnotationFlag.INVISIBLE)&&!this._hasFlag(ee,m.AnnotationFlag.HIDDEN)&&!this._hasFlag(ee,m.AnnotationFlag.NOVIEW)}_isPrintable(ee){return this._hasFlag(ee,m.AnnotationFlag.PRINT)&&!this._hasFlag(ee,m.AnnotationFlag.INVISIBLE)&&!this._hasFlag(ee,m.AnnotationFlag.HIDDEN)}get viewable(){return this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.flags===0?!1:this._isPrintable(this.flags)}setContents(ee){this.contents=(0,m.stringToPDFString)(ee||"")}setModificationDate(ee){this.modificationDate=(0,m.isString)(ee)?ee:null}setFlags(ee){this.flags=Number.isInteger(ee)&&ee>0?ee:0}hasFlag(ee){return this._hasFlag(this.flags,ee)}setRectangle(ee){Array.isArray(ee)&&ee.length===4?this.rectangle=m.Util.normalizeRect(ee):this.rectangle=[0,0,0,0]}setColor(ee){const X=new Uint8ClampedArray(3);if(!Array.isArray(ee)){this.color=X;return}switch(ee.length){case 0:this.color=null;break;case 1:a.ColorSpace.singletons.gray.getRgbItem(ee,0,X,0),this.color=X;break;case 3:a.ColorSpace.singletons.rgb.getRgbItem(ee,0,X,0),this.color=X;break;case 4:a.ColorSpace.singletons.cmyk.getRgbItem(ee,0,X,0),this.color=X;break;default:this.color=X;break}}setBorderStyle(ee){if(this.borderStyle=new ae,!!(0,k.isDict)(ee))if(ee.has("BS")){const X=ee.get("BS"),K=X.get("Type");(!K||(0,k.isName)(K,"Border"))&&(this.borderStyle.setWidth(X.get("W"),this.rectangle),this.borderStyle.setStyle(X.get("S")),this.borderStyle.setDashArray(X.getArray("D")))}else if(ee.has("Border")){const X=ee.getArray("Border");Array.isArray(X)&&X.length>=3&&(this.borderStyle.setHorizontalCornerRadius(X[0]),this.borderStyle.setVerticalCornerRadius(X[1]),this.borderStyle.setWidth(X[2],this.rectangle),X.length===4&&this.borderStyle.setDashArray(X[3]))}else this.borderStyle.setWidth(0)}setAppearance(ee){this.appearance=null;const X=ee.get("AP");if(!(0,k.isDict)(X))return;const K=X.get("N");if((0,k.isStream)(K)){this.appearance=K;return}if(!(0,k.isDict)(K))return;const Z=ee.get("AS");!(0,k.isName)(Z)||!K.has(Z.name)||(this.appearance=K.get(Z.name))}loadResources(ee){return this.appearance.dict.getAsync("Resources").then(X=>X?new y.ObjectLoader(X,ee,X.xref).load().then(function(){return X}):void 0)}getOperatorList(ee,X,K){if(!this.appearance)return Promise.resolve(new w.OperatorList);const Z=this.data,se=this.appearance.dict,ie=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),de=se.getArray("BBox")||[0,0,1,1],ce=se.getArray("Matrix")||[1,0,0,1,0,0],he=v(Z.rect,de,ce);return ie.then(oe=>{const ne=new w.OperatorList;return ne.addOp(m.OPS.beginAnnotation,[Z.rect,he,ce]),ee.getOperatorList({stream:this.appearance,task:X,resources:oe,operatorList:ne}).then(()=>(ne.addOp(m.OPS.endAnnotation,[]),this.appearance.reset(),ne))})}}f.Annotation=J;class ae{constructor(){this.width=1,this.style=m.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(ee,X=[0,0,0,0]){if((0,k.isName)(ee)){this.width=0;return}if(Number.isInteger(ee)){if(ee>0){const K=(X[2]-X[0])/2,Z=(X[3]-X[1])/2;K>0&&Z>0&&(ee>K||ee>Z)&&((0,m.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${ee}`),ee=1)}this.width=ee}}setStyle(ee){if(!!(0,k.isName)(ee))switch(ee.name){case"S":this.style=m.AnnotationBorderStyleType.SOLID;break;case"D":this.style=m.AnnotationBorderStyleType.DASHED;break;case"B":this.style=m.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=m.AnnotationBorderStyleType.INSET;break;case"U":this.style=m.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(ee){if(Array.isArray(ee)&&ee.length>0){let X=!0,K=!0;for(const Z of ee)if(+Z>=0)Z>0&&(K=!1);else{X=!1;break}X&&!K?this.dashArray=ee:this.width=0}else ee&&(this.width=0)}setHorizontalCornerRadius(ee){Number.isInteger(ee)&&(this.horizontalCornerRadius=ee)}setVerticalCornerRadius(ee){Number.isInteger(ee)&&(this.verticalCornerRadius=ee)}}f.AnnotationBorderStyle=ae;class H extends J{constructor(ee){super(ee);const X=ee.dict;if(X.has("IRT")){const K=X.getRaw("IRT");this.data.inReplyTo=(0,k.isRef)(K)?K.toString():null;const Z=X.get("RT");this.data.replyType=(0,k.isName)(Z)?Z.name:m.AnnotationReplyType.REPLY}if(this.data.replyType===m.AnnotationReplyType.GROUP){const K=X.get("IRT");this.data.title=(0,m.stringToPDFString)(K.get("T")||""),this.setContents(K.get("Contents")),this.data.contents=this.contents,K.has("CreationDate")?(this.setCreationDate(K.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,K.has("M")?(this.setModificationDate(K.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=K.has("Popup"),K.has("C")?(this.setColor(K.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.title=(0,m.stringToPDFString)(X.get("T")||""),this.setCreationDate(X.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=X.has("Popup"),X.has("C")||(this.data.color=null)}setCreationDate(ee){this.creationDate=(0,m.isString)(ee)?ee:null}}f.MarkupAnnotation=H;class Y extends J{constructor(ee){super(ee);const X=ee.dict,K=this.data;K.annotationType=m.AnnotationType.WIDGET,K.fieldName=this._constructFieldName(X),K.fieldValue=(0,q.getInheritableProperty)({dict:X,key:"V",getArray:!0}),K.alternativeText=(0,m.stringToPDFString)(X.get("TU")||""),K.defaultAppearance=(0,q.getInheritableProperty)({dict:X,key:"DA"})||"";const Z=(0,q.getInheritableProperty)({dict:X,key:"FT"});K.fieldType=(0,k.isName)(Z)?Z.name:null,this.fieldResources=(0,q.getInheritableProperty)({dict:X,key:"DR"})||k.Dict.empty,K.fieldFlags=(0,q.getInheritableProperty)({dict:X,key:"Ff"}),(!Number.isInteger(K.fieldFlags)||K.fieldFlags<0)&&(K.fieldFlags=0),K.readOnly=this.hasFieldFlag(m.AnnotationFieldFlag.READONLY),K.fieldType==="Sig"&&(K.fieldValue=null,this.setFlags(m.AnnotationFlag.HIDDEN))}_constructFieldName(ee){if(!ee.has("T")&&!ee.has("Parent"))return(0,m.warn)("Unknown field name, falling back to empty field name."),"";if(!ee.has("Parent"))return(0,m.stringToPDFString)(ee.get("T"));const X=[];ee.has("T")&&X.unshift((0,m.stringToPDFString)(ee.get("T")));let K=ee;for(;K.has("Parent")&&(K=K.get("Parent"),!!(0,k.isDict)(K));)K.has("T")&&X.unshift((0,m.stringToPDFString)(K.get("T")));return X.join(".")}hasFieldFlag(ee){return!!(this.data.fieldFlags&ee)}getOperatorList(ee,X,K){return K?Promise.resolve(new w.OperatorList):super.getOperatorList(ee,X,K)}}class G extends Y{constructor(ee){super(ee);const X=ee.dict;this.data.fieldValue=(0,m.stringToPDFString)(this.data.fieldValue||"");let K=(0,q.getInheritableProperty)({dict:X,key:"Q"});(!Number.isInteger(K)||K<0||K>2)&&(K=null),this.data.textAlignment=K;let Z=(0,q.getInheritableProperty)({dict:X,key:"MaxLen"});(!Number.isInteger(Z)||Z<0)&&(Z=null),this.data.maxLen=Z,this.data.multiLine=this.hasFieldFlag(m.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(m.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(m.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(m.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(m.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==null}getOperatorList(ee,X,K){if(K||this.appearance)return super.getOperatorList(ee,X,K);const Z=new w.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(Z);const se=new $.Stream((0,m.stringToBytes)(this.data.defaultAppearance));return ee.getOperatorList({stream:se,task:X,resources:this.fieldResources,operatorList:Z}).then(function(){return Z})}}class j extends Y{constructor(ee){super(ee),this.data.checkBox=!this.hasFieldFlag(m.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(m.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(m.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(m.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(m.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox?this._processCheckBox(ee):this.data.radioButton?this._processRadioButton(ee):this.data.pushButton?this._processPushButton(ee):(0,m.warn)("Invalid field flags for button widget annotation")}_processCheckBox(ee){(0,k.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);const X=ee.dict.get("AP");if(!(0,k.isDict)(X))return;const K=X.get("D");if(!(0,k.isDict)(K))return;const Z=K.getKeys();Z.length===2&&(this.data.exportValue=Z[0]==="Off"?Z[1]:Z[0])}_processRadioButton(ee){this.data.fieldValue=this.data.buttonValue=null;const X=ee.dict.get("Parent");if((0,k.isDict)(X)&&X.has("V")){const se=X.get("V");(0,k.isName)(se)&&(this.data.fieldValue=se.name)}const K=ee.dict.get("AP");if(!(0,k.isDict)(K))return;const Z=K.get("N");if(!!(0,k.isDict)(Z)){for(const se of Z.getKeys())if(se!=="Off"){this.data.buttonValue=se;break}}}_processPushButton(ee){if(!ee.dict.has("A")){(0,m.warn)("Push buttons without action dictionaries are not supported");return}y.Catalog.parseDestDictionary({destDict:ee.dict,resultObj:this.data,docBaseUrl:ee.pdfManager.docBaseUrl})}}class L extends Y{constructor(ee){super(ee),this.data.options=[];const X=(0,q.getInheritableProperty)({dict:ee.dict,key:"Opt"});if(Array.isArray(X)){const K=ee.xref;for(let Z=0,se=X.length;Z<se;Z++){const ie=K.fetchIfRef(X[Z]),de=Array.isArray(ie);this.data.options[Z]={exportValue:de?K.fetchIfRef(ie[0]):ie,displayValue:(0,m.stringToPDFString)(de?K.fetchIfRef(ie[1]):ie)}}}Array.isArray(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(m.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(m.AnnotationFieldFlag.MULTISELECT)}}class R extends H{constructor(ee){super(ee);const K=ee.dict;this.data.annotationType=m.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=K.has("Name")?K.get("Name").name:"Note"),K.has("State")?(this.data.state=K.get("State")||null,this.data.stateModel=K.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class T extends J{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.LINK;const X=C(ee.dict,this.rectangle);X&&(this.data.quadPoints=X),y.Catalog.parseDestDictionary({destDict:ee.dict,resultObj:this.data,docBaseUrl:ee.pdfManager.docBaseUrl})}}class O extends J{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.POPUP;let X=ee.dict.get("Parent");if(!X){(0,m.warn)("Popup annotation has a missing or invalid parent annotation.");return}const K=X.get("Subtype");this.data.parentType=(0,k.isName)(K)?K.name:null;const Z=ee.dict.getRaw("Parent");this.data.parentId=(0,k.isRef)(Z)?Z.toString():null;const se=X.get("RT");if((0,k.isName)(se,m.AnnotationReplyType.GROUP)&&(X=X.get("IRT")),X.has("M")?(this.setModificationDate(X.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,X.has("C")?(this.setColor(X.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const ie=X.get("F");this._isViewable(ie)&&this.setFlags(ie)}this.data.title=(0,m.stringToPDFString)(X.get("T")||""),this.data.contents=(0,m.stringToPDFString)(X.get("Contents")||"")}}class P extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.FREETEXT}}class B extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.LINE,this.data.lineCoordinates=m.Util.normalizeRect(ee.dict.getArray("L"))}}class M extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.SQUARE}}class F extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.CIRCLE}}class S extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.POLYLINE;const X=ee.dict.getArray("Vertices");this.data.vertices=[];for(let K=0,Z=X.length;K<Z;K+=2)this.data.vertices.push({x:X[K],y:X[K+1]})}}class A extends S{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.POLYGON}}class E extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.CARET}}class _ extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.INK;const X=ee.xref,K=ee.dict.getArray("InkList");this.data.inkLists=[];for(let Z=0,se=K.length;Z<se;++Z){this.data.inkLists.push([]);for(let ie=0,de=K[Z].length;ie<de;ie+=2)this.data.inkLists[Z].push({x:X.fetchIfRef(K[Z][ie]),y:X.fetchIfRef(K[Z][ie+1])})}}}class D extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.HIGHLIGHT;const X=C(ee.dict,this.rectangle);X&&(this.data.quadPoints=X)}}class N extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.UNDERLINE;const X=C(ee.dict,this.rectangle);X&&(this.data.quadPoints=X)}}class U extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.SQUIGGLY;const X=C(ee.dict,this.rectangle);X&&(this.data.quadPoints=X)}}class z extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.STRIKEOUT;const X=C(ee.dict,this.rectangle);X&&(this.data.quadPoints=X)}}class te extends H{constructor(ee){super(ee),this.data.annotationType=m.AnnotationType.STAMP}}class W extends H{constructor(ee){super(ee);const X=new y.FileSpec(ee.dict.get("FS"),ee.xref);this.data.annotationType=m.AnnotationType.FILEATTACHMENT,this.data.file=X.serializable}}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.OperatorList=void 0;var m=b(2),y=function(){function w(v,J,ae,H,Y){for(var G=v,j=0,L=J.length-1;j<L;j++){var R=J[j];G=G[R]||(G[R]=[])}G[J[J.length-1]]={checkFn:ae,iterateFn:H,processFn:Y}}function $(v,J,ae,H){for(var Y=v+2,G=0;G<J;G++){var j=H[Y+4*G],L=j.length===1&&j[0];if(L&&L.width===1&&L.height===1&&(!L.data.length||L.data.length===1&&L.data[0]===0)){ae[Y+4*G]=m.OPS.paintSolidColorImageMask;continue}break}return J-G}var Q=[];w(Q,[m.OPS.save,m.OPS.transform,m.OPS.paintInlineImageXObject,m.OPS.restore],null,function(J,ae){var H=J.fnArray,Y=J.iCurr-3,G=(ae-Y)%4;switch(G){case 0:return H[ae]===m.OPS.save;case 1:return H[ae]===m.OPS.transform;case 2:return H[ae]===m.OPS.paintInlineImageXObject;case 3:return H[ae]===m.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${G}`)},function(J,ae){var H=10,Y=200,G=1e3,j=1,L=J.fnArray,R=J.argsArray,T=J.iCurr,O=T-3,P=T-2,B=T-1,M=Math.min(Math.floor((ae-O)/4),Y);if(M<H)return ae-(ae-O)%4;var F=0,S=[],A=0,E=j,_=j,D;for(D=0;D<M;D++){var N=R[P+(D<<2)],U=R[B+(D<<2)][0];E+U.width>G&&(F=Math.max(F,E),_+=A+2*j,E=0,A=0),S.push({transform:N,x:E,y:_,w:U.width,h:U.height}),E+=U.width+2*j,A=Math.max(A,U.height)}var z=Math.max(F,E)+j,te=_+A+j,W=new Uint8ClampedArray(z*te*4),re=z<<2;for(D=0;D<M;D++){var ee=R[B+(D<<2)][0].data,X=S[D].w<<2,K=0,Z=S[D].x+S[D].y*z<<2;W.set(ee.subarray(0,X),Z-re);for(var se=0,ie=S[D].h;se<ie;se++)W.set(ee.subarray(K,K+X),Z),K+=X,Z+=re;for(W.set(ee.subarray(K-X,K),Z);Z>=0;)ee[Z-4]=ee[Z],ee[Z-3]=ee[Z+1],ee[Z-2]=ee[Z+2],ee[Z-1]=ee[Z+3],ee[Z+X]=ee[Z+X-4],ee[Z+X+1]=ee[Z+X-3],ee[Z+X+2]=ee[Z+X-2],ee[Z+X+3]=ee[Z+X-1],Z-=re}return L.splice(O,M*4,m.OPS.paintInlineImageXObjectGroup),R.splice(O,M*4,[{width:z,height:te,kind:m.ImageKind.RGBA_32BPP,data:W},S]),O+1}),w(Q,[m.OPS.save,m.OPS.transform,m.OPS.paintImageMaskXObject,m.OPS.restore],null,function(J,ae){var H=J.fnArray,Y=J.iCurr-3,G=(ae-Y)%4;switch(G){case 0:return H[ae]===m.OPS.save;case 1:return H[ae]===m.OPS.transform;case 2:return H[ae]===m.OPS.paintImageMaskXObject;case 3:return H[ae]===m.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${G}`)},function(J,ae){var H=10,Y=100,G=1e3,j=J.fnArray,L=J.argsArray,R=J.iCurr,T=R-3,O=R-2,P=R-1,B=Math.floor((ae-T)/4);if(B=$(T,B,j,L),B<H)return ae-(ae-T)%4;var M,F=!1,S,A,E=L[P][0];if(L[O][1]===0&&L[O][2]===0){F=!0;var _=L[O][0],D=L[O][3];S=O+4;var N=P+4;for(M=1;M<B;M++,S+=4,N+=4)if(A=L[S],L[N][0]!==E||A[0]!==_||A[1]!==0||A[2]!==0||A[3]!==D){M<H?F=!1:B=M;break}}if(F){B=Math.min(B,G);var U=new Float32Array(B*2);for(S=O,M=0;M<B;M++,S+=4)A=L[S],U[M<<1]=A[4],U[(M<<1)+1]=A[5];j.splice(T,B*4,m.OPS.paintImageMaskXObjectRepeat),L.splice(T,B*4,[E,_,D,U])}else{B=Math.min(B,Y);var z=[];for(M=0;M<B;M++){A=L[O+(M<<2)];var te=L[P+(M<<2)][0];z.push({data:te.data,width:te.width,height:te.height,transform:A})}j.splice(T,B*4,m.OPS.paintImageMaskXObjectGroup),L.splice(T,B*4,[z])}return T+1}),w(Q,[m.OPS.save,m.OPS.transform,m.OPS.paintImageXObject,m.OPS.restore],function(v){var J=v.argsArray,ae=v.iCurr-2;return J[ae][1]===0&&J[ae][2]===0},function(J,ae){var H=J.fnArray,Y=J.argsArray,G=J.iCurr-3,j=(ae-G)%4;switch(j){case 0:return H[ae]===m.OPS.save;case 1:if(H[ae]!==m.OPS.transform)return!1;var L=J.iCurr-2,R=Y[L][0],T=Y[L][3];return!(Y[ae][0]!==R||Y[ae][1]!==0||Y[ae][2]!==0||Y[ae][3]!==T);case 2:if(H[ae]!==m.OPS.paintImageXObject)return!1;var O=J.iCurr-1,P=Y[O][0];return Y[ae][0]===P;case 3:return H[ae]===m.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${j}`)},function(v,J){var ae=3,H=1e3,Y=v.fnArray,G=v.argsArray,j=v.iCurr,L=j-3,R=j-2,T=j-1,O=G[T][0],P=G[R][0],B=G[R][3],M=Math.min(Math.floor((J-L)/4),H);if(M<ae)return J-(J-L)%4;for(var F=new Float32Array(M*2),S=R,A=0;A<M;A++,S+=4){var E=G[S];F[A<<1]=E[4],F[(A<<1)+1]=E[5]}var _=[O,P,B,F];return Y.splice(L,M*4,m.OPS.paintImageXObjectRepeat),G.splice(L,M*4,_),L+1}),w(Q,[m.OPS.beginText,m.OPS.setFont,m.OPS.setTextMatrix,m.OPS.showText,m.OPS.endText],null,function(J,ae){var H=J.fnArray,Y=J.argsArray,G=J.iCurr-4,j=(ae-G)%5;switch(j){case 0:return H[ae]===m.OPS.beginText;case 1:return H[ae]===m.OPS.setFont;case 2:return H[ae]===m.OPS.setTextMatrix;case 3:if(H[ae]!==m.OPS.showText)return!1;var L=J.iCurr-3,R=Y[L][0],T=Y[L][1];return!(Y[ae][0]!==R||Y[ae][1]!==T);case 4:return H[ae]===m.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${j}`)},function(v,J){var ae=3,H=1e3,Y=v.fnArray,G=v.argsArray,j=v.iCurr,L=j-4,R=j-3,T=j-2,O=j-1,P=j,B=G[R][0],M=G[R][1],F=Math.min(Math.floor((J-L)/5),H);if(F<ae)return J-(J-L)%5;var S=L;L>=4&&Y[L-4]===Y[R]&&Y[L-3]===Y[T]&&Y[L-2]===Y[O]&&Y[L-1]===Y[P]&&G[L-4][0]===B&&G[L-4][1]===M&&(F++,S-=5);for(var A=S+4,E=1;E<F;E++)Y.splice(A,3),G.splice(A,3),A+=2;return A+1});function C(v){this.queue=v,this.state=null,this.context={iCurr:0,fnArray:v.fnArray,argsArray:v.argsArray},this.match=null,this.lastProcessed=0}return C.prototype={_optimize(){const v=this.queue.fnArray;let J=this.lastProcessed,ae=v.length,H=this.state,Y=this.match;if(!H&&!Y&&J+1===ae&&!Q[v[J]]){this.lastProcessed=ae;return}const G=this.context;for(;J<ae;){if(Y){if((0,Y.iterateFn)(G,J)){J++;continue}if(J=(0,Y.processFn)(G,J+1),ae=v.length,Y=null,H=null,J>=ae)break}if(H=(H||Q)[v[J]],!H||Array.isArray(H)){J++;continue}if(G.iCurr=J,J++,H.checkFn&&!(0,H.checkFn)(G)){H=null;continue}Y=H,H=null}this.state=H,this.match=Y,this.lastProcessed=J},push(v,J){this.queue.fnArray.push(v),this.queue.argsArray.push(J),this._optimize()},flush(){for(;this.match;){const v=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,v),this.match=null,this.state=null,this._optimize()}},reset(){this.state=null,this.match=null,this.lastProcessed=0}},C}(),k=function(){function w($){this.queue=$}return w.prototype={push($,Q){this.queue.fnArray.push($),this.queue.argsArray.push(Q)},flush(){},reset(){}},w}(),a=function(){var w=1e3,$=w-5;function Q(C,v,J){this._streamSink=v,this.fnArray=[],this.argsArray=[],v&&C!=="oplist"?this.optimizer=new y(this):this.optimizer=new k(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=J,this.intent=C,this.weight=0,this._resolved=v?null:Promise.resolve()}return Q.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp(C,v){this.optimizer.push(C,v),this.weight++,this._streamSink&&(this.weight>=w?this.flush():this.weight>=$&&(C===m.OPS.restore||C===m.OPS.endText)&&this.flush())},addDependency(C){C in this.dependencies||(this.dependencies[C]=!0,this.addOp(m.OPS.dependency,[C]))},addDependencies(C){for(var v in C)this.addDependency(v)},addOpList(C){if(!(C instanceof Q)){(0,m.warn)('addOpList - ignoring invalid "opList" parameter.');return}Object.assign(this.dependencies,C.dependencies);for(var v=0,J=C.length;v<J;v++)this.addOp(C.fnArray[v],C.argsArray[v])},getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){const C=[],{fnArray:v,argsArray:J,length:ae}=this;for(let H=0;H<ae;H++)switch(v[H]){case m.OPS.paintInlineImageXObject:case m.OPS.paintInlineImageXObjectGroup:case m.OPS.paintImageMaskXObject:const Y=J[H][0];Y.cached||C.push(Y.data.buffer);break}return C},flush(C=!1){this.optimizer.flush();const v=this.length;this._totalLength+=v,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:C,length:v},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},Q}();f.OperatorList=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PartialEvaluator=void 0;var m=b(2),y=b(28),k=b(5),a=b(29),q=b(32),w=b(8),$=b(35),Q=b(34),C=b(38),v=b(11),J=b(39),ae=b(23),H=b(12),Y=b(33),G=b(40),j=b(41),L=b(24),R=b(43),T=b(26),O=b(44),P=function(){const _={maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1};function D({xref:X,handler:K,pageIndex:Z,idFactory:se,fontCache:ie,builtInCMapCache:de,globalImageCache:ce,options:he=null,pdfFunctionFactory:oe}){this.xref=X,this.handler=K,this.pageIndex=Z,this.idFactory=se,this.fontCache=ie,this.builtInCMapCache=de,this.globalImageCache=ce,this.options=he||_,this.pdfFunctionFactory=oe,this.parsingType3Font=!1,this.fetchBuiltInCMap=async ne=>{if(this.builtInCMapCache.has(ne))return this.builtInCMapCache.get(ne);const le=this.handler.sendWithStream("FetchBuiltInCMap",{name:ne}).getReader(),fe=await new Promise(function(pe,ve){function xe(){le.read().then(function({value:Ce,done:be}){be||(pe(Ce),xe())},ve)}xe()});return fe.compressionType!==m.CMapCompressionType.NONE&&this.builtInCMapCache.set(ne,fe),fe}}var N=20,U=100;function z(){this.reset()}z.prototype={check:function(){return++this.checked<U?!1:(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+N,this.checked=0}};function te(X,K=!1){if(Array.isArray(X)){for(let Z=0,se=X.length;Z<se;Z++){const ie=te(X[Z],!0);if(ie)return ie}return(0,m.warn)(`Unsupported blend mode Array: ${X}`),"source-over"}if(!(0,k.isName)(X))return K?null:"source-over";switch(X.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return K?null:((0,m.warn)(`Unsupported blend mode: ${X.name}`),"source-over")}var W=Promise.resolve(),re=1,ee=2;return D.prototype={clone(X=_){var K=Object.create(this);return K.options=X,K},hasBlendModes:function(K){if(!(K instanceof k.Dict))return!1;var Z=Object.create(null);K.objId&&(Z[K.objId]=!0);for(var se=[K],ie=this.xref;se.length;){var de=se.shift(),ce=de.get("ExtGState");if(ce instanceof k.Dict){var he=ce.getKeys();for(let fe=0,pe=he.length;fe<pe;fe++){const ve=he[fe];let xe=ce.getRaw(ve);if(xe instanceof k.Ref){if(Z[xe.toString()])continue;try{xe=ie.fetch(xe)}catch(be){if(be instanceof w.MissingDataException)throw be;if(this.options.ignoreErrors){xe instanceof k.Ref&&(Z[xe.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorExtGState}),(0,m.warn)(`hasBlendModes - ignoring ExtGState: "${be}".`);continue}throw be}}if(!(xe instanceof k.Dict))continue;xe.objId&&(Z[xe.objId]=!0);const Ce=xe.get("BM");if(Ce instanceof k.Name){if(Ce.name!=="Normal")return!0;continue}if(Ce!==void 0&&Array.isArray(Ce)){for(let be=0,me=Ce.length;be<me;be++)if(Ce[be]instanceof k.Name&&Ce[be].name!=="Normal")return!0}}}var oe=de.get("XObject");if(oe instanceof k.Dict){var ne=oe.getKeys();for(let fe=0,pe=ne.length;fe<pe;fe++){const ve=ne[fe];var ue=oe.getRaw(ve);if(ue instanceof k.Ref){if(Z[ue.toString()])continue;try{ue=ie.fetch(ue)}catch(xe){if(xe instanceof w.MissingDataException)throw xe;if(this.options.ignoreErrors){ue instanceof k.Ref&&(Z[ue.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorXObject}),(0,m.warn)(`hasBlendModes - ignoring XObject: "${xe}".`);continue}throw xe}}if(!!(0,k.isStream)(ue)){if(ue.dict.objId){if(Z[ue.dict.objId])continue;Z[ue.dict.objId]=!0}var le=ue.dict.get("Resources");le instanceof k.Dict&&(!le.objId||!Z[le.objId])&&(se.push(le),le.objId&&(Z[le.objId]=!0))}}}}return!1},async buildFormXObject(X,K,Z,se,ie,de){var ce=K.dict,he=ce.getArray("Matrix"),oe=ce.getArray("BBox");Array.isArray(oe)&&oe.length===4?oe=m.Util.normalizeRect(oe):oe=null;var ne=ce.get("Group");if(ne){var ue={matrix:he,bbox:oe,smask:Z,isolated:!1,knockout:!1},le=ne.get("S"),fe=null;(0,k.isName)(le,"Transparency")&&(ue.isolated=ne.get("I")||!1,ue.knockout=ne.get("K")||!1,ne.has("CS")&&(fe=await this.parseColorSpace({cs:ne.get("CS"),resources:X}))),Z&&Z.backdrop&&(fe=fe||ae.ColorSpace.singletons.rgb,Z.backdrop=fe.getRgb(Z.backdrop,0)),se.addOp(m.OPS.beginGroup,[ue])}return se.addOp(m.OPS.paintFormXObjectBegin,[he,oe]),this.getOperatorList({stream:K,task:ie,resources:ce.get("Resources")||X,operatorList:se,initialState:de}).then(function(){se.addOp(m.OPS.paintFormXObjectEnd,[]),ne&&se.addOp(m.OPS.endGroup,[ue])})},async buildPaintImageXObject({resources:X,image:K,isInline:Z=!1,operatorList:se,cacheKey:ie,localImageCache:de}){var ce=K.dict;const he=ce.objId;var oe=ce.get("Width","W"),ne=ce.get("Height","H");if(!(oe&&(0,m.isNum)(oe))||!(ne&&(0,m.isNum)(ne))){(0,m.warn)("Image dimensions are missing, or not numbers.");return}var ue=this.options.maxImageSize;if(ue!==-1&&oe*ne>ue){(0,m.warn)("Image exceeded maximum allowed size and was removed.");return}var le=ce.get("ImageMask","IM")||!1,fe,pe;if(le){var ve=ce.get("Width","W"),xe=ce.get("Height","H"),Ce=ve+7>>3,be=K.getBytes(Ce*xe,!0),me=ce.getArray("Decode","D");fe=O.PDFImage.createMask({imgArray:be,width:ve,height:xe,imageIsFromDecodeStream:K instanceof H.DecodeStream,inverseDecode:!!me&&me[0]>0}),fe.cached=!!ie,pe=[fe],se.addOp(m.OPS.paintImageMaskXObject,pe),ie&&de.set(ie,he,{fn:m.OPS.paintImageMaskXObject,args:pe});return}var ge=ce.get("SMask","SM")||!1,ye=ce.get("Mask")||!1,Se=200;if(Z&&!ge&&!ye&&oe+ne<Se){fe=new O.PDFImage({xref:this.xref,res:X,image:K,isInline:Z,pdfFunctionFactory:this.pdfFunctionFactory}).createImageData(!0),se.addOp(m.OPS.paintInlineImageXObject,[fe]);return}let Ee=`img_${this.idFactory.createObjId()}`,De=!1;this.parsingType3Font?Ee=`${this.idFactory.getDocId()}_type3res_${Ee}`:he&&(De=this.globalImageCache.shouldCache(he,this.pageIndex),De&&(Ee=`${this.idFactory.getDocId()}_${Ee}`)),se.addDependency(Ee),pe=[Ee,oe,ne];const _e=O.PDFImage.buildImage({xref:this.xref,res:X,image:K,isInline:Z,pdfFunctionFactory:this.pdfFunctionFactory}).then(Be=>{if(fe=Be.createImageData(!1),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Ee,"FontType3Res",fe],[fe.data.buffer]);if(De){this.handler.send("commonobj",[Ee,"Image",fe],[fe.data.buffer]);return}this.handler.send("obj",[Ee,this.pageIndex,"Image",fe],[fe.data.buffer])}).catch(Be=>{if((0,m.warn)("Unable to decode image: "+Be),this.parsingType3Font)return this.handler.sendWithPromise("commonobj",[Ee,"FontType3Res",null]);if(De){this.handler.send("commonobj",[Ee,"Image",null]);return}this.handler.send("obj",[Ee,this.pageIndex,"Image",null])});this.parsingType3Font&&await _e,se.addOp(m.OPS.paintImageXObject,pe),ie&&(de.set(ie,he,{fn:m.OPS.paintImageXObject,args:pe}),he&&((0,m.assert)(!Z,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(he,this.pageIndex),De&&this.globalImageCache.setData(he,{objId:Ee,fn:m.OPS.paintImageXObject,args:pe})))},handleSMask:function(K,Z,se,ie,de){var ce=K.get("G"),he={subtype:K.get("S").name,backdrop:K.get("BC")},oe=K.get("TR");if((0,j.isPDFFunction)(oe)){const fe=this.pdfFunctionFactory.create(oe);for(var ne=new Uint8Array(256),ue=new Float32Array(1),le=0;le<256;le++)ue[0]=le/255,fe(ue,0,ue,0),ne[le]=ue[0]*255|0;he.transferMap=ne}return this.buildFormXObject(Z,ce,he,se,ie,de.state.clone())},handleTilingType(X,K,Z,se,ie,de,ce){const he=new T.OperatorList,oe=[ie.get("Resources"),Z],ne=k.Dict.merge(this.xref,oe);return this.getOperatorList({stream:se,task:ce,resources:ne,operatorList:he}).then(function(){return(0,C.getTilingPatternIR)({fnArray:he.fnArray,argsArray:he.argsArray},ie,K)}).then(function(ue){de.addDependencies(he.dependencies),de.addOp(X,ue)},ue=>{if(!(ue instanceof m.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,m.warn)(`handleTilingType - ignoring pattern: "${ue}".`);return}throw ue}})},handleSetFont:function(K,Z,se,ie,de,ce){var he;return Z&&(Z=Z.slice(),he=Z[0].name),this.loadFont(he,se,K).then(oe=>oe.font.isType3Font?oe.loadType3Data(this,K,ie,de).then(function(){return oe}).catch(ne=>(this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorFontLoadType3}),new B({loadedName:"g_font_error",font:new a.ErrorFont(`Type3 font load error: ${ne}`),dict:oe.font,extraProperties:this.options.fontExtraProperties}))):oe).then(oe=>(ce.font=oe.font,oe.send(this.handler),oe.loadedName))},handleText(X,K){const Z=K.font,se=Z.charsToGlyphs(X);return Z.data&&(!!(K.textRenderingMode&m.TextRenderingMode.ADD_TO_PATH_FLAG)||K.fillColorSpace.name==="Pattern"||Z.disableFontFace||this.options.disableFontFace)&&D.buildFontPaths(Z,se,this.handler),se},ensureStateFont(X){if(X.font)return;const K=new m.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorFontState}),(0,m.warn)(`ensureStateFont: "${K}".`);return}throw K},setGState:function(K,Z,se,ie,de){for(var ce=[],he=Z.getKeys(),oe=Promise.resolve(),ne=0,ue=he.length;ne<ue;ne++){const le=he[ne],fe=Z.get(le);switch(le){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":ce.push([le,fe]);break;case"Font":oe=oe.then(()=>this.handleSetFont(K,null,fe[0],se,ie,de.state).then(function(pe){se.addDependency(pe),ce.push([le,[pe,fe[1]]])}));break;case"BM":ce.push([le,te(fe)]);break;case"SMask":if((0,k.isName)(fe,"None")){ce.push([le,!1]);break}(0,k.isDict)(fe)?(oe=oe.then(()=>this.handleSMask(fe,K,se,ie,de)),ce.push([le,!0])):(0,m.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,m.info)("graphic state operator "+le);break;default:(0,m.info)("Unknown graphic state operator "+le);break}}return oe.then(function(){ce.length>0&&se.addOp(m.OPS.setGState,[ce])})},loadFont:function(K,Z,se){const ie=()=>Promise.resolve(new B({loadedName:"g_font_error",font:new a.ErrorFont(`Font "${K}" is not available.`),dict:Z,extraProperties:this.options.fontExtraProperties}));var de,ce=this.xref;if(Z){if(!(0,k.isRef)(Z))throw new m.FormatError('The "font" object should be a reference.');de=Z}else{var he=se.get("Font");he&&(de=he.getRaw(K))}if(!de){const be=`Font "${K||Z&&Z.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,m.warn)(`${be}.`),ie();this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorFontMissing}),(0,m.warn)(`${be} -- attempting to fallback to a default font.`),de=D.getFallbackFontDict()}if(this.fontCache.has(de))return this.fontCache.get(de);if(Z=ce.fetchIfRef(de),!(0,k.isDict)(Z))return ie();if(Z.translated)return Z.translated;var oe=(0,m.createPromiseCapability)(),ne=this.preEvaluateFont(Z);const{descriptor:ue,hash:le}=ne;var fe=(0,k.isRef)(de),pe;if(fe&&(pe=de.toString()),le&&(0,k.isDict)(ue)){ue.fontAliases||(ue.fontAliases=Object.create(null));var ve=ue.fontAliases;if(ve[le]){var xe=ve[le].aliasRef;if(fe&&xe&&this.fontCache.has(xe))return this.fontCache.putAlias(de,xe),this.fontCache.get(de)}else ve[le]={fontID:a.Font.getFontID()};fe&&(ve[le].aliasRef=de),pe=ve[le].fontID}fe?this.fontCache.put(de,oe.promise):(pe||(pe=this.idFactory.createObjId()),this.fontCache.put(`id_${pe}`,oe.promise)),(0,m.assert)(pe,'The "fontID" must be defined.'),Z.loadedName=`${this.idFactory.getDocId()}_f${pe}`,Z.translated=oe.promise;var Ce;try{Ce=this.translateFont(ne)}catch(be){Ce=Promise.reject(be)}return Ce.then(be=>{if(be.fontType!==void 0){var me=ce.stats.fontTypes;me[be.fontType]=!0}oe.resolve(new B({loadedName:Z.loadedName,font:be,dict:Z,extraProperties:this.options.fontExtraProperties}))}).catch(be=>{this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorFontTranslate});try{var me=ue&&ue.get("FontFile3"),ge=me&&me.get("Subtype"),ye=(0,a.getFontType)(ne.type,ge&&ge.name),Se=ce.stats.fontTypes;Se[ye]=!0}catch{}oe.resolve(new B({loadedName:Z.loadedName,font:new a.ErrorFont(be instanceof Error?be.message:be),dict:Z,extraProperties:this.options.fontExtraProperties}))}),oe.promise},buildPath(X,K,Z,se=!1){var ie=X.length-1;if(Z||(Z=[]),ie<0||X.fnArray[ie]!==m.OPS.constructPath)se&&((0,m.warn)(`Encountered path operator "${K}" inside of a text object.`),X.addOp(m.OPS.save,null)),X.addOp(m.OPS.constructPath,[[K],Z]),se&&X.addOp(m.OPS.restore,null);else{var de=X.argsArray[ie];de[0].push(K),Array.prototype.push.apply(de[1],Z)}},parseColorSpace({cs:X,resources:K}){return new Promise(Z=>{Z(ae.ColorSpace.parse(X,this.xref,K,this.pdfFunctionFactory))}).catch(Z=>{if(Z instanceof m.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorColorSpace}),(0,m.warn)(`parseColorSpace - ignoring ColorSpace: "${Z}".`),null;throw Z})},async handleColorN(X,K,Z,se,ie,de,ce){var he=Z[Z.length-1],oe;if((0,k.isName)(he)&&(oe=ie.get(he.name))){var ne=(0,k.isStream)(oe)?oe.dict:oe,ue=ne.get("PatternType");if(ue===re){var le=se.base?se.base.getRgb(Z,0):null;return this.handleTilingType(K,le,de,oe,ne,X,ce)}else if(ue===ee){var fe=ne.get("Shading"),pe=ne.getArray("Matrix");oe=C.Pattern.parseShading(fe,pe,this.xref,de,this.handler,this.pdfFunctionFactory),X.addOp(K,oe.getIR());return}throw new m.FormatError(`Unknown PatternType: ${ue}`)}throw new m.FormatError(`Unknown PatternName: ${he}`)},getOperatorList({stream:X,task:K,resources:Z,operatorList:se,initialState:ie=null}){if(Z=Z||k.Dict.empty,ie=ie||new S,!se)throw new Error('getOperatorList: missing "operatorList" parameter');var de=this,ce=this.xref;let he=!1;const oe=new L.LocalImageCache;var ne=Z.get("XObject")||k.Dict.empty,ue=Z.get("Pattern")||k.Dict.empty,le=new M(ie),fe=new A(X,ce,le),pe=new z;function ve(xe){for(var Ce=0,be=fe.savedStatesDepth;Ce<be;Ce++)se.addOp(m.OPS.restore,[])}return new Promise(function xe(Ce,be){const me=function(Me){Promise.all([Me,se.ready]).then(function(){try{xe(Ce,be)}catch(ze){be(ze)}},be)};K.ensureNotTerminated(),pe.reset();for(var ge,ye={},Se,Ee,De;!(ge=pe.check())&&(ye.args=null,!!fe.read(ye));){var _e=ye.args,Be=ye.fn;switch(Be|0){case m.OPS.paintXObject:var Te=_e[0].name;if(Te){const Me=oe.getByName(Te);if(Me){se.addOp(Me.fn,Me.args),_e=null;continue}}me(new Promise(function(Me,ze){if(!Te)throw new m.FormatError("XObject must be referred to by name.");let $e=ne.getRaw(Te);if($e instanceof k.Ref){const Ze=oe.getByRef($e);if(Ze){se.addOp(Ze.fn,Ze.args),Me();return}const Qe=de.globalImageCache.getData($e,de.pageIndex);if(Qe){se.addDependency(Qe.objId),se.addOp(Qe.fn,Qe.args),Me();return}$e=ce.fetch($e)}if(!$e){se.addOp(Be,_e),Me();return}if(!(0,k.isStream)($e))throw new m.FormatError("XObject should be a stream");const je=$e.dict.get("Subtype");if(!(0,k.isName)(je))throw new m.FormatError("XObject should have a Name subtype");if(je.name==="Form"){le.save(),de.buildFormXObject(Z,$e,null,se,K,le.state.clone()).then(function(){le.restore(),Me()},ze);return}else if(je.name==="Image"){de.buildPaintImageXObject({resources:Z,image:$e,operatorList:se,cacheKey:Te,localImageCache:oe}).then(Me,ze);return}else if(je.name==="PS")(0,m.info)("Ignored XObject subtype PS");else throw new m.FormatError(`Unhandled XObject subtype ${je.name}`);Me()}).catch(function(Me){if(!(Me instanceof m.AbortException)){if(de.options.ignoreErrors){de.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorXObject}),(0,m.warn)(`getOperatorList - ignoring XObject: "${Me}".`);return}throw Me}}));return;case m.OPS.setFont:var Fe=_e[1];me(de.handleSetFont(Z,_e,null,se,K,le.state).then(function(Me){se.addDependency(Me),se.addOp(m.OPS.setFont,[Me,Fe])}));return;case m.OPS.beginText:he=!0;break;case m.OPS.endText:he=!1;break;case m.OPS.endInlineImage:var we=_e[0].cacheKey;if(we){const Me=oe.getByName(we);if(Me){se.addOp(Me.fn,Me.args),_e=null;continue}}me(de.buildPaintImageXObject({resources:Z,image:_e[0],isInline:!0,operatorList:se,cacheKey:we,localImageCache:oe}));return;case m.OPS.showText:if(!le.state.font){de.ensureStateFont(le.state);continue}_e[0]=de.handleText(_e[0],le.state);break;case m.OPS.showSpacedText:if(!le.state.font){de.ensureStateFont(le.state);continue}var Ae=_e[0],ke=[],Pe=Ae.length,Le=le.state;for(Se=0;Se<Pe;++Se){var Ne=Ae[Se];(0,m.isString)(Ne)?Array.prototype.push.apply(ke,de.handleText(Ne,Le)):(0,m.isNum)(Ne)&&ke.push(Ne)}_e[0]=ke,Be=m.OPS.showText;break;case m.OPS.nextLineShowText:if(!le.state.font){de.ensureStateFont(le.state);continue}se.addOp(m.OPS.nextLine),_e[0]=de.handleText(_e[0],le.state),Be=m.OPS.showText;break;case m.OPS.nextLineSetSpacingShowText:if(!le.state.font){de.ensureStateFont(le.state);continue}se.addOp(m.OPS.nextLine),se.addOp(m.OPS.setWordSpacing,[_e.shift()]),se.addOp(m.OPS.setCharSpacing,[_e.shift()]),_e[0]=de.handleText(_e[0],le.state),Be=m.OPS.showText;break;case m.OPS.setTextRenderingMode:le.state.textRenderingMode=_e[0];break;case m.OPS.setFillColorSpace:me(de.parseColorSpace({cs:_e[0],resources:Z}).then(function(Me){Me&&(le.state.fillColorSpace=Me)}));return;case m.OPS.setStrokeColorSpace:me(de.parseColorSpace({cs:_e[0],resources:Z}).then(function(Me){Me&&(le.state.strokeColorSpace=Me)}));return;case m.OPS.setFillColor:De=le.state.fillColorSpace,_e=De.getRgb(_e,0),Be=m.OPS.setFillRGBColor;break;case m.OPS.setStrokeColor:De=le.state.strokeColorSpace,_e=De.getRgb(_e,0),Be=m.OPS.setStrokeRGBColor;break;case m.OPS.setFillGray:le.state.fillColorSpace=ae.ColorSpace.singletons.gray,_e=ae.ColorSpace.singletons.gray.getRgb(_e,0),Be=m.OPS.setFillRGBColor;break;case m.OPS.setStrokeGray:le.state.strokeColorSpace=ae.ColorSpace.singletons.gray,_e=ae.ColorSpace.singletons.gray.getRgb(_e,0),Be=m.OPS.setStrokeRGBColor;break;case m.OPS.setFillCMYKColor:le.state.fillColorSpace=ae.ColorSpace.singletons.cmyk,_e=ae.ColorSpace.singletons.cmyk.getRgb(_e,0),Be=m.OPS.setFillRGBColor;break;case m.OPS.setStrokeCMYKColor:le.state.strokeColorSpace=ae.ColorSpace.singletons.cmyk,_e=ae.ColorSpace.singletons.cmyk.getRgb(_e,0),Be=m.OPS.setStrokeRGBColor;break;case m.OPS.setFillRGBColor:le.state.fillColorSpace=ae.ColorSpace.singletons.rgb,_e=ae.ColorSpace.singletons.rgb.getRgb(_e,0);break;case m.OPS.setStrokeRGBColor:le.state.strokeColorSpace=ae.ColorSpace.singletons.rgb,_e=ae.ColorSpace.singletons.rgb.getRgb(_e,0);break;case m.OPS.setFillColorN:if(De=le.state.fillColorSpace,De.name==="Pattern"){me(de.handleColorN(se,m.OPS.setFillColorN,_e,De,ue,Z,K));return}_e=De.getRgb(_e,0),Be=m.OPS.setFillRGBColor;break;case m.OPS.setStrokeColorN:if(De=le.state.strokeColorSpace,De.name==="Pattern"){me(de.handleColorN(se,m.OPS.setStrokeColorN,_e,De,ue,Z,K));return}_e=De.getRgb(_e,0),Be=m.OPS.setStrokeRGBColor;break;case m.OPS.shadingFill:var qe=Z.get("Shading");if(!qe)throw new m.FormatError("No shading resource found");var Oe=qe.get(_e[0].name);if(!Oe)throw new m.FormatError("No shading object found");var Ge=C.Pattern.parseShading(Oe,null,ce,Z,de.handler,de.pdfFunctionFactory),Ve=Ge.getIR();_e=[Ve],Be=m.OPS.shadingFill;break;case m.OPS.setGState:var Xe=_e[0],at=Z.get("ExtGState");if(!(0,k.isDict)(at)||!at.has(Xe.name))break;var Re=at.get(Xe.name);me(de.setGState(Z,Re,se,K,le));return;case m.OPS.moveTo:case m.OPS.lineTo:case m.OPS.curveTo:case m.OPS.curveTo2:case m.OPS.curveTo3:case m.OPS.closePath:case m.OPS.rectangle:de.buildPath(se,Be,_e,he);continue;case m.OPS.markPoint:case m.OPS.markPointProps:case m.OPS.beginMarkedContent:case m.OPS.beginMarkedContentProps:case m.OPS.endMarkedContent:case m.OPS.beginCompat:case m.OPS.endCompat:continue;default:if(_e!==null){for(Se=0,Ee=_e.length;Se<Ee&&!(_e[Se]instanceof k.Dict);Se++);if(Se<Ee){(0,m.warn)("getOperatorList - ignoring operator: "+Be);continue}}}se.addOp(Be,_e)}if(ge){me(W);return}ve(),Ce()}).catch(xe=>{if(!(xe instanceof m.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorOperatorList}),(0,m.warn)(`getOperatorList - ignoring errors during "${K.name}" task: "${xe}".`),ve();return}throw xe}})},getTextContent({stream:X,task:K,resources:Z,stateManager:se=null,normalizeWhitespace:ie=!1,combineTextItems:de=!1,sink:ce,seenStyles:he=Object.create(null)}){Z=Z||k.Dict.empty,se=se||new M(new F);var oe=/\s/g,ne={items:[],styles:Object.create(null)},ue={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},le=.3,fe=1.5,pe=4,ve=this,xe=this.xref,Ce=null;const be=new L.LocalImageCache;var me=new A(X,xe,se),ge;function ye(){if(ue.initialized)return ue;var Ae=ge.font;Ae.loadedName in he||(he[Ae.loadedName]=!0,ne.styles[Ae.loadedName]={fontFamily:Ae.fallbackName,ascent:Ae.ascent,descent:Ae.descent,vertical:Ae.vertical}),ue.fontName=Ae.loadedName;var ke=[ge.fontSize*ge.textHScale,0,0,ge.fontSize,0,ge.textRise];if(Ae.isType3Font&&ge.fontSize<=1&&!(0,m.isArrayEqual)(ge.fontMatrix,m.FONT_IDENTITY_MATRIX)){const Ve=Ae.bbox[3]-Ae.bbox[1];Ve>0&&(ke[3]*=Ve*ge.fontMatrix[3])}var Pe=m.Util.transform(ge.ctm,m.Util.transform(ge.textMatrix,ke));ue.transform=Pe,Ae.vertical?(ue.width=Math.sqrt(Pe[0]*Pe[0]+Pe[1]*Pe[1]),ue.height=0,ue.vertical=!0):(ue.width=0,ue.height=Math.sqrt(Pe[2]*Pe[2]+Pe[3]*Pe[3]),ue.vertical=!1);var Le=ge.textLineMatrix[0],Ne=ge.textLineMatrix[1],qe=Math.sqrt(Le*Le+Ne*Ne);Le=ge.ctm[0],Ne=ge.ctm[1];var Oe=Math.sqrt(Le*Le+Ne*Ne);ue.textAdvanceScale=Oe*qe,ue.lastAdvanceWidth=0,ue.lastAdvanceHeight=0;var Ge=Ae.spaceWidth/1e3*ge.fontSize;return Ge?(ue.spaceWidth=Ge,ue.fakeSpaceMin=Ge*le,ue.fakeMultiSpaceMin=Ge*fe,ue.fakeMultiSpaceMax=Ge*pe,ue.textRunBreakAllowed=!Ae.isMonospace):(ue.spaceWidth=0,ue.fakeSpaceMin=1/0,ue.fakeMultiSpaceMin=1/0,ue.fakeMultiSpaceMax=0,ue.textRunBreakAllowed=!1),ue.initialized=!0,ue}function Se(Ae){for(var ke=0,Pe=Ae.length,Le;ke<Pe&&(Le=Ae.charCodeAt(ke))>=32&&Le<=127;)ke++;return ke<Pe?Ae.replace(oe," "):Ae}function Ee(Ae){var ke=Ae.str.join(""),Pe=(0,J.bidi)(ke,-1,Ae.vertical);return{str:ie?Se(Pe.str):Pe.str,dir:Pe.dir,width:Ae.width,height:Ae.height,transform:Ae.transform,fontName:Ae.fontName}}function De(Ae,ke){return ve.loadFont(Ae,ke,Z).then(function(Pe){ge.font=Pe.font,ge.fontMatrix=Pe.font.fontMatrix||m.FONT_IDENTITY_MATRIX})}function _e(Ae){for(var ke=ge.font,Pe=ye(),Le=0,Ne=0,qe=ke.charsToGlyphs(Ae),Oe=0;Oe<qe.length;Oe++){var Ge=qe[Oe],Ve=null;ke.vertical&&Ge.vmetric?Ve=Ge.vmetric[0]:Ve=Ge.width;var Xe=Ge.unicode,at=(0,$.getNormalizedUnicodes)();at[Xe]!==void 0&&(Xe=at[Xe]),Xe=(0,$.reverseIfRtl)(Xe);var Re=ge.charSpacing;if(Ge.isSpace){var Me=ge.wordSpacing;Re+=Me,Me>0&&Be(Me,Pe.str)}var ze=0,$e=0;if(ke.vertical){var Ze=Ve*ge.fontMatrix[0];$e=Ze*ge.fontSize+Re,Ne+=$e}else{var je=Ve*ge.fontMatrix[0];ze=(je*ge.fontSize+Re)*ge.textHScale,Le+=ze}ge.translateTextMatrix(ze,$e),Pe.str.push(Xe)}return ke.vertical?(Pe.lastAdvanceHeight=Ne,Pe.height+=Math.abs(Ne)):(Pe.lastAdvanceWidth=Le,Pe.width+=Le),Pe}function Be(Ae,ke){if(!(Ae<ue.fakeSpaceMin)){if(Ae<ue.fakeMultiSpaceMin){ke.push(" ");return}for(var Pe=Math.round(Ae/ue.spaceWidth);Pe-- >0;)ke.push(" ")}}function Te(){!ue.initialized||(ue.vertical?ue.height*=ue.textAdvanceScale:ue.width*=ue.textAdvanceScale,ne.items.push(Ee(ue)),ue.initialized=!1,ue.str.length=0)}function Fe(){const Ae=ne.items.length;Ae>0&&(ce.enqueue(ne,Ae),ne.items=[],ne.styles=Object.create(null))}var we=new z;return new Promise(function Ae(ke,Pe){const Le=function(gt){Fe(),Promise.all([gt,ce.ready]).then(function(){try{Ae(ke,Pe)}catch(Dt){Pe(Dt)}},Pe)};K.ensureNotTerminated(),we.reset();for(var Ne,qe={},Oe=[];!(Ne=we.check())&&(Oe.length=0,qe.args=Oe,!!me.read(qe));){ge=se.state;var Ge=qe.fn;Oe=qe.args;var Ve,Xe;switch(Ge|0){case m.OPS.setFont:var at=Oe[0].name,Re=Oe[1];if(ge.font&&at===ge.fontName&&Re===ge.fontSize)break;Te(),ge.fontName=at,ge.fontSize=Re,Le(De(at,null));return;case m.OPS.setTextRise:Te(),ge.textRise=Oe[0];break;case m.OPS.setHScale:Te(),ge.textHScale=Oe[0]/100;break;case m.OPS.setLeading:Te(),ge.leading=Oe[0];break;case m.OPS.moveText:var Me=ge.font?(ge.font.vertical?Oe[0]:Oe[1])===0:!1;if(Ve=Oe[0]-Oe[1],de&&Me&&ue.initialized&&Ve>0&&Ve<=ue.fakeMultiSpaceMax){ge.translateTextLineMatrix(Oe[0],Oe[1]),ue.width+=Oe[0]-ue.lastAdvanceWidth,ue.height+=Oe[1]-ue.lastAdvanceHeight,Xe=Oe[0]-ue.lastAdvanceWidth-(Oe[1]-ue.lastAdvanceHeight),Be(Xe,ue.str);break}Te(),ge.translateTextLineMatrix(Oe[0],Oe[1]),ge.textMatrix=ge.textLineMatrix.slice();break;case m.OPS.setLeadingMoveText:Te(),ge.leading=-Oe[1],ge.translateTextLineMatrix(Oe[0],Oe[1]),ge.textMatrix=ge.textLineMatrix.slice();break;case m.OPS.nextLine:Te(),ge.carriageReturn();break;case m.OPS.setTextMatrix:if(Ve=ge.calcTextLineMatrixAdvance(Oe[0],Oe[1],Oe[2],Oe[3],Oe[4],Oe[5]),de&&Ve!==null&&ue.initialized&&Ve.value>0&&Ve.value<=ue.fakeMultiSpaceMax){ge.translateTextLineMatrix(Ve.width,Ve.height),ue.width+=Ve.width-ue.lastAdvanceWidth,ue.height+=Ve.height-ue.lastAdvanceHeight,Xe=Ve.width-ue.lastAdvanceWidth-(Ve.height-ue.lastAdvanceHeight),Be(Xe,ue.str);break}Te(),ge.setTextMatrix(Oe[0],Oe[1],Oe[2],Oe[3],Oe[4],Oe[5]),ge.setTextLineMatrix(Oe[0],Oe[1],Oe[2],Oe[3],Oe[4],Oe[5]);break;case m.OPS.setCharSpacing:ge.charSpacing=Oe[0];break;case m.OPS.setWordSpacing:ge.wordSpacing=Oe[0];break;case m.OPS.beginText:Te(),ge.textMatrix=m.IDENTITY_MATRIX.slice(),ge.textLineMatrix=m.IDENTITY_MATRIX.slice();break;case m.OPS.showSpacedText:if(!se.state.font){ve.ensureStateFont(se.state);continue}for(var ze=Oe[0],$e,je=0,Ze=ze.length;je<Ze;je++)if(typeof ze[je]=="string")_e(ze[je]);else if((0,m.isNum)(ze[je])){ye(),Ve=ze[je]*ge.fontSize/1e3;var Qe=!1;ge.font.vertical?($e=Ve,ge.translateTextMatrix(0,$e),Qe=ue.textRunBreakAllowed&&Ve>ue.fakeMultiSpaceMax,Qe||(ue.height+=$e)):(Ve=-Ve,$e=Ve*ge.textHScale,ge.translateTextMatrix($e,0),Qe=ue.textRunBreakAllowed&&Ve>ue.fakeMultiSpaceMax,Qe||(ue.width+=$e)),Qe?Te():Ve>0&&Be(Ve,ue.str)}break;case m.OPS.showText:if(!se.state.font){ve.ensureStateFont(se.state);continue}_e(Oe[0]);break;case m.OPS.nextLineShowText:if(!se.state.font){ve.ensureStateFont(se.state);continue}Te(),ge.carriageReturn(),_e(Oe[0]);break;case m.OPS.nextLineSetSpacingShowText:if(!se.state.font){ve.ensureStateFont(se.state);continue}Te(),ge.wordSpacing=Oe[0],ge.charSpacing=Oe[1],ge.carriageReturn(),_e(Oe[2]);break;case m.OPS.paintXObject:Te(),Ce||(Ce=Z.get("XObject")||k.Dict.empty);var ut=Oe[0].name;if(ut&&be.getByName(ut))break;Le(new Promise(function(gt,Dt){if(!ut)throw new m.FormatError("XObject must be referred to by name.");let At=Ce.getRaw(ut);if(At instanceof k.Ref){if(be.getByRef(At)){gt();return}At=xe.fetch(At)}if(!At){gt();return}if(!(0,k.isStream)(At))throw new m.FormatError("XObject should be a stream");const Rt=At.dict.get("Subtype");if(!(0,k.isName)(Rt))throw new m.FormatError("XObject should have a Name subtype");if(Rt.name!=="Form"){be.set(ut,At.dict.objId,!0),gt();return}const Lt=se.state.clone(),$t=new M(Lt),Vt=At.dict.getArray("Matrix");Array.isArray(Vt)&&Vt.length===6&&$t.transform(Vt),Fe();const Wt={enqueueInvoked:!1,enqueue(Gt,qt){this.enqueueInvoked=!0,ce.enqueue(Gt,qt)},get desiredSize(){return ce.desiredSize},get ready(){return ce.ready}};ve.getTextContent({stream:At,task:K,resources:At.dict.get("Resources")||Z,stateManager:$t,normalizeWhitespace:ie,combineTextItems:de,sink:Wt,seenStyles:he}).then(function(){Wt.enqueueInvoked||be.set(ut,At.dict.objId,!0),gt()},Dt)}).catch(function(gt){if(!(gt instanceof m.AbortException)){if(ve.options.ignoreErrors){(0,m.warn)(`getTextContent - ignoring XObject: "${gt}".`);return}throw gt}}));return;case m.OPS.setGState:Te();var lt=Oe[0],Ft=Z.get("ExtGState");if(!(0,k.isDict)(Ft)||!(0,k.isName)(lt))break;var kt=Ft.get(lt.name);if(!(0,k.isDict)(kt))break;var ft=kt.get("Font");if(ft){ge.fontName=null,ge.fontSize=ft[1],Le(De(null,ft[0]));return}break}if(ne.items.length>=ce.desiredSize){Ne=!0;break}}if(Ne){Le(W);return}Te(),Fe(),ke()}).catch(Ae=>{if(!(Ae instanceof m.AbortException)){if(this.options.ignoreErrors){(0,m.warn)(`getTextContent - ignoring errors during "${K.name}" task: "${Ae}".`),Te(),Fe();return}throw Ae}})},extractDataStructures:function(K,Z,se){const ie=this.xref;let de;var ce=K.get("ToUnicode")||Z.get("ToUnicode"),he=ce?this.readToUnicode(ce):Promise.resolve(void 0);if(se.composite){var oe=K.get("CIDSystemInfo");(0,k.isDict)(oe)&&(se.cidSystemInfo={registry:(0,m.stringToPDFString)(oe.get("Registry")),ordering:(0,m.stringToPDFString)(oe.get("Ordering")),supplement:oe.get("Supplement")});var ne=K.get("CIDToGIDMap");(0,k.isStream)(ne)&&(de=ne.getBytes())}var ue=[],le=null,fe;if(K.has("Encoding")){if(fe=K.get("Encoding"),(0,k.isDict)(fe)){if(le=fe.get("BaseEncoding"),le=(0,k.isName)(le)?le.name:null,fe.has("Differences"))for(var pe=fe.get("Differences"),ve=0,xe=0,Ce=pe.length;xe<Ce;xe++){var be=ie.fetchIfRef(pe[xe]);if((0,m.isNum)(be))ve=be;else if((0,k.isName)(be))ue[ve++]=be.name;else throw new m.FormatError(`Invalid entry in 'Differences' array: ${be}`)}}else if((0,k.isName)(fe))le=fe.name;else throw new m.FormatError("Encoding is not a Name nor a Dict");le!=="MacRomanEncoding"&&le!=="MacExpertEncoding"&&le!=="WinAnsiEncoding"&&(le=null)}if(le)se.defaultEncoding=(0,q.getEncoding)(le).slice();else{var me=!!(se.flags&a.FontFlags.Symbolic),ge=!!(se.flags&a.FontFlags.Nonsymbolic);fe=q.StandardEncoding,se.type==="TrueType"&&!ge&&(fe=q.WinAnsiEncoding),me&&(fe=q.MacRomanEncoding,se.file||(/Symbol/i.test(se.name)?fe=q.SymbolSetEncoding:/Dingbats|Wingdings/i.test(se.name)&&(fe=q.ZapfDingbatsEncoding))),se.defaultEncoding=fe}return se.differences=ue,se.baseEncodingName=le,se.hasEncoding=!!le||ue.length>0,se.dict=K,he.then(ye=>(se.toUnicode=ye,this.buildToUnicode(se))).then(ye=>(se.toUnicode=ye,de&&(se.cidToGidMap=this.readCidToGidMap(de,ye)),se))},_buildSimpleFontToUnicode(X,K=!1){(0,m.assert)(!X.composite,"Must be a simple font.");const Z=[],se=X.defaultEncoding.slice(),ie=X.baseEncodingName,de=X.differences;for(const he in de){const oe=de[he];oe!==".notdef"&&(se[he]=oe)}const ce=(0,Y.getGlyphsUnicode)();for(const he in se){let oe=se[he];if(oe!==""){if(ce[oe]===void 0){let ne=0;switch(oe[0]){case"G":oe.length===3&&(ne=parseInt(oe.substring(1),16));break;case"g":oe.length===5&&(ne=parseInt(oe.substring(1),16));break;case"C":case"c":if(oe.length>=3&&oe.length<=4){const le=oe.substring(1);if(K){ne=parseInt(le,16);break}if(ne=+le,Number.isNaN(ne)&&Number.isInteger(parseInt(le,16)))return this._buildSimpleFontToUnicode(X,!0)}break;default:const ue=(0,$.getUnicodeForGlyph)(oe,ce);ue!==-1&&(ne=ue)}if(ne>0&&ne<=1114111&&Number.isInteger(ne)){if(ie&&ne===+he){const ue=(0,q.getEncoding)(ie);if(ue&&(oe=ue[he])){Z[he]=String.fromCharCode(ce[oe]);continue}}Z[he]=String.fromCodePoint(ne)}continue}Z[he]=String.fromCharCode(ce[oe])}}return new a.ToUnicodeMap(Z)},buildToUnicode(X){if(X.hasIncludedToUnicodeMap=!!X.toUnicode&&X.toUnicode.length>0,X.hasIncludedToUnicodeMap)return!X.composite&&X.hasEncoding&&(X.fallbackToUnicode=this._buildSimpleFontToUnicode(X)),Promise.resolve(X.toUnicode);if(!X.composite)return Promise.resolve(this._buildSimpleFontToUnicode(X));if(X.composite&&(X.cMap.builtInCMap&&!(X.cMap instanceof y.IdentityCMap)||X.cidSystemInfo.registry==="Adobe"&&(X.cidSystemInfo.ordering==="GB1"||X.cidSystemInfo.ordering==="CNS1"||X.cidSystemInfo.ordering==="Japan1"||X.cidSystemInfo.ordering==="Korea1"))){const K=X.cidSystemInfo.registry,Z=X.cidSystemInfo.ordering,se=k.Name.get(K+"-"+Z+"-UCS2");return y.CMapFactory.create({encoding:se,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(ie){const de=X.cMap,ce=[];return de.forEach(function(he,oe){if(oe>65535)throw new m.FormatError("Max size of CID is 65,535");const ne=ie.lookup(oe);ne&&(ce[he]=String.fromCharCode((ne.charCodeAt(0)<<8)+ne.charCodeAt(1)))}),new a.ToUnicodeMap(ce)})}return Promise.resolve(new a.IdentityToUnicodeMap(X.firstChar,X.lastChar))},readToUnicode:function(K){var Z=K;return(0,k.isName)(Z)?y.CMapFactory.create({encoding:Z,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(se){return se instanceof y.IdentityCMap?new a.IdentityToUnicodeMap(0,65535):new a.ToUnicodeMap(se.getMap())}):(0,k.isStream)(Z)?y.CMapFactory.create({encoding:Z,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(se){if(se instanceof y.IdentityCMap)return new a.IdentityToUnicodeMap(0,65535);var ie=new Array(se.length);return se.forEach(function(de,ce){for(var he=[],oe=0;oe<ce.length;oe+=2){var ne=ce.charCodeAt(oe)<<8|ce.charCodeAt(oe+1);if((ne&63488)!==55296){he.push(ne);continue}oe+=2;var ue=ce.charCodeAt(oe)<<8|ce.charCodeAt(oe+1);he.push(((ne&1023)<<10)+(ue&1023)+65536)}ie[de]=String.fromCodePoint.apply(String,he)}),new a.ToUnicodeMap(ie)},se=>{if(se instanceof m.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,m.warn)(`readToUnicode - ignoring ToUnicode data: "${se}".`),null;throw se}):Promise.resolve(null)},readCidToGidMap(X,K){for(var Z=[],se=0,ie=X.length;se<ie;se++){var de=X[se++]<<8|X[se];const ce=se>>1;de===0&&!K.has(ce)||(Z[ce]=de)}return Z},extractWidths:function(K,Z,se){var ie=this.xref,de=[],ce=0,he=[],oe,ne,ue,le,fe,pe,ve,xe;if(se.composite){if(ce=K.has("DW")?K.get("DW"):1e3,xe=K.get("W"),xe)for(ne=0,ue=xe.length;ne<ue;ne++)if(pe=ie.fetchIfRef(xe[ne++]),ve=ie.fetchIfRef(xe[ne]),Array.isArray(ve))for(le=0,fe=ve.length;le<fe;le++)de[pe++]=ie.fetchIfRef(ve[le]);else{var Ce=ie.fetchIfRef(xe[++ne]);for(le=pe;le<=ve;le++)de[le]=Ce}if(se.vertical){var be=K.getArray("DW2")||[880,-1e3];if(oe=[be[1],ce*.5,be[0]],be=K.get("W2"),be)for(ne=0,ue=be.length;ne<ue;ne++)if(pe=ie.fetchIfRef(be[ne++]),ve=ie.fetchIfRef(be[ne]),Array.isArray(ve))for(le=0,fe=ve.length;le<fe;le++)he[pe++]=[ie.fetchIfRef(ve[le++]),ie.fetchIfRef(ve[le++]),ie.fetchIfRef(ve[le])];else{var me=[ie.fetchIfRef(be[++ne]),ie.fetchIfRef(be[++ne]),ie.fetchIfRef(be[++ne])];for(le=pe;le<=ve;le++)he[le]=me}}}else{var ge=se.firstChar;if(xe=K.get("Widths"),xe){for(le=ge,ne=0,ue=xe.length;ne<ue;ne++)de[le++]=ie.fetchIfRef(xe[ne]);ce=parseFloat(Z.get("MissingWidth"))||0}else{var ye=K.get("BaseFont");if((0,k.isName)(ye)){var Se=this.getBaseFontMetrics(ye.name);de=this.buildCharCodeToWidth(Se.widths,se),ce=Se.defaultWidth}}}var Ee=!0,De=ce;for(var _e in de){var Be=de[_e];if(!!Be){if(!De){De=Be;continue}if(De!==Be){Ee=!1;break}}}Ee&&(se.flags|=a.FontFlags.FixedPitch),se.defaultWidth=ce,se.widths=de,se.defaultVMetrics=oe,se.vmetrics=he},isSerifFont:function(K){var Z=K.split("-")[0];return Z in(0,Q.getSerifFonts)()||Z.search(/serif/gi)!==-1},getBaseFontMetrics:function(K){var Z=0,se=[],ie=!1,de=(0,Q.getStdFontMap)(),ce=de[K]||K,he=(0,G.getMetrics)();ce in he||(this.isSerifFont(K)?ce="Times-Roman":ce="Helvetica");var oe=he[ce];return(0,m.isNum)(oe)?(Z=oe,ie=!0):se=oe(),{defaultWidth:Z,monospace:ie,widths:se}},buildCharCodeToWidth:function(K,Z){for(var se=Object.create(null),ie=Z.differences,de=Z.defaultEncoding,ce=0;ce<256;ce++){if(ce in ie&&K[ie[ce]]){se[ce]=K[ie[ce]];continue}if(ce in de&&K[de[ce]]){se[ce]=K[de[ce]];continue}}return se},preEvaluateFont:function(K){var Z=K,se=K.get("Subtype");if(!(0,k.isName)(se))throw new m.FormatError("invalid font Subtype");var ie=!1,de;if(se.name==="Type0"){var ce=K.get("DescendantFonts");if(!ce)throw new m.FormatError("Descendant fonts are not specified");if(K=Array.isArray(ce)?this.xref.fetchIfRef(ce[0]):ce,se=K.get("Subtype"),!(0,k.isName)(se))throw new m.FormatError("invalid font Subtype");ie=!0}var he=K.get("FontDescriptor");if(he){var oe=new R.MurmurHash3_64,ne=Z.getRaw("Encoding");if((0,k.isName)(ne))oe.update(ne.name);else if((0,k.isRef)(ne))oe.update(ne.toString());else if((0,k.isDict)(ne))for(var ue=ne.getKeys(),le=0,fe=ue.length;le<fe;le++){var pe=ne.getRaw(ue[le]);if((0,k.isName)(pe))oe.update(pe.name);else if((0,k.isRef)(pe))oe.update(pe.toString());else if(Array.isArray(pe)){for(var ve=pe.length,xe=new Array(ve),Ce=0;Ce<ve;Ce++){var be=pe[Ce];(0,k.isName)(be)?xe[Ce]=be.name:((0,m.isNum)(be)||(0,k.isRef)(be))&&(xe[Ce]=be.toString())}oe.update(xe.join())}}const Se=K.get("FirstChar")||0,Ee=K.get("LastChar")||(ie?65535:255);oe.update(`${Se}-${Ee}`);var me=K.get("ToUnicode")||Z.get("ToUnicode");if((0,k.isStream)(me)){var ge=me.str||me;de=ge.buffer?new Uint8Array(ge.buffer.buffer,0,ge.bufferLength):new Uint8Array(ge.bytes.buffer,ge.start,ge.end-ge.start),oe.update(de)}else(0,k.isName)(me)&&oe.update(me.name);var ye=K.get("Widths")||Z.get("Widths");ye&&(de=new Uint8Array(new Uint32Array(ye).buffer),oe.update(de))}return{descriptor:he,dict:K,baseDict:Z,composite:ie,type:se.name,hash:oe?oe.hexdigest():""}},translateFont:function(K){var Z=K.baseDict,se=K.dict,ie=K.composite,de=K.descriptor,ce=K.type,he=ie?65535:255,oe;const ne=se.get("FirstChar")||0,ue=se.get("LastChar")||he;if(!de)if(ce==="Type3")de=new k.Dict(null),de.set("FontName",k.Name.get(ce)),de.set("FontBBox",se.getArray("FontBBox")||[0,0,0,0]);else{var le=se.get("BaseFont");if(!(0,k.isName)(le))throw new m.FormatError("Base font is not specified");le=le.name.replace(/[,_]/g,"-");var fe=this.getBaseFontMetrics(le),pe=le.split("-")[0],ve=(this.isSerifFont(pe)?a.FontFlags.Serif:0)|(fe.monospace?a.FontFlags.FixedPitch:0)|((0,Q.getSymbolsFonts)()[pe]?a.FontFlags.Symbolic:a.FontFlags.Nonsymbolic);oe={type:ce,name:le,widths:fe.widths,defaultWidth:fe.defaultWidth,flags:ve,firstChar:ne,lastChar:ue};const Te=se.get("Widths");return this.extractDataStructures(se,se,oe).then(Fe=>{if(Te){const we=[];let Ae=ne;for(let ke=0,Pe=Te.length;ke<Pe;ke++)we[Ae++]=this.xref.fetchIfRef(Te[ke]);Fe.widths=we}else Fe.widths=this.buildCharCodeToWidth(fe.widths,Fe);return new a.Font(le,null,Fe)})}var xe=de.get("FontName"),Ce=se.get("BaseFont");if((0,m.isString)(xe)&&(xe=k.Name.get(xe)),(0,m.isString)(Ce)&&(Ce=k.Name.get(Ce)),ce!=="Type3"){var be=xe&&xe.name,me=Ce&&Ce.name;be!==me&&((0,m.info)(`The FontDescriptor's FontName is "${be}" but should be the same as the Font's BaseFont "${me}".`),be&&me&&me.startsWith(be)&&(xe=Ce))}if(xe=xe||Ce,!(0,k.isName)(xe))throw new m.FormatError("invalid font name");var ge=de.get("FontFile","FontFile2","FontFile3");if(ge&&ge.dict){var ye=ge.dict.get("Subtype");ye&&(ye=ye.name);var Se=ge.dict.get("Length1"),Ee=ge.dict.get("Length2"),De=ge.dict.get("Length3")}oe={type:ce,name:xe.name,subtype:ye,file:ge,length1:Se,length2:Ee,length3:De,loadedName:Z.loadedName,composite:ie,fixedPitch:!1,fontMatrix:se.getArray("FontMatrix")||m.FONT_IDENTITY_MATRIX,firstChar:ne||0,lastChar:ue||he,bbox:de.getArray("FontBBox"),ascent:de.get("Ascent"),descent:de.get("Descent"),xHeight:de.get("XHeight"),capHeight:de.get("CapHeight"),flags:de.get("Flags"),italicAngle:de.get("ItalicAngle"),isType3Font:!1};var _e;if(ie){var Be=Z.get("Encoding");(0,k.isName)(Be)&&(oe.cidEncoding=Be.name),_e=y.CMapFactory.create({encoding:Be,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(Te){oe.cMap=Te,oe.vertical=oe.cMap.vertical})}else _e=Promise.resolve(void 0);return _e.then(()=>this.extractDataStructures(se,Z,oe)).then(Te=>(this.extractWidths(se,de,Te),ce==="Type3"&&(Te.isType3Font=!0),new a.Font(xe.name,ge,Te)))}},D.buildFontPaths=function(X,K,Z){function se(ie){X.renderer.hasBuiltPath(ie)||Z.send("commonobj",[`${X.loadedName}_path_${ie}`,"FontPath",X.renderer.getPathJs(ie)])}for(const ie of K){se(ie.fontChar);const de=ie.accent;de&&de.fontChar&&se(de.fontChar)}},D.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;const X=new k.Dict;return X.set("BaseFont",k.Name.get("PDFJS-FallbackFont")),X.set("Type",k.Name.get("FallbackType")),X.set("Subtype",k.Name.get("FallbackType")),X.set("Encoding",k.Name.get("WinAnsiEncoding")),this._fallbackFontDict=X},D}();f.PartialEvaluator=P;class B{constructor({loadedName:_,font:D,dict:N,extraProperties:U=!1}){this.loadedName=_,this.font=D,this.dict=N,this._extraProperties=U,this.type3Loaded=null,this.sent=!1}send(_){this.sent||(this.sent=!0,_.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)]))}fallback(_){if(!this.font.data)return;this.font.disableFontFace=!0;const D=this.font.glyphCacheValues;P.buildFontPaths(this.font,D,_)}loadType3Data(_,D,N,U){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var z=Object.create(_.options);z.ignoreErrors=!1;var te=_.clone(z);te.parsingType3Font=!0;for(var W=this.font,re=Promise.resolve(),ee=this.dict.get("CharProcs"),X=this.dict.get("Resources")||D,K=ee.getKeys(),Z=Object.create(null),se=0,ie=K.length;se<ie;++se){const de=K[se];re=re.then(function(){var ce=ee.get(de),he=new T.OperatorList;return te.getOperatorList({stream:ce,task:U,resources:X,operatorList:he}).then(function(){Z[de]=he.getIR(),N.addDependencies(he.dependencies)}).catch(function(oe){(0,m.warn)(`Type3 font resource "${de}" is not available.`);const ne=new T.OperatorList;Z[de]=ne.getIR()})})}return this.type3Loaded=re.then(function(){W.charProcOperatorList=Z}),this.type3Loaded}}var M=function(){function _(D){this.state=D,this.stateStack=[]}return _.prototype={save(){var D=this.state;this.stateStack.push(this.state),this.state=D.clone()},restore(){var D=this.stateStack.pop();D&&(this.state=D)},transform(D){this.state.ctm=m.Util.transform(this.state.ctm,D)}},_}(),F=function(){function _(){this.ctm=new Float32Array(m.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=m.FONT_IDENTITY_MATRIX,this.textMatrix=m.IDENTITY_MATRIX.slice(),this.textLineMatrix=m.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return _.prototype={setTextMatrix:function(N,U,z,te,W,re){var ee=this.textMatrix;ee[0]=N,ee[1]=U,ee[2]=z,ee[3]=te,ee[4]=W,ee[5]=re},setTextLineMatrix:function(N,U,z,te,W,re){var ee=this.textLineMatrix;ee[0]=N,ee[1]=U,ee[2]=z,ee[3]=te,ee[4]=W,ee[5]=re},translateTextMatrix:function(N,U){var z=this.textMatrix;z[4]=z[0]*N+z[2]*U+z[4],z[5]=z[1]*N+z[3]*U+z[5]},translateTextLineMatrix:function(N,U){var z=this.textLineMatrix;z[4]=z[0]*N+z[2]*U+z[4],z[5]=z[1]*N+z[3]*U+z[5]},calcTextLineMatrixAdvance:function(N,U,z,te,W,re){var ee=this.font;if(!ee)return null;var X=this.textLineMatrix;if(!(N===X[0]&&U===X[1]&&z===X[2]&&te===X[3]))return null;var K=W-X[4],Z=re-X[5];if(ee.vertical&&K!==0||!ee.vertical&&Z!==0)return null;var se,ie,de=N*te-U*z;return ee.vertical?(se=-Z*z/de,ie=Z*N/de):(se=K*te/de,ie=-K*U/de),{width:se,height:ie,value:ee.vertical?ie:se}},calcRenderMatrix:function(N){var U=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return m.Util.transform(N,m.Util.transform(this.textMatrix,U))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var N=Object.create(this);return N.textMatrix=this.textMatrix.slice(),N.textLineMatrix=this.textLineMatrix.slice(),N.fontMatrix=this.fontMatrix.slice(),N}},_}(),S=function(){function _(){this.ctm=new Float32Array(m.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=m.TextRenderingMode.FILL,this.fillColorSpace=ae.ColorSpace.singletons.gray,this.strokeColorSpace=ae.ColorSpace.singletons.gray}return _.prototype={clone:function(){return Object.create(this)}},_}(),A=function(){var _=(0,w.getLookupTableFactory)(function(U){U.w={id:m.OPS.setLineWidth,numArgs:1,variableArgs:!1},U.J={id:m.OPS.setLineCap,numArgs:1,variableArgs:!1},U.j={id:m.OPS.setLineJoin,numArgs:1,variableArgs:!1},U.M={id:m.OPS.setMiterLimit,numArgs:1,variableArgs:!1},U.d={id:m.OPS.setDash,numArgs:2,variableArgs:!1},U.ri={id:m.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},U.i={id:m.OPS.setFlatness,numArgs:1,variableArgs:!1},U.gs={id:m.OPS.setGState,numArgs:1,variableArgs:!1},U.q={id:m.OPS.save,numArgs:0,variableArgs:!1},U.Q={id:m.OPS.restore,numArgs:0,variableArgs:!1},U.cm={id:m.OPS.transform,numArgs:6,variableArgs:!1},U.m={id:m.OPS.moveTo,numArgs:2,variableArgs:!1},U.l={id:m.OPS.lineTo,numArgs:2,variableArgs:!1},U.c={id:m.OPS.curveTo,numArgs:6,variableArgs:!1},U.v={id:m.OPS.curveTo2,numArgs:4,variableArgs:!1},U.y={id:m.OPS.curveTo3,numArgs:4,variableArgs:!1},U.h={id:m.OPS.closePath,numArgs:0,variableArgs:!1},U.re={id:m.OPS.rectangle,numArgs:4,variableArgs:!1},U.S={id:m.OPS.stroke,numArgs:0,variableArgs:!1},U.s={id:m.OPS.closeStroke,numArgs:0,variableArgs:!1},U.f={id:m.OPS.fill,numArgs:0,variableArgs:!1},U.F={id:m.OPS.fill,numArgs:0,variableArgs:!1},U["f*"]={id:m.OPS.eoFill,numArgs:0,variableArgs:!1},U.B={id:m.OPS.fillStroke,numArgs:0,variableArgs:!1},U["B*"]={id:m.OPS.eoFillStroke,numArgs:0,variableArgs:!1},U.b={id:m.OPS.closeFillStroke,numArgs:0,variableArgs:!1},U["b*"]={id:m.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},U.n={id:m.OPS.endPath,numArgs:0,variableArgs:!1},U.W={id:m.OPS.clip,numArgs:0,variableArgs:!1},U["W*"]={id:m.OPS.eoClip,numArgs:0,variableArgs:!1},U.BT={id:m.OPS.beginText,numArgs:0,variableArgs:!1},U.ET={id:m.OPS.endText,numArgs:0,variableArgs:!1},U.Tc={id:m.OPS.setCharSpacing,numArgs:1,variableArgs:!1},U.Tw={id:m.OPS.setWordSpacing,numArgs:1,variableArgs:!1},U.Tz={id:m.OPS.setHScale,numArgs:1,variableArgs:!1},U.TL={id:m.OPS.setLeading,numArgs:1,variableArgs:!1},U.Tf={id:m.OPS.setFont,numArgs:2,variableArgs:!1},U.Tr={id:m.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},U.Ts={id:m.OPS.setTextRise,numArgs:1,variableArgs:!1},U.Td={id:m.OPS.moveText,numArgs:2,variableArgs:!1},U.TD={id:m.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},U.Tm={id:m.OPS.setTextMatrix,numArgs:6,variableArgs:!1},U["T*"]={id:m.OPS.nextLine,numArgs:0,variableArgs:!1},U.Tj={id:m.OPS.showText,numArgs:1,variableArgs:!1},U.TJ={id:m.OPS.showSpacedText,numArgs:1,variableArgs:!1},U["'"]={id:m.OPS.nextLineShowText,numArgs:1,variableArgs:!1},U['"']={id:m.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},U.d0={id:m.OPS.setCharWidth,numArgs:2,variableArgs:!1},U.d1={id:m.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},U.CS={id:m.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},U.cs={id:m.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},U.SC={id:m.OPS.setStrokeColor,numArgs:4,variableArgs:!0},U.SCN={id:m.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},U.sc={id:m.OPS.setFillColor,numArgs:4,variableArgs:!0},U.scn={id:m.OPS.setFillColorN,numArgs:33,variableArgs:!0},U.G={id:m.OPS.setStrokeGray,numArgs:1,variableArgs:!1},U.g={id:m.OPS.setFillGray,numArgs:1,variableArgs:!1},U.RG={id:m.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},U.rg={id:m.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},U.K={id:m.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},U.k={id:m.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},U.sh={id:m.OPS.shadingFill,numArgs:1,variableArgs:!1},U.BI={id:m.OPS.beginInlineImage,numArgs:0,variableArgs:!1},U.ID={id:m.OPS.beginImageData,numArgs:0,variableArgs:!1},U.EI={id:m.OPS.endInlineImage,numArgs:1,variableArgs:!1},U.Do={id:m.OPS.paintXObject,numArgs:1,variableArgs:!1},U.MP={id:m.OPS.markPoint,numArgs:1,variableArgs:!1},U.DP={id:m.OPS.markPointProps,numArgs:2,variableArgs:!1},U.BMC={id:m.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},U.BDC={id:m.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},U.EMC={id:m.OPS.endMarkedContent,numArgs:0,variableArgs:!1},U.BX={id:m.OPS.beginCompat,numArgs:0,variableArgs:!1},U.EX={id:m.OPS.endCompat,numArgs:0,variableArgs:!1},U.BM=null,U.BD=null,U.true=null,U.fa=null,U.fal=null,U.fals=null,U.false=null,U.nu=null,U.nul=null,U.null=null});const D=20;function N(U,z,te){this.opMap=_(),this.parser=new v.Parser({lexer:new v.Lexer(U,this.opMap),xref:z}),this.stateManager=te,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return N.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(z){for(var te=z.args;;){var W=this.parser.getObj();if(W instanceof k.Cmd){var re=W.cmd,ee=this.opMap[re];if(!ee){(0,m.warn)(`Unknown command "${re}".`);continue}var X=ee.id,K=ee.numArgs,Z=te!==null?te.length:0;if(ee.variableArgs)Z>K&&(0,m.info)(`Command ${re}: expected [0, ${K}] args, but received ${Z} args.`);else{if(Z!==K){for(var se=this.nonProcessedArgs;Z>K;)se.push(te.shift()),Z--;for(;Z<K&&se.length!==0;)te===null&&(te=[]),te.unshift(se.pop()),Z++}if(Z<K){const ie=`command ${re}: expected ${K} args, but received ${Z} args.`;if(X>=m.OPS.moveTo&&X<=m.OPS.endPath&&++this._numInvalidPathOPS>D)throw new m.FormatError(`Invalid ${ie}`);(0,m.warn)(`Skipping ${ie}`),te!==null&&(te.length=0);continue}}return this.preprocessCommand(X,te),z.fn=X,z.args=te,!0}if(W===k.EOF)return!1;if(W!==null&&(te===null&&(te=[]),te.push(W),te.length>33))throw new m.FormatError("Too many arguments")}},preprocessCommand:function(z,te){switch(z|0){case m.OPS.save:this.stateManager.save();break;case m.OPS.restore:this.stateManager.restore();break;case m.OPS.transform:this.stateManager.transform(te);break}}},N}()},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.CMapFactory=f.IdentityCMap=f.CMap=void 0;var m=b(2),y=b(5),k=b(11),a=b(8),q=b(12),w=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"];const $=2**24-1;class Q{constructor(H=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=H}addCodespaceRange(H,Y,G){this.codespaceRanges[H-1].push(Y,G),this.numCodespaceRanges++}mapCidRange(H,Y,G){if(Y-H>$)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;H<=Y;)this._map[H++]=G++}mapBfRange(H,Y,G){if(Y-H>$)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var j=G.length-1;H<=Y;)this._map[H++]=G,G=G.substring(0,j)+String.fromCharCode(G.charCodeAt(j)+1)}mapBfRangeToArray(H,Y,G){if(Y-H>$)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const j=G.length;let L=0;for(;H<=Y&&L<j;)this._map[H]=G[L++],++H}mapOne(H,Y){this._map[H]=Y}lookup(H){return this._map[H]}contains(H){return this._map[H]!==void 0}forEach(H){const Y=this._map,G=Y.length;if(G<=65536)for(let j=0;j<G;j++)Y[j]!==void 0&&H(j,Y[j]);else for(const j in Y)H(j,Y[j])}charCodeOf(H){const Y=this._map;if(Y.length<=65536)return Y.indexOf(H);for(const G in Y)if(Y[G]===H)return G|0;return-1}getMap(){return this._map}readCharCode(H,Y,G){let j=0;const L=this.codespaceRanges;for(let R=0,T=L.length;R<T;R++){j=(j<<8|H.charCodeAt(Y+R))>>>0;const O=L[R];for(let P=0,B=O.length;P<B;){const M=O[P++],F=O[P++];if(j>=M&&j<=F){G.charcode=j,G.length=R+1;return}}}G.charcode=0,G.length=1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")||this._map.length!==65536)return!1;for(let H=0;H<65536;H++)if(this._map[H]!==H)return!1;return!0}}f.CMap=Q;class C extends Q{constructor(H,Y){super(),this.vertical=H,this.addCodespaceRange(Y,0,65535)}mapCidRange(H,Y,G){(0,m.unreachable)("should not call mapCidRange")}mapBfRange(H,Y,G){(0,m.unreachable)("should not call mapBfRange")}mapBfRangeToArray(H,Y,G){(0,m.unreachable)("should not call mapBfRangeToArray")}mapOne(H,Y){(0,m.unreachable)("should not call mapCidOne")}lookup(H){return Number.isInteger(H)&&H<=65535?H:void 0}contains(H){return Number.isInteger(H)&&H<=65535}forEach(H){for(let Y=0;Y<=65535;Y++)H(Y,Y)}charCodeOf(H){return Number.isInteger(H)&&H<=65535?H:-1}getMap(){const H=new Array(65536);for(let Y=0;Y<=65535;Y++)H[Y]=Y;return H}get length(){return 65536}get isIdentityCMap(){(0,m.unreachable)("should not access .isIdentityCMap")}}f.IdentityCMap=C;var v=function(){function H(B,M){for(var F=0,S=0;S<=M;S++)F=F<<8|B[S];return F>>>0}function Y(B,M){return M===1?String.fromCharCode(B[0],B[1]):M===3?String.fromCharCode(B[0],B[1],B[2],B[3]):String.fromCharCode.apply(null,B.subarray(0,M+1))}function G(B,M,F){for(var S=0,A=F;A>=0;A--)S+=B[A]+M[A],B[A]=S&255,S>>=8}function j(B,M){for(var F=1,S=M;S>=0&&F>0;S--)F+=B[S],B[S]=F&255,F>>=8}var L=16,R=19;function T(B){this.buffer=B,this.pos=0,this.end=B.length,this.tmpBuf=new Uint8Array(R)}T.prototype={readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber(){var B=0,M;do{var F=this.readByte();if(F<0)throw new m.FormatError("unexpected EOF in bcmap");M=!(F&128),B=B<<7|F&127}while(!M);return B},readSigned(){var B=this.readNumber();return B&1?~(B>>>1):B>>>1},readHex(B,M){B.set(this.buffer.subarray(this.pos,this.pos+M+1)),this.pos+=M+1},readHexNumber(B,M){var F,S=this.tmpBuf,A=0;do{var E=this.readByte();if(E<0)throw new m.FormatError("unexpected EOF in bcmap");F=!(E&128),S[A++]=E&127}while(!F);for(var _=M,D=0,N=0;_>=0;){for(;N<8&&S.length>0;)D=S[--A]<<N|D,N+=7;B[_]=D&255,_--,D>>=8,N-=8}},readHexSigned(B,M){this.readHexNumber(B,M);for(var F=B[M]&1?255:0,S=0,A=0;A<=M;A++)S=(S&1)<<8|B[A],B[A]=S>>1^F},readString(){for(var B=this.readNumber(),M="",F=0;F<B;F++)M+=String.fromCharCode(this.readNumber());return M}};function O(B,M,F){return new Promise(function(S,A){var E=new T(B),_=E.readByte();M.vertical=!!(_&1);for(var D=null,N=new Uint8Array(L),U=new Uint8Array(L),z=new Uint8Array(L),te=new Uint8Array(L),W=new Uint8Array(L),re,ee;(ee=E.readByte())>=0;){var X=ee>>5;if(X===7){switch(ee&31){case 0:E.readString();break;case 1:D=E.readString();break}continue}var K=!!(ee&16),Z=ee&15;if(Z+1>L)throw new Error("processBinaryCMap: Invalid dataSize.");var se=1,ie=E.readNumber(),de;switch(X){case 0:for(E.readHex(N,Z),E.readHexNumber(U,Z),G(U,N,Z),M.addCodespaceRange(Z+1,H(N,Z),H(U,Z)),de=1;de<ie;de++)j(U,Z),E.readHexNumber(N,Z),G(N,U,Z),E.readHexNumber(U,Z),G(U,N,Z),M.addCodespaceRange(Z+1,H(N,Z),H(U,Z));break;case 1:for(E.readHex(N,Z),E.readHexNumber(U,Z),G(U,N,Z),E.readNumber(),de=1;de<ie;de++)j(U,Z),E.readHexNumber(N,Z),G(N,U,Z),E.readHexNumber(U,Z),G(U,N,Z),E.readNumber();break;case 2:for(E.readHex(z,Z),re=E.readNumber(),M.mapOne(H(z,Z),re),de=1;de<ie;de++)j(z,Z),K||(E.readHexNumber(W,Z),G(z,W,Z)),re=E.readSigned()+(re+1),M.mapOne(H(z,Z),re);break;case 3:for(E.readHex(N,Z),E.readHexNumber(U,Z),G(U,N,Z),re=E.readNumber(),M.mapCidRange(H(N,Z),H(U,Z),re),de=1;de<ie;de++)j(U,Z),K?N.set(U):(E.readHexNumber(N,Z),G(N,U,Z)),E.readHexNumber(U,Z),G(U,N,Z),re=E.readNumber(),M.mapCidRange(H(N,Z),H(U,Z),re);break;case 4:for(E.readHex(z,se),E.readHex(te,Z),M.mapOne(H(z,se),Y(te,Z)),de=1;de<ie;de++)j(z,se),K||(E.readHexNumber(W,se),G(z,W,se)),j(te,Z),E.readHexSigned(W,Z),G(te,W,Z),M.mapOne(H(z,se),Y(te,Z));break;case 5:for(E.readHex(N,se),E.readHexNumber(U,se),G(U,N,se),E.readHex(te,Z),M.mapBfRange(H(N,se),H(U,se),Y(te,Z)),de=1;de<ie;de++)j(U,se),K?N.set(U):(E.readHexNumber(N,se),G(N,U,se)),E.readHexNumber(U,se),G(U,N,se),E.readHex(te,Z),M.mapBfRange(H(N,se),H(U,se),Y(te,Z));break;default:A(new Error("processBinaryCMap: Unknown type: "+X));return}}if(D){S(F(D));return}S(M)})}function P(){}return P.prototype={process:O},P}(),J=function(){function H(A){for(var E=0,_=0;_<A.length;_++)E=E<<8|A.charCodeAt(_);return E>>>0}function Y(A){if(!(0,m.isString)(A))throw new m.FormatError("Malformed CMap: expected string.")}function G(A){if(!Number.isInteger(A))throw new m.FormatError("Malformed CMap: expected int.")}function j(A,E){for(;;){var _=E.getObj();if((0,y.isEOF)(_))break;if((0,y.isCmd)(_,"endbfchar"))return;Y(_);var D=H(_);_=E.getObj(),Y(_);var N=_;A.mapOne(D,N)}}function L(A,E){for(;;){var _=E.getObj();if((0,y.isEOF)(_))break;if((0,y.isCmd)(_,"endbfrange"))return;Y(_);var D=H(_);_=E.getObj(),Y(_);var N=H(_);if(_=E.getObj(),Number.isInteger(_)||(0,m.isString)(_)){var U=Number.isInteger(_)?String.fromCharCode(_):_;A.mapBfRange(D,N,U)}else if((0,y.isCmd)(_,"[")){_=E.getObj();for(var z=[];!(0,y.isCmd)(_,"]")&&!(0,y.isEOF)(_);)z.push(_),_=E.getObj();A.mapBfRangeToArray(D,N,z)}else break}throw new m.FormatError("Invalid bf range.")}function R(A,E){for(;;){var _=E.getObj();if((0,y.isEOF)(_))break;if((0,y.isCmd)(_,"endcidchar"))return;Y(_);var D=H(_);_=E.getObj(),G(_);var N=_;A.mapOne(D,N)}}function T(A,E){for(;;){var _=E.getObj();if((0,y.isEOF)(_))break;if((0,y.isCmd)(_,"endcidrange"))return;Y(_);var D=H(_);_=E.getObj(),Y(_);var N=H(_);_=E.getObj(),G(_);var U=_;A.mapCidRange(D,N,U)}}function O(A,E){for(;;){var _=E.getObj();if((0,y.isEOF)(_))break;if((0,y.isCmd)(_,"endcodespacerange"))return;if(!(0,m.isString)(_))break;var D=H(_);if(_=E.getObj(),!(0,m.isString)(_))break;var N=H(_);A.addCodespaceRange(_.length,D,N)}throw new m.FormatError("Invalid codespace range.")}function P(A,E){var _=E.getObj();Number.isInteger(_)&&(A.vertical=!!_)}function B(A,E){var _=E.getObj();(0,y.isName)(_)&&(0,m.isString)(_.name)&&(A.name=_.name)}function M(A,E,_,D){var N,U;e:for(;;)try{var z=E.getObj();if((0,y.isEOF)(z))break;if((0,y.isName)(z))z.name==="WMode"?P(A,E):z.name==="CMapName"&&B(A,E),N=z;else if((0,y.isCmd)(z))switch(z.cmd){case"endcmap":break e;case"usecmap":(0,y.isName)(N)&&(U=N.name);break;case"begincodespacerange":O(A,E);break;case"beginbfchar":j(A,E);break;case"begincidchar":R(A,E);break;case"beginbfrange":L(A,E);break;case"begincidrange":T(A,E);break}}catch(te){if(te instanceof a.MissingDataException)throw te;(0,m.warn)("Invalid cMap data: "+te);continue}return!D&&U&&(D=U),D?F(A,_,D):Promise.resolve(A)}function F(A,E,_){return S(_,E).then(function(D){if(A.useCMap=D,A.numCodespaceRanges===0){for(var N=A.useCMap.codespaceRanges,U=0;U<N.length;U++)A.codespaceRanges[U]=N[U].slice();A.numCodespaceRanges=A.useCMap.numCodespaceRanges}return A.useCMap.forEach(function(z,te){A.contains(z)||A.mapOne(z,A.useCMap.lookup(z))}),A})}function S(A,E){return A==="Identity-H"?Promise.resolve(new C(!1,2)):A==="Identity-V"?Promise.resolve(new C(!0,2)):w.includes(A)?E?E(A).then(function(_){var D=_.cMapData,N=_.compressionType,U=new Q(!0);if(N===m.CMapCompressionType.BINARY)return new v().process(D,U,function(te){return F(U,E,te)});if(N===m.CMapCompressionType.NONE){var z=new k.Lexer(new q.Stream(D));return M(U,z,E,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))}):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+A))}return{async create(A){var E=A.encoding,_=A.fetchBuiltInCMap,D=A.useCMap;if((0,y.isName)(E))return S(E.name,_);if((0,y.isStream)(E)){var N=new Q,U=new k.Lexer(E);return M(N,U,_,D).then(function(z){return z.isIdentityCMap?S(z.name,_):z})}throw new Error("Encoding required.")}}}();f.CMapFactory=J},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getFontType=P,f.IdentityToUnicodeMap=f.ToUnicodeMap=f.FontFlags=f.Font=f.ErrorFont=f.SEAC_ANALYSIS_ENABLED=void 0;var m=b(2),y=b(30),k=b(33),a=b(32),q=b(34),w=b(35),$=b(8),Q=b(36),C=b(28),v=b(12),J=b(37);const ae=[[57344,63743],[1048576,1114109]];var H=1e3,Y=!0;f.SEAC_ANALYSIS_ENABLED=Y;const G=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],j=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];var L={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};f.FontFlags=L;var R=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function T(z){if(!!z.fontMatrix&&z.fontMatrix[0]!==m.FONT_IDENTITY_MATRIX[0]){var te=.001/z.fontMatrix[0],W=z.widths;for(var re in W)W[re]*=te;z.defaultWidth*=te}}function O(z,te){if(!z.hasIncludedToUnicodeMap&&!z.hasEncoding&&te!==z.defaultEncoding&&!(z.toUnicode instanceof S)){var W=[],re=(0,k.getGlyphsUnicode)();for(var ee in te){var X=te[ee],K=(0,w.getUnicodeForGlyph)(X,re);K!==-1&&(W[ee]=String.fromCharCode(K))}z.toUnicode.amend(W)}}function P(z,te){switch(z){case"Type1":return te==="Type1C"?m.FontType.TYPE1C:m.FontType.TYPE1;case"CIDFontType0":return te==="CIDFontType0C"?m.FontType.CIDFONTTYPE0C:m.FontType.CIDFONTTYPE0;case"OpenType":return m.FontType.OPENTYPE;case"TrueType":return m.FontType.TRUETYPE;case"CIDFontType2":return m.FontType.CIDFONTTYPE2;case"MMType1":return m.FontType.MMTYPE1;case"Type0":return m.FontType.TYPE0;default:return m.FontType.UNKNOWN}}function B(z,te){if(te[z]!==void 0)return z;var W=(0,w.getUnicodeForGlyph)(z,te);if(W!==-1){for(var re in te)if(te[re]===W)return re}return(0,m.info)("Unable to recover a standard glyph name for: "+z),z}var M=function(){function te(W,re,ee,X,K,Z,se,ie){this.fontChar=W,this.unicode=re,this.accent=ee,this.width=X,this.vmetric=K,this.operatorListId=Z,this.isSpace=se,this.isInFont=ie}return te.prototype.matchesForCache=function(W,re,ee,X,K,Z,se,ie){return this.fontChar===W&&this.unicode===re&&this.accent===ee&&this.width===X&&this.vmetric===K&&this.operatorListId===Z&&this.isSpace===se&&this.isInFont===ie},te}(),F=function(){function te(W=[]){this._map=W}return te.prototype={get length(){return this._map.length},forEach(W){for(var re in this._map)W(re,this._map[re].charCodeAt(0))},has(W){return this._map[W]!==void 0},get(W){return this._map[W]},charCodeOf(W){const re=this._map;if(re.length<=65536)return re.indexOf(W);for(const ee in re)if(re[ee]===W)return ee|0;return-1},amend(W){for(var re in W)this._map[re]=W[re]}},te}();f.ToUnicodeMap=F;var S=function(){function te(W,re){this.firstChar=W,this.lastChar=re}return te.prototype={get length(){return this.lastChar+1-this.firstChar},forEach(W){for(var re=this.firstChar,ee=this.lastChar;re<=ee;re++)W(re,re)},has(W){return this.firstChar<=W&&W<=this.lastChar},get(W){if(this.firstChar<=W&&W<=this.lastChar)return String.fromCharCode(W)},charCodeOf(W){return Number.isInteger(W)&&W>=this.firstChar&&W<=this.lastChar?W:-1},amend(W){(0,m.unreachable)("Should not call amend()")}},te}();f.IdentityToUnicodeMap=S;var A=function(){function te(Z,se,ie){Z[se]=ie>>8&255,Z[se+1]=ie&255}function W(Z,se,ie){Z[se]=ie>>24&255,Z[se+1]=ie>>16&255,Z[se+2]=ie>>8&255,Z[se+3]=ie&255}function re(Z,se,ie){var de,ce;if(ie instanceof Uint8Array)Z.set(ie,se);else if(typeof ie=="string")for(de=0,ce=ie.length;de<ce;de++)Z[se++]=ie.charCodeAt(de)&255;else for(de=0,ce=ie.length;de<ce;de++)Z[se++]=ie[de]&255}function ee(Z){this.sfnt=Z,this.tables=Object.create(null)}ee.getSearchParams=function(se,ie){for(var de=1,ce=0;(de^se)>de;)de<<=1,ce++;var he=de*ie;return{range:he,entry:ce,rangeShift:ie*se-he}};var X=12,K=16;return ee.prototype={toArray:function(){var se=this.sfnt,ie=this.tables,de=Object.keys(ie);de.sort();var ce=de.length,he,oe,ne,ue,le,fe=X+ce*K,pe=[fe];for(he=0;he<ce;he++){ue=ie[de[he]];var ve=(ue.length+3&-4)>>>0;fe+=ve,pe.push(fe)}var xe=new Uint8Array(fe);for(he=0;he<ce;he++)ue=ie[de[he]],re(xe,pe[he],ue);se==="true"&&(se=(0,m.string32)(65536)),xe[0]=se.charCodeAt(0)&255,xe[1]=se.charCodeAt(1)&255,xe[2]=se.charCodeAt(2)&255,xe[3]=se.charCodeAt(3)&255,te(xe,4,ce);var Ce=ee.getSearchParams(ce,16);for(te(xe,6,Ce.range),te(xe,8,Ce.entry),te(xe,10,Ce.rangeShift),fe=X,he=0;he<ce;he++){le=de[he],xe[fe]=le.charCodeAt(0)&255,xe[fe+1]=le.charCodeAt(1)&255,xe[fe+2]=le.charCodeAt(2)&255,xe[fe+3]=le.charCodeAt(3)&255;var be=0;for(oe=pe[he],ne=pe[he+1];oe<ne;oe+=4){var me=(0,$.readUint32)(xe,oe);be=be+me>>>0}W(xe,fe+4,be),W(xe,fe+8,pe[he]),W(xe,fe+12,ie[le].length),fe+=K}return xe},addTable:function(se,ie){if(se in this.tables)throw new Error("Table "+se+" already exists");this.tables[se]=ie}},ee}(),E=function(){function te(be,me,ge){var ye;this.name=be,this.loadedName=ge.loadedName,this.isType3Font=ge.isType3Font,this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(ge.flags&L.Serif),this.isSymbolicFont=!!(ge.flags&L.Symbolic),this.isMonospace=!!(ge.flags&L.FixedPitch);var Se=ge.type,Ee=ge.subtype;this.type=Se,this.subtype=Ee;let De="sans-serif";if(this.isMonospace?De="monospace":this.isSerifFont&&(De="serif"),this.fallbackName=De,this.differences=ge.differences,this.widths=ge.widths,this.defaultWidth=ge.defaultWidth,this.composite=ge.composite,this.cMap=ge.cMap,this.ascent=ge.ascent/H,this.descent=ge.descent/H,this.fontMatrix=ge.fontMatrix,this.bbox=ge.bbox,this.defaultEncoding=ge.defaultEncoding,this.toUnicode=ge.toUnicode,this.fallbackToUnicode=ge.fallbackToUnicode||new F,this.toFontChar=[],ge.type==="Type3"){for(ye=0;ye<256;ye++)this.toFontChar[ye]=this.differences[ye]||ge.defaultEncoding[ye];this.fontType=m.FontType.TYPE3;return}if(this.cidEncoding=ge.cidEncoding,this.vertical=!!ge.vertical,this.vertical&&(this.vmetrics=ge.vmetrics,this.defaultVMetrics=ge.defaultVMetrics),!me||me.isEmpty){me&&(0,m.warn)('Font file is empty in "'+be+'" ('+this.loadedName+")"),this.fallbackToSystemFont();return}[Se,Ee]=oe(me,ge),(Se!==this.type||Ee!==this.subtype)&&(0,m.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${Se}/${Ee}.`);try{var _e;switch(Se){case"MMType1":(0,m.info)("MMType1 font ("+be+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var Be=Ee==="Type1C"||Ee==="CIDFontType0C"?new U(me,ge):new N(be,me,ge);T(ge),_e=this.convert(be,Be,ge);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",_e=this.checkAndRepair(be,me,ge),this.isOpenType&&(T(ge),Se="OpenType");break;default:throw new m.FormatError(`Font ${Se} is not supported`)}}catch(Te){(0,m.warn)(Te),this.fallbackToSystemFont();return}this.data=_e,this.fontType=P(Se,Ee),this.fontMatrix=ge.fontMatrix,this.widths=ge.widths,this.defaultWidth=ge.defaultWidth,this.toUnicode=ge.toUnicode,this.seacMap=ge.seacMap}te.getFontID=function(){var be=1;return function(){return String(be++)}}();function W(be,me){return(be<<8)+me}function re(be,me,ge){be[me+1]=ge,be[me]=ge>>>8}function ee(be,me){var ge=(be<<8)+me;return ge&1<<15?ge-65536:ge}function X(be,me,ge,ye){return(be<<24)+(me<<16)+(ge<<8)+ye}function K(be){return String.fromCharCode(be>>8&255,be&255)}function Z(be){return be>32767?be=32767:be<-32768&&(be=-32768),String.fromCharCode(be>>8&255,be&255)}function se(be){var me=be.peekBytes(4);return(0,$.readUint32)(me,0)===65536||(0,m.bytesToString)(me)==="true"}function ie(be){const me=be.peekBytes(4);return(0,m.bytesToString)(me)==="ttcf"}function de(be){var me=be.peekBytes(4);return(0,m.bytesToString)(me)==="OTTO"}function ce(be){var me=be.peekBytes(2);return me[0]===37&&me[1]===33||me[0]===128&&me[1]===1}function he(be){const me=be.peekBytes(4);return me[0]>=1&&me[3]>=1&&me[3]<=4}function oe(be,{type:me,subtype:ge,composite:ye}){let Se,Ee;return se(be)||ie(be)?ye?Se="CIDFontType2":Se="TrueType":de(be)?ye?Se="CIDFontType2":Se="OpenType":ce(be)?ye?Se="CIDFontType0":Se=me==="MMType1"?"MMType1":"Type1":he(be)?ye?(Se="CIDFontType0",Ee="CIDFontType0C"):(Se=me==="MMType1"?"MMType1":"Type1",Ee="Type1C"):((0,m.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),Se=me,Ee=ge),[Se,Ee]}function ne(be,me,ge){for(var ye=[],Se,Ee=0,De=be.length;Ee<De;Ee++)Se=(0,w.getUnicodeForGlyph)(be[Ee],me),Se!==-1&&(ye[Ee]=Se);for(var _e in ge)Se=(0,w.getUnicodeForGlyph)(ge[_e],me),Se!==-1&&(ye[+_e]=Se);return ye}function ue(be,me,ge){var ye=Object.create(null),Se=[],Ee=0,De=ae[Ee][0],_e=ae[Ee][1];for(var Be in be){Be|=0;var Te=be[Be];if(!!me(Te)){if(De>_e){if(Ee++,Ee>=ae.length){(0,m.warn)("Ran out of space in font private use area.");break}De=ae[Ee][0],_e=ae[Ee][1]}var Fe=De++;Te===0&&(Te=ge),ye[Fe]=Te,Se[Be]=Fe}}return{toFontChar:Se,charCodeToGlyphId:ye,nextAvailableFontCharCode:De}}function le(be,me){var ge=[];for(var ye in be)be[ye]>=me||ge.push({fontCharCode:ye|0,glyphId:be[ye]});ge.length===0&&ge.push({fontCharCode:0,glyphId:0}),ge.sort(function(we,Ae){return we.fontCharCode-Ae.fontCharCode});for(var Se=[],Ee=ge.length,De=0;De<Ee;){var _e=ge[De].fontCharCode,Be=[ge[De].glyphId];++De;for(var Te=_e;De<Ee&&Te+1===ge[De].fontCharCode&&(Be.push(ge[De].glyphId),++Te,++De,Te!==65535););Se.push([_e,Te,Be])}return Se}function fe(be,me){var ge=le(be,me),ye=ge[ge.length-1][1]>65535?2:1,Se="\0\0"+K(ye)+"\0\0"+(0,m.string32)(4+ye*8),Ee,De,_e,Be;for(Ee=ge.length-1;Ee>=0&&!(ge[Ee][0]<=65535);--Ee);var Te=Ee+1;ge[Ee][0]<65535&&ge[Ee][1]===65535&&(ge[Ee][1]=65534);var Fe=ge[Ee][1]<65535?1:0,we=Te+Fe,Ae=A.getSearchParams(we,2),ke="",Pe="",Le="",Ne="",qe="",Oe=0,Ge,Ve,Xe,at;for(Ee=0,De=Te;Ee<De;Ee++){Ge=ge[Ee],Ve=Ge[0],Xe=Ge[1],ke+=K(Ve),Pe+=K(Xe),at=Ge[2];var Re=!0;for(_e=1,Be=at.length;_e<Be;++_e)if(at[_e]!==at[_e-1]+1){Re=!1;break}if(Re){var ze=at[0];Le+=K(ze-Ve&65535),Ne+=K(0)}else{var Me=(we-Ee)*2+Oe*2;for(Oe+=Xe-Ve+1,Le+=K(0),Ne+=K(Me),_e=0,Be=at.length;_e<Be;++_e)qe+=K(at[_e])}}Fe>0&&(Pe+="\xFF\xFF",ke+="\xFF\xFF",Le+="\0",Ne+="\0\0");var $e="\0\0"+K(2*we)+K(Ae.range)+K(Ae.entry)+K(Ae.rangeShift)+Pe+"\0\0"+ke+Le+Ne+qe,je="",Ze="";if(ye>1){for(Se+=`\0\0
|
|
86
|
+
`+(0,m.string32)(4+ye*8+4+$e.length),je="",Ee=0,De=ge.length;Ee<De;Ee++){Ge=ge[Ee],Ve=Ge[0],at=Ge[2];var Qe=at[0];for(_e=1,Be=at.length;_e<Be;++_e)at[_e]!==at[_e-1]+1&&(Xe=Ge[0]+_e-1,je+=(0,m.string32)(Ve)+(0,m.string32)(Xe)+(0,m.string32)(Qe),Ve=Xe+1,Qe=at[_e]);je+=(0,m.string32)(Ve)+(0,m.string32)(Ge[1])+(0,m.string32)(Qe)}Ze="\0\f\0\0"+(0,m.string32)(je.length+16)+"\0\0\0\0"+(0,m.string32)(je.length/12)}return Se+"\0"+K($e.length+4)+$e+Ze+je}function pe(be,me){me.pos=(me.start||0)+be.offset;var ge=me.getUint16();me.skip(60);var ye=me.getUint16();if(ge<4&&ye&768)return!1;var Se=me.getUint16(),Ee=me.getUint16();if(Se>Ee)return!1;me.skip(6);var De=me.getUint16();return De===0?!1:(be.data[8]=be.data[9]=0,!0)}function ve(be,me,ge){ge=ge||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var ye=0,Se=0,Ee=0,De=0,_e=null,Be=0;if(me){for(var Te in me){Te|=0,(_e>Te||!_e)&&(_e=Te),Be<Te&&(Be=Te);var Fe=(0,w.getUnicodeRangeFor)(Te);if(Fe<32)ye|=1<<Fe;else if(Fe<64)Se|=1<<Fe-32;else if(Fe<96)Ee|=1<<Fe-64;else if(Fe<123)De|=1<<Fe-96;else throw new m.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}Be>65535&&(Be=65535)}else _e=0,Be=255;var we=be.bbox||[0,0,0,0],Ae=ge.unitsPerEm||1/(be.fontMatrix||m.FONT_IDENTITY_MATRIX)[0],ke=be.ascentScaled?1:Ae/H,Pe=ge.ascent||Math.round(ke*(be.ascent||we[3])),Le=ge.descent||Math.round(ke*(be.descent||we[1]));Le>0&&be.descent>0&&we[1]<0&&(Le=-Le);var Ne=ge.yMax||Pe,qe=-ge.yMin||-Le;return"\0$\xF4\0\0\0\x8A\xBB\0\0\0\x8C\x8A\xBB\0\0\xDF\x001\0\0\0\0"+String.fromCharCode(be.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,m.string32)(ye)+(0,m.string32)(Se)+(0,m.string32)(Ee)+(0,m.string32)(De)+"*21*"+K(be.italicAngle?1:0)+K(_e||be.firstChar)+K(Be||be.lastChar)+K(Pe)+K(Le)+"\0d"+K(Ne)+K(qe)+"\0\0\0\0\0\0\0\0"+K(be.xHeight)+K(be.capHeight)+K(0)+K(_e||be.firstChar)+"\0"}function xe(be){var me=Math.floor(be.italicAngle*65536);return"\0\0\0"+(0,m.string32)(me)+"\0\0\0\0"+(0,m.string32)(be.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function Ce(be,me){me||(me=[[],[]]);var ge=[me[0][0]||"Original licence",me[0][1]||be,me[0][2]||"Unknown",me[0][3]||"uniqueID",me[0][4]||be,me[0][5]||"Version 0.11",me[0][6]||"",me[0][7]||"Unknown",me[0][8]||"Unknown",me[0][9]||"Unknown"],ye=[],Se,Ee,De,_e,Be;for(Se=0,Ee=ge.length;Se<Ee;Se++){Be=me[1][Se]||ge[Se];var Te=[];for(De=0,_e=Be.length;De<_e;De++)Te.push(K(Be.charCodeAt(De)));ye.push(Te.join(""))}var Fe=[ge,ye],we=["\0","\0"],Ae=["\0\0","\0"],ke=["\0\0"," "],Pe=ge.length*we.length,Le="\0\0"+K(Pe)+K(Pe*12+6),Ne=0;for(Se=0,Ee=we.length;Se<Ee;Se++){var qe=Fe[Se];for(De=0,_e=qe.length;De<_e;De++){Be=qe[De];var Oe=we[Se]+Ae[Se]+ke[Se]+K(De)+K(Be.length)+K(Ne);Le+=Oe,Ne+=Be.length}}return Le+=ge.join("")+ye.join(""),Le}return te.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var be=Q.FontRendererFactory.create(this,Y);return(0,m.shadow)(this,"renderer",be)},exportData(be=!1){const me=be?[...G,...j]:G,ge=Object.create(null);let ye,Se;for(ye of me)Se=this[ye],Se!==void 0&&(ge[ye]=Se);return ge},fallbackToSystemFont:function(){this.missingFile=!0;var me=this.name,ge=this.type,ye=this.subtype;let Se=me.replace(/[,_]/g,"-").replace(/\s/g,"");var Ee=(0,q.getStdFontMap)(),De=(0,q.getNonStdFontMap)(),_e=!!Ee[Se]||!!(De[Se]&&Ee[De[Se]]);if(Se=Ee[Se]||De[Se]||Se,this.bold=Se.search(/bold/gi)!==-1,this.italic=Se.search(/oblique/gi)!==-1||Se.search(/italic/gi)!==-1,this.black=me.search(/Black/g)!==-1,this.remeasure=Object.keys(this.widths).length>0,_e&&ge==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const Fe=(0,q.getGlyphMapForStandardFonts)(),we=[];for(const Ae in Fe)we[+Ae]=Fe[Ae];if(/Arial-?Black/i.test(me)){var Be=(0,q.getSupplementalGlyphMapForArialBlack)();for(const Ae in Be)we[+Ae]=Be[Ae]}else if(/Calibri/i.test(me)){const Ae=(0,q.getSupplementalGlyphMapForCalibri)();for(const ke in Ae)we[+ke]=Ae[ke]}var Te=this.toUnicode instanceof S;Te||this.toUnicode.forEach(function(Ae,ke){we[+Ae]=ke}),this.toFontChar=we,this.toUnicode=new F(we)}else if(/Symbol/i.test(Se))this.toFontChar=ne(a.SymbolSetEncoding,(0,k.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(Se))/Wingdings/i.test(me)&&(0,m.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=ne(a.ZapfDingbatsEncoding,(0,k.getDingbatsGlyphsUnicode)(),this.differences);else if(_e)this.toFontChar=ne(this.defaultEncoding,(0,k.getGlyphsUnicode)(),this.differences);else{const Fe=(0,k.getGlyphsUnicode)(),we=[];if(this.toUnicode.forEach((Ae,ke)=>{if(!this.composite){var Pe=this.differences[Ae]||this.defaultEncoding[Ae];const Le=(0,w.getUnicodeForGlyph)(Pe,Fe);Le!==-1&&(ke=Le)}we[+Ae]=ke}),this.composite&&this.toUnicode instanceof S&&/Verdana/i.test(me)){const Ae=(0,q.getGlyphMapForStandardFonts)();for(const ke in Ae)we[+ke]=Ae[ke]}this.toFontChar=we}this.loadedName=Se.split("-")[0],this.fontType=P(ge,ye)},checkAndRepair:function(me,ge,ye){const Se=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function Ee(Ue,He){const We=Object.create(null);We["OS/2"]=null,We.cmap=null,We.head=null,We.hhea=null,We.hmtx=null,We.maxp=null,We.name=null,We.post=null;for(let Ke=0;Ke<He;Ke++){const nt=De(Ue);!Se.includes(nt.tag)||nt.length!==0&&(We[nt.tag]=nt)}return We}function De(Ue){var He=(0,m.bytesToString)(Ue.getBytes(4)),We=Ue.getInt32()>>>0,Ke=Ue.getInt32()>>>0,nt=Ue.getInt32()>>>0,it=Ue.pos;Ue.pos=Ue.start?Ue.start:0,Ue.skip(Ke);var ot=Ue.getBytes(nt);return Ue.pos=it,He==="head"&&(ot[8]=ot[9]=ot[10]=ot[11]=0,ot[17]|=32),{tag:He,checksum:We,length:nt,offset:Ke,data:ot}}function _e(Ue){return{version:(0,m.bytesToString)(Ue.getBytes(4)),numTables:Ue.getUint16(),searchRange:Ue.getUint16(),entrySelector:Ue.getUint16(),rangeShift:Ue.getUint16()}}function Be(Ue){const He=(0,m.bytesToString)(Ue.getBytes(4));(0,m.assert)(He==="ttcf","Must be a TrueType Collection font.");const We=Ue.getUint16(),Ke=Ue.getUint16(),nt=Ue.getInt32()>>>0,it=[];for(let Ye=0;Ye<nt;Ye++)it.push(Ue.getInt32()>>>0);const ot={ttcTag:He,majorVersion:We,minorVersion:Ke,numFonts:nt,offsetTable:it};switch(We){case 1:return ot;case 2:return ot.dsigTag=Ue.getInt32()>>>0,ot.dsigLength=Ue.getInt32()>>>0,ot.dsigOffset=Ue.getInt32()>>>0,ot}throw new m.FormatError(`Invalid TrueType Collection majorVersion: ${We}.`)}function Te(Ue,He){const{numFonts:We,offsetTable:Ke}=Be(Ue);for(let nt=0;nt<We;nt++){Ue.pos=(Ue.start||0)+Ke[nt];const it=_e(Ue),ot=Ee(Ue,it.numTables);if(!ot.name)throw new m.FormatError('TrueType Collection font must contain a "name" table.');const Ye=Ne(ot.name);for(let pt=0,dt=Ye.length;pt<dt;pt++)for(let bt=0,ht=Ye[pt].length;bt<ht;bt++){const Tt=Ye[pt][bt];if(Tt&&Tt.replace(/\s/g,"")===He)return{header:it,tables:ot}}}throw new m.FormatError(`TrueType Collection does not contain "${He}" font.`)}function Fe(Ue,He,We,Ke){if(!Ue)return(0,m.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var nt,it=(He.start?He.start:0)+Ue.offset;He.pos=it,He.skip(2);for(var ot=He.getUint16(),Ye,pt=!1,dt=0;dt<ot;dt++){var bt=He.getUint16(),ht=He.getUint16(),Tt=He.getInt32()>>>0,Et=!1;if(!(Ye&&Ye.platformId===bt&&Ye.encodingId===ht)&&(bt===0&&ht===0||bt===1&&ht===0?Et=!0:bt===3&&ht===1&&(Ke||!Ye)?(Et=!0,We||(pt=!0)):We&&bt===3&&ht===0&&(Et=!0,pt=!0),Et&&(Ye={platformId:bt,encodingId:ht,offset:Tt}),pt))break}if(Ye&&(He.pos=it+Ye.offset),!Ye||He.peekByte()===-1)return(0,m.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var Ct=He.getUint16();He.skip(2+2);var wt=!1,St=[],st,Ot;if(Ct===0){for(st=0;st<256;st++){var ct=He.getByte();!ct||St.push({charCode:st,glyphId:ct})}wt=!0}else if(Ct===4){var It=He.getUint16()>>1;He.skip(6);var xt,Pt=[];for(xt=0;xt<It;xt++)Pt.push({end:He.getUint16()});for(He.skip(2),xt=0;xt<It;xt++)Pt[xt].start=He.getUint16();for(xt=0;xt<It;xt++)Pt[xt].delta=He.getUint16();var Kt=0;for(xt=0;xt<It;xt++){nt=Pt[xt];var Qt=He.getUint16();if(!Qt){nt.offsetIndex=-1;continue}var Ut=(Qt>>1)-(It-xt);nt.offsetIndex=Ut,Kt=Math.max(Kt,Ut+nt.end-nt.start+1)}var Xt=[];for(st=0;st<Kt;st++)Xt.push(He.getUint16());for(xt=0;xt<It;xt++){nt=Pt[xt],it=nt.start;var Nt=nt.end,Mt=nt.delta;for(Ut=nt.offsetIndex,st=it;st<=Nt;st++)st!==65535&&(Ot=Ut<0?st:Xt[Ut+st-it],Ot=Ot+Mt&65535,St.push({charCode:st,glyphId:Ot}))}}else if(Ct===6){var jt=He.getUint16(),nr=He.getUint16();for(st=0;st<nr;st++){Ot=He.getUint16();var ir=jt+st;St.push({charCode:ir,glyphId:Ot})}}else return(0,m.warn)("cmap table has unsupported format: "+Ct),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};for(St.sort(function(sr,or){return sr.charCode-or.charCode}),dt=1;dt<St.length;dt++)St[dt-1].charCode===St[dt].charCode&&(St.splice(dt,1),dt--);return{platformId:Ye.platformId,encodingId:Ye.encodingId,mappings:St,hasShortCmap:wt}}function we(Ue,He,We,Ke,nt){if(!He){We&&(We.data=null);return}Ue.pos=(Ue.start?Ue.start:0)+He.offset,Ue.pos+=4,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=2,Ue.pos+=8,Ue.pos+=2;var it=Ue.getUint16();it>Ke&&((0,m.info)("The numOfMetrics ("+it+") should not be greater than the numGlyphs ("+Ke+")"),it=Ke,He.data[34]=(it&65280)>>8,He.data[35]=it&255);var ot=Ke-it,Ye=ot-(We.length-it*4>>1);if(Ye>0){var pt=new Uint8Array(We.length+Ye*2);pt.set(We.data),nt&&(pt[We.length]=We.data[2],pt[We.length+1]=We.data[3]),We.data=pt}}function Ae(Ue,He,We,Ke,nt,it){var ot={length:0,sizeOfInstructions:0};if(We-He<=12)return ot;var Ye=Ue.subarray(He,We),pt=ee(Ye[0],Ye[1]);if(pt<0)return pt=-1,re(Ye,0,pt),Ke.set(Ye,nt),ot.length=Ye.length,ot;var dt,bt=10,ht=0;for(dt=0;dt<pt;dt++){var Tt=Ye[bt]<<8|Ye[bt+1];ht=Tt+1,bt+=2}var Et=bt,Ct=Ye[bt]<<8|Ye[bt+1];ot.sizeOfInstructions=Ct,bt+=2+Ct;var wt=bt,St=0;for(dt=0;dt<ht;dt++){var st=Ye[bt++];st&192&&(Ye[bt-1]=st&63);let It=2;st&2?It=1:st&16&&(It=0);let xt=2;st&4?xt=1:st&32&&(xt=0);const Pt=It+xt;if(St+=Pt,st&8){var Ot=Ye[bt++];dt+=Ot,St+=Ot*Pt}}if(St===0)return ot;var ct=bt+St;return ct>Ye.length?ot:!it&&Ct>0?(Ke.set(Ye.subarray(0,Et),nt),Ke.set([0,0],nt+Et),Ke.set(Ye.subarray(wt,ct),nt+Et+2),ct-=Ct,Ye.length-ct>3&&(ct=ct+3&-4),ot.length=ct,ot):Ye.length-ct>3?(ct=ct+3&-4,Ke.set(Ye.subarray(0,ct),nt),ot.length=ct,ot):(Ke.set(Ye,nt),ot.length=Ye.length,ot)}function ke(Ue,He,We){var Ke=Ue.data,nt=X(Ke[0],Ke[1],Ke[2],Ke[3]);nt>>16!==1&&((0,m.info)("Attempting to fix invalid version in head table: "+nt),Ke[0]=0,Ke[1]=1,Ke[2]=0,Ke[3]=0);var it=W(Ke[50],Ke[51]);if(it<0||it>1){(0,m.info)("Attempting to fix invalid indexToLocFormat in head table: "+it);var ot=He+1;if(We===ot<<1)Ke[50]=0,Ke[51]=0;else if(We===ot<<2)Ke[50]=0,Ke[51]=1;else throw new m.FormatError("Could not fix indexToLocFormat: "+it)}}function Pe(Ue,He,We,Ke,nt,it,ot){var Ye,pt,dt;Ke?(Ye=4,pt=function(Nt,Mt){return Nt[Mt]<<24|Nt[Mt+1]<<16|Nt[Mt+2]<<8|Nt[Mt+3]},dt=function(Nt,Mt,jt){Nt[Mt]=jt>>>24&255,Nt[Mt+1]=jt>>16&255,Nt[Mt+2]=jt>>8&255,Nt[Mt+3]=jt&255}):(Ye=2,pt=function(Nt,Mt){return Nt[Mt]<<9|Nt[Mt+1]<<1},dt=function(Nt,Mt,jt){Nt[Mt]=jt>>9&255,Nt[Mt+1]=jt>>1&255});var bt=it?We+1:We,ht=Ye*(1+bt),Tt=new Uint8Array(ht);Tt.set(Ue.data.subarray(0,ht)),Ue.data=Tt;var Et=He.data,Ct=Et.length,wt=new Uint8Array(Ct),St=pt(Tt,0),st=0,Ot=Object.create(null);dt(Tt,0,st);var ct,It;for(ct=0,It=Ye;ct<We;ct++,It+=Ye){var xt=pt(Tt,It);xt===0&&(xt=St),xt>Ct&&(Ct+3&-4)===xt&&(xt=Ct),xt>Ct&&(St=xt);var Pt=Ae(Et,St,xt,wt,st,nt),Kt=Pt.length;Kt===0&&(Ot[ct]=!0),Pt.sizeOfInstructions>ot&&(ot=Pt.sizeOfInstructions),st+=Kt,dt(Tt,It,st),St=xt}if(st===0){var Qt=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(ct=0,It=Ye;ct<bt;ct++,It+=Ye)dt(Tt,It,Qt.length);He.data=Qt}else if(it){var Ut=pt(Tt,Ye);wt.length>Ut+st?He.data=wt.subarray(0,Ut+st):(He.data=new Uint8Array(Ut+st),He.data.set(wt.subarray(0,st))),He.data.set(wt.subarray(0,Ut),st),dt(Ue.data,Tt.length-Ye,st+Ut)}else He.data=wt.subarray(0,st);return{missingGlyphs:Ot,maxSizeOfInstructions:ot}}function Le(Ue,He,We){var Ke=(ge.start?ge.start:0)+Ue.offset;ge.pos=Ke;var nt=Ue.length,it=Ke+nt,ot=ge.getInt32();ge.skip(28);var Ye,pt=!0,dt;switch(ot){case 65536:Ye=R;break;case 131072:var bt=ge.getUint16();if(bt!==We){pt=!1;break}var ht=[];for(dt=0;dt<bt;++dt){var Tt=ge.getUint16();if(Tt>=32768){pt=!1;break}ht.push(Tt)}if(!pt)break;for(var Et=[],Ct=[];ge.pos<it;){var wt=ge.getByte();for(Ct.length=wt,dt=0;dt<wt;++dt)Ct[dt]=String.fromCharCode(ge.getByte());Et.push(Ct.join(""))}for(Ye=[],dt=0;dt<bt;++dt){var St=ht[dt];if(St<258){Ye.push(R[St]);continue}Ye.push(Et[St-258])}break;case 196608:break;default:(0,m.warn)("Unknown/unsupported post table version "+ot),pt=!1,He.defaultEncoding&&(Ye=He.defaultEncoding);break}return He.glyphNames=Ye,pt}function Ne(Ue){var He=(ge.start?ge.start:0)+Ue.offset;ge.pos=He;var We=[[],[]],Ke=Ue.length,nt=He+Ke,it=ge.getUint16(),ot=6;if(it!==0||Ke<ot)return We;var Ye=ge.getUint16(),pt=ge.getUint16(),dt=[],bt=12,ht,Tt;for(ht=0;ht<Ye&&ge.pos+bt<=nt;ht++){var Et={platform:ge.getUint16(),encoding:ge.getUint16(),language:ge.getUint16(),name:ge.getUint16(),length:ge.getUint16(),offset:ge.getUint16()};(Et.platform===1&&Et.encoding===0&&Et.language===0||Et.platform===3&&Et.encoding===1&&Et.language===1033)&&dt.push(Et)}for(ht=0,Tt=dt.length;ht<Tt;ht++){var Ct=dt[ht];if(!(Ct.length<=0)){var wt=He+pt+Ct.offset;if(!(wt+Ct.length>nt)){ge.pos=wt;var St=Ct.name;if(Ct.encoding){for(var st="",Ot=0,ct=Ct.length;Ot<ct;Ot+=2)st+=String.fromCharCode(ge.getUint16());We[1][St]=st}else We[0][St]=(0,m.bytesToString)(ge.getBytes(Ct.length))}}}return We}var qe=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function Oe(Ue,He){for(var We=Ue.data,Ke=0,nt,it,ot,Ye,pt,dt=0,bt=0,ht=[],Tt=[],Et=[],Ct=He.tooComplexToFollowFunctions,wt=!1,St=0,st=0,Ot=We.length;Ke<Ot;){var ct=We[Ke++];if(ct===64)if(it=We[Ke++],wt||st)Ke+=it;else for(nt=0;nt<it;nt++)ht.push(We[Ke++]);else if(ct===65)if(it=We[Ke++],wt||st)Ke+=it*2;else for(nt=0;nt<it;nt++)ot=We[Ke++],ht.push(ot<<8|We[Ke++]);else if((ct&248)===176)if(it=ct-176+1,wt||st)Ke+=it;else for(nt=0;nt<it;nt++)ht.push(We[Ke++]);else if((ct&248)===184)if(it=ct-184+1,wt||st)Ke+=it*2;else for(nt=0;nt<it;nt++)ot=We[Ke++],ht.push(ot<<8|We[Ke++]);else if(ct===43&&!Ct){if(!wt&&!st){if(Ye=ht[ht.length-1],isNaN(Ye))(0,m.info)("TT: CALL empty stack (or invalid entry).");else if(He.functionsUsed[Ye]=!0,Ye in He.functionsStackDeltas){const Pt=ht.length+He.functionsStackDeltas[Ye];if(Pt<0){(0,m.warn)("TT: CALL invalid functions stack delta."),He.hintsValid=!1;return}ht.length=Pt}else if(Ye in He.functionsDefined&&!Et.includes(Ye)){if(Tt.push({data:We,i:Ke,stackTop:ht.length-1}),Et.push(Ye),pt=He.functionsDefined[Ye],!pt){(0,m.warn)("TT: CALL non-existent function"),He.hintsValid=!1;return}We=pt.data,Ke=pt.i}}}else if(ct===44&&!Ct)(wt||st)&&((0,m.warn)("TT: nested FDEFs not allowed"),Ct=!0),wt=!0,bt=Ke,Ye=ht.pop(),He.functionsDefined[Ye]={data:We,i:Ke};else if(ct===45)if(wt)wt=!1,dt=Ke;else{if(pt=Tt.pop(),!pt){(0,m.warn)("TT: ENDF bad stack"),He.hintsValid=!1;return}Ye=Et.pop(),We=pt.data,Ke=pt.i,He.functionsStackDeltas[Ye]=ht.length-pt.stackTop}else if(ct===137)(wt||st)&&((0,m.warn)("TT: nested IDEFs not allowed"),Ct=!0),wt=!0,bt=Ke;else if(ct===88)++St;else if(ct===27)st=St;else if(ct===89)st===St&&(st=0),--St;else if(ct===28&&!wt&&!st){var It=ht[ht.length-1];It>0&&(Ke+=It-1)}if(!wt&&!st){let Pt=0;for(ct<=142?Pt=qe[ct]:ct>=192&&ct<=223?Pt=-1:ct>=224&&(Pt=-2),ct>=113&&ct<=117&&(it=ht.pop(),isNaN(it)||(Pt=-it*2));Pt<0&&ht.length>0;)ht.pop(),Pt++;for(;Pt>0;)ht.push(NaN),Pt--}}He.tooComplexToFollowFunctions=Ct;var xt=[We];Ke>We.length&&xt.push(new Uint8Array(Ke-We.length)),bt>dt&&((0,m.warn)("TT: complementing a missing function tail"),xt.push(new Uint8Array([34,45]))),Ve(Ue,xt)}function Ge(Ue,He){if(!Ue.tooComplexToFollowFunctions){if(Ue.functionsDefined.length>He){(0,m.warn)("TT: more functions defined than expected"),Ue.hintsValid=!1;return}for(var We=0,Ke=Ue.functionsUsed.length;We<Ke;We++){if(We>He){(0,m.warn)("TT: invalid function id: "+We),Ue.hintsValid=!1;return}if(Ue.functionsUsed[We]&&!Ue.functionsDefined[We]){(0,m.warn)("TT: undefined function: "+We),Ue.hintsValid=!1;return}}}}function Ve(Ue,He){if(He.length>1){var We=0,Ke,nt;for(Ke=0,nt=He.length;Ke<nt;Ke++)We+=He[Ke].length;We=We+3&-4;var it=new Uint8Array(We),ot=0;for(Ke=0,nt=He.length;Ke<nt;Ke++)it.set(He[Ke],ot),ot+=He[Ke].length;Ue.data=it,Ue.length=We}}function Xe(Ue,He,We,Ke){var nt={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(Ue&&Oe(Ue,nt),He&&Oe(He,nt),Ue&&Ge(nt,Ke),We&&We.length&1){var it=new Uint8Array(We.length+1);it.set(We.data),We.data=it}return nt.hintsValid}ge=new v.Stream(new Uint8Array(ge.getBytes()));let at,Re;if(ie(ge)){const Ue=Te(ge,this.name);at=Ue.header,Re=Ue.tables}else at=_e(ge),Re=Ee(ge,at.numTables);let Me,ze;var $e=!Re["CFF "];if($e){if(!Re.loca)throw new m.FormatError('Required "loca" table is not found');Re.glyf||((0,m.warn)('Required "glyf" table is not found -- trying to recover.'),Re.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const Ue=ye.composite&&((ye.cidToGidMap||[]).length>0||!(ye.cMap instanceof C.IdentityCMap));if(at.version==="OTTO"&&!Ue||!Re.head||!Re.hhea||!Re.maxp||!Re.post)return ze=new v.Stream(Re["CFF "].data),Me=new U(ze,ye),T(ye),this.convert(me,Me,ye);delete Re.glyf,delete Re.loca,delete Re.fpgm,delete Re.prep,delete Re["cvt "],this.isOpenType=!0}if(!Re.maxp)throw new m.FormatError('Required "maxp" table is not found');ge.pos=(ge.start||0)+Re.maxp.offset;var je=ge.getInt32();const Ze=ge.getUint16();let Qe=Ze+1,ut=!0;Qe>65535&&(ut=!1,Qe=Ze,(0,m.warn)("Not enough space in glyfs to duplicate first glyph."));var lt=0,Ft=0;if(je>=65536&&Re.maxp.length>=22){ge.pos+=8;var kt=ge.getUint16();kt>2&&(Re.maxp.data[14]=0,Re.maxp.data[15]=2),ge.pos+=4,lt=ge.getUint16(),ge.pos+=4,Ft=ge.getUint16()}Re.maxp.data[4]=Qe>>8,Re.maxp.data[5]=Qe&255;var ft=Xe(Re.fpgm,Re.prep,Re["cvt "],lt);if(ft||(delete Re.fpgm,delete Re.prep,delete Re["cvt "]),we(ge,Re.hhea,Re.hmtx,Qe,ut),!Re.head)throw new m.FormatError('Required "head" table is not found');ke(Re.head,Ze,$e?Re.loca.length:0);var gt=Object.create(null);if($e){var Dt=W(Re.head.data[50],Re.head.data[51]),At=Pe(Re.loca,Re.glyf,Ze,Dt,ft,ut,Ft);gt=At.missingGlyphs,je>=65536&&Re.maxp.length>=22&&(Re.maxp.data[26]=At.maxSizeOfInstructions>>8,Re.maxp.data[27]=At.maxSizeOfInstructions&255)}if(!Re.hhea)throw new m.FormatError('Required "hhea" table is not found');Re.hhea.data[10]===0&&Re.hhea.data[11]===0&&(Re.hhea.data[10]=255,Re.hhea.data[11]=255);var Rt={unitsPerEm:W(Re.head.data[18],Re.head.data[19]),yMax:W(Re.head.data[42],Re.head.data[43]),yMin:ee(Re.head.data[38],Re.head.data[39]),ascent:W(Re.hhea.data[4],Re.hhea.data[5]),descent:ee(Re.hhea.data[6],Re.hhea.data[7])};this.ascent=Rt.ascent/Rt.unitsPerEm,this.descent=Rt.descent/Rt.unitsPerEm,Re.post&&Le(Re.post,ye,Ze),Re.post={tag:"post",data:xe(ye)};const Lt=[];function $t(Ue){return!gt[Ue]}if(ye.composite){var Vt=ye.cidToGidMap||[],Wt=Vt.length===0;ye.cMap.forEach(function(Ue,He){if(He>65535)throw new m.FormatError("Max size of CID is 65,535");var We=-1;Wt?We=He:Vt[He]!==void 0&&(We=Vt[He]),We>=0&&We<Ze&&$t(We)&&(Lt[Ue]=We)})}else{var Gt=Fe(Re.cmap,ge,this.isSymbolicFont,ye.hasEncoding),qt=Gt.platformId,Ht=Gt.encodingId,Ie=Gt.mappings,rt=Ie.length;if(ye.hasEncoding&&(qt===3&&Ht===1||qt===1&&Ht===0)||qt===-1&&Ht===-1&&!!(0,a.getEncoding)(ye.baseEncodingName)){var Je=[];(ye.baseEncodingName==="MacRomanEncoding"||ye.baseEncodingName==="WinAnsiEncoding")&&(Je=(0,a.getEncoding)(ye.baseEncodingName));var mt=(0,k.getGlyphsUnicode)();for(let Ue=0;Ue<256;Ue++){var vt,yt;if(this.differences&&Ue in this.differences?vt=this.differences[Ue]:Ue in Je&&Je[Ue]!==""?vt=Je[Ue]:vt=a.StandardEncoding[Ue],!!vt){yt=B(vt,mt);var Bt;qt===3&&Ht===1?Bt=mt[yt]:qt===1&&Ht===0&&(Bt=a.MacRomanEncoding.indexOf(yt));var _t=!1;for(let He=0;He<rt;++He)if(Ie[He].charCode===Bt){Lt[Ue]=Ie[He].glyphId,_t=!0;break}if(!_t&&ye.glyphNames){var zt=ye.glyphNames.indexOf(vt);zt===-1&&yt!==vt&&(zt=ye.glyphNames.indexOf(yt)),zt>0&&$t(zt)&&(Lt[Ue]=zt)}}}}else if(qt===0&&Ht===0)for(let Ue=0;Ue<rt;++Ue)Lt[Ie[Ue].charCode]=Ie[Ue].glyphId;else for(let Ue=0;Ue<rt;++Ue){let He=Ie[Ue].charCode;qt===3&&He>=61440&&He<=61695&&(He&=255),Lt[He]=Ie[Ue].glyphId}}Lt.length===0&&(Lt[0]=0);let Jt=Qe-1;ut||(Jt=0);var Yt=ue(Lt,$t,Jt);if(this.toFontChar=Yt.toFontChar,Re.cmap={tag:"cmap",data:fe(Yt.charCodeToGlyphId,Qe)},(!Re["OS/2"]||!pe(Re["OS/2"],ge))&&(Re["OS/2"]={tag:"OS/2",data:ve(ye,Yt.charCodeToGlyphId,Rt)}),!$e)try{ze=new v.Stream(Re["CFF "].data);var tr=new y.CFFParser(ze,ye,Y);Me=tr.parse(),Me.duplicateFirstGlyph();var rr=new y.CFFCompiler(Me);Re["CFF "].data=rr.compile()}catch{(0,m.warn)("Failed to compile font "+ye.loadedName)}if(!Re.name)Re.name={tag:"name",data:Ce(this.name)};else{var ar=Ne(Re.name);Re.name.data=Ce(me,ar)}var Zt=new A(at.version);for(var er in Re)Zt.addTable(er,Re[er].data);return Zt.toArray()},convert:function(me,ge,ye){ye.fixedPitch=!1,ye.builtInEncoding&&O(ye,ye.builtInEncoding);let Se=1;ge instanceof U&&(Se=ge.numGlyphs-1);var Ee=ge.getGlyphMapping(ye),De=ue(Ee,ge.hasGlyphId.bind(ge),Se);this.toFontChar=De.toFontChar;var _e=ge.numGlyphs;function Be(Ze,Qe){var ut=null;for(var lt in Ze)Qe===Ze[lt]&&(ut||(ut=[]),ut.push(lt|0));return ut}function Te(Ze,Qe){for(var ut in Ze)if(Qe===Ze[ut])return ut|0;return De.charCodeToGlyphId[De.nextAvailableFontCharCode]=Qe,De.nextAvailableFontCharCode++}var Fe=ge.seacs;if(Fe&&Fe.length){var we=ye.fontMatrix||m.FONT_IDENTITY_MATRIX,Ae=ge.getCharset(),ke=Object.create(null);for(var Pe in Fe){Pe|=0;var Le=Fe[Pe],Ne=a.StandardEncoding[Le[2]],qe=a.StandardEncoding[Le[3]],Oe=Ae.indexOf(Ne),Ge=Ae.indexOf(qe);if(!(Oe<0||Ge<0)){var Ve={x:Le[0]*we[0]+Le[1]*we[2]+we[4],y:Le[0]*we[1]+Le[1]*we[3]+we[5]},Xe=Be(Ee,Pe);if(!!Xe)for(let Ze=0,Qe=Xe.length;Ze<Qe;Ze++){var at=Xe[Ze],Re=De.charCodeToGlyphId,Me=Te(Re,Oe),ze=Te(Re,Ge);ke[at]={baseFontCharCode:Me,accentFontCharCode:ze,accentOffset:Ve}}}}ye.seacMap=ke}var $e=1/(ye.fontMatrix||m.FONT_IDENTITY_MATRIX)[0],je=new A("OTTO");return je.addTable("CFF ",ge.data),je.addTable("OS/2",ve(ye,De.charCodeToGlyphId)),je.addTable("cmap",fe(De.charCodeToGlyphId,_e)),je.addTable("head","\0\0\0\0\0\0\0\0\0\0_<\xF5\0\0"+Z($e)+"\0\0\0\0\x9E\v~'\0\0\0\0\x9E\v~'\0\0"+Z(ye.descent)+"\xFF"+Z(ye.ascent)+K(ye.italicAngle?2:0)+"\0\0\0\0\0\0\0"),je.addTable("hhea","\0\0\0"+Z(ye.ascent)+Z(ye.descent)+"\0\0\xFF\xFF\0\0\0\0\0\0"+Z(ye.capHeight)+Z(Math.tan(ye.italicAngle)*ye.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+K(_e)),je.addTable("hmtx",function(){var Qe=ge.charstrings,ut=ge.cff?ge.cff.widths:null,lt="\0\0\0\0";for(let ft=1,gt=_e;ft<gt;ft++){var Ft=0;if(Qe){var kt=Qe[ft-1];Ft="width"in kt?kt.width:0}else ut&&(Ft=Math.ceil(ut[ft]||0));lt+=K(Ft)+K(0)}return lt}()),je.addTable("maxp","\0\0P\0"+K(_e)),je.addTable("name",Ce(me)),je.addTable("post",xe(ye)),je.toArray()},get spaceWidth(){for(var be=["space","minus","one","i","I"],me,ge=0,ye=be.length;ge<ye;ge++){var Se=be[ge];if(Se in this.widths){me=this.widths[Se];break}var Ee=(0,k.getGlyphsUnicode)(),De=Ee[Se],_e=0;if(this.composite&&this.cMap.contains(De)&&(_e=this.cMap.lookup(De)),!_e&&this.toUnicode&&(_e=this.toUnicode.charCodeOf(De)),_e<=0&&(_e=De),me=this.widths[_e],me)break}return me=me||this.defaultWidth,(0,m.shadow)(this,"spaceWidth",me)},charToGlyph:function(me,ge){var ye,Se,Ee,De=me;this.cMap&&this.cMap.contains(me)&&(De=this.cMap.lookup(me)),Se=this.widths[De],Se=(0,m.isNum)(Se)?Se:this.defaultWidth;var _e=this.vmetrics&&this.vmetrics[De];let Be=this.toUnicode.get(me)||this.fallbackToUnicode.get(me)||me;typeof Be=="number"&&(Be=String.fromCharCode(Be));var Te=me in this.toFontChar;if(ye=this.toFontChar[me]||me,this.missingFile){const Pe=this.differences[me]||this.defaultEncoding[me];(Pe===".notdef"||Pe==="")&&this.type==="Type1"&&(ye=32),ye=(0,w.mapSpecialUnicodeValues)(ye)}this.isType3Font&&(Ee=ye);var Fe=null;if(this.seacMap&&this.seacMap[me]){Te=!0;var we=this.seacMap[me];ye=we.baseFontCharCode,Fe={fontChar:String.fromCodePoint(we.accentFontCharCode),offset:we.accentOffset}}let Ae="";typeof ye=="number"&&(ye<=1114111?Ae=String.fromCodePoint(ye):(0,m.warn)(`charToGlyph - invalid fontCharCode: ${ye}`));var ke=this.glyphCache[me];return(!ke||!ke.matchesForCache(Ae,Be,Fe,Se,_e,Ee,ge,Te))&&(ke=new M(Ae,Be,Fe,Se,_e,Ee,ge,Te),this.glyphCache[me]=ke),ke},charsToGlyphs:function(me){var ge=this.charsCache,ye,Se,Ee;if(ge&&(ye=ge[me],ye))return ye;ge||(ge=this.charsCache=Object.create(null)),ye=[];var De=me,_e=0,Be;if(this.cMap)for(var Te=Object.create(null);_e<me.length;){this.cMap.readCharCode(me,_e,Te),Ee=Te.charcode;var Fe=Te.length;_e+=Fe;var we=Fe===1&&me.charCodeAt(_e-1)===32;Se=this.charToGlyph(Ee,we),ye.push(Se)}else for(_e=0,Be=me.length;_e<Be;++_e)Ee=me.charCodeAt(_e),Se=this.charToGlyph(Ee,Ee===32),ye.push(Se);return ge[De]=ye},get glyphCacheValues(){return Object.values(this.glyphCache)}},te}();f.Font=E;var _=function(){function te(W){this.error=W,this.loadedName="g_font_error",this.missingFile=!0}return te.prototype={charsToGlyphs:function(){return[]},exportData(W=!1){return{error:this.error}}},te}();f.ErrorFont=_;function D(z,te,W){var re=Object.create(null),ee,X,K,Z=!!(z.flags&L.Symbolic);if(z.baseEncodingName)for(K=(0,a.getEncoding)(z.baseEncodingName),X=0;X<K.length;X++)ee=W.indexOf(K[X]),ee>=0?re[X]=ee:re[X]=0;else if(Z)for(X in te)re[X]=te[X];else for(K=a.StandardEncoding,X=0;X<K.length;X++)ee=W.indexOf(K[X]),ee>=0?re[X]=ee:re[X]=0;var se=z.differences,ie;if(se)for(X in se){var de=se[X];if(ee=W.indexOf(de),ee===-1){ie||(ie=(0,k.getGlyphsUnicode)());var ce=B(de,ie);ce!==de&&(ee=W.indexOf(ce))}ee>=0?re[X]=ee:re[X]=0}return re}var N=function(){function te(X,K,Z){for(var se=X.length,ie=K.length,de=se-ie,ce=Z,he,oe=!1;ce<de;){for(he=0;he<ie&&X[ce+he]===K[he];)he++;if(he>=ie){for(ce+=he;ce<se&&(0,$.isWhiteSpace)(X[ce]);)ce++;oe=!0;break}ce++}return{found:oe,length:ce}}function W(X,K){var Z=[101,101,120,101,99],se=X.pos,ie,de,ce;try{ie=X.getBytes(K),de=ie.length}catch(ue){if(ue instanceof $.MissingDataException)throw ue}if(de===K&&(ce=te(ie,Z,K-2*Z.length),ce.found&&ce.length===K))return{stream:new v.Stream(ie),length:K};(0,m.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),X.pos=se;for(var he=2048,oe;;){var ne=X.peekBytes(he);if(ce=te(ne,Z,0),ce.length===0)break;if(X.pos+=ce.length,ce.found){oe=X.pos-se;break}}return X.pos=se,oe?{stream:new v.Stream(X.getBytes(oe)),length:oe}:((0,m.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new v.Stream(X.getBytes(K)),length:K})}function re(X,K){var Z=X.getBytes();return{stream:new v.Stream(Z),length:Z.length}}function ee(X,K,Z){var se=6,ie=Z.length1;Z.length2;var de=K.peekBytes(se),ce=de[0]===128&&de[1]===1;ce&&(K.skip(se),ie=de[5]<<24|de[4]<<16|de[3]<<8|de[2]);var he=W(K,ie),oe=new J.Type1Parser(he.stream,!1,Y);oe.extractFontHeader(Z),ce&&(de=K.getBytes(se),de[5]<<24|de[4]<<16|de[3]<<8|de[2]);var ne=re(K),ue=new J.Type1Parser(ne.stream,!0,Y),le=ue.extractFontProgram(Z);for(const xe in le.properties)Z[xe]=le.properties[xe];var fe=le.charstrings,pe=this.getType2Charstrings(fe),ve=this.getType2Subrs(le.subrs);this.charstrings=fe,this.data=this.wrap(X,pe,this.charstrings,ve,Z),this.seacs=this.getSeacs(le.charstrings)}return ee.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var K=[".notdef"],Z=this.charstrings,se=0;se<Z.length;se++)K.push(Z[se].glyphName);return K},getGlyphMapping:function(K){var Z=this.charstrings;if(K.composite){const oe=Object.create(null);for(let ne=0,ue=Z.length;ne<ue;ne++){const le=K.cMap.charCodeOf(ne);oe[le]=ne+1}return oe}var se=[".notdef"],ie;for(ie=0;ie<Z.length;ie++)se.push(Z[ie].glyphName);var de=K.builtInEncoding;if(de){var ce=Object.create(null);for(var he in de)ie=se.indexOf(de[he]),ie>=0&&(ce[he]=ie)}return D(K,ce,se)},hasGlyphId:function(K){if(K<0||K>=this.numGlyphs)return!1;if(K===0)return!0;var Z=this.charstrings[K-1];return Z.charstring.length>0},getSeacs:function(K){var Z,se,ie=[];for(Z=0,se=K.length;Z<se;Z++){var de=K[Z];de.seac&&(ie[Z+1]=de.seac)}return ie},getType2Charstrings:function(K){for(var Z=[],se=0,ie=K.length;se<ie;se++)Z.push(K[se].charstring);return Z},getType2Subrs:function(K){var Z=0,se=K.length;se<1133?Z=107:se<33769?Z=1131:Z=32768;var ie=[],de;for(de=0;de<Z;de++)ie.push([11]);for(de=0;de<se;de++)ie.push(K[de]);return ie},wrap:function(K,Z,se,ie,de){var ce=new y.CFF;ce.header=new y.CFFHeader(1,0,4,4),ce.names=[K];var he=new y.CFFTopDict;he.setByName("version",391),he.setByName("Notice",392),he.setByName("FullName",393),he.setByName("FamilyName",394),he.setByName("Weight",395),he.setByName("Encoding",null),he.setByName("FontMatrix",de.fontMatrix),he.setByName("FontBBox",de.bbox),he.setByName("charset",null),he.setByName("CharStrings",null),he.setByName("Private",null),ce.topDict=he;var oe=new y.CFFStrings;oe.add("Version 0.11"),oe.add("See original notice"),oe.add(K),oe.add(K),oe.add("Medium"),ce.strings=oe,ce.globalSubrIndex=new y.CFFIndex;var ne=Z.length,ue=[".notdef"],le,fe;for(le=0;le<ne;le++){const Se=se[le].glyphName;y.CFFStandardStrings.indexOf(Se)===-1&&oe.add(Se),ue.push(Se)}ce.charset=new y.CFFCharset(!1,0,ue);var pe=new y.CFFIndex;for(pe.add([139,14]),le=0;le<ne;le++)pe.add(Z[le]);ce.charStrings=pe;var ve=new y.CFFPrivateDict;ve.setByName("Subrs",null);var xe=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(le=0,fe=xe.length;le<fe;le++){var Ce=xe[le];if(Ce in de.privateData){var be=de.privateData[Ce];if(Array.isArray(be))for(var me=be.length-1;me>0;me--)be[me]-=be[me-1];ve.setByName(Ce,be)}}ce.topDict.privateDict=ve;var ge=new y.CFFIndex;for(le=0,fe=ie.length;le<fe;le++)ge.add(ie[le]);ve.subrsIndex=ge;var ye=new y.CFFCompiler(ce);return ye.compile()}},ee}(),U=function(){function te(W,re){this.properties=re;var ee=new y.CFFParser(W,re,Y);this.cff=ee.parse(),this.cff.duplicateFirstGlyph();var X=new y.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=X.compile()}catch{(0,m.warn)("Failed to compile font "+re.loadedName),this.data=W}}return te.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var re=this.cff,ee=this.properties,X=re.charset.charset,K,Z;if(ee.composite){K=Object.create(null);let de;if(re.isCIDFont)for(Z=0;Z<X.length;Z++){var se=X[Z];de=ee.cMap.charCodeOf(se),K[de]=Z}else for(Z=0;Z<re.charStrings.count;Z++)de=ee.cMap.charCodeOf(Z),K[de]=Z;return K}var ie=re.encoding?re.encoding.encoding:null;return K=D(ee,ie,X),K},hasGlyphId:function(re){return this.cff.hasGlyphId(re)}},te}()},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.CFFFDSelect=f.CFFCompiler=f.CFFPrivateDict=f.CFFTopDict=f.CFFCharset=f.CFFIndex=f.CFFStrings=f.CFFHeader=f.CFF=f.CFFParser=f.CFFStandardStrings=void 0;var m=b(2),y=b(31),k=b(32),a=10,q=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];f.CFFStandardStrings=q;const w=391;var $=function(){var B=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],M=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(A,E){A[E-2]=A[E-2]+A[E-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(A,E){A[E-2]=A[E-2]-A[E-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(A,E){A[E-2]=A[E-2]/A[E-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(A,E){A[E-1]=-A[E-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(A,E){A[E-2]=A[E-2]*A[E-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];function F(S,A,E){this.bytes=S.getBytes(),this.properties=A,this.seacAnalysisEnabled=!!E}return F.prototype={parse:function(){var A=this.properties,E=new Q;this.cff=E;var _=this.parseHeader(),D=this.parseIndex(_.endPos),N=this.parseIndex(D.endPos),U=this.parseIndex(N.endPos),z=this.parseIndex(U.endPos),te=this.parseDict(N.obj.get(0)),W=this.createDict(H,te,E.strings);E.header=_.obj,E.names=this.parseNameIndex(D.obj),E.strings=this.parseStringIndex(U.obj),E.topDict=W,E.globalSubrIndex=z.obj,this.parsePrivateDict(E.topDict),E.isCIDFont=W.hasName("ROS");var re=W.getByName("CharStrings"),ee=this.parseIndex(re).obj,X=W.getByName("FontMatrix");X&&(A.fontMatrix=X);var K=W.getByName("FontBBox");K&&(A.ascent=Math.max(K[3],K[1]),A.descent=Math.min(K[1],K[3]),A.ascentScaled=!0);var Z,se;if(E.isCIDFont){for(var ie=this.parseIndex(W.getByName("FDArray")).obj,de=0,ce=ie.count;de<ce;++de){var he=ie.get(de),oe=this.createDict(H,this.parseDict(he),E.strings);this.parsePrivateDict(oe),E.fdArray.push(oe)}se=null,Z=this.parseCharsets(W.getByName("charset"),ee.count,E.strings,!0),E.fdSelect=this.parseFDSelect(W.getByName("FDSelect"),ee.count)}else Z=this.parseCharsets(W.getByName("charset"),ee.count,E.strings,!1),se=this.parseEncoding(W.getByName("Encoding"),A,E.strings,Z.charset);E.charset=Z,E.encoding=se;var ne=this.parseCharStrings({charStrings:ee,localSubrIndex:W.privateDict.subrsIndex,globalSubrIndex:z.obj,fdSelect:E.fdSelect,fdArray:E.fdArray,privateDict:W.privateDict});return E.charStrings=ne.charStrings,E.seacs=ne.seacs,E.widths=ne.widths,E},parseHeader:function(){for(var A=this.bytes,E=A.length,_=0;_<E&&A[_]!==1;)++_;if(_>=E)throw new m.FormatError("Invalid CFF header");_!==0&&((0,m.info)("cff data is shifted"),A=A.subarray(_),this.bytes=A);var D=A[0],N=A[1],U=A[2],z=A[3],te=new C(D,N,U,z);return{obj:te,endPos:U}},parseDict:function(A){var E=0;function _(){var W=A[E++];return W===30?D():W===28?(W=A[E++],W=(W<<24|A[E++]<<16)>>16,W):W===29?(W=A[E++],W=W<<8|A[E++],W=W<<8|A[E++],W=W<<8|A[E++],W):W>=32&&W<=246?W-139:W>=247&&W<=250?(W-247)*256+A[E++]+108:W>=251&&W<=254?-((W-251)*256)-A[E++]-108:((0,m.warn)('CFFParser_parseDict: "'+W+'" is a reserved command.'),NaN)}function D(){var W="",re=15;const ee=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];for(var X=A.length;E<X;){var K=A[E++],Z=K>>4,se=K&15;if(Z===re||(W+=ee[Z],se===re))break;W+=ee[se]}return parseFloat(W)}var N=[],U=[];E=0;for(var z=A.length;E<z;){var te=A[E];te<=21?(te===12&&(te=te<<8|A[++E]),U.push([te,N]),N=[],++E):N.push(_())}return U},parseIndex:function(A){var E=new J,_=this.bytes,D=_[A++]<<8|_[A++],N=[],U=A,z,te;if(D!==0){var W=_[A++],re=A+(D+1)*W-1;for(z=0,te=D+1;z<te;++z){for(var ee=0,X=0;X<W;++X)ee<<=8,ee+=_[A++];N.push(re+ee)}U=N[D]}for(z=0,te=N.length-1;z<te;++z){var K=N[z],Z=N[z+1];E.add(_.subarray(K,Z))}return{obj:E,endPos:U}},parseNameIndex:function(A){for(var E=[],_=0,D=A.count;_<D;++_){var N=A.get(_);E.push((0,m.bytesToString)(N))}return E},parseStringIndex:function(A){for(var E=new v,_=0,D=A.count;_<D;++_){var N=A.get(_);E.add((0,m.bytesToString)(N))}return E},createDict:function(A,E,_){for(var D=new A(_),N=0,U=E.length;N<U;++N){var z=E[N],te=z[0],W=z[1];D.setByKey(te,W)}return D},parseCharString:function(A,E,_,D){if(!E||A.callDepth>a)return!1;for(var N=A.stackSize,U=A.stack,z=E.length,te=0;te<z;){var W=E[te++],re=null;if(W===12){var ee=E[te++];ee===0?(E[te-2]=139,E[te-1]=22,N=0):re=M[ee]}else if(W===28)U[N]=(E[te]<<24|E[te+1]<<16)>>16,te+=2,N++;else if(W===14){if(N>=4&&(N-=4,this.seacAnalysisEnabled))return A.seac=U.slice(N,N+4),!1;re=B[W]}else if(W>=32&&W<=246)U[N]=W-139,N++;else if(W>=247&&W<=254)U[N]=W<251?(W-247<<8)+E[te]+108:-(W-251<<8)-E[te]-108,te++,N++;else if(W===255)U[N]=(E[te]<<24|E[te+1]<<16|E[te+2]<<8|E[te+3])/65536,te+=4,N++;else if(W===19||W===20)A.hints+=N>>1,te+=A.hints+7>>3,N%=2,re=B[W];else if(W===10||W===29){var X;if(W===10?X=_:X=D,!X)return re=B[W],(0,m.warn)("Missing subrsIndex for "+re.id),!1;var K=32768;X.count<1240?K=107:X.count<33900&&(K=1131);var Z=U[--N]+K;if(Z<0||Z>=X.count||isNaN(Z))return re=B[W],(0,m.warn)("Out of bounds subrIndex for "+re.id),!1;A.stackSize=N,A.callDepth++;var se=this.parseCharString(A,X.get(Z),_,D);if(!se)return!1;A.callDepth--,N=A.stackSize;continue}else{if(W===11)return A.stackSize=N,!0;re=B[W]}if(re){if(re.stem&&(A.hints+=N>>1,W===3||W===23?A.hasVStems=!0:A.hasVStems&&(W===1||W===18)&&((0,m.warn)("CFF stem hints are in wrong order"),E[te-1]=W===1?3:23)),"min"in re&&!A.undefStack&&N<re.min)return(0,m.warn)("Not enough parameters for "+re.id+"; actual: "+N+", expected: "+re.min),!1;A.firstStackClearing&&re.stackClearing&&(A.firstStackClearing=!1,N-=re.min,N>=2&&re.stem?N%=2:N>1&&(0,m.warn)("Found too many parameters for stack-clearing command"),N>0&&U[N-1]>=0&&(A.width=U[N-1])),"stackDelta"in re?("stackFn"in re&&re.stackFn(U,N),N+=re.stackDelta):re.stackClearing?N=0:re.resetStack?(N=0,A.undefStack=!1):re.undefStack&&(N=0,A.undefStack=!0,A.firstStackClearing=!1)}}return A.stackSize=N,!0},parseCharStrings({charStrings:S,localSubrIndex:A,globalSubrIndex:E,fdSelect:_,fdArray:D,privateDict:N}){for(var U=[],z=[],te=S.count,W=0;W<te;W++){var re=S.get(W),ee={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},X=!0,K=null,Z=N;if(_&&D.length){var se=_.getFDIndex(W);se===-1&&((0,m.warn)("Glyph index is not in fd select."),X=!1),se>=D.length&&((0,m.warn)("Invalid fd index for glyph index."),X=!1),X&&(Z=D[se].privateDict,K=Z.subrsIndex)}else A&&(K=A);if(X&&(X=this.parseCharString(ee,re,K,E)),ee.width!==null){const ie=Z.getByName("nominalWidthX");z[W]=ie+ee.width}else{const ie=Z.getByName("defaultWidthX");z[W]=ie}ee.seac!==null&&(U[W]=ee.seac),X||S.set(W,new Uint8Array([14]))}return{charStrings:S,seacs:U,widths:z}},emptyPrivateDictionary:function(A){var E=this.createDict(Y,[],A.strings);A.setByKey(18,[0,0]),A.privateDict=E},parsePrivateDict:function(A){if(!A.hasName("Private")){this.emptyPrivateDictionary(A);return}var E=A.getByName("Private");if(!Array.isArray(E)||E.length!==2){A.removeByName("Private");return}var _=E[0],D=E[1];if(_===0||D>=this.bytes.length){this.emptyPrivateDictionary(A);return}var N=D+_,U=this.bytes.subarray(D,N),z=this.parseDict(U),te=this.createDict(Y,z,A.strings);if(A.privateDict=te,!!te.getByName("Subrs")){var W=te.getByName("Subrs"),re=D+W;if(W===0||re>=this.bytes.length){this.emptyPrivateDictionary(A);return}var ee=this.parseIndex(re);te.subrsIndex=ee.obj}},parseCharsets:function(A,E,_,D){if(A===0)return new j(!0,G.ISO_ADOBE,y.ISOAdobeCharset);if(A===1)return new j(!0,G.EXPERT,y.ExpertCharset);if(A===2)return new j(!0,G.EXPERT_SUBSET,y.ExpertSubsetCharset);var N=this.bytes,U=A,z=N[A++];const te=[D?0:".notdef"];var W,re,ee;switch(E-=1,z){case 0:for(ee=0;ee<E;ee++)W=N[A++]<<8|N[A++],te.push(D?W:_.get(W));break;case 1:for(;te.length<=E;)for(W=N[A++]<<8|N[A++],re=N[A++],ee=0;ee<=re;ee++)te.push(D?W++:_.get(W++));break;case 2:for(;te.length<=E;)for(W=N[A++]<<8|N[A++],re=N[A++]<<8|N[A++],ee=0;ee<=re;ee++)te.push(D?W++:_.get(W++));break;default:throw new m.FormatError("Unknown charset format")}var X=A,K=N.subarray(U,X);return new j(!1,z,te,K)},parseEncoding:function(A,E,_,D){var N=Object.create(null),U=this.bytes,z=!1,te,W,re,ee=null;function X(){var le=U[A++];for(W=0;W<le;W++){var fe=U[A++],pe=(U[A++]<<8)+(U[A++]&255);N[fe]=D.indexOf(_.get(pe))}}if(A===0||A===1){z=!0,te=A;var K=A?k.ExpertEncoding:k.StandardEncoding;for(W=0,re=D.length;W<re;W++){var Z=K.indexOf(D[W]);Z!==-1&&(N[Z]=W)}}else{var se=A;switch(te=U[A++],te&127){case 0:var ie=U[A++];for(W=1;W<=ie;W++)N[U[A++]]=W;break;case 1:var de=U[A++],ce=1;for(W=0;W<de;W++)for(var he=U[A++],oe=U[A++],ne=he;ne<=he+oe;ne++)N[ne]=ce++;break;default:throw new m.FormatError(`Unknown encoding format: ${te} in CFF`)}var ue=A;te&128&&(U[se]&=127,X()),ee=U.subarray(se,ue)}return te=te&127,new L(z,te,N,ee)},parseFDSelect:function(A,E){var _=this.bytes,D=_[A++],N=[],U;switch(D){case 0:for(U=0;U<E;++U){var z=_[A++];N.push(z)}break;case 3:var te=_[A++]<<8|_[A++];for(U=0;U<te;++U){var W=_[A++]<<8|_[A++];U===0&&W!==0&&((0,m.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),W=0);for(var re=_[A++],ee=_[A]<<8|_[A+1],X=W;X<ee;++X)N.push(re)}A+=2;break;default:throw new m.FormatError(`parseFDSelect: Unknown format "${D}".`)}if(N.length!==E)throw new m.FormatError("parseFDSelect: Invalid font data.");return new R(D,N)}},F}();f.CFFParser=$;var Q=function(){function B(){this.header=null,this.names=[],this.topDict=null,this.strings=new v,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return B.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535){(0,m.warn)("Not enough space in charstrings to duplicate first glyph.");return}var F=this.charStrings.get(0);this.charStrings.add(F),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])},hasGlyphId:function(F){if(F<0||F>=this.charStrings.count)return!1;var S=this.charStrings.get(F);return S.length>0}},B}();f.CFF=Q;var C=function(){function B(M,F,S,A){this.major=M,this.minor=F,this.hdrSize=S,this.offSize=A}return B}();f.CFFHeader=C;var v=function(){function B(){this.strings=[]}return B.prototype={get:function(F){return F>=0&&F<=w-1?q[F]:F-w<=this.strings.length?this.strings[F-w]:q[0]},getSID:function(F){let S=q.indexOf(F);return S!==-1?S:(S=this.strings.indexOf(F),S!==-1?S+w:-1)},add:function(F){this.strings.push(F)},get count(){return this.strings.length}},B}();f.CFFStrings=v;var J=function(){function B(){this.objects=[],this.length=0}return B.prototype={add:function(F){this.length+=F.length,this.objects.push(F)},set:function(F,S){this.length+=S.length-this.objects[F].length,this.objects[F]=S},get:function(F){return this.objects[F]},get count(){return this.objects.length}},B}();f.CFFIndex=J;var ae=function(){function B(M,F){this.keyToNameMap=M.keyToNameMap,this.nameToKeyMap=M.nameToKeyMap,this.defaults=M.defaults,this.types=M.types,this.opcodes=M.opcodes,this.order=M.order,this.strings=F,this.values=Object.create(null)}return B.prototype={setByKey:function(F,S){if(!(F in this.keyToNameMap))return!1;var A=S.length;if(A===0)return!0;for(var E=0;E<A;E++)if(isNaN(S[E]))return(0,m.warn)('Invalid CFFDict value: "'+S+'" for key "'+F+'".'),!0;var _=this.types[F];return(_==="num"||_==="sid"||_==="offset")&&(S=S[0]),this.values[F]=S,!0},setByName:function(F,S){if(!(F in this.nameToKeyMap))throw new m.FormatError(`Invalid dictionary name "${F}"`);this.values[this.nameToKeyMap[F]]=S},hasName:function(F){return this.nameToKeyMap[F]in this.values},getByName:function(F){if(!(F in this.nameToKeyMap))throw new m.FormatError(`Invalid dictionary name ${F}"`);var S=this.nameToKeyMap[F];return S in this.values?this.values[S]:this.defaults[S]},removeByName:function(F){delete this.values[this.nameToKeyMap[F]]}},B.createTables=function(F){for(var S={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},A=0,E=F.length;A<E;++A){var _=F[A],D=Array.isArray(_[0])?(_[0][0]<<8)+_[0][1]:_[0];S.keyToNameMap[D]=_[1],S.nameToKeyMap[_[1]]=D,S.types[D]=_[2],S.defaults[D]=_[3],S.opcodes[D]=Array.isArray(_[0])?_[0]:[_[0]],S.order.push(D)}return S},B}(),H=function(){var B=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],M=null;function F(S){M===null&&(M=ae.createTables(B)),ae.call(this,M,S),this.privateDict=null}return F.prototype=Object.create(ae.prototype),F}();f.CFFTopDict=H;var Y=function(){var B=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],M=null;function F(S){M===null&&(M=ae.createTables(B)),ae.call(this,M,S),this.subrsIndex=null}return F.prototype=Object.create(ae.prototype),F}();f.CFFPrivateDict=Y;var G={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},j=function(){function B(M,F,S,A){this.predefined=M,this.format=F,this.charset=S,this.raw=A}return B}();f.CFFCharset=j;var L=function(){function B(M,F,S,A){this.predefined=M,this.format=F,this.encoding=S,this.raw=A}return B}(),R=function(){function B(M,F){this.format=M,this.fdSelect=F}return B.prototype={getFDIndex:function(F){return F<0||F>=this.fdSelect.length?-1:this.fdSelect[F]}},B}();f.CFFFDSelect=R;var T=function(){function B(){this.offsets=Object.create(null)}return B.prototype={isTracking:function(F){return F in this.offsets},track:function(F,S){if(F in this.offsets)throw new m.FormatError(`Already tracking location of ${F}`);this.offsets[F]=S},offset:function(F){for(var S in this.offsets)this.offsets[S]+=F},setEntryLocation:function(F,S,A){if(!(F in this.offsets))throw new m.FormatError(`Not tracking location of ${F}`);for(var E=A.data,_=this.offsets[F],D=5,N=0,U=S.length;N<U;++N){var z=N*D+_,te=z+1,W=z+2,re=z+3,ee=z+4;if(E[z]!==29||E[te]!==0||E[W]!==0||E[re]!==0||E[ee]!==0)throw new m.FormatError("writing to an offset that is not empty");var X=S[N];E[z]=29,E[te]=X>>24&255,E[W]=X>>16&255,E[re]=X>>8&255,E[ee]=X&255}}},B}(),O=function(){function B(M){this.cff=M}return B.prototype={compile:function(){var F=this.cff,S={data:[],length:0,add:function(ce){this.data=this.data.concat(ce),this.length=this.data.length}},A=this.compileHeader(F.header);S.add(A);var E=this.compileNameIndex(F.names);if(S.add(E),F.isCIDFont&&F.topDict.hasName("FontMatrix")){var _=F.topDict.getByName("FontMatrix");F.topDict.removeByName("FontMatrix");for(var D=0,N=F.fdArray.length;D<N;D++){var U=F.fdArray[D],z=_.slice(0);U.hasName("FontMatrix")&&(z=m.Util.transform(z,U.getByName("FontMatrix"))),U.setByName("FontMatrix",z)}}F.topDict.setByName("charset",0);var te=this.compileTopDicts([F.topDict],S.length,F.isCIDFont);S.add(te.output);var W=te.trackers[0],re=this.compileStringIndex(F.strings.strings);S.add(re);var ee=this.compileIndex(F.globalSubrIndex);if(S.add(ee),F.encoding&&F.topDict.hasName("Encoding"))if(F.encoding.predefined)W.setEntryLocation("Encoding",[F.encoding.format],S);else{var X=this.compileEncoding(F.encoding);W.setEntryLocation("Encoding",[S.length],S),S.add(X)}var K=this.compileCharset(F.charset,F.charStrings.count,F.strings,F.isCIDFont);W.setEntryLocation("charset",[S.length],S),S.add(K);var Z=this.compileCharStrings(F.charStrings);if(W.setEntryLocation("CharStrings",[S.length],S),S.add(Z),F.isCIDFont){W.setEntryLocation("FDSelect",[S.length],S);var se=this.compileFDSelect(F.fdSelect);S.add(se),te=this.compileTopDicts(F.fdArray,S.length,!0),W.setEntryLocation("FDArray",[S.length],S),S.add(te.output);var ie=te.trackers;this.compilePrivateDicts(F.fdArray,ie,S)}return this.compilePrivateDicts([F.topDict],[W],S),S.add([0]),S.data},encodeNumber:function(F){return parseFloat(F)===parseInt(F,10)&&!isNaN(F)?this.encodeInteger(F):this.encodeFloat(F)},encodeFloat:function(F){var S=F.toString(),A=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(S);if(A){var E=parseFloat("1e"+((A[2]?+A[2]:0)+A[1].length));S=(Math.round(F*E)/E).toString()}var _="",D,N;for(D=0,N=S.length;D<N;++D){var U=S[D];U==="e"?_+=S[++D]==="-"?"c":"b":U==="."?_+="a":U==="-"?_+="e":_+=U}_+=_.length&1?"f":"ff";var z=[30];for(D=0,N=_.length;D<N;D+=2)z.push(parseInt(_.substring(D,D+2),16));return z},encodeInteger:function(F){var S;return F>=-107&&F<=107?S=[F+139]:F>=108&&F<=1131?(F=F-108,S=[(F>>8)+247,F&255]):F>=-1131&&F<=-108?(F=-F-108,S=[(F>>8)+251,F&255]):F>=-32768&&F<=32767?S=[28,F>>8&255,F&255]:S=[29,F>>24&255,F>>16&255,F>>8&255,F&255],S},compileHeader:function(F){return[F.major,F.minor,F.hdrSize,F.offSize]},compileNameIndex:function(F){for(var S=new J,A=0,E=F.length;A<E;++A){for(var _=F[A],D=Math.min(_.length,127),N=new Array(D),U=0;U<D;U++){var z=_[U];(z<"!"||z>"~"||z==="["||z==="]"||z==="("||z===")"||z==="{"||z==="}"||z==="<"||z===">"||z==="/"||z==="%")&&(z="_"),N[U]=z}N=N.join(""),N===""&&(N="Bad_Font_Name"),S.add((0,m.stringToBytes)(N))}return this.compileIndex(S)},compileTopDicts:function(F,S,A){for(var E=[],_=new J,D=0,N=F.length;D<N;++D){var U=F[D];A&&(U.removeByName("CIDFontVersion"),U.removeByName("CIDFontRevision"),U.removeByName("CIDFontType"),U.removeByName("CIDCount"),U.removeByName("UIDBase"));var z=new T,te=this.compileDict(U,z);E.push(z),_.add(te),z.offset(S)}return _=this.compileIndex(_,E),{trackers:E,output:_}},compilePrivateDicts:function(F,S,A){for(var E=0,_=F.length;E<_;++E){var D=F[E],N=D.privateDict;if(!N||!D.hasName("Private"))throw new m.FormatError("There must be a private dictionary.");var U=new T,z=this.compileDict(N,U),te=A.length;if(U.offset(te),z.length||(te=0),S[E].setEntryLocation("Private",[z.length,te],A),A.add(z),N.subrsIndex&&N.hasName("Subrs")){var W=this.compileIndex(N.subrsIndex);U.setEntryLocation("Subrs",[z.length],A),A.add(W)}}},compileDict:function(F,S){for(var A=[],E=F.order,_=0;_<E.length;++_){var D=E[_];if(D in F.values){var N=F.values[D],U=F.types[D];if(Array.isArray(U)||(U=[U]),Array.isArray(N)||(N=[N]),N.length!==0){for(var z=0,te=U.length;z<te;++z){var W=U[z],re=N[z];switch(W){case"num":case"sid":A=A.concat(this.encodeNumber(re));break;case"offset":var ee=F.keyToNameMap[D];S.isTracking(ee)||S.track(ee,A.length),A=A.concat([29,0,0,0,0]);break;case"array":case"delta":A=A.concat(this.encodeNumber(re));for(var X=1,K=N.length;X<K;++X)A=A.concat(this.encodeNumber(N[X]));break;default:throw new m.FormatError(`Unknown data type of ${W}`)}}A=A.concat(F.opcodes[D])}}}return A},compileStringIndex:function(F){for(var S=new J,A=0,E=F.length;A<E;++A)S.add((0,m.stringToBytes)(F[A]));return this.compileIndex(S)},compileGlobalSubrIndex:function(){var F=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(F))},compileCharStrings:function(F){for(var S=new J,A=0;A<F.count;A++){var E=F.get(A);if(E.length===0){S.add(new Uint8Array([139,14]));continue}S.add(E)}return this.compileIndex(S)},compileCharset:function(F,S,A,E){let _;const D=S-1;if(E)_=new Uint8Array([2,0,0,D>>8&255,D&255]);else{const N=1+D*2;_=new Uint8Array(N),_[0]=0;let U=0;const z=F.charset.length;let te=!1;for(let W=1;W<_.length;W+=2){let re=0;if(U<z){const ee=F.charset[U++];re=A.getSID(ee),re===-1&&(re=0,te||(te=!0,(0,m.warn)(`Couldn't find ${ee} in CFF strings`)))}_[W]=re>>8&255,_[W+1]=re&255}}return this.compileTypedArray(_)},compileEncoding:function(F){return this.compileTypedArray(F.raw)},compileFDSelect:function(F){const S=F.format;let A,E;switch(S){case 0:for(A=new Uint8Array(1+F.fdSelect.length),A[0]=S,E=0;E<F.fdSelect.length;E++)A[E+1]=F.fdSelect[E];break;case 3:const _=0;let D=F.fdSelect[0];const N=[S,0,0,_>>8&255,_&255,D];for(E=1;E<F.fdSelect.length;E++){const z=F.fdSelect[E];z!==D&&(N.push(E>>8&255,E&255,z),D=z)}const U=(N.length-3)/3;N[1]=U>>8&255,N[2]=U&255,N.push(E>>8&255,E&255),A=new Uint8Array(N);break}return this.compileTypedArray(A)},compileTypedArray:function(F){for(var S=[],A=0,E=F.length;A<E;++A)S[A]=F[A];return S},compileIndex:function(F,S){S=S||[];var A=F.objects,E=A.length;if(E===0)return[0,0,0];var _=[E>>8&255,E&255],D=1,N;for(N=0;N<E;++N)D+=A[N].length;var U;D<256?U=1:D<65536?U=2:D<16777216?U=3:U=4,_.push(U);var z=1;for(N=0;N<E+1;N++)U===1?_.push(z&255):U===2?_.push(z>>8&255,z&255):U===3?_.push(z>>16&255,z>>8&255,z&255):_.push(z>>>24&255,z>>16&255,z>>8&255,z&255),A[N]&&(z+=A[N].length);for(N=0;N<E;N++){S[N]&&S[N].offset(_.length);for(var te=0,W=A[N].length;te<W;te++)_.push(A[N][te])}return _}},B}();f.CFFCompiler=O},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.ExpertSubsetCharset=f.ExpertCharset=f.ISOAdobeCharset=void 0;const m=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];f.ISOAdobeCharset=m;const y=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];f.ExpertCharset=y;const k=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];f.ExpertSubsetCharset=k},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getEncoding=Q,f.ExpertEncoding=f.ZapfDingbatsEncoding=f.SymbolSetEncoding=f.MacRomanEncoding=f.StandardEncoding=f.WinAnsiEncoding=void 0;const m=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];f.ExpertEncoding=m;const y=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],k=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];f.MacRomanEncoding=k;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];f.StandardEncoding=a;const q=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];f.WinAnsiEncoding=q;const w=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];f.SymbolSetEncoding=w;const $=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];f.ZapfDingbatsEncoding=$;function Q(C){switch(C){case"WinAnsiEncoding":return q;case"StandardEncoding":return a;case"MacRomanEncoding":return k;case"SymbolSetEncoding":return w;case"ZapfDingbatsEncoding":return $;case"ExpertEncoding":return m;case"MacExpertEncoding":return y;default:return null}}},function(g,f,b){var m=b(8).getLookupTableFactory,y=m(function(a){a.A=65,a.AE=198,a.AEacute=508,a.AEmacron=482,a.AEsmall=63462,a.Aacute=193,a.Aacutesmall=63457,a.Abreve=258,a.Abreveacute=7854,a.Abrevecyrillic=1232,a.Abrevedotbelow=7862,a.Abrevegrave=7856,a.Abrevehookabove=7858,a.Abrevetilde=7860,a.Acaron=461,a.Acircle=9398,a.Acircumflex=194,a.Acircumflexacute=7844,a.Acircumflexdotbelow=7852,a.Acircumflexgrave=7846,a.Acircumflexhookabove=7848,a.Acircumflexsmall=63458,a.Acircumflextilde=7850,a.Acute=63177,a.Acutesmall=63412,a.Acyrillic=1040,a.Adblgrave=512,a.Adieresis=196,a.Adieresiscyrillic=1234,a.Adieresismacron=478,a.Adieresissmall=63460,a.Adotbelow=7840,a.Adotmacron=480,a.Agrave=192,a.Agravesmall=63456,a.Ahookabove=7842,a.Aiecyrillic=1236,a.Ainvertedbreve=514,a.Alpha=913,a.Alphatonos=902,a.Amacron=256,a.Amonospace=65313,a.Aogonek=260,a.Aring=197,a.Aringacute=506,a.Aringbelow=7680,a.Aringsmall=63461,a.Asmall=63329,a.Atilde=195,a.Atildesmall=63459,a.Aybarmenian=1329,a.B=66,a.Bcircle=9399,a.Bdotaccent=7682,a.Bdotbelow=7684,a.Becyrillic=1041,a.Benarmenian=1330,a.Beta=914,a.Bhook=385,a.Blinebelow=7686,a.Bmonospace=65314,a.Brevesmall=63220,a.Bsmall=63330,a.Btopbar=386,a.C=67,a.Caarmenian=1342,a.Cacute=262,a.Caron=63178,a.Caronsmall=63221,a.Ccaron=268,a.Ccedilla=199,a.Ccedillaacute=7688,a.Ccedillasmall=63463,a.Ccircle=9400,a.Ccircumflex=264,a.Cdot=266,a.Cdotaccent=266,a.Cedillasmall=63416,a.Chaarmenian=1353,a.Cheabkhasiancyrillic=1212,a.Checyrillic=1063,a.Chedescenderabkhasiancyrillic=1214,a.Chedescendercyrillic=1206,a.Chedieresiscyrillic=1268,a.Cheharmenian=1347,a.Chekhakassiancyrillic=1227,a.Cheverticalstrokecyrillic=1208,a.Chi=935,a.Chook=391,a.Circumflexsmall=63222,a.Cmonospace=65315,a.Coarmenian=1361,a.Csmall=63331,a.D=68,a.DZ=497,a.DZcaron=452,a.Daarmenian=1332,a.Dafrican=393,a.Dcaron=270,a.Dcedilla=7696,a.Dcircle=9401,a.Dcircumflexbelow=7698,a.Dcroat=272,a.Ddotaccent=7690,a.Ddotbelow=7692,a.Decyrillic=1044,a.Deicoptic=1006,a.Delta=8710,a.Deltagreek=916,a.Dhook=394,a.Dieresis=63179,a.DieresisAcute=63180,a.DieresisGrave=63181,a.Dieresissmall=63400,a.Digammagreek=988,a.Djecyrillic=1026,a.Dlinebelow=7694,a.Dmonospace=65316,a.Dotaccentsmall=63223,a.Dslash=272,a.Dsmall=63332,a.Dtopbar=395,a.Dz=498,a.Dzcaron=453,a.Dzeabkhasiancyrillic=1248,a.Dzecyrillic=1029,a.Dzhecyrillic=1039,a.E=69,a.Eacute=201,a.Eacutesmall=63465,a.Ebreve=276,a.Ecaron=282,a.Ecedillabreve=7708,a.Echarmenian=1333,a.Ecircle=9402,a.Ecircumflex=202,a.Ecircumflexacute=7870,a.Ecircumflexbelow=7704,a.Ecircumflexdotbelow=7878,a.Ecircumflexgrave=7872,a.Ecircumflexhookabove=7874,a.Ecircumflexsmall=63466,a.Ecircumflextilde=7876,a.Ecyrillic=1028,a.Edblgrave=516,a.Edieresis=203,a.Edieresissmall=63467,a.Edot=278,a.Edotaccent=278,a.Edotbelow=7864,a.Efcyrillic=1060,a.Egrave=200,a.Egravesmall=63464,a.Eharmenian=1335,a.Ehookabove=7866,a.Eightroman=8551,a.Einvertedbreve=518,a.Eiotifiedcyrillic=1124,a.Elcyrillic=1051,a.Elevenroman=8554,a.Emacron=274,a.Emacronacute=7702,a.Emacrongrave=7700,a.Emcyrillic=1052,a.Emonospace=65317,a.Encyrillic=1053,a.Endescendercyrillic=1186,a.Eng=330,a.Enghecyrillic=1188,a.Enhookcyrillic=1223,a.Eogonek=280,a.Eopen=400,a.Epsilon=917,a.Epsilontonos=904,a.Ercyrillic=1056,a.Ereversed=398,a.Ereversedcyrillic=1069,a.Escyrillic=1057,a.Esdescendercyrillic=1194,a.Esh=425,a.Esmall=63333,a.Eta=919,a.Etarmenian=1336,a.Etatonos=905,a.Eth=208,a.Ethsmall=63472,a.Etilde=7868,a.Etildebelow=7706,a.Euro=8364,a.Ezh=439,a.Ezhcaron=494,a.Ezhreversed=440,a.F=70,a.Fcircle=9403,a.Fdotaccent=7710,a.Feharmenian=1366,a.Feicoptic=996,a.Fhook=401,a.Fitacyrillic=1138,a.Fiveroman=8548,a.Fmonospace=65318,a.Fourroman=8547,a.Fsmall=63334,a.G=71,a.GBsquare=13191,a.Gacute=500,a.Gamma=915,a.Gammaafrican=404,a.Gangiacoptic=1002,a.Gbreve=286,a.Gcaron=486,a.Gcedilla=290,a.Gcircle=9404,a.Gcircumflex=284,a.Gcommaaccent=290,a.Gdot=288,a.Gdotaccent=288,a.Gecyrillic=1043,a.Ghadarmenian=1346,a.Ghemiddlehookcyrillic=1172,a.Ghestrokecyrillic=1170,a.Gheupturncyrillic=1168,a.Ghook=403,a.Gimarmenian=1331,a.Gjecyrillic=1027,a.Gmacron=7712,a.Gmonospace=65319,a.Grave=63182,a.Gravesmall=63328,a.Gsmall=63335,a.Gsmallhook=667,a.Gstroke=484,a.H=72,a.H18533=9679,a.H18543=9642,a.H18551=9643,a.H22073=9633,a.HPsquare=13259,a.Haabkhasiancyrillic=1192,a.Hadescendercyrillic=1202,a.Hardsigncyrillic=1066,a.Hbar=294,a.Hbrevebelow=7722,a.Hcedilla=7720,a.Hcircle=9405,a.Hcircumflex=292,a.Hdieresis=7718,a.Hdotaccent=7714,a.Hdotbelow=7716,a.Hmonospace=65320,a.Hoarmenian=1344,a.Horicoptic=1e3,a.Hsmall=63336,a.Hungarumlaut=63183,a.Hungarumlautsmall=63224,a.Hzsquare=13200,a.I=73,a.IAcyrillic=1071,a.IJ=306,a.IUcyrillic=1070,a.Iacute=205,a.Iacutesmall=63469,a.Ibreve=300,a.Icaron=463,a.Icircle=9406,a.Icircumflex=206,a.Icircumflexsmall=63470,a.Icyrillic=1030,a.Idblgrave=520,a.Idieresis=207,a.Idieresisacute=7726,a.Idieresiscyrillic=1252,a.Idieresissmall=63471,a.Idot=304,a.Idotaccent=304,a.Idotbelow=7882,a.Iebrevecyrillic=1238,a.Iecyrillic=1045,a.Ifraktur=8465,a.Igrave=204,a.Igravesmall=63468,a.Ihookabove=7880,a.Iicyrillic=1048,a.Iinvertedbreve=522,a.Iishortcyrillic=1049,a.Imacron=298,a.Imacroncyrillic=1250,a.Imonospace=65321,a.Iniarmenian=1339,a.Iocyrillic=1025,a.Iogonek=302,a.Iota=921,a.Iotaafrican=406,a.Iotadieresis=938,a.Iotatonos=906,a.Ismall=63337,a.Istroke=407,a.Itilde=296,a.Itildebelow=7724,a.Izhitsacyrillic=1140,a.Izhitsadblgravecyrillic=1142,a.J=74,a.Jaarmenian=1345,a.Jcircle=9407,a.Jcircumflex=308,a.Jecyrillic=1032,a.Jheharmenian=1355,a.Jmonospace=65322,a.Jsmall=63338,a.K=75,a.KBsquare=13189,a.KKsquare=13261,a.Kabashkircyrillic=1184,a.Kacute=7728,a.Kacyrillic=1050,a.Kadescendercyrillic=1178,a.Kahookcyrillic=1219,a.Kappa=922,a.Kastrokecyrillic=1182,a.Kaverticalstrokecyrillic=1180,a.Kcaron=488,a.Kcedilla=310,a.Kcircle=9408,a.Kcommaaccent=310,a.Kdotbelow=7730,a.Keharmenian=1364,a.Kenarmenian=1343,a.Khacyrillic=1061,a.Kheicoptic=998,a.Khook=408,a.Kjecyrillic=1036,a.Klinebelow=7732,a.Kmonospace=65323,a.Koppacyrillic=1152,a.Koppagreek=990,a.Ksicyrillic=1134,a.Ksmall=63339,a.L=76,a.LJ=455,a.LL=63167,a.Lacute=313,a.Lambda=923,a.Lcaron=317,a.Lcedilla=315,a.Lcircle=9409,a.Lcircumflexbelow=7740,a.Lcommaaccent=315,a.Ldot=319,a.Ldotaccent=319,a.Ldotbelow=7734,a.Ldotbelowmacron=7736,a.Liwnarmenian=1340,a.Lj=456,a.Ljecyrillic=1033,a.Llinebelow=7738,a.Lmonospace=65324,a.Lslash=321,a.Lslashsmall=63225,a.Lsmall=63340,a.M=77,a.MBsquare=13190,a.Macron=63184,a.Macronsmall=63407,a.Macute=7742,a.Mcircle=9410,a.Mdotaccent=7744,a.Mdotbelow=7746,a.Menarmenian=1348,a.Mmonospace=65325,a.Msmall=63341,a.Mturned=412,a.Mu=924,a.N=78,a.NJ=458,a.Nacute=323,a.Ncaron=327,a.Ncedilla=325,a.Ncircle=9411,a.Ncircumflexbelow=7754,a.Ncommaaccent=325,a.Ndotaccent=7748,a.Ndotbelow=7750,a.Nhookleft=413,a.Nineroman=8552,a.Nj=459,a.Njecyrillic=1034,a.Nlinebelow=7752,a.Nmonospace=65326,a.Nowarmenian=1350,a.Nsmall=63342,a.Ntilde=209,a.Ntildesmall=63473,a.Nu=925,a.O=79,a.OE=338,a.OEsmall=63226,a.Oacute=211,a.Oacutesmall=63475,a.Obarredcyrillic=1256,a.Obarreddieresiscyrillic=1258,a.Obreve=334,a.Ocaron=465,a.Ocenteredtilde=415,a.Ocircle=9412,a.Ocircumflex=212,a.Ocircumflexacute=7888,a.Ocircumflexdotbelow=7896,a.Ocircumflexgrave=7890,a.Ocircumflexhookabove=7892,a.Ocircumflexsmall=63476,a.Ocircumflextilde=7894,a.Ocyrillic=1054,a.Odblacute=336,a.Odblgrave=524,a.Odieresis=214,a.Odieresiscyrillic=1254,a.Odieresissmall=63478,a.Odotbelow=7884,a.Ogoneksmall=63227,a.Ograve=210,a.Ogravesmall=63474,a.Oharmenian=1365,a.Ohm=8486,a.Ohookabove=7886,a.Ohorn=416,a.Ohornacute=7898,a.Ohorndotbelow=7906,a.Ohorngrave=7900,a.Ohornhookabove=7902,a.Ohorntilde=7904,a.Ohungarumlaut=336,a.Oi=418,a.Oinvertedbreve=526,a.Omacron=332,a.Omacronacute=7762,a.Omacrongrave=7760,a.Omega=8486,a.Omegacyrillic=1120,a.Omegagreek=937,a.Omegaroundcyrillic=1146,a.Omegatitlocyrillic=1148,a.Omegatonos=911,a.Omicron=927,a.Omicrontonos=908,a.Omonospace=65327,a.Oneroman=8544,a.Oogonek=490,a.Oogonekmacron=492,a.Oopen=390,a.Oslash=216,a.Oslashacute=510,a.Oslashsmall=63480,a.Osmall=63343,a.Ostrokeacute=510,a.Otcyrillic=1150,a.Otilde=213,a.Otildeacute=7756,a.Otildedieresis=7758,a.Otildesmall=63477,a.P=80,a.Pacute=7764,a.Pcircle=9413,a.Pdotaccent=7766,a.Pecyrillic=1055,a.Peharmenian=1354,a.Pemiddlehookcyrillic=1190,a.Phi=934,a.Phook=420,a.Pi=928,a.Piwrarmenian=1363,a.Pmonospace=65328,a.Psi=936,a.Psicyrillic=1136,a.Psmall=63344,a.Q=81,a.Qcircle=9414,a.Qmonospace=65329,a.Qsmall=63345,a.R=82,a.Raarmenian=1356,a.Racute=340,a.Rcaron=344,a.Rcedilla=342,a.Rcircle=9415,a.Rcommaaccent=342,a.Rdblgrave=528,a.Rdotaccent=7768,a.Rdotbelow=7770,a.Rdotbelowmacron=7772,a.Reharmenian=1360,a.Rfraktur=8476,a.Rho=929,a.Ringsmall=63228,a.Rinvertedbreve=530,a.Rlinebelow=7774,a.Rmonospace=65330,a.Rsmall=63346,a.Rsmallinverted=641,a.Rsmallinvertedsuperior=694,a.S=83,a.SF010000=9484,a.SF020000=9492,a.SF030000=9488,a.SF040000=9496,a.SF050000=9532,a.SF060000=9516,a.SF070000=9524,a.SF080000=9500,a.SF090000=9508,a.SF100000=9472,a.SF110000=9474,a.SF190000=9569,a.SF200000=9570,a.SF210000=9558,a.SF220000=9557,a.SF230000=9571,a.SF240000=9553,a.SF250000=9559,a.SF260000=9565,a.SF270000=9564,a.SF280000=9563,a.SF360000=9566,a.SF370000=9567,a.SF380000=9562,a.SF390000=9556,a.SF400000=9577,a.SF410000=9574,a.SF420000=9568,a.SF430000=9552,a.SF440000=9580,a.SF450000=9575,a.SF460000=9576,a.SF470000=9572,a.SF480000=9573,a.SF490000=9561,a.SF500000=9560,a.SF510000=9554,a.SF520000=9555,a.SF530000=9579,a.SF540000=9578,a.Sacute=346,a.Sacutedotaccent=7780,a.Sampigreek=992,a.Scaron=352,a.Scarondotaccent=7782,a.Scaronsmall=63229,a.Scedilla=350,a.Schwa=399,a.Schwacyrillic=1240,a.Schwadieresiscyrillic=1242,a.Scircle=9416,a.Scircumflex=348,a.Scommaaccent=536,a.Sdotaccent=7776,a.Sdotbelow=7778,a.Sdotbelowdotaccent=7784,a.Seharmenian=1357,a.Sevenroman=8550,a.Shaarmenian=1351,a.Shacyrillic=1064,a.Shchacyrillic=1065,a.Sheicoptic=994,a.Shhacyrillic=1210,a.Shimacoptic=1004,a.Sigma=931,a.Sixroman=8549,a.Smonospace=65331,a.Softsigncyrillic=1068,a.Ssmall=63347,a.Stigmagreek=986,a.T=84,a.Tau=932,a.Tbar=358,a.Tcaron=356,a.Tcedilla=354,a.Tcircle=9417,a.Tcircumflexbelow=7792,a.Tcommaaccent=354,a.Tdotaccent=7786,a.Tdotbelow=7788,a.Tecyrillic=1058,a.Tedescendercyrillic=1196,a.Tenroman=8553,a.Tetsecyrillic=1204,a.Theta=920,a.Thook=428,a.Thorn=222,a.Thornsmall=63486,a.Threeroman=8546,a.Tildesmall=63230,a.Tiwnarmenian=1359,a.Tlinebelow=7790,a.Tmonospace=65332,a.Toarmenian=1337,a.Tonefive=444,a.Tonesix=388,a.Tonetwo=423,a.Tretroflexhook=430,a.Tsecyrillic=1062,a.Tshecyrillic=1035,a.Tsmall=63348,a.Twelveroman=8555,a.Tworoman=8545,a.U=85,a.Uacute=218,a.Uacutesmall=63482,a.Ubreve=364,a.Ucaron=467,a.Ucircle=9418,a.Ucircumflex=219,a.Ucircumflexbelow=7798,a.Ucircumflexsmall=63483,a.Ucyrillic=1059,a.Udblacute=368,a.Udblgrave=532,a.Udieresis=220,a.Udieresisacute=471,a.Udieresisbelow=7794,a.Udieresiscaron=473,a.Udieresiscyrillic=1264,a.Udieresisgrave=475,a.Udieresismacron=469,a.Udieresissmall=63484,a.Udotbelow=7908,a.Ugrave=217,a.Ugravesmall=63481,a.Uhookabove=7910,a.Uhorn=431,a.Uhornacute=7912,a.Uhorndotbelow=7920,a.Uhorngrave=7914,a.Uhornhookabove=7916,a.Uhorntilde=7918,a.Uhungarumlaut=368,a.Uhungarumlautcyrillic=1266,a.Uinvertedbreve=534,a.Ukcyrillic=1144,a.Umacron=362,a.Umacroncyrillic=1262,a.Umacrondieresis=7802,a.Umonospace=65333,a.Uogonek=370,a.Upsilon=933,a.Upsilon1=978,a.Upsilonacutehooksymbolgreek=979,a.Upsilonafrican=433,a.Upsilondieresis=939,a.Upsilondieresishooksymbolgreek=980,a.Upsilonhooksymbol=978,a.Upsilontonos=910,a.Uring=366,a.Ushortcyrillic=1038,a.Usmall=63349,a.Ustraightcyrillic=1198,a.Ustraightstrokecyrillic=1200,a.Utilde=360,a.Utildeacute=7800,a.Utildebelow=7796,a.V=86,a.Vcircle=9419,a.Vdotbelow=7806,a.Vecyrillic=1042,a.Vewarmenian=1358,a.Vhook=434,a.Vmonospace=65334,a.Voarmenian=1352,a.Vsmall=63350,a.Vtilde=7804,a.W=87,a.Wacute=7810,a.Wcircle=9420,a.Wcircumflex=372,a.Wdieresis=7812,a.Wdotaccent=7814,a.Wdotbelow=7816,a.Wgrave=7808,a.Wmonospace=65335,a.Wsmall=63351,a.X=88,a.Xcircle=9421,a.Xdieresis=7820,a.Xdotaccent=7818,a.Xeharmenian=1341,a.Xi=926,a.Xmonospace=65336,a.Xsmall=63352,a.Y=89,a.Yacute=221,a.Yacutesmall=63485,a.Yatcyrillic=1122,a.Ycircle=9422,a.Ycircumflex=374,a.Ydieresis=376,a.Ydieresissmall=63487,a.Ydotaccent=7822,a.Ydotbelow=7924,a.Yericyrillic=1067,a.Yerudieresiscyrillic=1272,a.Ygrave=7922,a.Yhook=435,a.Yhookabove=7926,a.Yiarmenian=1349,a.Yicyrillic=1031,a.Yiwnarmenian=1362,a.Ymonospace=65337,a.Ysmall=63353,a.Ytilde=7928,a.Yusbigcyrillic=1130,a.Yusbigiotifiedcyrillic=1132,a.Yuslittlecyrillic=1126,a.Yuslittleiotifiedcyrillic=1128,a.Z=90,a.Zaarmenian=1334,a.Zacute=377,a.Zcaron=381,a.Zcaronsmall=63231,a.Zcircle=9423,a.Zcircumflex=7824,a.Zdot=379,a.Zdotaccent=379,a.Zdotbelow=7826,a.Zecyrillic=1047,a.Zedescendercyrillic=1176,a.Zedieresiscyrillic=1246,a.Zeta=918,a.Zhearmenian=1338,a.Zhebrevecyrillic=1217,a.Zhecyrillic=1046,a.Zhedescendercyrillic=1174,a.Zhedieresiscyrillic=1244,a.Zlinebelow=7828,a.Zmonospace=65338,a.Zsmall=63354,a.Zstroke=437,a.a=97,a.aabengali=2438,a.aacute=225,a.aadeva=2310,a.aagujarati=2694,a.aagurmukhi=2566,a.aamatragurmukhi=2622,a.aarusquare=13059,a.aavowelsignbengali=2494,a.aavowelsigndeva=2366,a.aavowelsigngujarati=2750,a.abbreviationmarkarmenian=1375,a.abbreviationsigndeva=2416,a.abengali=2437,a.abopomofo=12570,a.abreve=259,a.abreveacute=7855,a.abrevecyrillic=1233,a.abrevedotbelow=7863,a.abrevegrave=7857,a.abrevehookabove=7859,a.abrevetilde=7861,a.acaron=462,a.acircle=9424,a.acircumflex=226,a.acircumflexacute=7845,a.acircumflexdotbelow=7853,a.acircumflexgrave=7847,a.acircumflexhookabove=7849,a.acircumflextilde=7851,a.acute=180,a.acutebelowcmb=791,a.acutecmb=769,a.acutecomb=769,a.acutedeva=2388,a.acutelowmod=719,a.acutetonecmb=833,a.acyrillic=1072,a.adblgrave=513,a.addakgurmukhi=2673,a.adeva=2309,a.adieresis=228,a.adieresiscyrillic=1235,a.adieresismacron=479,a.adotbelow=7841,a.adotmacron=481,a.ae=230,a.aeacute=509,a.aekorean=12624,a.aemacron=483,a.afii00208=8213,a.afii08941=8356,a.afii10017=1040,a.afii10018=1041,a.afii10019=1042,a.afii10020=1043,a.afii10021=1044,a.afii10022=1045,a.afii10023=1025,a.afii10024=1046,a.afii10025=1047,a.afii10026=1048,a.afii10027=1049,a.afii10028=1050,a.afii10029=1051,a.afii10030=1052,a.afii10031=1053,a.afii10032=1054,a.afii10033=1055,a.afii10034=1056,a.afii10035=1057,a.afii10036=1058,a.afii10037=1059,a.afii10038=1060,a.afii10039=1061,a.afii10040=1062,a.afii10041=1063,a.afii10042=1064,a.afii10043=1065,a.afii10044=1066,a.afii10045=1067,a.afii10046=1068,a.afii10047=1069,a.afii10048=1070,a.afii10049=1071,a.afii10050=1168,a.afii10051=1026,a.afii10052=1027,a.afii10053=1028,a.afii10054=1029,a.afii10055=1030,a.afii10056=1031,a.afii10057=1032,a.afii10058=1033,a.afii10059=1034,a.afii10060=1035,a.afii10061=1036,a.afii10062=1038,a.afii10063=63172,a.afii10064=63173,a.afii10065=1072,a.afii10066=1073,a.afii10067=1074,a.afii10068=1075,a.afii10069=1076,a.afii10070=1077,a.afii10071=1105,a.afii10072=1078,a.afii10073=1079,a.afii10074=1080,a.afii10075=1081,a.afii10076=1082,a.afii10077=1083,a.afii10078=1084,a.afii10079=1085,a.afii10080=1086,a.afii10081=1087,a.afii10082=1088,a.afii10083=1089,a.afii10084=1090,a.afii10085=1091,a.afii10086=1092,a.afii10087=1093,a.afii10088=1094,a.afii10089=1095,a.afii10090=1096,a.afii10091=1097,a.afii10092=1098,a.afii10093=1099,a.afii10094=1100,a.afii10095=1101,a.afii10096=1102,a.afii10097=1103,a.afii10098=1169,a.afii10099=1106,a.afii10100=1107,a.afii10101=1108,a.afii10102=1109,a.afii10103=1110,a.afii10104=1111,a.afii10105=1112,a.afii10106=1113,a.afii10107=1114,a.afii10108=1115,a.afii10109=1116,a.afii10110=1118,a.afii10145=1039,a.afii10146=1122,a.afii10147=1138,a.afii10148=1140,a.afii10192=63174,a.afii10193=1119,a.afii10194=1123,a.afii10195=1139,a.afii10196=1141,a.afii10831=63175,a.afii10832=63176,a.afii10846=1241,a.afii299=8206,a.afii300=8207,a.afii301=8205,a.afii57381=1642,a.afii57388=1548,a.afii57392=1632,a.afii57393=1633,a.afii57394=1634,a.afii57395=1635,a.afii57396=1636,a.afii57397=1637,a.afii57398=1638,a.afii57399=1639,a.afii57400=1640,a.afii57401=1641,a.afii57403=1563,a.afii57407=1567,a.afii57409=1569,a.afii57410=1570,a.afii57411=1571,a.afii57412=1572,a.afii57413=1573,a.afii57414=1574,a.afii57415=1575,a.afii57416=1576,a.afii57417=1577,a.afii57418=1578,a.afii57419=1579,a.afii57420=1580,a.afii57421=1581,a.afii57422=1582,a.afii57423=1583,a.afii57424=1584,a.afii57425=1585,a.afii57426=1586,a.afii57427=1587,a.afii57428=1588,a.afii57429=1589,a.afii57430=1590,a.afii57431=1591,a.afii57432=1592,a.afii57433=1593,a.afii57434=1594,a.afii57440=1600,a.afii57441=1601,a.afii57442=1602,a.afii57443=1603,a.afii57444=1604,a.afii57445=1605,a.afii57446=1606,a.afii57448=1608,a.afii57449=1609,a.afii57450=1610,a.afii57451=1611,a.afii57452=1612,a.afii57453=1613,a.afii57454=1614,a.afii57455=1615,a.afii57456=1616,a.afii57457=1617,a.afii57458=1618,a.afii57470=1607,a.afii57505=1700,a.afii57506=1662,a.afii57507=1670,a.afii57508=1688,a.afii57509=1711,a.afii57511=1657,a.afii57512=1672,a.afii57513=1681,a.afii57514=1722,a.afii57519=1746,a.afii57534=1749,a.afii57636=8362,a.afii57645=1470,a.afii57658=1475,a.afii57664=1488,a.afii57665=1489,a.afii57666=1490,a.afii57667=1491,a.afii57668=1492,a.afii57669=1493,a.afii57670=1494,a.afii57671=1495,a.afii57672=1496,a.afii57673=1497,a.afii57674=1498,a.afii57675=1499,a.afii57676=1500,a.afii57677=1501,a.afii57678=1502,a.afii57679=1503,a.afii57680=1504,a.afii57681=1505,a.afii57682=1506,a.afii57683=1507,a.afii57684=1508,a.afii57685=1509,a.afii57686=1510,a.afii57687=1511,a.afii57688=1512,a.afii57689=1513,a.afii57690=1514,a.afii57694=64298,a.afii57695=64299,a.afii57700=64331,a.afii57705=64287,a.afii57716=1520,a.afii57717=1521,a.afii57718=1522,a.afii57723=64309,a.afii57793=1460,a.afii57794=1461,a.afii57795=1462,a.afii57796=1467,a.afii57797=1464,a.afii57798=1463,a.afii57799=1456,a.afii57800=1458,a.afii57801=1457,a.afii57802=1459,a.afii57803=1474,a.afii57804=1473,a.afii57806=1465,a.afii57807=1468,a.afii57839=1469,a.afii57841=1471,a.afii57842=1472,a.afii57929=700,a.afii61248=8453,a.afii61289=8467,a.afii61352=8470,a.afii61573=8236,a.afii61574=8237,a.afii61575=8238,a.afii61664=8204,a.afii63167=1645,a.afii64937=701,a.agrave=224,a.agujarati=2693,a.agurmukhi=2565,a.ahiragana=12354,a.ahookabove=7843,a.aibengali=2448,a.aibopomofo=12574,a.aideva=2320,a.aiecyrillic=1237,a.aigujarati=2704,a.aigurmukhi=2576,a.aimatragurmukhi=2632,a.ainarabic=1593,a.ainfinalarabic=65226,a.aininitialarabic=65227,a.ainmedialarabic=65228,a.ainvertedbreve=515,a.aivowelsignbengali=2504,a.aivowelsigndeva=2376,a.aivowelsigngujarati=2760,a.akatakana=12450,a.akatakanahalfwidth=65393,a.akorean=12623,a.alef=1488,a.alefarabic=1575,a.alefdageshhebrew=64304,a.aleffinalarabic=65166,a.alefhamzaabovearabic=1571,a.alefhamzaabovefinalarabic=65156,a.alefhamzabelowarabic=1573,a.alefhamzabelowfinalarabic=65160,a.alefhebrew=1488,a.aleflamedhebrew=64335,a.alefmaddaabovearabic=1570,a.alefmaddaabovefinalarabic=65154,a.alefmaksuraarabic=1609,a.alefmaksurafinalarabic=65264,a.alefmaksurainitialarabic=65267,a.alefmaksuramedialarabic=65268,a.alefpatahhebrew=64302,a.alefqamatshebrew=64303,a.aleph=8501,a.allequal=8780,a.alpha=945,a.alphatonos=940,a.amacron=257,a.amonospace=65345,a.ampersand=38,a.ampersandmonospace=65286,a.ampersandsmall=63270,a.amsquare=13250,a.anbopomofo=12578,a.angbopomofo=12580,a.angbracketleft=12296,a.angbracketright=12297,a.angkhankhuthai=3674,a.angle=8736,a.anglebracketleft=12296,a.anglebracketleftvertical=65087,a.anglebracketright=12297,a.anglebracketrightvertical=65088,a.angleleft=9001,a.angleright=9002,a.angstrom=8491,a.anoteleia=903,a.anudattadeva=2386,a.anusvarabengali=2434,a.anusvaradeva=2306,a.anusvaragujarati=2690,a.aogonek=261,a.apaatosquare=13056,a.aparen=9372,a.apostrophearmenian=1370,a.apostrophemod=700,a.apple=63743,a.approaches=8784,a.approxequal=8776,a.approxequalorimage=8786,a.approximatelyequal=8773,a.araeaekorean=12686,a.araeakorean=12685,a.arc=8978,a.arighthalfring=7834,a.aring=229,a.aringacute=507,a.aringbelow=7681,a.arrowboth=8596,a.arrowdashdown=8675,a.arrowdashleft=8672,a.arrowdashright=8674,a.arrowdashup=8673,a.arrowdblboth=8660,a.arrowdbldown=8659,a.arrowdblleft=8656,a.arrowdblright=8658,a.arrowdblup=8657,a.arrowdown=8595,a.arrowdownleft=8601,a.arrowdownright=8600,a.arrowdownwhite=8681,a.arrowheaddownmod=709,a.arrowheadleftmod=706,a.arrowheadrightmod=707,a.arrowheadupmod=708,a.arrowhorizex=63719,a.arrowleft=8592,a.arrowleftdbl=8656,a.arrowleftdblstroke=8653,a.arrowleftoverright=8646,a.arrowleftwhite=8678,a.arrowright=8594,a.arrowrightdblstroke=8655,a.arrowrightheavy=10142,a.arrowrightoverleft=8644,a.arrowrightwhite=8680,a.arrowtableft=8676,a.arrowtabright=8677,a.arrowup=8593,a.arrowupdn=8597,a.arrowupdnbse=8616,a.arrowupdownbase=8616,a.arrowupleft=8598,a.arrowupleftofdown=8645,a.arrowupright=8599,a.arrowupwhite=8679,a.arrowvertex=63718,a.asciicircum=94,a.asciicircummonospace=65342,a.asciitilde=126,a.asciitildemonospace=65374,a.ascript=593,a.ascriptturned=594,a.asmallhiragana=12353,a.asmallkatakana=12449,a.asmallkatakanahalfwidth=65383,a.asterisk=42,a.asteriskaltonearabic=1645,a.asteriskarabic=1645,a.asteriskmath=8727,a.asteriskmonospace=65290,a.asterisksmall=65121,a.asterism=8258,a.asuperior=63209,a.asymptoticallyequal=8771,a.at=64,a.atilde=227,a.atmonospace=65312,a.atsmall=65131,a.aturned=592,a.aubengali=2452,a.aubopomofo=12576,a.audeva=2324,a.augujarati=2708,a.augurmukhi=2580,a.aulengthmarkbengali=2519,a.aumatragurmukhi=2636,a.auvowelsignbengali=2508,a.auvowelsigndeva=2380,a.auvowelsigngujarati=2764,a.avagrahadeva=2365,a.aybarmenian=1377,a.ayin=1506,a.ayinaltonehebrew=64288,a.ayinhebrew=1506,a.b=98,a.babengali=2476,a.backslash=92,a.backslashmonospace=65340,a.badeva=2348,a.bagujarati=2732,a.bagurmukhi=2604,a.bahiragana=12400,a.bahtthai=3647,a.bakatakana=12496,a.bar=124,a.barmonospace=65372,a.bbopomofo=12549,a.bcircle=9425,a.bdotaccent=7683,a.bdotbelow=7685,a.beamedsixteenthnotes=9836,a.because=8757,a.becyrillic=1073,a.beharabic=1576,a.behfinalarabic=65168,a.behinitialarabic=65169,a.behiragana=12409,a.behmedialarabic=65170,a.behmeeminitialarabic=64671,a.behmeemisolatedarabic=64520,a.behnoonfinalarabic=64621,a.bekatakana=12505,a.benarmenian=1378,a.bet=1489,a.beta=946,a.betasymbolgreek=976,a.betdagesh=64305,a.betdageshhebrew=64305,a.bethebrew=1489,a.betrafehebrew=64332,a.bhabengali=2477,a.bhadeva=2349,a.bhagujarati=2733,a.bhagurmukhi=2605,a.bhook=595,a.bihiragana=12403,a.bikatakana=12499,a.bilabialclick=664,a.bindigurmukhi=2562,a.birusquare=13105,a.blackcircle=9679,a.blackdiamond=9670,a.blackdownpointingtriangle=9660,a.blackleftpointingpointer=9668,a.blackleftpointingtriangle=9664,a.blacklenticularbracketleft=12304,a.blacklenticularbracketleftvertical=65083,a.blacklenticularbracketright=12305,a.blacklenticularbracketrightvertical=65084,a.blacklowerlefttriangle=9699,a.blacklowerrighttriangle=9698,a.blackrectangle=9644,a.blackrightpointingpointer=9658,a.blackrightpointingtriangle=9654,a.blacksmallsquare=9642,a.blacksmilingface=9787,a.blacksquare=9632,a.blackstar=9733,a.blackupperlefttriangle=9700,a.blackupperrighttriangle=9701,a.blackuppointingsmalltriangle=9652,a.blackuppointingtriangle=9650,a.blank=9251,a.blinebelow=7687,a.block=9608,a.bmonospace=65346,a.bobaimaithai=3610,a.bohiragana=12412,a.bokatakana=12508,a.bparen=9373,a.bqsquare=13251,a.braceex=63732,a.braceleft=123,a.braceleftbt=63731,a.braceleftmid=63730,a.braceleftmonospace=65371,a.braceleftsmall=65115,a.bracelefttp=63729,a.braceleftvertical=65079,a.braceright=125,a.bracerightbt=63742,a.bracerightmid=63741,a.bracerightmonospace=65373,a.bracerightsmall=65116,a.bracerighttp=63740,a.bracerightvertical=65080,a.bracketleft=91,a.bracketleftbt=63728,a.bracketleftex=63727,a.bracketleftmonospace=65339,a.bracketlefttp=63726,a.bracketright=93,a.bracketrightbt=63739,a.bracketrightex=63738,a.bracketrightmonospace=65341,a.bracketrighttp=63737,a.breve=728,a.brevebelowcmb=814,a.brevecmb=774,a.breveinvertedbelowcmb=815,a.breveinvertedcmb=785,a.breveinverteddoublecmb=865,a.bridgebelowcmb=810,a.bridgeinvertedbelowcmb=826,a.brokenbar=166,a.bstroke=384,a.bsuperior=63210,a.btopbar=387,a.buhiragana=12406,a.bukatakana=12502,a.bullet=8226,a.bulletinverse=9688,a.bulletoperator=8729,a.bullseye=9678,a.c=99,a.caarmenian=1390,a.cabengali=2458,a.cacute=263,a.cadeva=2330,a.cagujarati=2714,a.cagurmukhi=2586,a.calsquare=13192,a.candrabindubengali=2433,a.candrabinducmb=784,a.candrabindudeva=2305,a.candrabindugujarati=2689,a.capslock=8682,a.careof=8453,a.caron=711,a.caronbelowcmb=812,a.caroncmb=780,a.carriagereturn=8629,a.cbopomofo=12568,a.ccaron=269,a.ccedilla=231,a.ccedillaacute=7689,a.ccircle=9426,a.ccircumflex=265,a.ccurl=597,a.cdot=267,a.cdotaccent=267,a.cdsquare=13253,a.cedilla=184,a.cedillacmb=807,a.cent=162,a.centigrade=8451,a.centinferior=63199,a.centmonospace=65504,a.centoldstyle=63394,a.centsuperior=63200,a.chaarmenian=1401,a.chabengali=2459,a.chadeva=2331,a.chagujarati=2715,a.chagurmukhi=2587,a.chbopomofo=12564,a.cheabkhasiancyrillic=1213,a.checkmark=10003,a.checyrillic=1095,a.chedescenderabkhasiancyrillic=1215,a.chedescendercyrillic=1207,a.chedieresiscyrillic=1269,a.cheharmenian=1395,a.chekhakassiancyrillic=1228,a.cheverticalstrokecyrillic=1209,a.chi=967,a.chieuchacirclekorean=12919,a.chieuchaparenkorean=12823,a.chieuchcirclekorean=12905,a.chieuchkorean=12618,a.chieuchparenkorean=12809,a.chochangthai=3594,a.chochanthai=3592,a.chochingthai=3593,a.chochoethai=3596,a.chook=392,a.cieucacirclekorean=12918,a.cieucaparenkorean=12822,a.cieuccirclekorean=12904,a.cieuckorean=12616,a.cieucparenkorean=12808,a.cieucuparenkorean=12828,a.circle=9675,a.circlecopyrt=169,a.circlemultiply=8855,a.circleot=8857,a.circleplus=8853,a.circlepostalmark=12342,a.circlewithlefthalfblack=9680,a.circlewithrighthalfblack=9681,a.circumflex=710,a.circumflexbelowcmb=813,a.circumflexcmb=770,a.clear=8999,a.clickalveolar=450,a.clickdental=448,a.clicklateral=449,a.clickretroflex=451,a.club=9827,a.clubsuitblack=9827,a.clubsuitwhite=9831,a.cmcubedsquare=13220,a.cmonospace=65347,a.cmsquaredsquare=13216,a.coarmenian=1409,a.colon=58,a.colonmonetary=8353,a.colonmonospace=65306,a.colonsign=8353,a.colonsmall=65109,a.colontriangularhalfmod=721,a.colontriangularmod=720,a.comma=44,a.commaabovecmb=787,a.commaaboverightcmb=789,a.commaaccent=63171,a.commaarabic=1548,a.commaarmenian=1373,a.commainferior=63201,a.commamonospace=65292,a.commareversedabovecmb=788,a.commareversedmod=701,a.commasmall=65104,a.commasuperior=63202,a.commaturnedabovecmb=786,a.commaturnedmod=699,a.compass=9788,a.congruent=8773,a.contourintegral=8750,a.control=8963,a.controlACK=6,a.controlBEL=7,a.controlBS=8,a.controlCAN=24,a.controlCR=13,a.controlDC1=17,a.controlDC2=18,a.controlDC3=19,a.controlDC4=20,a.controlDEL=127,a.controlDLE=16,a.controlEM=25,a.controlENQ=5,a.controlEOT=4,a.controlESC=27,a.controlETB=23,a.controlETX=3,a.controlFF=12,a.controlFS=28,a.controlGS=29,a.controlHT=9,a.controlLF=10,a.controlNAK=21,a.controlNULL=0,a.controlRS=30,a.controlSI=15,a.controlSO=14,a.controlSOT=2,a.controlSTX=1,a.controlSUB=26,a.controlSYN=22,a.controlUS=31,a.controlVT=11,a.copyright=169,a.copyrightsans=63721,a.copyrightserif=63193,a.cornerbracketleft=12300,a.cornerbracketlefthalfwidth=65378,a.cornerbracketleftvertical=65089,a.cornerbracketright=12301,a.cornerbracketrighthalfwidth=65379,a.cornerbracketrightvertical=65090,a.corporationsquare=13183,a.cosquare=13255,a.coverkgsquare=13254,a.cparen=9374,a.cruzeiro=8354,a.cstretched=663,a.curlyand=8911,a.curlyor=8910,a.currency=164,a.cyrBreve=63185,a.cyrFlex=63186,a.cyrbreve=63188,a.cyrflex=63189,a.d=100,a.daarmenian=1380,a.dabengali=2470,a.dadarabic=1590,a.dadeva=2342,a.dadfinalarabic=65214,a.dadinitialarabic=65215,a.dadmedialarabic=65216,a.dagesh=1468,a.dageshhebrew=1468,a.dagger=8224,a.daggerdbl=8225,a.dagujarati=2726,a.dagurmukhi=2598,a.dahiragana=12384,a.dakatakana=12480,a.dalarabic=1583,a.dalet=1491,a.daletdagesh=64307,a.daletdageshhebrew=64307,a.dalethebrew=1491,a.dalfinalarabic=65194,a.dammaarabic=1615,a.dammalowarabic=1615,a.dammatanaltonearabic=1612,a.dammatanarabic=1612,a.danda=2404,a.dargahebrew=1447,a.dargalefthebrew=1447,a.dasiapneumatacyrilliccmb=1157,a.dblGrave=63187,a.dblanglebracketleft=12298,a.dblanglebracketleftvertical=65085,a.dblanglebracketright=12299,a.dblanglebracketrightvertical=65086,a.dblarchinvertedbelowcmb=811,a.dblarrowleft=8660,a.dblarrowright=8658,a.dbldanda=2405,a.dblgrave=63190,a.dblgravecmb=783,a.dblintegral=8748,a.dbllowline=8215,a.dbllowlinecmb=819,a.dbloverlinecmb=831,a.dblprimemod=698,a.dblverticalbar=8214,a.dblverticallineabovecmb=782,a.dbopomofo=12553,a.dbsquare=13256,a.dcaron=271,a.dcedilla=7697,a.dcircle=9427,a.dcircumflexbelow=7699,a.dcroat=273,a.ddabengali=2465,a.ddadeva=2337,a.ddagujarati=2721,a.ddagurmukhi=2593,a.ddalarabic=1672,a.ddalfinalarabic=64393,a.dddhadeva=2396,a.ddhabengali=2466,a.ddhadeva=2338,a.ddhagujarati=2722,a.ddhagurmukhi=2594,a.ddotaccent=7691,a.ddotbelow=7693,a.decimalseparatorarabic=1643,a.decimalseparatorpersian=1643,a.decyrillic=1076,a.degree=176,a.dehihebrew=1453,a.dehiragana=12391,a.deicoptic=1007,a.dekatakana=12487,a.deleteleft=9003,a.deleteright=8998,a.delta=948,a.deltaturned=397,a.denominatorminusonenumeratorbengali=2552,a.dezh=676,a.dhabengali=2471,a.dhadeva=2343,a.dhagujarati=2727,a.dhagurmukhi=2599,a.dhook=599,a.dialytikatonos=901,a.dialytikatonoscmb=836,a.diamond=9830,a.diamondsuitwhite=9826,a.dieresis=168,a.dieresisacute=63191,a.dieresisbelowcmb=804,a.dieresiscmb=776,a.dieresisgrave=63192,a.dieresistonos=901,a.dihiragana=12386,a.dikatakana=12482,a.dittomark=12291,a.divide=247,a.divides=8739,a.divisionslash=8725,a.djecyrillic=1106,a.dkshade=9619,a.dlinebelow=7695,a.dlsquare=13207,a.dmacron=273,a.dmonospace=65348,a.dnblock=9604,a.dochadathai=3598,a.dodekthai=3604,a.dohiragana=12393,a.dokatakana=12489,a.dollar=36,a.dollarinferior=63203,a.dollarmonospace=65284,a.dollaroldstyle=63268,a.dollarsmall=65129,a.dollarsuperior=63204,a.dong=8363,a.dorusquare=13094,a.dotaccent=729,a.dotaccentcmb=775,a.dotbelowcmb=803,a.dotbelowcomb=803,a.dotkatakana=12539,a.dotlessi=305,a.dotlessj=63166,a.dotlessjstrokehook=644,a.dotmath=8901,a.dottedcircle=9676,a.doubleyodpatah=64287,a.doubleyodpatahhebrew=64287,a.downtackbelowcmb=798,a.downtackmod=725,a.dparen=9375,a.dsuperior=63211,a.dtail=598,a.dtopbar=396,a.duhiragana=12389,a.dukatakana=12485,a.dz=499,a.dzaltone=675,a.dzcaron=454,a.dzcurl=677,a.dzeabkhasiancyrillic=1249,a.dzecyrillic=1109,a.dzhecyrillic=1119,a.e=101,a.eacute=233,a.earth=9793,a.ebengali=2447,a.ebopomofo=12572,a.ebreve=277,a.ecandradeva=2317,a.ecandragujarati=2701,a.ecandravowelsigndeva=2373,a.ecandravowelsigngujarati=2757,a.ecaron=283,a.ecedillabreve=7709,a.echarmenian=1381,a.echyiwnarmenian=1415,a.ecircle=9428,a.ecircumflex=234,a.ecircumflexacute=7871,a.ecircumflexbelow=7705,a.ecircumflexdotbelow=7879,a.ecircumflexgrave=7873,a.ecircumflexhookabove=7875,a.ecircumflextilde=7877,a.ecyrillic=1108,a.edblgrave=517,a.edeva=2319,a.edieresis=235,a.edot=279,a.edotaccent=279,a.edotbelow=7865,a.eegurmukhi=2575,a.eematragurmukhi=2631,a.efcyrillic=1092,a.egrave=232,a.egujarati=2703,a.eharmenian=1383,a.ehbopomofo=12573,a.ehiragana=12360,a.ehookabove=7867,a.eibopomofo=12575,a.eight=56,a.eightarabic=1640,a.eightbengali=2542,a.eightcircle=9319,a.eightcircleinversesansserif=10129,a.eightdeva=2414,a.eighteencircle=9329,a.eighteenparen=9349,a.eighteenperiod=9369,a.eightgujarati=2798,a.eightgurmukhi=2670,a.eighthackarabic=1640,a.eighthangzhou=12328,a.eighthnotebeamed=9835,a.eightideographicparen=12839,a.eightinferior=8328,a.eightmonospace=65304,a.eightoldstyle=63288,a.eightparen=9339,a.eightperiod=9359,a.eightpersian=1784,a.eightroman=8567,a.eightsuperior=8312,a.eightthai=3672,a.einvertedbreve=519,a.eiotifiedcyrillic=1125,a.ekatakana=12456,a.ekatakanahalfwidth=65396,a.ekonkargurmukhi=2676,a.ekorean=12628,a.elcyrillic=1083,a.element=8712,a.elevencircle=9322,a.elevenparen=9342,a.elevenperiod=9362,a.elevenroman=8570,a.ellipsis=8230,a.ellipsisvertical=8942,a.emacron=275,a.emacronacute=7703,a.emacrongrave=7701,a.emcyrillic=1084,a.emdash=8212,a.emdashvertical=65073,a.emonospace=65349,a.emphasismarkarmenian=1371,a.emptyset=8709,a.enbopomofo=12579,a.encyrillic=1085,a.endash=8211,a.endashvertical=65074,a.endescendercyrillic=1187,a.eng=331,a.engbopomofo=12581,a.enghecyrillic=1189,a.enhookcyrillic=1224,a.enspace=8194,a.eogonek=281,a.eokorean=12627,a.eopen=603,a.eopenclosed=666,a.eopenreversed=604,a.eopenreversedclosed=606,a.eopenreversedhook=605,a.eparen=9376,a.epsilon=949,a.epsilontonos=941,a.equal=61,a.equalmonospace=65309,a.equalsmall=65126,a.equalsuperior=8316,a.equivalence=8801,a.erbopomofo=12582,a.ercyrillic=1088,a.ereversed=600,a.ereversedcyrillic=1101,a.escyrillic=1089,a.esdescendercyrillic=1195,a.esh=643,a.eshcurl=646,a.eshortdeva=2318,a.eshortvowelsigndeva=2374,a.eshreversedloop=426,a.eshsquatreversed=645,a.esmallhiragana=12359,a.esmallkatakana=12455,a.esmallkatakanahalfwidth=65386,a.estimated=8494,a.esuperior=63212,a.eta=951,a.etarmenian=1384,a.etatonos=942,a.eth=240,a.etilde=7869,a.etildebelow=7707,a.etnahtafoukhhebrew=1425,a.etnahtafoukhlefthebrew=1425,a.etnahtahebrew=1425,a.etnahtalefthebrew=1425,a.eturned=477,a.eukorean=12641,a.euro=8364,a.evowelsignbengali=2503,a.evowelsigndeva=2375,a.evowelsigngujarati=2759,a.exclam=33,a.exclamarmenian=1372,a.exclamdbl=8252,a.exclamdown=161,a.exclamdownsmall=63393,a.exclammonospace=65281,a.exclamsmall=63265,a.existential=8707,a.ezh=658,a.ezhcaron=495,a.ezhcurl=659,a.ezhreversed=441,a.ezhtail=442,a.f=102,a.fadeva=2398,a.fagurmukhi=2654,a.fahrenheit=8457,a.fathaarabic=1614,a.fathalowarabic=1614,a.fathatanarabic=1611,a.fbopomofo=12552,a.fcircle=9429,a.fdotaccent=7711,a.feharabic=1601,a.feharmenian=1414,a.fehfinalarabic=65234,a.fehinitialarabic=65235,a.fehmedialarabic=65236,a.feicoptic=997,a.female=9792,a.ff=64256,a.f_f=64256,a.ffi=64259,a.ffl=64260,a.fi=64257,a.fifteencircle=9326,a.fifteenparen=9346,a.fifteenperiod=9366,a.figuredash=8210,a.filledbox=9632,a.filledrect=9644,a.finalkaf=1498,a.finalkafdagesh=64314,a.finalkafdageshhebrew=64314,a.finalkafhebrew=1498,a.finalmem=1501,a.finalmemhebrew=1501,a.finalnun=1503,a.finalnunhebrew=1503,a.finalpe=1507,a.finalpehebrew=1507,a.finaltsadi=1509,a.finaltsadihebrew=1509,a.firsttonechinese=713,a.fisheye=9673,a.fitacyrillic=1139,a.five=53,a.fivearabic=1637,a.fivebengali=2539,a.fivecircle=9316,a.fivecircleinversesansserif=10126,a.fivedeva=2411,a.fiveeighths=8541,a.fivegujarati=2795,a.fivegurmukhi=2667,a.fivehackarabic=1637,a.fivehangzhou=12325,a.fiveideographicparen=12836,a.fiveinferior=8325,a.fivemonospace=65301,a.fiveoldstyle=63285,a.fiveparen=9336,a.fiveperiod=9356,a.fivepersian=1781,a.fiveroman=8564,a.fivesuperior=8309,a.fivethai=3669,a.fl=64258,a.florin=402,a.fmonospace=65350,a.fmsquare=13209,a.fofanthai=3615,a.fofathai=3613,a.fongmanthai=3663,a.forall=8704,a.four=52,a.fourarabic=1636,a.fourbengali=2538,a.fourcircle=9315,a.fourcircleinversesansserif=10125,a.fourdeva=2410,a.fourgujarati=2794,a.fourgurmukhi=2666,a.fourhackarabic=1636,a.fourhangzhou=12324,a.fourideographicparen=12835,a.fourinferior=8324,a.fourmonospace=65300,a.fournumeratorbengali=2551,a.fouroldstyle=63284,a.fourparen=9335,a.fourperiod=9355,a.fourpersian=1780,a.fourroman=8563,a.foursuperior=8308,a.fourteencircle=9325,a.fourteenparen=9345,a.fourteenperiod=9365,a.fourthai=3668,a.fourthtonechinese=715,a.fparen=9377,a.fraction=8260,a.franc=8355,a.g=103,a.gabengali=2455,a.gacute=501,a.gadeva=2327,a.gafarabic=1711,a.gaffinalarabic=64403,a.gafinitialarabic=64404,a.gafmedialarabic=64405,a.gagujarati=2711,a.gagurmukhi=2583,a.gahiragana=12364,a.gakatakana=12460,a.gamma=947,a.gammalatinsmall=611,a.gammasuperior=736,a.gangiacoptic=1003,a.gbopomofo=12557,a.gbreve=287,a.gcaron=487,a.gcedilla=291,a.gcircle=9430,a.gcircumflex=285,a.gcommaaccent=291,a.gdot=289,a.gdotaccent=289,a.gecyrillic=1075,a.gehiragana=12370,a.gekatakana=12466,a.geometricallyequal=8785,a.gereshaccenthebrew=1436,a.gereshhebrew=1523,a.gereshmuqdamhebrew=1437,a.germandbls=223,a.gershayimaccenthebrew=1438,a.gershayimhebrew=1524,a.getamark=12307,a.ghabengali=2456,a.ghadarmenian=1394,a.ghadeva=2328,a.ghagujarati=2712,a.ghagurmukhi=2584,a.ghainarabic=1594,a.ghainfinalarabic=65230,a.ghaininitialarabic=65231,a.ghainmedialarabic=65232,a.ghemiddlehookcyrillic=1173,a.ghestrokecyrillic=1171,a.gheupturncyrillic=1169,a.ghhadeva=2394,a.ghhagurmukhi=2650,a.ghook=608,a.ghzsquare=13203,a.gihiragana=12366,a.gikatakana=12462,a.gimarmenian=1379,a.gimel=1490,a.gimeldagesh=64306,a.gimeldageshhebrew=64306,a.gimelhebrew=1490,a.gjecyrillic=1107,a.glottalinvertedstroke=446,a.glottalstop=660,a.glottalstopinverted=662,a.glottalstopmod=704,a.glottalstopreversed=661,a.glottalstopreversedmod=705,a.glottalstopreversedsuperior=740,a.glottalstopstroke=673,a.glottalstopstrokereversed=674,a.gmacron=7713,a.gmonospace=65351,a.gohiragana=12372,a.gokatakana=12468,a.gparen=9378,a.gpasquare=13228,a.gradient=8711,a.grave=96,a.gravebelowcmb=790,a.gravecmb=768,a.gravecomb=768,a.gravedeva=2387,a.gravelowmod=718,a.gravemonospace=65344,a.gravetonecmb=832,a.greater=62,a.greaterequal=8805,a.greaterequalorless=8923,a.greatermonospace=65310,a.greaterorequivalent=8819,a.greaterorless=8823,a.greateroverequal=8807,a.greatersmall=65125,a.gscript=609,a.gstroke=485,a.guhiragana=12368,a.guillemotleft=171,a.guillemotright=187,a.guilsinglleft=8249,a.guilsinglright=8250,a.gukatakana=12464,a.guramusquare=13080,a.gysquare=13257,a.h=104,a.haabkhasiancyrillic=1193,a.haaltonearabic=1729,a.habengali=2489,a.hadescendercyrillic=1203,a.hadeva=2361,a.hagujarati=2745,a.hagurmukhi=2617,a.haharabic=1581,a.hahfinalarabic=65186,a.hahinitialarabic=65187,a.hahiragana=12399,a.hahmedialarabic=65188,a.haitusquare=13098,a.hakatakana=12495,a.hakatakanahalfwidth=65418,a.halantgurmukhi=2637,a.hamzaarabic=1569,a.hamzalowarabic=1569,a.hangulfiller=12644,a.hardsigncyrillic=1098,a.harpoonleftbarbup=8636,a.harpoonrightbarbup=8640,a.hasquare=13258,a.hatafpatah=1458,a.hatafpatah16=1458,a.hatafpatah23=1458,a.hatafpatah2f=1458,a.hatafpatahhebrew=1458,a.hatafpatahnarrowhebrew=1458,a.hatafpatahquarterhebrew=1458,a.hatafpatahwidehebrew=1458,a.hatafqamats=1459,a.hatafqamats1b=1459,a.hatafqamats28=1459,a.hatafqamats34=1459,a.hatafqamatshebrew=1459,a.hatafqamatsnarrowhebrew=1459,a.hatafqamatsquarterhebrew=1459,a.hatafqamatswidehebrew=1459,a.hatafsegol=1457,a.hatafsegol17=1457,a.hatafsegol24=1457,a.hatafsegol30=1457,a.hatafsegolhebrew=1457,a.hatafsegolnarrowhebrew=1457,a.hatafsegolquarterhebrew=1457,a.hatafsegolwidehebrew=1457,a.hbar=295,a.hbopomofo=12559,a.hbrevebelow=7723,a.hcedilla=7721,a.hcircle=9431,a.hcircumflex=293,a.hdieresis=7719,a.hdotaccent=7715,a.hdotbelow=7717,a.he=1492,a.heart=9829,a.heartsuitblack=9829,a.heartsuitwhite=9825,a.hedagesh=64308,a.hedageshhebrew=64308,a.hehaltonearabic=1729,a.heharabic=1607,a.hehebrew=1492,a.hehfinalaltonearabic=64423,a.hehfinalalttwoarabic=65258,a.hehfinalarabic=65258,a.hehhamzaabovefinalarabic=64421,a.hehhamzaaboveisolatedarabic=64420,a.hehinitialaltonearabic=64424,a.hehinitialarabic=65259,a.hehiragana=12408,a.hehmedialaltonearabic=64425,a.hehmedialarabic=65260,a.heiseierasquare=13179,a.hekatakana=12504,a.hekatakanahalfwidth=65421,a.hekutaarusquare=13110,a.henghook=615,a.herutusquare=13113,a.het=1495,a.hethebrew=1495,a.hhook=614,a.hhooksuperior=689,a.hieuhacirclekorean=12923,a.hieuhaparenkorean=12827,a.hieuhcirclekorean=12909,a.hieuhkorean=12622,a.hieuhparenkorean=12813,a.hihiragana=12402,a.hikatakana=12498,a.hikatakanahalfwidth=65419,a.hiriq=1460,a.hiriq14=1460,a.hiriq21=1460,a.hiriq2d=1460,a.hiriqhebrew=1460,a.hiriqnarrowhebrew=1460,a.hiriqquarterhebrew=1460,a.hiriqwidehebrew=1460,a.hlinebelow=7830,a.hmonospace=65352,a.hoarmenian=1392,a.hohipthai=3627,a.hohiragana=12411,a.hokatakana=12507,a.hokatakanahalfwidth=65422,a.holam=1465,a.holam19=1465,a.holam26=1465,a.holam32=1465,a.holamhebrew=1465,a.holamnarrowhebrew=1465,a.holamquarterhebrew=1465,a.holamwidehebrew=1465,a.honokhukthai=3630,a.hookabovecomb=777,a.hookcmb=777,a.hookpalatalizedbelowcmb=801,a.hookretroflexbelowcmb=802,a.hoonsquare=13122,a.horicoptic=1001,a.horizontalbar=8213,a.horncmb=795,a.hotsprings=9832,a.house=8962,a.hparen=9379,a.hsuperior=688,a.hturned=613,a.huhiragana=12405,a.huiitosquare=13107,a.hukatakana=12501,a.hukatakanahalfwidth=65420,a.hungarumlaut=733,a.hungarumlautcmb=779,a.hv=405,a.hyphen=45,a.hypheninferior=63205,a.hyphenmonospace=65293,a.hyphensmall=65123,a.hyphensuperior=63206,a.hyphentwo=8208,a.i=105,a.iacute=237,a.iacyrillic=1103,a.ibengali=2439,a.ibopomofo=12583,a.ibreve=301,a.icaron=464,a.icircle=9432,a.icircumflex=238,a.icyrillic=1110,a.idblgrave=521,a.ideographearthcircle=12943,a.ideographfirecircle=12939,a.ideographicallianceparen=12863,a.ideographiccallparen=12858,a.ideographiccentrecircle=12965,a.ideographicclose=12294,a.ideographiccomma=12289,a.ideographiccommaleft=65380,a.ideographiccongratulationparen=12855,a.ideographiccorrectcircle=12963,a.ideographicearthparen=12847,a.ideographicenterpriseparen=12861,a.ideographicexcellentcircle=12957,a.ideographicfestivalparen=12864,a.ideographicfinancialcircle=12950,a.ideographicfinancialparen=12854,a.ideographicfireparen=12843,a.ideographichaveparen=12850,a.ideographichighcircle=12964,a.ideographiciterationmark=12293,a.ideographiclaborcircle=12952,a.ideographiclaborparen=12856,a.ideographicleftcircle=12967,a.ideographiclowcircle=12966,a.ideographicmedicinecircle=12969,a.ideographicmetalparen=12846,a.ideographicmoonparen=12842,a.ideographicnameparen=12852,a.ideographicperiod=12290,a.ideographicprintcircle=12958,a.ideographicreachparen=12867,a.ideographicrepresentparen=12857,a.ideographicresourceparen=12862,a.ideographicrightcircle=12968,a.ideographicsecretcircle=12953,a.ideographicselfparen=12866,a.ideographicsocietyparen=12851,a.ideographicspace=12288,a.ideographicspecialparen=12853,a.ideographicstockparen=12849,a.ideographicstudyparen=12859,a.ideographicsunparen=12848,a.ideographicsuperviseparen=12860,a.ideographicwaterparen=12844,a.ideographicwoodparen=12845,a.ideographiczero=12295,a.ideographmetalcircle=12942,a.ideographmooncircle=12938,a.ideographnamecircle=12948,a.ideographsuncircle=12944,a.ideographwatercircle=12940,a.ideographwoodcircle=12941,a.ideva=2311,a.idieresis=239,a.idieresisacute=7727,a.idieresiscyrillic=1253,a.idotbelow=7883,a.iebrevecyrillic=1239,a.iecyrillic=1077,a.ieungacirclekorean=12917,a.ieungaparenkorean=12821,a.ieungcirclekorean=12903,a.ieungkorean=12615,a.ieungparenkorean=12807,a.igrave=236,a.igujarati=2695,a.igurmukhi=2567,a.ihiragana=12356,a.ihookabove=7881,a.iibengali=2440,a.iicyrillic=1080,a.iideva=2312,a.iigujarati=2696,a.iigurmukhi=2568,a.iimatragurmukhi=2624,a.iinvertedbreve=523,a.iishortcyrillic=1081,a.iivowelsignbengali=2496,a.iivowelsigndeva=2368,a.iivowelsigngujarati=2752,a.ij=307,a.ikatakana=12452,a.ikatakanahalfwidth=65394,a.ikorean=12643,a.ilde=732,a.iluyhebrew=1452,a.imacron=299,a.imacroncyrillic=1251,a.imageorapproximatelyequal=8787,a.imatragurmukhi=2623,a.imonospace=65353,a.increment=8710,a.infinity=8734,a.iniarmenian=1387,a.integral=8747,a.integralbottom=8993,a.integralbt=8993,a.integralex=63733,a.integraltop=8992,a.integraltp=8992,a.intersection=8745,a.intisquare=13061,a.invbullet=9688,a.invcircle=9689,a.invsmileface=9787,a.iocyrillic=1105,a.iogonek=303,a.iota=953,a.iotadieresis=970,a.iotadieresistonos=912,a.iotalatin=617,a.iotatonos=943,a.iparen=9380,a.irigurmukhi=2674,a.ismallhiragana=12355,a.ismallkatakana=12451,a.ismallkatakanahalfwidth=65384,a.issharbengali=2554,a.istroke=616,a.isuperior=63213,a.iterationhiragana=12445,a.iterationkatakana=12541,a.itilde=297,a.itildebelow=7725,a.iubopomofo=12585,a.iucyrillic=1102,a.ivowelsignbengali=2495,a.ivowelsigndeva=2367,a.ivowelsigngujarati=2751,a.izhitsacyrillic=1141,a.izhitsadblgravecyrillic=1143,a.j=106,a.jaarmenian=1393,a.jabengali=2460,a.jadeva=2332,a.jagujarati=2716,a.jagurmukhi=2588,a.jbopomofo=12560,a.jcaron=496,a.jcircle=9433,a.jcircumflex=309,a.jcrossedtail=669,a.jdotlessstroke=607,a.jecyrillic=1112,a.jeemarabic=1580,a.jeemfinalarabic=65182,a.jeeminitialarabic=65183,a.jeemmedialarabic=65184,a.jeharabic=1688,a.jehfinalarabic=64395,a.jhabengali=2461,a.jhadeva=2333,a.jhagujarati=2717,a.jhagurmukhi=2589,a.jheharmenian=1403,a.jis=12292,a.jmonospace=65354,a.jparen=9381,a.jsuperior=690,a.k=107,a.kabashkircyrillic=1185,a.kabengali=2453,a.kacute=7729,a.kacyrillic=1082,a.kadescendercyrillic=1179,a.kadeva=2325,a.kaf=1499,a.kafarabic=1603,a.kafdagesh=64315,a.kafdageshhebrew=64315,a.kaffinalarabic=65242,a.kafhebrew=1499,a.kafinitialarabic=65243,a.kafmedialarabic=65244,a.kafrafehebrew=64333,a.kagujarati=2709,a.kagurmukhi=2581,a.kahiragana=12363,a.kahookcyrillic=1220,a.kakatakana=12459,a.kakatakanahalfwidth=65398,a.kappa=954,a.kappasymbolgreek=1008,a.kapyeounmieumkorean=12657,a.kapyeounphieuphkorean=12676,a.kapyeounpieupkorean=12664,a.kapyeounssangpieupkorean=12665,a.karoriisquare=13069,a.kashidaautoarabic=1600,a.kashidaautonosidebearingarabic=1600,a.kasmallkatakana=12533,a.kasquare=13188,a.kasraarabic=1616,a.kasratanarabic=1613,a.kastrokecyrillic=1183,a.katahiraprolongmarkhalfwidth=65392,a.kaverticalstrokecyrillic=1181,a.kbopomofo=12558,a.kcalsquare=13193,a.kcaron=489,a.kcedilla=311,a.kcircle=9434,a.kcommaaccent=311,a.kdotbelow=7731,a.keharmenian=1412,a.kehiragana=12369,a.kekatakana=12465,a.kekatakanahalfwidth=65401,a.kenarmenian=1391,a.kesmallkatakana=12534,a.kgreenlandic=312,a.khabengali=2454,a.khacyrillic=1093,a.khadeva=2326,a.khagujarati=2710,a.khagurmukhi=2582,a.khaharabic=1582,a.khahfinalarabic=65190,a.khahinitialarabic=65191,a.khahmedialarabic=65192,a.kheicoptic=999,a.khhadeva=2393,a.khhagurmukhi=2649,a.khieukhacirclekorean=12920,a.khieukhaparenkorean=12824,a.khieukhcirclekorean=12906,a.khieukhkorean=12619,a.khieukhparenkorean=12810,a.khokhaithai=3586,a.khokhonthai=3589,a.khokhuatthai=3587,a.khokhwaithai=3588,a.khomutthai=3675,a.khook=409,a.khorakhangthai=3590,a.khzsquare=13201,a.kihiragana=12365,a.kikatakana=12461,a.kikatakanahalfwidth=65399,a.kiroguramusquare=13077,a.kiromeetorusquare=13078,a.kirosquare=13076,a.kiyeokacirclekorean=12910,a.kiyeokaparenkorean=12814,a.kiyeokcirclekorean=12896,a.kiyeokkorean=12593,a.kiyeokparenkorean=12800,a.kiyeoksioskorean=12595,a.kjecyrillic=1116,a.klinebelow=7733,a.klsquare=13208,a.kmcubedsquare=13222,a.kmonospace=65355,a.kmsquaredsquare=13218,a.kohiragana=12371,a.kohmsquare=13248,a.kokaithai=3585,a.kokatakana=12467,a.kokatakanahalfwidth=65402,a.kooposquare=13086,a.koppacyrillic=1153,a.koreanstandardsymbol=12927,a.koroniscmb=835,a.kparen=9382,a.kpasquare=13226,a.ksicyrillic=1135,a.ktsquare=13263,a.kturned=670,a.kuhiragana=12367,a.kukatakana=12463,a.kukatakanahalfwidth=65400,a.kvsquare=13240,a.kwsquare=13246,a.l=108,a.labengali=2482,a.lacute=314,a.ladeva=2354,a.lagujarati=2738,a.lagurmukhi=2610,a.lakkhangyaothai=3653,a.lamaleffinalarabic=65276,a.lamalefhamzaabovefinalarabic=65272,a.lamalefhamzaaboveisolatedarabic=65271,a.lamalefhamzabelowfinalarabic=65274,a.lamalefhamzabelowisolatedarabic=65273,a.lamalefisolatedarabic=65275,a.lamalefmaddaabovefinalarabic=65270,a.lamalefmaddaaboveisolatedarabic=65269,a.lamarabic=1604,a.lambda=955,a.lambdastroke=411,a.lamed=1500,a.lameddagesh=64316,a.lameddageshhebrew=64316,a.lamedhebrew=1500,a.lamfinalarabic=65246,a.lamhahinitialarabic=64714,a.laminitialarabic=65247,a.lamjeeminitialarabic=64713,a.lamkhahinitialarabic=64715,a.lamlamhehisolatedarabic=65010,a.lammedialarabic=65248,a.lammeemhahinitialarabic=64904,a.lammeeminitialarabic=64716,a.largecircle=9711,a.lbar=410,a.lbelt=620,a.lbopomofo=12556,a.lcaron=318,a.lcedilla=316,a.lcircle=9435,a.lcircumflexbelow=7741,a.lcommaaccent=316,a.ldot=320,a.ldotaccent=320,a.ldotbelow=7735,a.ldotbelowmacron=7737,a.leftangleabovecmb=794,a.lefttackbelowcmb=792,a.less=60,a.lessequal=8804,a.lessequalorgreater=8922,a.lessmonospace=65308,a.lessorequivalent=8818,a.lessorgreater=8822,a.lessoverequal=8806,a.lesssmall=65124,a.lezh=622,a.lfblock=9612,a.lhookretroflex=621,a.lira=8356,a.liwnarmenian=1388,a.lj=457,a.ljecyrillic=1113,a.ll=63168,a.lladeva=2355,a.llagujarati=2739,a.llinebelow=7739,a.llladeva=2356,a.llvocalicbengali=2529,a.llvocalicdeva=2401,a.llvocalicvowelsignbengali=2531,a.llvocalicvowelsigndeva=2403,a.lmiddletilde=619,a.lmonospace=65356,a.lmsquare=13264,a.lochulathai=3628,a.logicaland=8743,a.logicalnot=172,a.logicalnotreversed=8976,a.logicalor=8744,a.lolingthai=3621,a.longs=383,a.lowlinecenterline=65102,a.lowlinecmb=818,a.lowlinedashed=65101,a.lozenge=9674,a.lparen=9383,a.lslash=322,a.lsquare=8467,a.lsuperior=63214,a.ltshade=9617,a.luthai=3622,a.lvocalicbengali=2444,a.lvocalicdeva=2316,a.lvocalicvowelsignbengali=2530,a.lvocalicvowelsigndeva=2402,a.lxsquare=13267,a.m=109,a.mabengali=2478,a.macron=175,a.macronbelowcmb=817,a.macroncmb=772,a.macronlowmod=717,a.macronmonospace=65507,a.macute=7743,a.madeva=2350,a.magujarati=2734,a.magurmukhi=2606,a.mahapakhhebrew=1444,a.mahapakhlefthebrew=1444,a.mahiragana=12414,a.maichattawalowleftthai=63637,a.maichattawalowrightthai=63636,a.maichattawathai=3659,a.maichattawaupperleftthai=63635,a.maieklowleftthai=63628,a.maieklowrightthai=63627,a.maiekthai=3656,a.maiekupperleftthai=63626,a.maihanakatleftthai=63620,a.maihanakatthai=3633,a.maitaikhuleftthai=63625,a.maitaikhuthai=3655,a.maitholowleftthai=63631,a.maitholowrightthai=63630,a.maithothai=3657,a.maithoupperleftthai=63629,a.maitrilowleftthai=63634,a.maitrilowrightthai=63633,a.maitrithai=3658,a.maitriupperleftthai=63632,a.maiyamokthai=3654,a.makatakana=12510,a.makatakanahalfwidth=65423,a.male=9794,a.mansyonsquare=13127,a.maqafhebrew=1470,a.mars=9794,a.masoracirclehebrew=1455,a.masquare=13187,a.mbopomofo=12551,a.mbsquare=13268,a.mcircle=9436,a.mcubedsquare=13221,a.mdotaccent=7745,a.mdotbelow=7747,a.meemarabic=1605,a.meemfinalarabic=65250,a.meeminitialarabic=65251,a.meemmedialarabic=65252,a.meemmeeminitialarabic=64721,a.meemmeemisolatedarabic=64584,a.meetorusquare=13133,a.mehiragana=12417,a.meizierasquare=13182,a.mekatakana=12513,a.mekatakanahalfwidth=65426,a.mem=1502,a.memdagesh=64318,a.memdageshhebrew=64318,a.memhebrew=1502,a.menarmenian=1396,a.merkhahebrew=1445,a.merkhakefulahebrew=1446,a.merkhakefulalefthebrew=1446,a.merkhalefthebrew=1445,a.mhook=625,a.mhzsquare=13202,a.middledotkatakanahalfwidth=65381,a.middot=183,a.mieumacirclekorean=12914,a.mieumaparenkorean=12818,a.mieumcirclekorean=12900,a.mieumkorean=12609,a.mieumpansioskorean=12656,a.mieumparenkorean=12804,a.mieumpieupkorean=12654,a.mieumsioskorean=12655,a.mihiragana=12415,a.mikatakana=12511,a.mikatakanahalfwidth=65424,a.minus=8722,a.minusbelowcmb=800,a.minuscircle=8854,a.minusmod=727,a.minusplus=8723,a.minute=8242,a.miribaarusquare=13130,a.mirisquare=13129,a.mlonglegturned=624,a.mlsquare=13206,a.mmcubedsquare=13219,a.mmonospace=65357,a.mmsquaredsquare=13215,a.mohiragana=12418,a.mohmsquare=13249,a.mokatakana=12514,a.mokatakanahalfwidth=65427,a.molsquare=13270,a.momathai=3617,a.moverssquare=13223,a.moverssquaredsquare=13224,a.mparen=9384,a.mpasquare=13227,a.mssquare=13235,a.msuperior=63215,a.mturned=623,a.mu=181,a.mu1=181,a.muasquare=13186,a.muchgreater=8811,a.muchless=8810,a.mufsquare=13196,a.mugreek=956,a.mugsquare=13197,a.muhiragana=12416,a.mukatakana=12512,a.mukatakanahalfwidth=65425,a.mulsquare=13205,a.multiply=215,a.mumsquare=13211,a.munahhebrew=1443,a.munahlefthebrew=1443,a.musicalnote=9834,a.musicalnotedbl=9835,a.musicflatsign=9837,a.musicsharpsign=9839,a.mussquare=13234,a.muvsquare=13238,a.muwsquare=13244,a.mvmegasquare=13241,a.mvsquare=13239,a.mwmegasquare=13247,a.mwsquare=13245,a.n=110,a.nabengali=2472,a.nabla=8711,a.nacute=324,a.nadeva=2344,a.nagujarati=2728,a.nagurmukhi=2600,a.nahiragana=12394,a.nakatakana=12490,a.nakatakanahalfwidth=65413,a.napostrophe=329,a.nasquare=13185,a.nbopomofo=12555,a.nbspace=160,a.ncaron=328,a.ncedilla=326,a.ncircle=9437,a.ncircumflexbelow=7755,a.ncommaaccent=326,a.ndotaccent=7749,a.ndotbelow=7751,a.nehiragana=12397,a.nekatakana=12493,a.nekatakanahalfwidth=65416,a.newsheqelsign=8362,a.nfsquare=13195,a.ngabengali=2457,a.ngadeva=2329,a.ngagujarati=2713,a.ngagurmukhi=2585,a.ngonguthai=3591,a.nhiragana=12435,a.nhookleft=626,a.nhookretroflex=627,a.nieunacirclekorean=12911,a.nieunaparenkorean=12815,a.nieuncieuckorean=12597,a.nieuncirclekorean=12897,a.nieunhieuhkorean=12598,a.nieunkorean=12596,a.nieunpansioskorean=12648,a.nieunparenkorean=12801,a.nieunsioskorean=12647,a.nieuntikeutkorean=12646,a.nihiragana=12395,a.nikatakana=12491,a.nikatakanahalfwidth=65414,a.nikhahitleftthai=63641,a.nikhahitthai=3661,a.nine=57,a.ninearabic=1641,a.ninebengali=2543,a.ninecircle=9320,a.ninecircleinversesansserif=10130,a.ninedeva=2415,a.ninegujarati=2799,a.ninegurmukhi=2671,a.ninehackarabic=1641,a.ninehangzhou=12329,a.nineideographicparen=12840,a.nineinferior=8329,a.ninemonospace=65305,a.nineoldstyle=63289,a.nineparen=9340,a.nineperiod=9360,a.ninepersian=1785,a.nineroman=8568,a.ninesuperior=8313,a.nineteencircle=9330,a.nineteenparen=9350,a.nineteenperiod=9370,a.ninethai=3673,a.nj=460,a.njecyrillic=1114,a.nkatakana=12531,a.nkatakanahalfwidth=65437,a.nlegrightlong=414,a.nlinebelow=7753,a.nmonospace=65358,a.nmsquare=13210,a.nnabengali=2467,a.nnadeva=2339,a.nnagujarati=2723,a.nnagurmukhi=2595,a.nnnadeva=2345,a.nohiragana=12398,a.nokatakana=12494,a.nokatakanahalfwidth=65417,a.nonbreakingspace=160,a.nonenthai=3603,a.nonuthai=3609,a.noonarabic=1606,a.noonfinalarabic=65254,a.noonghunnaarabic=1722,a.noonghunnafinalarabic=64415,a.nooninitialarabic=65255,a.noonjeeminitialarabic=64722,a.noonjeemisolatedarabic=64587,a.noonmedialarabic=65256,a.noonmeeminitialarabic=64725,a.noonmeemisolatedarabic=64590,a.noonnoonfinalarabic=64653,a.notcontains=8716,a.notelement=8713,a.notelementof=8713,a.notequal=8800,a.notgreater=8815,a.notgreaternorequal=8817,a.notgreaternorless=8825,a.notidentical=8802,a.notless=8814,a.notlessnorequal=8816,a.notparallel=8742,a.notprecedes=8832,a.notsubset=8836,a.notsucceeds=8833,a.notsuperset=8837,a.nowarmenian=1398,a.nparen=9385,a.nssquare=13233,a.nsuperior=8319,a.ntilde=241,a.nu=957,a.nuhiragana=12396,a.nukatakana=12492,a.nukatakanahalfwidth=65415,a.nuktabengali=2492,a.nuktadeva=2364,a.nuktagujarati=2748,a.nuktagurmukhi=2620,a.numbersign=35,a.numbersignmonospace=65283,a.numbersignsmall=65119,a.numeralsigngreek=884,a.numeralsignlowergreek=885,a.numero=8470,a.nun=1504,a.nundagesh=64320,a.nundageshhebrew=64320,a.nunhebrew=1504,a.nvsquare=13237,a.nwsquare=13243,a.nyabengali=2462,a.nyadeva=2334,a.nyagujarati=2718,a.nyagurmukhi=2590,a.o=111,a.oacute=243,a.oangthai=3629,a.obarred=629,a.obarredcyrillic=1257,a.obarreddieresiscyrillic=1259,a.obengali=2451,a.obopomofo=12571,a.obreve=335,a.ocandradeva=2321,a.ocandragujarati=2705,a.ocandravowelsigndeva=2377,a.ocandravowelsigngujarati=2761,a.ocaron=466,a.ocircle=9438,a.ocircumflex=244,a.ocircumflexacute=7889,a.ocircumflexdotbelow=7897,a.ocircumflexgrave=7891,a.ocircumflexhookabove=7893,a.ocircumflextilde=7895,a.ocyrillic=1086,a.odblacute=337,a.odblgrave=525,a.odeva=2323,a.odieresis=246,a.odieresiscyrillic=1255,a.odotbelow=7885,a.oe=339,a.oekorean=12634,a.ogonek=731,a.ogonekcmb=808,a.ograve=242,a.ogujarati=2707,a.oharmenian=1413,a.ohiragana=12362,a.ohookabove=7887,a.ohorn=417,a.ohornacute=7899,a.ohorndotbelow=7907,a.ohorngrave=7901,a.ohornhookabove=7903,a.ohorntilde=7905,a.ohungarumlaut=337,a.oi=419,a.oinvertedbreve=527,a.okatakana=12458,a.okatakanahalfwidth=65397,a.okorean=12631,a.olehebrew=1451,a.omacron=333,a.omacronacute=7763,a.omacrongrave=7761,a.omdeva=2384,a.omega=969,a.omega1=982,a.omegacyrillic=1121,a.omegalatinclosed=631,a.omegaroundcyrillic=1147,a.omegatitlocyrillic=1149,a.omegatonos=974,a.omgujarati=2768,a.omicron=959,a.omicrontonos=972,a.omonospace=65359,a.one=49,a.onearabic=1633,a.onebengali=2535,a.onecircle=9312,a.onecircleinversesansserif=10122,a.onedeva=2407,a.onedotenleader=8228,a.oneeighth=8539,a.onefitted=63196,a.onegujarati=2791,a.onegurmukhi=2663,a.onehackarabic=1633,a.onehalf=189,a.onehangzhou=12321,a.oneideographicparen=12832,a.oneinferior=8321,a.onemonospace=65297,a.onenumeratorbengali=2548,a.oneoldstyle=63281,a.oneparen=9332,a.oneperiod=9352,a.onepersian=1777,a.onequarter=188,a.oneroman=8560,a.onesuperior=185,a.onethai=3665,a.onethird=8531,a.oogonek=491,a.oogonekmacron=493,a.oogurmukhi=2579,a.oomatragurmukhi=2635,a.oopen=596,a.oparen=9386,a.openbullet=9702,a.option=8997,a.ordfeminine=170,a.ordmasculine=186,a.orthogonal=8735,a.oshortdeva=2322,a.oshortvowelsigndeva=2378,a.oslash=248,a.oslashacute=511,a.osmallhiragana=12361,a.osmallkatakana=12457,a.osmallkatakanahalfwidth=65387,a.ostrokeacute=511,a.osuperior=63216,a.otcyrillic=1151,a.otilde=245,a.otildeacute=7757,a.otildedieresis=7759,a.oubopomofo=12577,a.overline=8254,a.overlinecenterline=65098,a.overlinecmb=773,a.overlinedashed=65097,a.overlinedblwavy=65100,a.overlinewavy=65099,a.overscore=175,a.ovowelsignbengali=2507,a.ovowelsigndeva=2379,a.ovowelsigngujarati=2763,a.p=112,a.paampssquare=13184,a.paasentosquare=13099,a.pabengali=2474,a.pacute=7765,a.padeva=2346,a.pagedown=8671,a.pageup=8670,a.pagujarati=2730,a.pagurmukhi=2602,a.pahiragana=12401,a.paiyannoithai=3631,a.pakatakana=12497,a.palatalizationcyrilliccmb=1156,a.palochkacyrillic=1216,a.pansioskorean=12671,a.paragraph=182,a.parallel=8741,a.parenleft=40,a.parenleftaltonearabic=64830,a.parenleftbt=63725,a.parenleftex=63724,a.parenleftinferior=8333,a.parenleftmonospace=65288,a.parenleftsmall=65113,a.parenleftsuperior=8317,a.parenlefttp=63723,a.parenleftvertical=65077,a.parenright=41,a.parenrightaltonearabic=64831,a.parenrightbt=63736,a.parenrightex=63735,a.parenrightinferior=8334,a.parenrightmonospace=65289,a.parenrightsmall=65114,a.parenrightsuperior=8318,a.parenrighttp=63734,a.parenrightvertical=65078,a.partialdiff=8706,a.paseqhebrew=1472,a.pashtahebrew=1433,a.pasquare=13225,a.patah=1463,a.patah11=1463,a.patah1d=1463,a.patah2a=1463,a.patahhebrew=1463,a.patahnarrowhebrew=1463,a.patahquarterhebrew=1463,a.patahwidehebrew=1463,a.pazerhebrew=1441,a.pbopomofo=12550,a.pcircle=9439,a.pdotaccent=7767,a.pe=1508,a.pecyrillic=1087,a.pedagesh=64324,a.pedageshhebrew=64324,a.peezisquare=13115,a.pefinaldageshhebrew=64323,a.peharabic=1662,a.peharmenian=1402,a.pehebrew=1508,a.pehfinalarabic=64343,a.pehinitialarabic=64344,a.pehiragana=12410,a.pehmedialarabic=64345,a.pekatakana=12506,a.pemiddlehookcyrillic=1191,a.perafehebrew=64334,a.percent=37,a.percentarabic=1642,a.percentmonospace=65285,a.percentsmall=65130,a.period=46,a.periodarmenian=1417,a.periodcentered=183,a.periodhalfwidth=65377,a.periodinferior=63207,a.periodmonospace=65294,a.periodsmall=65106,a.periodsuperior=63208,a.perispomenigreekcmb=834,a.perpendicular=8869,a.perthousand=8240,a.peseta=8359,a.pfsquare=13194,a.phabengali=2475,a.phadeva=2347,a.phagujarati=2731,a.phagurmukhi=2603,a.phi=966,a.phi1=981,a.phieuphacirclekorean=12922,a.phieuphaparenkorean=12826,a.phieuphcirclekorean=12908,a.phieuphkorean=12621,a.phieuphparenkorean=12812,a.philatin=632,a.phinthuthai=3642,a.phisymbolgreek=981,a.phook=421,a.phophanthai=3614,a.phophungthai=3612,a.phosamphaothai=3616,a.pi=960,a.pieupacirclekorean=12915,a.pieupaparenkorean=12819,a.pieupcieuckorean=12662,a.pieupcirclekorean=12901,a.pieupkiyeokkorean=12658,a.pieupkorean=12610,a.pieupparenkorean=12805,a.pieupsioskiyeokkorean=12660,a.pieupsioskorean=12612,a.pieupsiostikeutkorean=12661,a.pieupthieuthkorean=12663,a.pieuptikeutkorean=12659,a.pihiragana=12404,a.pikatakana=12500,a.pisymbolgreek=982,a.piwrarmenian=1411,a.plus=43,a.plusbelowcmb=799,a.pluscircle=8853,a.plusminus=177,a.plusmod=726,a.plusmonospace=65291,a.plussmall=65122,a.plussuperior=8314,a.pmonospace=65360,a.pmsquare=13272,a.pohiragana=12413,a.pointingindexdownwhite=9759,a.pointingindexleftwhite=9756,a.pointingindexrightwhite=9758,a.pointingindexupwhite=9757,a.pokatakana=12509,a.poplathai=3611,a.postalmark=12306,a.postalmarkface=12320,a.pparen=9387,a.precedes=8826,a.prescription=8478,a.primemod=697,a.primereversed=8245,a.product=8719,a.projective=8965,a.prolongedkana=12540,a.propellor=8984,a.propersubset=8834,a.propersuperset=8835,a.proportion=8759,a.proportional=8733,a.psi=968,a.psicyrillic=1137,a.psilipneumatacyrilliccmb=1158,a.pssquare=13232,a.puhiragana=12407,a.pukatakana=12503,a.pvsquare=13236,a.pwsquare=13242,a.q=113,a.qadeva=2392,a.qadmahebrew=1448,a.qafarabic=1602,a.qaffinalarabic=65238,a.qafinitialarabic=65239,a.qafmedialarabic=65240,a.qamats=1464,a.qamats10=1464,a.qamats1a=1464,a.qamats1c=1464,a.qamats27=1464,a.qamats29=1464,a.qamats33=1464,a.qamatsde=1464,a.qamatshebrew=1464,a.qamatsnarrowhebrew=1464,a.qamatsqatanhebrew=1464,a.qamatsqatannarrowhebrew=1464,a.qamatsqatanquarterhebrew=1464,a.qamatsqatanwidehebrew=1464,a.qamatsquarterhebrew=1464,a.qamatswidehebrew=1464,a.qarneyparahebrew=1439,a.qbopomofo=12561,a.qcircle=9440,a.qhook=672,a.qmonospace=65361,a.qof=1511,a.qofdagesh=64327,a.qofdageshhebrew=64327,a.qofhebrew=1511,a.qparen=9388,a.quarternote=9833,a.qubuts=1467,a.qubuts18=1467,a.qubuts25=1467,a.qubuts31=1467,a.qubutshebrew=1467,a.qubutsnarrowhebrew=1467,a.qubutsquarterhebrew=1467,a.qubutswidehebrew=1467,a.question=63,a.questionarabic=1567,a.questionarmenian=1374,a.questiondown=191,a.questiondownsmall=63423,a.questiongreek=894,a.questionmonospace=65311,a.questionsmall=63295,a.quotedbl=34,a.quotedblbase=8222,a.quotedblleft=8220,a.quotedblmonospace=65282,a.quotedblprime=12318,a.quotedblprimereversed=12317,a.quotedblright=8221,a.quoteleft=8216,a.quoteleftreversed=8219,a.quotereversed=8219,a.quoteright=8217,a.quoterightn=329,a.quotesinglbase=8218,a.quotesingle=39,a.quotesinglemonospace=65287,a.r=114,a.raarmenian=1404,a.rabengali=2480,a.racute=341,a.radeva=2352,a.radical=8730,a.radicalex=63717,a.radoverssquare=13230,a.radoverssquaredsquare=13231,a.radsquare=13229,a.rafe=1471,a.rafehebrew=1471,a.ragujarati=2736,a.ragurmukhi=2608,a.rahiragana=12425,a.rakatakana=12521,a.rakatakanahalfwidth=65431,a.ralowerdiagonalbengali=2545,a.ramiddlediagonalbengali=2544,a.ramshorn=612,a.ratio=8758,a.rbopomofo=12566,a.rcaron=345,a.rcedilla=343,a.rcircle=9441,a.rcommaaccent=343,a.rdblgrave=529,a.rdotaccent=7769,a.rdotbelow=7771,a.rdotbelowmacron=7773,a.referencemark=8251,a.reflexsubset=8838,a.reflexsuperset=8839,a.registered=174,a.registersans=63720,a.registerserif=63194,a.reharabic=1585,a.reharmenian=1408,a.rehfinalarabic=65198,a.rehiragana=12428,a.rekatakana=12524,a.rekatakanahalfwidth=65434,a.resh=1512,a.reshdageshhebrew=64328,a.reshhebrew=1512,a.reversedtilde=8765,a.reviahebrew=1431,a.reviamugrashhebrew=1431,a.revlogicalnot=8976,a.rfishhook=638,a.rfishhookreversed=639,a.rhabengali=2525,a.rhadeva=2397,a.rho=961,a.rhook=637,a.rhookturned=635,a.rhookturnedsuperior=693,a.rhosymbolgreek=1009,a.rhotichookmod=734,a.rieulacirclekorean=12913,a.rieulaparenkorean=12817,a.rieulcirclekorean=12899,a.rieulhieuhkorean=12608,a.rieulkiyeokkorean=12602,a.rieulkiyeoksioskorean=12649,a.rieulkorean=12601,a.rieulmieumkorean=12603,a.rieulpansioskorean=12652,a.rieulparenkorean=12803,a.rieulphieuphkorean=12607,a.rieulpieupkorean=12604,a.rieulpieupsioskorean=12651,a.rieulsioskorean=12605,a.rieulthieuthkorean=12606,a.rieultikeutkorean=12650,a.rieulyeorinhieuhkorean=12653,a.rightangle=8735,a.righttackbelowcmb=793,a.righttriangle=8895,a.rihiragana=12426,a.rikatakana=12522,a.rikatakanahalfwidth=65432,a.ring=730,a.ringbelowcmb=805,a.ringcmb=778,a.ringhalfleft=703,a.ringhalfleftarmenian=1369,a.ringhalfleftbelowcmb=796,a.ringhalfleftcentered=723,a.ringhalfright=702,a.ringhalfrightbelowcmb=825,a.ringhalfrightcentered=722,a.rinvertedbreve=531,a.rittorusquare=13137,a.rlinebelow=7775,a.rlongleg=636,a.rlonglegturned=634,a.rmonospace=65362,a.rohiragana=12429,a.rokatakana=12525,a.rokatakanahalfwidth=65435,a.roruathai=3619,a.rparen=9389,a.rrabengali=2524,a.rradeva=2353,a.rragurmukhi=2652,a.rreharabic=1681,a.rrehfinalarabic=64397,a.rrvocalicbengali=2528,a.rrvocalicdeva=2400,a.rrvocalicgujarati=2784,a.rrvocalicvowelsignbengali=2500,a.rrvocalicvowelsigndeva=2372,a.rrvocalicvowelsigngujarati=2756,a.rsuperior=63217,a.rtblock=9616,a.rturned=633,a.rturnedsuperior=692,a.ruhiragana=12427,a.rukatakana=12523,a.rukatakanahalfwidth=65433,a.rupeemarkbengali=2546,a.rupeesignbengali=2547,a.rupiah=63197,a.ruthai=3620,a.rvocalicbengali=2443,a.rvocalicdeva=2315,a.rvocalicgujarati=2699,a.rvocalicvowelsignbengali=2499,a.rvocalicvowelsigndeva=2371,a.rvocalicvowelsigngujarati=2755,a.s=115,a.sabengali=2488,a.sacute=347,a.sacutedotaccent=7781,a.sadarabic=1589,a.sadeva=2360,a.sadfinalarabic=65210,a.sadinitialarabic=65211,a.sadmedialarabic=65212,a.sagujarati=2744,a.sagurmukhi=2616,a.sahiragana=12373,a.sakatakana=12469,a.sakatakanahalfwidth=65403,a.sallallahoualayhewasallamarabic=65018,a.samekh=1505,a.samekhdagesh=64321,a.samekhdageshhebrew=64321,a.samekhhebrew=1505,a.saraaathai=3634,a.saraaethai=3649,a.saraaimaimalaithai=3652,a.saraaimaimuanthai=3651,a.saraamthai=3635,a.saraathai=3632,a.saraethai=3648,a.saraiileftthai=63622,a.saraiithai=3637,a.saraileftthai=63621,a.saraithai=3636,a.saraothai=3650,a.saraueeleftthai=63624,a.saraueethai=3639,a.saraueleftthai=63623,a.sarauethai=3638,a.sarauthai=3640,a.sarauuthai=3641,a.sbopomofo=12569,a.scaron=353,a.scarondotaccent=7783,a.scedilla=351,a.schwa=601,a.schwacyrillic=1241,a.schwadieresiscyrillic=1243,a.schwahook=602,a.scircle=9442,a.scircumflex=349,a.scommaaccent=537,a.sdotaccent=7777,a.sdotbelow=7779,a.sdotbelowdotaccent=7785,a.seagullbelowcmb=828,a.second=8243,a.secondtonechinese=714,a.section=167,a.seenarabic=1587,a.seenfinalarabic=65202,a.seeninitialarabic=65203,a.seenmedialarabic=65204,a.segol=1462,a.segol13=1462,a.segol1f=1462,a.segol2c=1462,a.segolhebrew=1462,a.segolnarrowhebrew=1462,a.segolquarterhebrew=1462,a.segoltahebrew=1426,a.segolwidehebrew=1462,a.seharmenian=1405,a.sehiragana=12379,a.sekatakana=12475,a.sekatakanahalfwidth=65406,a.semicolon=59,a.semicolonarabic=1563,a.semicolonmonospace=65307,a.semicolonsmall=65108,a.semivoicedmarkkana=12444,a.semivoicedmarkkanahalfwidth=65439,a.sentisquare=13090,a.sentosquare=13091,a.seven=55,a.sevenarabic=1639,a.sevenbengali=2541,a.sevencircle=9318,a.sevencircleinversesansserif=10128,a.sevendeva=2413,a.seveneighths=8542,a.sevengujarati=2797,a.sevengurmukhi=2669,a.sevenhackarabic=1639,a.sevenhangzhou=12327,a.sevenideographicparen=12838,a.seveninferior=8327,a.sevenmonospace=65303,a.sevenoldstyle=63287,a.sevenparen=9338,a.sevenperiod=9358,a.sevenpersian=1783,a.sevenroman=8566,a.sevensuperior=8311,a.seventeencircle=9328,a.seventeenparen=9348,a.seventeenperiod=9368,a.seventhai=3671,a.sfthyphen=173,a.shaarmenian=1399,a.shabengali=2486,a.shacyrillic=1096,a.shaddaarabic=1617,a.shaddadammaarabic=64609,a.shaddadammatanarabic=64606,a.shaddafathaarabic=64608,a.shaddakasraarabic=64610,a.shaddakasratanarabic=64607,a.shade=9618,a.shadedark=9619,a.shadelight=9617,a.shademedium=9618,a.shadeva=2358,a.shagujarati=2742,a.shagurmukhi=2614,a.shalshelethebrew=1427,a.shbopomofo=12565,a.shchacyrillic=1097,a.sheenarabic=1588,a.sheenfinalarabic=65206,a.sheeninitialarabic=65207,a.sheenmedialarabic=65208,a.sheicoptic=995,a.sheqel=8362,a.sheqelhebrew=8362,a.sheva=1456,a.sheva115=1456,a.sheva15=1456,a.sheva22=1456,a.sheva2e=1456,a.shevahebrew=1456,a.shevanarrowhebrew=1456,a.shevaquarterhebrew=1456,a.shevawidehebrew=1456,a.shhacyrillic=1211,a.shimacoptic=1005,a.shin=1513,a.shindagesh=64329,a.shindageshhebrew=64329,a.shindageshshindot=64300,a.shindageshshindothebrew=64300,a.shindageshsindot=64301,a.shindageshsindothebrew=64301,a.shindothebrew=1473,a.shinhebrew=1513,a.shinshindot=64298,a.shinshindothebrew=64298,a.shinsindot=64299,a.shinsindothebrew=64299,a.shook=642,a.sigma=963,a.sigma1=962,a.sigmafinal=962,a.sigmalunatesymbolgreek=1010,a.sihiragana=12375,a.sikatakana=12471,a.sikatakanahalfwidth=65404,a.siluqhebrew=1469,a.siluqlefthebrew=1469,a.similar=8764,a.sindothebrew=1474,a.siosacirclekorean=12916,a.siosaparenkorean=12820,a.sioscieuckorean=12670,a.sioscirclekorean=12902,a.sioskiyeokkorean=12666,a.sioskorean=12613,a.siosnieunkorean=12667,a.siosparenkorean=12806,a.siospieupkorean=12669,a.siostikeutkorean=12668,a.six=54,a.sixarabic=1638,a.sixbengali=2540,a.sixcircle=9317,a.sixcircleinversesansserif=10127,a.sixdeva=2412,a.sixgujarati=2796,a.sixgurmukhi=2668,a.sixhackarabic=1638,a.sixhangzhou=12326,a.sixideographicparen=12837,a.sixinferior=8326,a.sixmonospace=65302,a.sixoldstyle=63286,a.sixparen=9337,a.sixperiod=9357,a.sixpersian=1782,a.sixroman=8565,a.sixsuperior=8310,a.sixteencircle=9327,a.sixteencurrencydenominatorbengali=2553,a.sixteenparen=9347,a.sixteenperiod=9367,a.sixthai=3670,a.slash=47,a.slashmonospace=65295,a.slong=383,a.slongdotaccent=7835,a.smileface=9786,a.smonospace=65363,a.sofpasuqhebrew=1475,a.softhyphen=173,a.softsigncyrillic=1100,a.sohiragana=12381,a.sokatakana=12477,a.sokatakanahalfwidth=65407,a.soliduslongoverlaycmb=824,a.solidusshortoverlaycmb=823,a.sorusithai=3625,a.sosalathai=3624,a.sosothai=3595,a.sosuathai=3626,a.space=32,a.spacehackarabic=32,a.spade=9824,a.spadesuitblack=9824,a.spadesuitwhite=9828,a.sparen=9390,a.squarebelowcmb=827,a.squarecc=13252,a.squarecm=13213,a.squarediagonalcrosshatchfill=9641,a.squarehorizontalfill=9636,a.squarekg=13199,a.squarekm=13214,a.squarekmcapital=13262,a.squareln=13265,a.squarelog=13266,a.squaremg=13198,a.squaremil=13269,a.squaremm=13212,a.squaremsquared=13217,a.squareorthogonalcrosshatchfill=9638,a.squareupperlefttolowerrightfill=9639,a.squareupperrighttolowerleftfill=9640,a.squareverticalfill=9637,a.squarewhitewithsmallblack=9635,a.srsquare=13275,a.ssabengali=2487,a.ssadeva=2359,a.ssagujarati=2743,a.ssangcieuckorean=12617,a.ssanghieuhkorean=12677,a.ssangieungkorean=12672,a.ssangkiyeokkorean=12594,a.ssangnieunkorean=12645,a.ssangpieupkorean=12611,a.ssangsioskorean=12614,a.ssangtikeutkorean=12600,a.ssuperior=63218,a.sterling=163,a.sterlingmonospace=65505,a.strokelongoverlaycmb=822,a.strokeshortoverlaycmb=821,a.subset=8834,a.subsetnotequal=8842,a.subsetorequal=8838,a.succeeds=8827,a.suchthat=8715,a.suhiragana=12377,a.sukatakana=12473,a.sukatakanahalfwidth=65405,a.sukunarabic=1618,a.summation=8721,a.sun=9788,a.superset=8835,a.supersetnotequal=8843,a.supersetorequal=8839,a.svsquare=13276,a.syouwaerasquare=13180,a.t=116,a.tabengali=2468,a.tackdown=8868,a.tackleft=8867,a.tadeva=2340,a.tagujarati=2724,a.tagurmukhi=2596,a.taharabic=1591,a.tahfinalarabic=65218,a.tahinitialarabic=65219,a.tahiragana=12383,a.tahmedialarabic=65220,a.taisyouerasquare=13181,a.takatakana=12479,a.takatakanahalfwidth=65408,a.tatweelarabic=1600,a.tau=964,a.tav=1514,a.tavdages=64330,a.tavdagesh=64330,a.tavdageshhebrew=64330,a.tavhebrew=1514,a.tbar=359,a.tbopomofo=12554,a.tcaron=357,a.tccurl=680,a.tcedilla=355,a.tcheharabic=1670,a.tchehfinalarabic=64379,a.tchehinitialarabic=64380,a.tchehmedialarabic=64381,a.tcircle=9443,a.tcircumflexbelow=7793,a.tcommaaccent=355,a.tdieresis=7831,a.tdotaccent=7787,a.tdotbelow=7789,a.tecyrillic=1090,a.tedescendercyrillic=1197,a.teharabic=1578,a.tehfinalarabic=65174,a.tehhahinitialarabic=64674,a.tehhahisolatedarabic=64524,a.tehinitialarabic=65175,a.tehiragana=12390,a.tehjeeminitialarabic=64673,a.tehjeemisolatedarabic=64523,a.tehmarbutaarabic=1577,a.tehmarbutafinalarabic=65172,a.tehmedialarabic=65176,a.tehmeeminitialarabic=64676,a.tehmeemisolatedarabic=64526,a.tehnoonfinalarabic=64627,a.tekatakana=12486,a.tekatakanahalfwidth=65411,a.telephone=8481,a.telephoneblack=9742,a.telishagedolahebrew=1440,a.telishaqetanahebrew=1449,a.tencircle=9321,a.tenideographicparen=12841,a.tenparen=9341,a.tenperiod=9361,a.tenroman=8569,a.tesh=679,a.tet=1496,a.tetdagesh=64312,a.tetdageshhebrew=64312,a.tethebrew=1496,a.tetsecyrillic=1205,a.tevirhebrew=1435,a.tevirlefthebrew=1435,a.thabengali=2469,a.thadeva=2341,a.thagujarati=2725,a.thagurmukhi=2597,a.thalarabic=1584,a.thalfinalarabic=65196,a.thanthakhatlowleftthai=63640,a.thanthakhatlowrightthai=63639,a.thanthakhatthai=3660,a.thanthakhatupperleftthai=63638,a.theharabic=1579,a.thehfinalarabic=65178,a.thehinitialarabic=65179,a.thehmedialarabic=65180,a.thereexists=8707,a.therefore=8756,a.theta=952,a.theta1=977,a.thetasymbolgreek=977,a.thieuthacirclekorean=12921,a.thieuthaparenkorean=12825,a.thieuthcirclekorean=12907,a.thieuthkorean=12620,a.thieuthparenkorean=12811,a.thirteencircle=9324,a.thirteenparen=9344,a.thirteenperiod=9364,a.thonangmonthothai=3601,a.thook=429,a.thophuthaothai=3602,a.thorn=254,a.thothahanthai=3607,a.thothanthai=3600,a.thothongthai=3608,a.thothungthai=3606,a.thousandcyrillic=1154,a.thousandsseparatorarabic=1644,a.thousandsseparatorpersian=1644,a.three=51,a.threearabic=1635,a.threebengali=2537,a.threecircle=9314,a.threecircleinversesansserif=10124,a.threedeva=2409,a.threeeighths=8540,a.threegujarati=2793,a.threegurmukhi=2665,a.threehackarabic=1635,a.threehangzhou=12323,a.threeideographicparen=12834,a.threeinferior=8323,a.threemonospace=65299,a.threenumeratorbengali=2550,a.threeoldstyle=63283,a.threeparen=9334,a.threeperiod=9354,a.threepersian=1779,a.threequarters=190,a.threequartersemdash=63198,a.threeroman=8562,a.threesuperior=179,a.threethai=3667,a.thzsquare=13204,a.tihiragana=12385,a.tikatakana=12481,a.tikatakanahalfwidth=65409,a.tikeutacirclekorean=12912,a.tikeutaparenkorean=12816,a.tikeutcirclekorean=12898,a.tikeutkorean=12599,a.tikeutparenkorean=12802,a.tilde=732,a.tildebelowcmb=816,a.tildecmb=771,a.tildecomb=771,a.tildedoublecmb=864,a.tildeoperator=8764,a.tildeoverlaycmb=820,a.tildeverticalcmb=830,a.timescircle=8855,a.tipehahebrew=1430,a.tipehalefthebrew=1430,a.tippigurmukhi=2672,a.titlocyrilliccmb=1155,a.tiwnarmenian=1407,a.tlinebelow=7791,a.tmonospace=65364,a.toarmenian=1385,a.tohiragana=12392,a.tokatakana=12488,a.tokatakanahalfwidth=65412,a.tonebarextrahighmod=741,a.tonebarextralowmod=745,a.tonebarhighmod=742,a.tonebarlowmod=744,a.tonebarmidmod=743,a.tonefive=445,a.tonesix=389,a.tonetwo=424,a.tonos=900,a.tonsquare=13095,a.topatakthai=3599,a.tortoiseshellbracketleft=12308,a.tortoiseshellbracketleftsmall=65117,a.tortoiseshellbracketleftvertical=65081,a.tortoiseshellbracketright=12309,a.tortoiseshellbracketrightsmall=65118,a.tortoiseshellbracketrightvertical=65082,a.totaothai=3605,a.tpalatalhook=427,a.tparen=9391,a.trademark=8482,a.trademarksans=63722,a.trademarkserif=63195,a.tretroflexhook=648,a.triagdn=9660,a.triaglf=9668,a.triagrt=9658,a.triagup=9650,a.ts=678,a.tsadi=1510,a.tsadidagesh=64326,a.tsadidageshhebrew=64326,a.tsadihebrew=1510,a.tsecyrillic=1094,a.tsere=1461,a.tsere12=1461,a.tsere1e=1461,a.tsere2b=1461,a.tserehebrew=1461,a.tserenarrowhebrew=1461,a.tserequarterhebrew=1461,a.tserewidehebrew=1461,a.tshecyrillic=1115,a.tsuperior=63219,a.ttabengali=2463,a.ttadeva=2335,a.ttagujarati=2719,a.ttagurmukhi=2591,a.tteharabic=1657,a.ttehfinalarabic=64359,a.ttehinitialarabic=64360,a.ttehmedialarabic=64361,a.tthabengali=2464,a.tthadeva=2336,a.tthagujarati=2720,a.tthagurmukhi=2592,a.tturned=647,a.tuhiragana=12388,a.tukatakana=12484,a.tukatakanahalfwidth=65410,a.tusmallhiragana=12387,a.tusmallkatakana=12483,a.tusmallkatakanahalfwidth=65391,a.twelvecircle=9323,a.twelveparen=9343,a.twelveperiod=9363,a.twelveroman=8571,a.twentycircle=9331,a.twentyhangzhou=21316,a.twentyparen=9351,a.twentyperiod=9371,a.two=50,a.twoarabic=1634,a.twobengali=2536,a.twocircle=9313,a.twocircleinversesansserif=10123,a.twodeva=2408,a.twodotenleader=8229,a.twodotleader=8229,a.twodotleadervertical=65072,a.twogujarati=2792,a.twogurmukhi=2664,a.twohackarabic=1634,a.twohangzhou=12322,a.twoideographicparen=12833,a.twoinferior=8322,a.twomonospace=65298,a.twonumeratorbengali=2549,a.twooldstyle=63282,a.twoparen=9333,a.twoperiod=9353,a.twopersian=1778,a.tworoman=8561,a.twostroke=443,a.twosuperior=178,a.twothai=3666,a.twothirds=8532,a.u=117,a.uacute=250,a.ubar=649,a.ubengali=2441,a.ubopomofo=12584,a.ubreve=365,a.ucaron=468,a.ucircle=9444,a.ucircumflex=251,a.ucircumflexbelow=7799,a.ucyrillic=1091,a.udattadeva=2385,a.udblacute=369,a.udblgrave=533,a.udeva=2313,a.udieresis=252,a.udieresisacute=472,a.udieresisbelow=7795,a.udieresiscaron=474,a.udieresiscyrillic=1265,a.udieresisgrave=476,a.udieresismacron=470,a.udotbelow=7909,a.ugrave=249,a.ugujarati=2697,a.ugurmukhi=2569,a.uhiragana=12358,a.uhookabove=7911,a.uhorn=432,a.uhornacute=7913,a.uhorndotbelow=7921,a.uhorngrave=7915,a.uhornhookabove=7917,a.uhorntilde=7919,a.uhungarumlaut=369,a.uhungarumlautcyrillic=1267,a.uinvertedbreve=535,a.ukatakana=12454,a.ukatakanahalfwidth=65395,a.ukcyrillic=1145,a.ukorean=12636,a.umacron=363,a.umacroncyrillic=1263,a.umacrondieresis=7803,a.umatragurmukhi=2625,a.umonospace=65365,a.underscore=95,a.underscoredbl=8215,a.underscoremonospace=65343,a.underscorevertical=65075,a.underscorewavy=65103,a.union=8746,a.universal=8704,a.uogonek=371,a.uparen=9392,a.upblock=9600,a.upperdothebrew=1476,a.upsilon=965,a.upsilondieresis=971,a.upsilondieresistonos=944,a.upsilonlatin=650,a.upsilontonos=973,a.uptackbelowcmb=797,a.uptackmod=724,a.uragurmukhi=2675,a.uring=367,a.ushortcyrillic=1118,a.usmallhiragana=12357,a.usmallkatakana=12453,a.usmallkatakanahalfwidth=65385,a.ustraightcyrillic=1199,a.ustraightstrokecyrillic=1201,a.utilde=361,a.utildeacute=7801,a.utildebelow=7797,a.uubengali=2442,a.uudeva=2314,a.uugujarati=2698,a.uugurmukhi=2570,a.uumatragurmukhi=2626,a.uuvowelsignbengali=2498,a.uuvowelsigndeva=2370,a.uuvowelsigngujarati=2754,a.uvowelsignbengali=2497,a.uvowelsigndeva=2369,a.uvowelsigngujarati=2753,a.v=118,a.vadeva=2357,a.vagujarati=2741,a.vagurmukhi=2613,a.vakatakana=12535,a.vav=1493,a.vavdagesh=64309,a.vavdagesh65=64309,a.vavdageshhebrew=64309,a.vavhebrew=1493,a.vavholam=64331,a.vavholamhebrew=64331,a.vavvavhebrew=1520,a.vavyodhebrew=1521,a.vcircle=9445,a.vdotbelow=7807,a.vecyrillic=1074,a.veharabic=1700,a.vehfinalarabic=64363,a.vehinitialarabic=64364,a.vehmedialarabic=64365,a.vekatakana=12537,a.venus=9792,a.verticalbar=124,a.verticallineabovecmb=781,a.verticallinebelowcmb=809,a.verticallinelowmod=716,a.verticallinemod=712,a.vewarmenian=1406,a.vhook=651,a.vikatakana=12536,a.viramabengali=2509,a.viramadeva=2381,a.viramagujarati=2765,a.visargabengali=2435,a.visargadeva=2307,a.visargagujarati=2691,a.vmonospace=65366,a.voarmenian=1400,a.voicediterationhiragana=12446,a.voicediterationkatakana=12542,a.voicedmarkkana=12443,a.voicedmarkkanahalfwidth=65438,a.vokatakana=12538,a.vparen=9393,a.vtilde=7805,a.vturned=652,a.vuhiragana=12436,a.vukatakana=12532,a.w=119,a.wacute=7811,a.waekorean=12633,a.wahiragana=12431,a.wakatakana=12527,a.wakatakanahalfwidth=65436,a.wakorean=12632,a.wasmallhiragana=12430,a.wasmallkatakana=12526,a.wattosquare=13143,a.wavedash=12316,a.wavyunderscorevertical=65076,a.wawarabic=1608,a.wawfinalarabic=65262,a.wawhamzaabovearabic=1572,a.wawhamzaabovefinalarabic=65158,a.wbsquare=13277,a.wcircle=9446,a.wcircumflex=373,a.wdieresis=7813,a.wdotaccent=7815,a.wdotbelow=7817,a.wehiragana=12433,a.weierstrass=8472,a.wekatakana=12529,a.wekorean=12638,a.weokorean=12637,a.wgrave=7809,a.whitebullet=9702,a.whitecircle=9675,a.whitecircleinverse=9689,a.whitecornerbracketleft=12302,a.whitecornerbracketleftvertical=65091,a.whitecornerbracketright=12303,a.whitecornerbracketrightvertical=65092,a.whitediamond=9671,a.whitediamondcontainingblacksmalldiamond=9672,a.whitedownpointingsmalltriangle=9663,a.whitedownpointingtriangle=9661,a.whiteleftpointingsmalltriangle=9667,a.whiteleftpointingtriangle=9665,a.whitelenticularbracketleft=12310,a.whitelenticularbracketright=12311,a.whiterightpointingsmalltriangle=9657,a.whiterightpointingtriangle=9655,a.whitesmallsquare=9643,a.whitesmilingface=9786,a.whitesquare=9633,a.whitestar=9734,a.whitetelephone=9743,a.whitetortoiseshellbracketleft=12312,a.whitetortoiseshellbracketright=12313,a.whiteuppointingsmalltriangle=9653,a.whiteuppointingtriangle=9651,a.wihiragana=12432,a.wikatakana=12528,a.wikorean=12639,a.wmonospace=65367,a.wohiragana=12434,a.wokatakana=12530,a.wokatakanahalfwidth=65382,a.won=8361,a.wonmonospace=65510,a.wowaenthai=3623,a.wparen=9394,a.wring=7832,a.wsuperior=695,a.wturned=653,a.wynn=447,a.x=120,a.xabovecmb=829,a.xbopomofo=12562,a.xcircle=9447,a.xdieresis=7821,a.xdotaccent=7819,a.xeharmenian=1389,a.xi=958,a.xmonospace=65368,a.xparen=9395,a.xsuperior=739,a.y=121,a.yaadosquare=13134,a.yabengali=2479,a.yacute=253,a.yadeva=2351,a.yaekorean=12626,a.yagujarati=2735,a.yagurmukhi=2607,a.yahiragana=12420,a.yakatakana=12516,a.yakatakanahalfwidth=65428,a.yakorean=12625,a.yamakkanthai=3662,a.yasmallhiragana=12419,a.yasmallkatakana=12515,a.yasmallkatakanahalfwidth=65388,a.yatcyrillic=1123,a.ycircle=9448,a.ycircumflex=375,a.ydieresis=255,a.ydotaccent=7823,a.ydotbelow=7925,a.yeharabic=1610,a.yehbarreearabic=1746,a.yehbarreefinalarabic=64431,a.yehfinalarabic=65266,a.yehhamzaabovearabic=1574,a.yehhamzaabovefinalarabic=65162,a.yehhamzaaboveinitialarabic=65163,a.yehhamzaabovemedialarabic=65164,a.yehinitialarabic=65267,a.yehmedialarabic=65268,a.yehmeeminitialarabic=64733,a.yehmeemisolatedarabic=64600,a.yehnoonfinalarabic=64660,a.yehthreedotsbelowarabic=1745,a.yekorean=12630,a.yen=165,a.yenmonospace=65509,a.yeokorean=12629,a.yeorinhieuhkorean=12678,a.yerahbenyomohebrew=1450,a.yerahbenyomolefthebrew=1450,a.yericyrillic=1099,a.yerudieresiscyrillic=1273,a.yesieungkorean=12673,a.yesieungpansioskorean=12675,a.yesieungsioskorean=12674,a.yetivhebrew=1434,a.ygrave=7923,a.yhook=436,a.yhookabove=7927,a.yiarmenian=1397,a.yicyrillic=1111,a.yikorean=12642,a.yinyang=9775,a.yiwnarmenian=1410,a.ymonospace=65369,a.yod=1497,a.yoddagesh=64313,a.yoddageshhebrew=64313,a.yodhebrew=1497,a.yodyodhebrew=1522,a.yodyodpatahhebrew=64287,a.yohiragana=12424,a.yoikorean=12681,a.yokatakana=12520,a.yokatakanahalfwidth=65430,a.yokorean=12635,a.yosmallhiragana=12423,a.yosmallkatakana=12519,a.yosmallkatakanahalfwidth=65390,a.yotgreek=1011,a.yoyaekorean=12680,a.yoyakorean=12679,a.yoyakthai=3618,a.yoyingthai=3597,a.yparen=9396,a.ypogegrammeni=890,a.ypogegrammenigreekcmb=837,a.yr=422,a.yring=7833,a.ysuperior=696,a.ytilde=7929,a.yturned=654,a.yuhiragana=12422,a.yuikorean=12684,a.yukatakana=12518,a.yukatakanahalfwidth=65429,a.yukorean=12640,a.yusbigcyrillic=1131,a.yusbigiotifiedcyrillic=1133,a.yuslittlecyrillic=1127,a.yuslittleiotifiedcyrillic=1129,a.yusmallhiragana=12421,a.yusmallkatakana=12517,a.yusmallkatakanahalfwidth=65389,a.yuyekorean=12683,a.yuyeokorean=12682,a.yyabengali=2527,a.yyadeva=2399,a.z=122,a.zaarmenian=1382,a.zacute=378,a.zadeva=2395,a.zagurmukhi=2651,a.zaharabic=1592,a.zahfinalarabic=65222,a.zahinitialarabic=65223,a.zahiragana=12374,a.zahmedialarabic=65224,a.zainarabic=1586,a.zainfinalarabic=65200,a.zakatakana=12470,a.zaqefgadolhebrew=1429,a.zaqefqatanhebrew=1428,a.zarqahebrew=1432,a.zayin=1494,a.zayindagesh=64310,a.zayindageshhebrew=64310,a.zayinhebrew=1494,a.zbopomofo=12567,a.zcaron=382,a.zcircle=9449,a.zcircumflex=7825,a.zcurl=657,a.zdot=380,a.zdotaccent=380,a.zdotbelow=7827,a.zecyrillic=1079,a.zedescendercyrillic=1177,a.zedieresiscyrillic=1247,a.zehiragana=12380,a.zekatakana=12476,a.zero=48,a.zeroarabic=1632,a.zerobengali=2534,a.zerodeva=2406,a.zerogujarati=2790,a.zerogurmukhi=2662,a.zerohackarabic=1632,a.zeroinferior=8320,a.zeromonospace=65296,a.zerooldstyle=63280,a.zeropersian=1776,a.zerosuperior=8304,a.zerothai=3664,a.zerowidthjoiner=65279,a.zerowidthnonjoiner=8204,a.zerowidthspace=8203,a.zeta=950,a.zhbopomofo=12563,a.zhearmenian=1386,a.zhebrevecyrillic=1218,a.zhecyrillic=1078,a.zhedescendercyrillic=1175,a.zhedieresiscyrillic=1245,a.zihiragana=12376,a.zikatakana=12472,a.zinorhebrew=1454,a.zlinebelow=7829,a.zmonospace=65370,a.zohiragana=12382,a.zokatakana=12478,a.zparen=9397,a.zretroflexhook=656,a.zstroke=438,a.zuhiragana=12378,a.zukatakana=12474,a[".notdef"]=0,a.angbracketleftbig=9001,a.angbracketleftBig=9001,a.angbracketleftbigg=9001,a.angbracketleftBigg=9001,a.angbracketrightBig=9002,a.angbracketrightbig=9002,a.angbracketrightBigg=9002,a.angbracketrightbigg=9002,a.arrowhookleft=8618,a.arrowhookright=8617,a.arrowlefttophalf=8636,a.arrowleftbothalf=8637,a.arrownortheast=8599,a.arrownorthwest=8598,a.arrowrighttophalf=8640,a.arrowrightbothalf=8641,a.arrowsoutheast=8600,a.arrowsouthwest=8601,a.backslashbig=8726,a.backslashBig=8726,a.backslashBigg=8726,a.backslashbigg=8726,a.bardbl=8214,a.bracehtipdownleft=65079,a.bracehtipdownright=65079,a.bracehtipupleft=65080,a.bracehtipupright=65080,a.braceleftBig=123,a.braceleftbig=123,a.braceleftbigg=123,a.braceleftBigg=123,a.bracerightBig=125,a.bracerightbig=125,a.bracerightbigg=125,a.bracerightBigg=125,a.bracketleftbig=91,a.bracketleftBig=91,a.bracketleftbigg=91,a.bracketleftBigg=91,a.bracketrightBig=93,a.bracketrightbig=93,a.bracketrightbigg=93,a.bracketrightBigg=93,a.ceilingleftbig=8968,a.ceilingleftBig=8968,a.ceilingleftBigg=8968,a.ceilingleftbigg=8968,a.ceilingrightbig=8969,a.ceilingrightBig=8969,a.ceilingrightbigg=8969,a.ceilingrightBigg=8969,a.circledotdisplay=8857,a.circledottext=8857,a.circlemultiplydisplay=8855,a.circlemultiplytext=8855,a.circleplusdisplay=8853,a.circleplustext=8853,a.contintegraldisplay=8750,a.contintegraltext=8750,a.coproductdisplay=8720,a.coproducttext=8720,a.floorleftBig=8970,a.floorleftbig=8970,a.floorleftbigg=8970,a.floorleftBigg=8970,a.floorrightbig=8971,a.floorrightBig=8971,a.floorrightBigg=8971,a.floorrightbigg=8971,a.hatwide=770,a.hatwider=770,a.hatwidest=770,a.intercal=7488,a.integraldisplay=8747,a.integraltext=8747,a.intersectiondisplay=8898,a.intersectiontext=8898,a.logicalanddisplay=8743,a.logicalandtext=8743,a.logicalordisplay=8744,a.logicalortext=8744,a.parenleftBig=40,a.parenleftbig=40,a.parenleftBigg=40,a.parenleftbigg=40,a.parenrightBig=41,a.parenrightbig=41,a.parenrightBigg=41,a.parenrightbigg=41,a.prime=8242,a.productdisplay=8719,a.producttext=8719,a.radicalbig=8730,a.radicalBig=8730,a.radicalBigg=8730,a.radicalbigg=8730,a.radicalbt=8730,a.radicaltp=8730,a.radicalvertex=8730,a.slashbig=47,a.slashBig=47,a.slashBigg=47,a.slashbigg=47,a.summationdisplay=8721,a.summationtext=8721,a.tildewide=732,a.tildewider=732,a.tildewidest=732,a.uniondisplay=8899,a.unionmultidisplay=8846,a.unionmultitext=8846,a.unionsqdisplay=8852,a.unionsqtext=8852,a.uniontext=8899,a.vextenddouble=8741,a.vextendsingle=8739}),k=m(function(a){a.space=32,a.a1=9985,a.a2=9986,a.a202=9987,a.a3=9988,a.a4=9742,a.a5=9990,a.a119=9991,a.a118=9992,a.a117=9993,a.a11=9755,a.a12=9758,a.a13=9996,a.a14=9997,a.a15=9998,a.a16=9999,a.a105=1e4,a.a17=10001,a.a18=10002,a.a19=10003,a.a20=10004,a.a21=10005,a.a22=10006,a.a23=10007,a.a24=10008,a.a25=10009,a.a26=10010,a.a27=10011,a.a28=10012,a.a6=10013,a.a7=10014,a.a8=10015,a.a9=10016,a.a10=10017,a.a29=10018,a.a30=10019,a.a31=10020,a.a32=10021,a.a33=10022,a.a34=10023,a.a35=9733,a.a36=10025,a.a37=10026,a.a38=10027,a.a39=10028,a.a40=10029,a.a41=10030,a.a42=10031,a.a43=10032,a.a44=10033,a.a45=10034,a.a46=10035,a.a47=10036,a.a48=10037,a.a49=10038,a.a50=10039,a.a51=10040,a.a52=10041,a.a53=10042,a.a54=10043,a.a55=10044,a.a56=10045,a.a57=10046,a.a58=10047,a.a59=10048,a.a60=10049,a.a61=10050,a.a62=10051,a.a63=10052,a.a64=10053,a.a65=10054,a.a66=10055,a.a67=10056,a.a68=10057,a.a69=10058,a.a70=10059,a.a71=9679,a.a72=10061,a.a73=9632,a.a74=10063,a.a203=10064,a.a75=10065,a.a204=10066,a.a76=9650,a.a77=9660,a.a78=9670,a.a79=10070,a.a81=9687,a.a82=10072,a.a83=10073,a.a84=10074,a.a97=10075,a.a98=10076,a.a99=10077,a.a100=10078,a.a101=10081,a.a102=10082,a.a103=10083,a.a104=10084,a.a106=10085,a.a107=10086,a.a108=10087,a.a112=9827,a.a111=9830,a.a110=9829,a.a109=9824,a.a120=9312,a.a121=9313,a.a122=9314,a.a123=9315,a.a124=9316,a.a125=9317,a.a126=9318,a.a127=9319,a.a128=9320,a.a129=9321,a.a130=10102,a.a131=10103,a.a132=10104,a.a133=10105,a.a134=10106,a.a135=10107,a.a136=10108,a.a137=10109,a.a138=10110,a.a139=10111,a.a140=10112,a.a141=10113,a.a142=10114,a.a143=10115,a.a144=10116,a.a145=10117,a.a146=10118,a.a147=10119,a.a148=10120,a.a149=10121,a.a150=10122,a.a151=10123,a.a152=10124,a.a153=10125,a.a154=10126,a.a155=10127,a.a156=10128,a.a157=10129,a.a158=10130,a.a159=10131,a.a160=10132,a.a161=8594,a.a163=8596,a.a164=8597,a.a196=10136,a.a165=10137,a.a192=10138,a.a166=10139,a.a167=10140,a.a168=10141,a.a169=10142,a.a170=10143,a.a171=10144,a.a172=10145,a.a173=10146,a.a162=10147,a.a174=10148,a.a175=10149,a.a176=10150,a.a177=10151,a.a178=10152,a.a179=10153,a.a193=10154,a.a180=10155,a.a199=10156,a.a181=10157,a.a200=10158,a.a182=10159,a.a201=10161,a.a183=10162,a.a184=10163,a.a197=10164,a.a185=10165,a.a194=10166,a.a198=10167,a.a186=10168,a.a195=10169,a.a187=10170,a.a188=10171,a.a189=10172,a.a190=10173,a.a191=10174,a.a89=10088,a.a90=10089,a.a93=10090,a.a94=10091,a.a91=10092,a.a92=10093,a.a205=10094,a.a85=10095,a.a206=10096,a.a86=10097,a.a87=10098,a.a88=10099,a.a95=10100,a.a96=10101,a[".notdef"]=0});f.getGlyphsUnicode=y,f.getDingbatsGlyphsUnicode=k},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getSupplementalGlyphMapForCalibri=f.getSupplementalGlyphMapForArialBlack=f.getGlyphMapForStandardFonts=f.getSymbolsFonts=f.getSerifFonts=f.getNonStdFontMap=f.getStdFontMap=void 0;var m=b(8);const y=(0,m.getLookupTableFactory)(function(C){C.ArialNarrow="Helvetica",C["ArialNarrow-Bold"]="Helvetica-Bold",C["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",C["ArialNarrow-Italic"]="Helvetica-Oblique",C.ArialBlack="Helvetica",C["ArialBlack-Bold"]="Helvetica-Bold",C["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",C["ArialBlack-Italic"]="Helvetica-Oblique",C["Arial-Black"]="Helvetica",C["Arial-Black-Bold"]="Helvetica-Bold",C["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",C["Arial-Black-Italic"]="Helvetica-Oblique",C.Arial="Helvetica",C["Arial-Bold"]="Helvetica-Bold",C["Arial-BoldItalic"]="Helvetica-BoldOblique",C["Arial-Italic"]="Helvetica-Oblique",C["Arial-BoldItalicMT"]="Helvetica-BoldOblique",C["Arial-BoldMT"]="Helvetica-Bold",C["Arial-ItalicMT"]="Helvetica-Oblique",C.ArialMT="Helvetica",C["Courier-Bold"]="Courier-Bold",C["Courier-BoldItalic"]="Courier-BoldOblique",C["Courier-Italic"]="Courier-Oblique",C.CourierNew="Courier",C["CourierNew-Bold"]="Courier-Bold",C["CourierNew-BoldItalic"]="Courier-BoldOblique",C["CourierNew-Italic"]="Courier-Oblique",C["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",C["CourierNewPS-BoldMT"]="Courier-Bold",C["CourierNewPS-ItalicMT"]="Courier-Oblique",C.CourierNewPSMT="Courier",C.Helvetica="Helvetica",C["Helvetica-Bold"]="Helvetica-Bold",C["Helvetica-BoldItalic"]="Helvetica-BoldOblique",C["Helvetica-BoldOblique"]="Helvetica-BoldOblique",C["Helvetica-Italic"]="Helvetica-Oblique",C["Helvetica-Oblique"]="Helvetica-Oblique",C["Symbol-Bold"]="Symbol",C["Symbol-BoldItalic"]="Symbol",C["Symbol-Italic"]="Symbol",C.TimesNewRoman="Times-Roman",C["TimesNewRoman-Bold"]="Times-Bold",C["TimesNewRoman-BoldItalic"]="Times-BoldItalic",C["TimesNewRoman-Italic"]="Times-Italic",C.TimesNewRomanPS="Times-Roman",C["TimesNewRomanPS-Bold"]="Times-Bold",C["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",C["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",C["TimesNewRomanPS-BoldMT"]="Times-Bold",C["TimesNewRomanPS-Italic"]="Times-Italic",C["TimesNewRomanPS-ItalicMT"]="Times-Italic",C.TimesNewRomanPSMT="Times-Roman",C["TimesNewRomanPSMT-Bold"]="Times-Bold",C["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",C["TimesNewRomanPSMT-Italic"]="Times-Italic"});f.getStdFontMap=y;const k=(0,m.getLookupTableFactory)(function(C){C.Calibri="Helvetica",C["Calibri-Bold"]="Helvetica-Bold",C["Calibri-BoldItalic"]="Helvetica-BoldOblique",C["Calibri-Italic"]="Helvetica-Oblique",C.CenturyGothic="Helvetica",C["CenturyGothic-Bold"]="Helvetica-Bold",C["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",C["CenturyGothic-Italic"]="Helvetica-Oblique",C.ComicSansMS="Comic Sans MS",C["ComicSansMS-Bold"]="Comic Sans MS-Bold",C["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",C["ComicSansMS-Italic"]="Comic Sans MS-Italic",C.LucidaConsole="Courier",C["LucidaConsole-Bold"]="Courier-Bold",C["LucidaConsole-BoldItalic"]="Courier-BoldOblique",C["LucidaConsole-Italic"]="Courier-Oblique",C["LucidaSans-Demi"]="Helvetica-Bold",C["MS-Gothic"]="MS Gothic",C["MS-Gothic-Bold"]="MS Gothic-Bold",C["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",C["MS-Gothic-Italic"]="MS Gothic-Italic",C["MS-Mincho"]="MS Mincho",C["MS-Mincho-Bold"]="MS Mincho-Bold",C["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",C["MS-Mincho-Italic"]="MS Mincho-Italic",C["MS-PGothic"]="MS PGothic",C["MS-PGothic-Bold"]="MS PGothic-Bold",C["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",C["MS-PGothic-Italic"]="MS PGothic-Italic",C["MS-PMincho"]="MS PMincho",C["MS-PMincho-Bold"]="MS PMincho-Bold",C["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",C["MS-PMincho-Italic"]="MS PMincho-Italic",C.NuptialScript="Times-Italic",C.SegoeUISymbol="Helvetica",C.Wingdings="ZapfDingbats",C["Wingdings-Regular"]="ZapfDingbats"});f.getNonStdFontMap=k;const a=(0,m.getLookupTableFactory)(function(C){C["Adobe Jenson"]=!0,C["Adobe Text"]=!0,C.Albertus=!0,C.Aldus=!0,C.Alexandria=!0,C.Algerian=!0,C["American Typewriter"]=!0,C.Antiqua=!0,C.Apex=!0,C.Arno=!0,C.Aster=!0,C.Aurora=!0,C.Baskerville=!0,C.Bell=!0,C.Bembo=!0,C["Bembo Schoolbook"]=!0,C.Benguiat=!0,C["Berkeley Old Style"]=!0,C["Bernhard Modern"]=!0,C["Berthold City"]=!0,C.Bodoni=!0,C["Bauer Bodoni"]=!0,C["Book Antiqua"]=!0,C.Bookman=!0,C["Bordeaux Roman"]=!0,C["Californian FB"]=!0,C.Calisto=!0,C.Calvert=!0,C.Capitals=!0,C.Cambria=!0,C.Cartier=!0,C.Caslon=!0,C.Catull=!0,C.Centaur=!0,C["Century Old Style"]=!0,C["Century Schoolbook"]=!0,C.Chaparral=!0,C["Charis SIL"]=!0,C.Cheltenham=!0,C["Cholla Slab"]=!0,C.Clarendon=!0,C.Clearface=!0,C.Cochin=!0,C.Colonna=!0,C["Computer Modern"]=!0,C["Concrete Roman"]=!0,C.Constantia=!0,C["Cooper Black"]=!0,C.Corona=!0,C.Ecotype=!0,C.Egyptienne=!0,C.Elephant=!0,C.Excelsior=!0,C.Fairfield=!0,C["FF Scala"]=!0,C.Folkard=!0,C.Footlight=!0,C.FreeSerif=!0,C["Friz Quadrata"]=!0,C.Garamond=!0,C.Gentium=!0,C.Georgia=!0,C.Gloucester=!0,C["Goudy Old Style"]=!0,C["Goudy Schoolbook"]=!0,C["Goudy Pro Font"]=!0,C.Granjon=!0,C["Guardian Egyptian"]=!0,C.Heather=!0,C.Hercules=!0,C["High Tower Text"]=!0,C.Hiroshige=!0,C["Hoefler Text"]=!0,C["Humana Serif"]=!0,C.Imprint=!0,C["Ionic No. 5"]=!0,C.Janson=!0,C.Joanna=!0,C.Korinna=!0,C.Lexicon=!0,C["Liberation Serif"]=!0,C["Linux Libertine"]=!0,C.Literaturnaya=!0,C.Lucida=!0,C["Lucida Bright"]=!0,C.Melior=!0,C.Memphis=!0,C.Miller=!0,C.Minion=!0,C.Modern=!0,C["Mona Lisa"]=!0,C["Mrs Eaves"]=!0,C["MS Serif"]=!0,C["Museo Slab"]=!0,C["New York"]=!0,C["Nimbus Roman"]=!0,C["NPS Rawlinson Roadway"]=!0,C.NuptialScript=!0,C.Palatino=!0,C.Perpetua=!0,C.Plantin=!0,C["Plantin Schoolbook"]=!0,C.Playbill=!0,C["Poor Richard"]=!0,C["Rawlinson Roadway"]=!0,C.Renault=!0,C.Requiem=!0,C.Rockwell=!0,C.Roman=!0,C["Rotis Serif"]=!0,C.Sabon=!0,C.Scala=!0,C.Seagull=!0,C.Sistina=!0,C.Souvenir=!0,C.STIX=!0,C["Stone Informal"]=!0,C["Stone Serif"]=!0,C.Sylfaen=!0,C.Times=!0,C.Trajan=!0,C.Trinit\u00E9=!0,C["Trump Mediaeval"]=!0,C.Utopia=!0,C["Vale Type"]=!0,C["Bitstream Vera"]=!0,C["Vera Serif"]=!0,C.Versailles=!0,C.Wanted=!0,C.Weiss=!0,C["Wide Latin"]=!0,C.Windsor=!0,C.XITS=!0});f.getSerifFonts=a;const q=(0,m.getLookupTableFactory)(function(C){C.Dingbats=!0,C.Symbol=!0,C.ZapfDingbats=!0});f.getSymbolsFonts=q;const w=(0,m.getLookupTableFactory)(function(C){C[2]=10,C[3]=32,C[4]=33,C[5]=34,C[6]=35,C[7]=36,C[8]=37,C[9]=38,C[10]=39,C[11]=40,C[12]=41,C[13]=42,C[14]=43,C[15]=44,C[16]=45,C[17]=46,C[18]=47,C[19]=48,C[20]=49,C[21]=50,C[22]=51,C[23]=52,C[24]=53,C[25]=54,C[26]=55,C[27]=56,C[28]=57,C[29]=58,C[30]=894,C[31]=60,C[32]=61,C[33]=62,C[34]=63,C[35]=64,C[36]=65,C[37]=66,C[38]=67,C[39]=68,C[40]=69,C[41]=70,C[42]=71,C[43]=72,C[44]=73,C[45]=74,C[46]=75,C[47]=76,C[48]=77,C[49]=78,C[50]=79,C[51]=80,C[52]=81,C[53]=82,C[54]=83,C[55]=84,C[56]=85,C[57]=86,C[58]=87,C[59]=88,C[60]=89,C[61]=90,C[62]=91,C[63]=92,C[64]=93,C[65]=94,C[66]=95,C[67]=96,C[68]=97,C[69]=98,C[70]=99,C[71]=100,C[72]=101,C[73]=102,C[74]=103,C[75]=104,C[76]=105,C[77]=106,C[78]=107,C[79]=108,C[80]=109,C[81]=110,C[82]=111,C[83]=112,C[84]=113,C[85]=114,C[86]=115,C[87]=116,C[88]=117,C[89]=118,C[90]=119,C[91]=120,C[92]=121,C[93]=122,C[94]=123,C[95]=124,C[96]=125,C[97]=126,C[98]=196,C[99]=197,C[100]=199,C[101]=201,C[102]=209,C[103]=214,C[104]=220,C[105]=225,C[106]=224,C[107]=226,C[108]=228,C[109]=227,C[110]=229,C[111]=231,C[112]=233,C[113]=232,C[114]=234,C[115]=235,C[116]=237,C[117]=236,C[118]=238,C[119]=239,C[120]=241,C[121]=243,C[122]=242,C[123]=244,C[124]=246,C[125]=245,C[126]=250,C[127]=249,C[128]=251,C[129]=252,C[130]=8224,C[131]=176,C[132]=162,C[133]=163,C[134]=167,C[135]=8226,C[136]=182,C[137]=223,C[138]=174,C[139]=169,C[140]=8482,C[141]=180,C[142]=168,C[143]=8800,C[144]=198,C[145]=216,C[146]=8734,C[147]=177,C[148]=8804,C[149]=8805,C[150]=165,C[151]=181,C[152]=8706,C[153]=8721,C[154]=8719,C[156]=8747,C[157]=170,C[158]=186,C[159]=8486,C[160]=230,C[161]=248,C[162]=191,C[163]=161,C[164]=172,C[165]=8730,C[166]=402,C[167]=8776,C[168]=8710,C[169]=171,C[170]=187,C[171]=8230,C[210]=218,C[223]=711,C[224]=321,C[225]=322,C[227]=353,C[229]=382,C[234]=253,C[252]=263,C[253]=268,C[254]=269,C[258]=258,C[260]=260,C[261]=261,C[265]=280,C[266]=281,C[268]=283,C[269]=313,C[275]=323,C[276]=324,C[278]=328,C[284]=345,C[285]=346,C[286]=347,C[292]=367,C[295]=377,C[296]=378,C[298]=380,C[305]=963,C[306]=964,C[307]=966,C[308]=8215,C[309]=8252,C[310]=8319,C[311]=8359,C[312]=8592,C[313]=8593,C[337]=9552,C[493]=1039,C[494]=1040,C[705]=1524,C[706]=8362,C[710]=64288,C[711]=64298,C[759]=1617,C[761]=1776,C[763]=1778,C[775]=1652,C[777]=1764,C[778]=1780,C[779]=1781,C[780]=1782,C[782]=771,C[783]=64726,C[786]=8363,C[788]=8532,C[790]=768,C[791]=769,C[792]=768,C[795]=803,C[797]=64336,C[798]=64337,C[799]=64342,C[800]=64343,C[801]=64344,C[802]=64345,C[803]=64362,C[804]=64363,C[805]=64364,C[2424]=7821,C[2425]=7822,C[2426]=7823,C[2427]=7824,C[2428]=7825,C[2429]=7826,C[2430]=7827,C[2433]=7682,C[2678]=8045,C[2679]=8046,C[2830]=1552,C[2838]=686,C[2840]=751,C[2842]=753,C[2843]=754,C[2844]=755,C[2846]=757,C[2856]=767,C[2857]=848,C[2858]=849,C[2862]=853,C[2863]=854,C[2864]=855,C[2865]=861,C[2866]=862,C[2906]=7460,C[2908]=7462,C[2909]=7463,C[2910]=7464,C[2912]=7466,C[2913]=7467,C[2914]=7468,C[2916]=7470,C[2917]=7471,C[2918]=7472,C[2920]=7474,C[2921]=7475,C[2922]=7476,C[2924]=7478,C[2925]=7479,C[2926]=7480,C[2928]=7482,C[2929]=7483,C[2930]=7484,C[2932]=7486,C[2933]=7487,C[2934]=7488,C[2936]=7490,C[2937]=7491,C[2938]=7492,C[2940]=7494,C[2941]=7495,C[2942]=7496,C[2944]=7498,C[2946]=7500,C[2948]=7502,C[2950]=7504,C[2951]=7505,C[2952]=7506,C[2954]=7508,C[2955]=7509,C[2956]=7510,C[2958]=7512,C[2959]=7513,C[2960]=7514,C[2962]=7516,C[2963]=7517,C[2964]=7518,C[2966]=7520,C[2967]=7521,C[2968]=7522,C[2970]=7524,C[2971]=7525,C[2972]=7526,C[2974]=7528,C[2975]=7529,C[2976]=7530,C[2978]=1537,C[2979]=1538,C[2980]=1539,C[2982]=1549,C[2983]=1551,C[2984]=1552,C[2986]=1554,C[2987]=1555,C[2988]=1556,C[2990]=1623,C[2991]=1624,C[2995]=1775,C[2999]=1791,C[3002]=64290,C[3003]=64291,C[3004]=64292,C[3006]=64294,C[3007]=64295,C[3008]=64296,C[3011]=1900,C[3014]=8223,C[3015]=8244,C[3017]=7532,C[3018]=7533,C[3019]=7534,C[3075]=7590,C[3076]=7591,C[3079]=7594,C[3080]=7595,C[3083]=7598,C[3084]=7599,C[3087]=7602,C[3088]=7603,C[3091]=7606,C[3092]=7607,C[3095]=7610,C[3096]=7611,C[3099]=7614,C[3100]=7615,C[3103]=7618,C[3104]=7619,C[3107]=8337,C[3108]=8338,C[3116]=1884,C[3119]=1885,C[3120]=1885,C[3123]=1886,C[3124]=1886,C[3127]=1887,C[3128]=1887,C[3131]=1888,C[3132]=1888,C[3135]=1889,C[3136]=1889,C[3139]=1890,C[3140]=1890,C[3143]=1891,C[3144]=1891,C[3147]=1892,C[3148]=1892,C[3153]=580,C[3154]=581,C[3157]=584,C[3158]=585,C[3161]=588,C[3162]=589,C[3165]=891,C[3166]=892,C[3169]=1274,C[3170]=1275,C[3173]=1278,C[3174]=1279,C[3181]=7622,C[3182]=7623,C[3282]=11799,C[3316]=578,C[3379]=42785,C[3393]=1159,C[3416]=8377});f.getGlyphMapForStandardFonts=w;const $=(0,m.getLookupTableFactory)(function(C){C[227]=322,C[264]=261,C[291]=346});f.getSupplementalGlyphMapForArialBlack=$;const Q=(0,m.getLookupTableFactory)(function(C){C[1]=32,C[4]=65,C[17]=66,C[18]=67,C[24]=68,C[28]=69,C[38]=70,C[39]=71,C[44]=72,C[47]=73,C[58]=74,C[60]=75,C[62]=76,C[68]=77,C[69]=78,C[75]=79,C[87]=80,C[89]=81,C[90]=82,C[94]=83,C[100]=84,C[104]=85,C[115]=86,C[116]=87,C[121]=88,C[122]=89,C[127]=90,C[258]=97,C[268]=261,C[271]=98,C[272]=99,C[273]=263,C[282]=100,C[286]=101,C[295]=281,C[296]=102,C[336]=103,C[346]=104,C[349]=105,C[361]=106,C[364]=107,C[367]=108,C[371]=322,C[373]=109,C[374]=110,C[381]=111,C[383]=243,C[393]=112,C[395]=113,C[396]=114,C[400]=115,C[401]=347,C[410]=116,C[437]=117,C[448]=118,C[449]=119,C[454]=120,C[455]=121,C[460]=122,C[463]=380,C[853]=44,C[855]=58,C[856]=46,C[876]=47,C[878]=45,C[882]=45,C[894]=40,C[895]=41,C[896]=91,C[897]=93,C[923]=64,C[1004]=48,C[1005]=49,C[1006]=50,C[1007]=51,C[1008]=52,C[1009]=53,C[1010]=54,C[1011]=55,C[1012]=56,C[1013]=57,C[1081]=37,C[1085]=43,C[1086]=45});f.getSupplementalGlyphMapForCalibri=Q},function(g,f,b){var m=b(8).getLookupTableFactory,y=m(function(v){v[63721]=169,v[63193]=169,v[63720]=174,v[63194]=174,v[63722]=8482,v[63195]=8482,v[63729]=9127,v[63730]=9128,v[63731]=9129,v[63740]=9131,v[63741]=9132,v[63742]=9133,v[63726]=9121,v[63727]=9122,v[63728]=9123,v[63737]=9124,v[63738]=9125,v[63739]=9126,v[63723]=9115,v[63724]=9116,v[63725]=9117,v[63734]=9118,v[63735]=9119,v[63736]=9120});function k(v){return v>=65520&&v<=65535?0:v>=62976&&v<=63743?y()[v]||v:v===173?45:v}function a(v,J){var ae=J[v];if(ae!==void 0)return ae;if(!v)return-1;if(v[0]==="u"){var H=v.length,Y;if(H===7&&v[1]==="n"&&v[2]==="i")Y=v.substring(3);else if(H>=5&&H<=7)Y=v.substring(1);else return-1;if(Y===Y.toUpperCase()&&(ae=parseInt(Y,16),ae>=0))return ae}return-1}var q=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function w(v){for(var J=0,ae=q.length;J<ae;J++){var H=q[J];if(v>=H.begin&&v<H.end)return J}return-1}function $(v){var J=q[13];return v>=J.begin&&v<J.end||(J=q[11],v>=J.begin&&v<J.end)}var Q=m(function(v){v["\xA8"]=" \u0308",v["\xAF"]=" \u0304",v["\xB4"]=" \u0301",v.\u00B5="\u03BC",v["\xB8"]=" \u0327",v.\u0132="IJ",v.\u0133="ij",v.\u013F="L\xB7",v.\u0140="l\xB7",v.\u0149="\u02BCn",v.\u017F="s",v.\u01C4="D\u017D",v.\u01C5="D\u017E",v.\u01C6="d\u017E",v.\u01C7="LJ",v.\u01C8="Lj",v.\u01C9="lj",v.\u01CA="NJ",v.\u01CB="Nj",v.\u01CC="nj",v.\u01F1="DZ",v.\u01F2="Dz",v.\u01F3="dz",v["\u02D8"]=" \u0306",v["\u02D9"]=" \u0307",v["\u02DA"]=" \u030A",v["\u02DB"]=" \u0328",v["\u02DC"]=" \u0303",v["\u02DD"]=" \u030B",v.\u037A=" \u0345",v["\u0384"]=" \u0301",v.\u03D0="\u03B2",v.\u03D1="\u03B8",v.\u03D2="\u03A5",v.\u03D5="\u03C6",v.\u03D6="\u03C0",v.\u03F0="\u03BA",v.\u03F1="\u03C1",v.\u03F2="\u03C2",v["\u03F4"]="\u0398",v["\u03F5"]="\u03B5",v["\u03F9"]="\u03A3",v.\u0587="\u0565\u0582",v.\u0675="\u0627\u0674",v.\u0676="\u0648\u0674",v.\u0677="\u06C7\u0674",v.\u0678="\u064A\u0674",v.\u0E33="\u0E4D\u0E32",v.\u0EB3="\u0ECD\u0EB2",v.\u0EDC="\u0EAB\u0E99",v.\u0EDD="\u0EAB\u0EA1",v["\u0F77"]="\u0FB2\u0F81",v["\u0F79"]="\u0FB3\u0F81",v.\u1E9A="a\u02BE",v["\u1FBD"]=" \u0313",v["\u1FBF"]=" \u0313",v["\u1FC0"]=" \u0342",v["\u1FFE"]=" \u0314",v["\u2002"]=" ",v["\u2003"]=" ",v["\u2004"]=" ",v["\u2005"]=" ",v["\u2006"]=" ",v["\u2008"]=" ",v["\u2009"]=" ",v["\u200A"]=" ",v["\u2017"]=" \u0333",v["\u2024"]=".",v["\u2025"]="..",v["\u2026"]="...",v["\u2033"]="\u2032\u2032",v["\u2034"]="\u2032\u2032\u2032",v["\u2036"]="\u2035\u2035",v["\u2037"]="\u2035\u2035\u2035",v["\u203C"]="!!",v["\u203E"]=" \u0305",v["\u2047"]="??",v["\u2048"]="?!",v["\u2049"]="!?",v["\u2057"]="\u2032\u2032\u2032\u2032",v["\u205F"]=" ",v["\u20A8"]="Rs",v["\u2100"]="a/c",v["\u2101"]="a/s",v["\u2103"]="\xB0C",v["\u2105"]="c/o",v["\u2106"]="c/u",v.\u2107="\u0190",v["\u2109"]="\xB0F",v["\u2116"]="No",v["\u2121"]="TEL",v.\u2135="\u05D0",v.\u2136="\u05D1",v.\u2137="\u05D2",v.\u2138="\u05D3",v["\u213B"]="FAX",v["\u2160"]="I",v["\u2161"]="II",v["\u2162"]="III",v["\u2163"]="IV",v["\u2164"]="V",v["\u2165"]="VI",v["\u2166"]="VII",v["\u2167"]="VIII",v["\u2168"]="IX",v["\u2169"]="X",v["\u216A"]="XI",v["\u216B"]="XII",v["\u216C"]="L",v["\u216D"]="C",v["\u216E"]="D",v["\u216F"]="M",v["\u2170"]="i",v["\u2171"]="ii",v["\u2172"]="iii",v["\u2173"]="iv",v["\u2174"]="v",v["\u2175"]="vi",v["\u2176"]="vii",v["\u2177"]="viii",v["\u2178"]="ix",v["\u2179"]="x",v["\u217A"]="xi",v["\u217B"]="xii",v["\u217C"]="l",v["\u217D"]="c",v["\u217E"]="d",v["\u217F"]="m",v["\u222C"]="\u222B\u222B",v["\u222D"]="\u222B\u222B\u222B",v["\u222F"]="\u222E\u222E",v["\u2230"]="\u222E\u222E\u222E",v["\u2474"]="(1)",v["\u2475"]="(2)",v["\u2476"]="(3)",v["\u2477"]="(4)",v["\u2478"]="(5)",v["\u2479"]="(6)",v["\u247A"]="(7)",v["\u247B"]="(8)",v["\u247C"]="(9)",v["\u247D"]="(10)",v["\u247E"]="(11)",v["\u247F"]="(12)",v["\u2480"]="(13)",v["\u2481"]="(14)",v["\u2482"]="(15)",v["\u2483"]="(16)",v["\u2484"]="(17)",v["\u2485"]="(18)",v["\u2486"]="(19)",v["\u2487"]="(20)",v["\u2488"]="1.",v["\u2489"]="2.",v["\u248A"]="3.",v["\u248B"]="4.",v["\u248C"]="5.",v["\u248D"]="6.",v["\u248E"]="7.",v["\u248F"]="8.",v["\u2490"]="9.",v["\u2491"]="10.",v["\u2492"]="11.",v["\u2493"]="12.",v["\u2494"]="13.",v["\u2495"]="14.",v["\u2496"]="15.",v["\u2497"]="16.",v["\u2498"]="17.",v["\u2499"]="18.",v["\u249A"]="19.",v["\u249B"]="20.",v["\u249C"]="(a)",v["\u249D"]="(b)",v["\u249E"]="(c)",v["\u249F"]="(d)",v["\u24A0"]="(e)",v["\u24A1"]="(f)",v["\u24A2"]="(g)",v["\u24A3"]="(h)",v["\u24A4"]="(i)",v["\u24A5"]="(j)",v["\u24A6"]="(k)",v["\u24A7"]="(l)",v["\u24A8"]="(m)",v["\u24A9"]="(n)",v["\u24AA"]="(o)",v["\u24AB"]="(p)",v["\u24AC"]="(q)",v["\u24AD"]="(r)",v["\u24AE"]="(s)",v["\u24AF"]="(t)",v["\u24B0"]="(u)",v["\u24B1"]="(v)",v["\u24B2"]="(w)",v["\u24B3"]="(x)",v["\u24B4"]="(y)",v["\u24B5"]="(z)",v["\u2A0C"]="\u222B\u222B\u222B\u222B",v["\u2A74"]="::=",v["\u2A75"]="==",v["\u2A76"]="===",v["\u2E9F"]="\u6BCD",v["\u2EF3"]="\u9F9F",v["\u2F00"]="\u4E00",v["\u2F01"]="\u4E28",v["\u2F02"]="\u4E36",v["\u2F03"]="\u4E3F",v["\u2F04"]="\u4E59",v["\u2F05"]="\u4E85",v["\u2F06"]="\u4E8C",v["\u2F07"]="\u4EA0",v["\u2F08"]="\u4EBA",v["\u2F09"]="\u513F",v["\u2F0A"]="\u5165",v["\u2F0B"]="\u516B",v["\u2F0C"]="\u5182",v["\u2F0D"]="\u5196",v["\u2F0E"]="\u51AB",v["\u2F0F"]="\u51E0",v["\u2F10"]="\u51F5",v["\u2F11"]="\u5200",v["\u2F12"]="\u529B",v["\u2F13"]="\u52F9",v["\u2F14"]="\u5315",v["\u2F15"]="\u531A",v["\u2F16"]="\u5338",v["\u2F17"]="\u5341",v["\u2F18"]="\u535C",v["\u2F19"]="\u5369",v["\u2F1A"]="\u5382",v["\u2F1B"]="\u53B6",v["\u2F1C"]="\u53C8",v["\u2F1D"]="\u53E3",v["\u2F1E"]="\u56D7",v["\u2F1F"]="\u571F",v["\u2F20"]="\u58EB",v["\u2F21"]="\u5902",v["\u2F22"]="\u590A",v["\u2F23"]="\u5915",v["\u2F24"]="\u5927",v["\u2F25"]="\u5973",v["\u2F26"]="\u5B50",v["\u2F27"]="\u5B80",v["\u2F28"]="\u5BF8",v["\u2F29"]="\u5C0F",v["\u2F2A"]="\u5C22",v["\u2F2B"]="\u5C38",v["\u2F2C"]="\u5C6E",v["\u2F2D"]="\u5C71",v["\u2F2E"]="\u5DDB",v["\u2F2F"]="\u5DE5",v["\u2F30"]="\u5DF1",v["\u2F31"]="\u5DFE",v["\u2F32"]="\u5E72",v["\u2F33"]="\u5E7A",v["\u2F34"]="\u5E7F",v["\u2F35"]="\u5EF4",v["\u2F36"]="\u5EFE",v["\u2F37"]="\u5F0B",v["\u2F38"]="\u5F13",v["\u2F39"]="\u5F50",v["\u2F3A"]="\u5F61",v["\u2F3B"]="\u5F73",v["\u2F3C"]="\u5FC3",v["\u2F3D"]="\u6208",v["\u2F3E"]="\u6236",v["\u2F3F"]="\u624B",v["\u2F40"]="\u652F",v["\u2F41"]="\u6534",v["\u2F42"]="\u6587",v["\u2F43"]="\u6597",v["\u2F44"]="\u65A4",v["\u2F45"]="\u65B9",v["\u2F46"]="\u65E0",v["\u2F47"]="\u65E5",v["\u2F48"]="\u66F0",v["\u2F49"]="\u6708",v["\u2F4A"]="\u6728",v["\u2F4B"]="\u6B20",v["\u2F4C"]="\u6B62",v["\u2F4D"]="\u6B79",v["\u2F4E"]="\u6BB3",v["\u2F4F"]="\u6BCB",v["\u2F50"]="\u6BD4",v["\u2F51"]="\u6BDB",v["\u2F52"]="\u6C0F",v["\u2F53"]="\u6C14",v["\u2F54"]="\u6C34",v["\u2F55"]="\u706B",v["\u2F56"]="\u722A",v["\u2F57"]="\u7236",v["\u2F58"]="\u723B",v["\u2F59"]="\u723F",v["\u2F5A"]="\u7247",v["\u2F5B"]="\u7259",v["\u2F5C"]="\u725B",v["\u2F5D"]="\u72AC",v["\u2F5E"]="\u7384",v["\u2F5F"]="\u7389",v["\u2F60"]="\u74DC",v["\u2F61"]="\u74E6",v["\u2F62"]="\u7518",v["\u2F63"]="\u751F",v["\u2F64"]="\u7528",v["\u2F65"]="\u7530",v["\u2F66"]="\u758B",v["\u2F67"]="\u7592",v["\u2F68"]="\u7676",v["\u2F69"]="\u767D",v["\u2F6A"]="\u76AE",v["\u2F6B"]="\u76BF",v["\u2F6C"]="\u76EE",v["\u2F6D"]="\u77DB",v["\u2F6E"]="\u77E2",v["\u2F6F"]="\u77F3",v["\u2F70"]="\u793A",v["\u2F71"]="\u79B8",v["\u2F72"]="\u79BE",v["\u2F73"]="\u7A74",v["\u2F74"]="\u7ACB",v["\u2F75"]="\u7AF9",v["\u2F76"]="\u7C73",v["\u2F77"]="\u7CF8",v["\u2F78"]="\u7F36",v["\u2F79"]="\u7F51",v["\u2F7A"]="\u7F8A",v["\u2F7B"]="\u7FBD",v["\u2F7C"]="\u8001",v["\u2F7D"]="\u800C",v["\u2F7E"]="\u8012",v["\u2F7F"]="\u8033",v["\u2F80"]="\u807F",v["\u2F81"]="\u8089",v["\u2F82"]="\u81E3",v["\u2F83"]="\u81EA",v["\u2F84"]="\u81F3",v["\u2F85"]="\u81FC",v["\u2F86"]="\u820C",v["\u2F87"]="\u821B",v["\u2F88"]="\u821F",v["\u2F89"]="\u826E",v["\u2F8A"]="\u8272",v["\u2F8B"]="\u8278",v["\u2F8C"]="\u864D",v["\u2F8D"]="\u866B",v["\u2F8E"]="\u8840",v["\u2F8F"]="\u884C",v["\u2F90"]="\u8863",v["\u2F91"]="\u897E",v["\u2F92"]="\u898B",v["\u2F93"]="\u89D2",v["\u2F94"]="\u8A00",v["\u2F95"]="\u8C37",v["\u2F96"]="\u8C46",v["\u2F97"]="\u8C55",v["\u2F98"]="\u8C78",v["\u2F99"]="\u8C9D",v["\u2F9A"]="\u8D64",v["\u2F9B"]="\u8D70",v["\u2F9C"]="\u8DB3",v["\u2F9D"]="\u8EAB",v["\u2F9E"]="\u8ECA",v["\u2F9F"]="\u8F9B",v["\u2FA0"]="\u8FB0",v["\u2FA1"]="\u8FB5",v["\u2FA2"]="\u9091",v["\u2FA3"]="\u9149",v["\u2FA4"]="\u91C6",v["\u2FA5"]="\u91CC",v["\u2FA6"]="\u91D1",v["\u2FA7"]="\u9577",v["\u2FA8"]="\u9580",v["\u2FA9"]="\u961C",v["\u2FAA"]="\u96B6",v["\u2FAB"]="\u96B9",v["\u2FAC"]="\u96E8",v["\u2FAD"]="\u9751",v["\u2FAE"]="\u975E",v["\u2FAF"]="\u9762",v["\u2FB0"]="\u9769",v["\u2FB1"]="\u97CB",v["\u2FB2"]="\u97ED",v["\u2FB3"]="\u97F3",v["\u2FB4"]="\u9801",v["\u2FB5"]="\u98A8",v["\u2FB6"]="\u98DB",v["\u2FB7"]="\u98DF",v["\u2FB8"]="\u9996",v["\u2FB9"]="\u9999",v["\u2FBA"]="\u99AC",v["\u2FBB"]="\u9AA8",v["\u2FBC"]="\u9AD8",v["\u2FBD"]="\u9ADF",v["\u2FBE"]="\u9B25",v["\u2FBF"]="\u9B2F",v["\u2FC0"]="\u9B32",v["\u2FC1"]="\u9B3C",v["\u2FC2"]="\u9B5A",v["\u2FC3"]="\u9CE5",v["\u2FC4"]="\u9E75",v["\u2FC5"]="\u9E7F",v["\u2FC6"]="\u9EA5",v["\u2FC7"]="\u9EBB",v["\u2FC8"]="\u9EC3",v["\u2FC9"]="\u9ECD",v["\u2FCA"]="\u9ED1",v["\u2FCB"]="\u9EF9",v["\u2FCC"]="\u9EFD",v["\u2FCD"]="\u9F0E",v["\u2FCE"]="\u9F13",v["\u2FCF"]="\u9F20",v["\u2FD0"]="\u9F3B",v["\u2FD1"]="\u9F4A",v["\u2FD2"]="\u9F52",v["\u2FD3"]="\u9F8D",v["\u2FD4"]="\u9F9C",v["\u2FD5"]="\u9FA0",v["\u3036"]="\u3012",v["\u3038"]="\u5341",v["\u3039"]="\u5344",v["\u303A"]="\u5345",v["\u309B"]=" \u3099",v["\u309C"]=" \u309A",v.\u3131="\u1100",v.\u3132="\u1101",v.\u3133="\u11AA",v.\u3134="\u1102",v.\u3135="\u11AC",v.\u3136="\u11AD",v.\u3137="\u1103",v.\u3138="\u1104",v.\u3139="\u1105",v.\u313A="\u11B0",v.\u313B="\u11B1",v.\u313C="\u11B2",v.\u313D="\u11B3",v.\u313E="\u11B4",v.\u313F="\u11B5",v.\u3140="\u111A",v.\u3141="\u1106",v.\u3142="\u1107",v.\u3143="\u1108",v.\u3144="\u1121",v.\u3145="\u1109",v.\u3146="\u110A",v.\u3147="\u110B",v.\u3148="\u110C",v.\u3149="\u110D",v.\u314A="\u110E",v.\u314B="\u110F",v.\u314C="\u1110",v.\u314D="\u1111",v.\u314E="\u1112",v.\u314F="\u1161",v.\u3150="\u1162",v.\u3151="\u1163",v.\u3152="\u1164",v.\u3153="\u1165",v.\u3154="\u1166",v.\u3155="\u1167",v.\u3156="\u1168",v.\u3157="\u1169",v.\u3158="\u116A",v.\u3159="\u116B",v.\u315A="\u116C",v.\u315B="\u116D",v.\u315C="\u116E",v.\u315D="\u116F",v.\u315E="\u1170",v.\u315F="\u1171",v.\u3160="\u1172",v.\u3161="\u1173",v.\u3162="\u1174",v.\u3163="\u1175",v.\u3164="\u1160",v.\u3165="\u1114",v.\u3166="\u1115",v.\u3167="\u11C7",v.\u3168="\u11C8",v.\u3169="\u11CC",v.\u316A="\u11CE",v.\u316B="\u11D3",v.\u316C="\u11D7",v.\u316D="\u11D9",v.\u316E="\u111C",v.\u316F="\u11DD",v.\u3170="\u11DF",v.\u3171="\u111D",v.\u3172="\u111E",v.\u3173="\u1120",v.\u3174="\u1122",v.\u3175="\u1123",v.\u3176="\u1127",v.\u3177="\u1129",v.\u3178="\u112B",v.\u3179="\u112C",v.\u317A="\u112D",v.\u317B="\u112E",v.\u317C="\u112F",v.\u317D="\u1132",v.\u317E="\u1136",v.\u317F="\u1140",v.\u3180="\u1147",v.\u3181="\u114C",v.\u3182="\u11F1",v.\u3183="\u11F2",v.\u3184="\u1157",v.\u3185="\u1158",v.\u3186="\u1159",v.\u3187="\u1184",v.\u3188="\u1185",v.\u3189="\u1188",v.\u318A="\u1191",v.\u318B="\u1192",v.\u318C="\u1194",v.\u318D="\u119E",v.\u318E="\u11A1",v["\u3200"]="(\u1100)",v["\u3201"]="(\u1102)",v["\u3202"]="(\u1103)",v["\u3203"]="(\u1105)",v["\u3204"]="(\u1106)",v["\u3205"]="(\u1107)",v["\u3206"]="(\u1109)",v["\u3207"]="(\u110B)",v["\u3208"]="(\u110C)",v["\u3209"]="(\u110E)",v["\u320A"]="(\u110F)",v["\u320B"]="(\u1110)",v["\u320C"]="(\u1111)",v["\u320D"]="(\u1112)",v["\u320E"]="(\u1100\u1161)",v["\u320F"]="(\u1102\u1161)",v["\u3210"]="(\u1103\u1161)",v["\u3211"]="(\u1105\u1161)",v["\u3212"]="(\u1106\u1161)",v["\u3213"]="(\u1107\u1161)",v["\u3214"]="(\u1109\u1161)",v["\u3215"]="(\u110B\u1161)",v["\u3216"]="(\u110C\u1161)",v["\u3217"]="(\u110E\u1161)",v["\u3218"]="(\u110F\u1161)",v["\u3219"]="(\u1110\u1161)",v["\u321A"]="(\u1111\u1161)",v["\u321B"]="(\u1112\u1161)",v["\u321C"]="(\u110C\u116E)",v["\u321D"]="(\u110B\u1169\u110C\u1165\u11AB)",v["\u321E"]="(\u110B\u1169\u1112\u116E)",v["\u3220"]="(\u4E00)",v["\u3221"]="(\u4E8C)",v["\u3222"]="(\u4E09)",v["\u3223"]="(\u56DB)",v["\u3224"]="(\u4E94)",v["\u3225"]="(\u516D)",v["\u3226"]="(\u4E03)",v["\u3227"]="(\u516B)",v["\u3228"]="(\u4E5D)",v["\u3229"]="(\u5341)",v["\u322A"]="(\u6708)",v["\u322B"]="(\u706B)",v["\u322C"]="(\u6C34)",v["\u322D"]="(\u6728)",v["\u322E"]="(\u91D1)",v["\u322F"]="(\u571F)",v["\u3230"]="(\u65E5)",v["\u3231"]="(\u682A)",v["\u3232"]="(\u6709)",v["\u3233"]="(\u793E)",v["\u3234"]="(\u540D)",v["\u3235"]="(\u7279)",v["\u3236"]="(\u8CA1)",v["\u3237"]="(\u795D)",v["\u3238"]="(\u52B4)",v["\u3239"]="(\u4EE3)",v["\u323A"]="(\u547C)",v["\u323B"]="(\u5B66)",v["\u323C"]="(\u76E3)",v["\u323D"]="(\u4F01)",v["\u323E"]="(\u8CC7)",v["\u323F"]="(\u5354)",v["\u3240"]="(\u796D)",v["\u3241"]="(\u4F11)",v["\u3242"]="(\u81EA)",v["\u3243"]="(\u81F3)",v["\u32C0"]="1\u6708",v["\u32C1"]="2\u6708",v["\u32C2"]="3\u6708",v["\u32C3"]="4\u6708",v["\u32C4"]="5\u6708",v["\u32C5"]="6\u6708",v["\u32C6"]="7\u6708",v["\u32C7"]="8\u6708",v["\u32C8"]="9\u6708",v["\u32C9"]="10\u6708",v["\u32CA"]="11\u6708",v["\u32CB"]="12\u6708",v["\u3358"]="0\u70B9",v["\u3359"]="1\u70B9",v["\u335A"]="2\u70B9",v["\u335B"]="3\u70B9",v["\u335C"]="4\u70B9",v["\u335D"]="5\u70B9",v["\u335E"]="6\u70B9",v["\u335F"]="7\u70B9",v["\u3360"]="8\u70B9",v["\u3361"]="9\u70B9",v["\u3362"]="10\u70B9",v["\u3363"]="11\u70B9",v["\u3364"]="12\u70B9",v["\u3365"]="13\u70B9",v["\u3366"]="14\u70B9",v["\u3367"]="15\u70B9",v["\u3368"]="16\u70B9",v["\u3369"]="17\u70B9",v["\u336A"]="18\u70B9",v["\u336B"]="19\u70B9",v["\u336C"]="20\u70B9",v["\u336D"]="21\u70B9",v["\u336E"]="22\u70B9",v["\u336F"]="23\u70B9",v["\u3370"]="24\u70B9",v["\u33E0"]="1\u65E5",v["\u33E1"]="2\u65E5",v["\u33E2"]="3\u65E5",v["\u33E3"]="4\u65E5",v["\u33E4"]="5\u65E5",v["\u33E5"]="6\u65E5",v["\u33E6"]="7\u65E5",v["\u33E7"]="8\u65E5",v["\u33E8"]="9\u65E5",v["\u33E9"]="10\u65E5",v["\u33EA"]="11\u65E5",v["\u33EB"]="12\u65E5",v["\u33EC"]="13\u65E5",v["\u33ED"]="14\u65E5",v["\u33EE"]="15\u65E5",v["\u33EF"]="16\u65E5",v["\u33F0"]="17\u65E5",v["\u33F1"]="18\u65E5",v["\u33F2"]="19\u65E5",v["\u33F3"]="20\u65E5",v["\u33F4"]="21\u65E5",v["\u33F5"]="22\u65E5",v["\u33F6"]="23\u65E5",v["\u33F7"]="24\u65E5",v["\u33F8"]="25\u65E5",v["\u33F9"]="26\u65E5",v["\u33FA"]="27\u65E5",v["\u33FB"]="28\u65E5",v["\u33FC"]="29\u65E5",v["\u33FD"]="30\u65E5",v["\u33FE"]="31\u65E5",v.\uFB00="ff",v.\uFB01="fi",v.\uFB02="fl",v.\uFB03="ffi",v.\uFB04="ffl",v.\uFB05="\u017Ft",v.\uFB06="st",v.\uFB13="\u0574\u0576",v.\uFB14="\u0574\u0565",v.\uFB15="\u0574\u056B",v.\uFB16="\u057E\u0576",v.\uFB17="\u0574\u056D",v.\uFB4F="\u05D0\u05DC",v.\uFB50="\u0671",v.\uFB51="\u0671",v.\uFB52="\u067B",v.\uFB53="\u067B",v.\uFB54="\u067B",v.\uFB55="\u067B",v.\uFB56="\u067E",v.\uFB57="\u067E",v.\uFB58="\u067E",v.\uFB59="\u067E",v.\uFB5A="\u0680",v.\uFB5B="\u0680",v.\uFB5C="\u0680",v.\uFB5D="\u0680",v.\uFB5E="\u067A",v.\uFB5F="\u067A",v.\uFB60="\u067A",v.\uFB61="\u067A",v.\uFB62="\u067F",v.\uFB63="\u067F",v.\uFB64="\u067F",v.\uFB65="\u067F",v.\uFB66="\u0679",v.\uFB67="\u0679",v.\uFB68="\u0679",v.\uFB69="\u0679",v.\uFB6A="\u06A4",v.\uFB6B="\u06A4",v.\uFB6C="\u06A4",v.\uFB6D="\u06A4",v.\uFB6E="\u06A6",v.\uFB6F="\u06A6",v.\uFB70="\u06A6",v.\uFB71="\u06A6",v.\uFB72="\u0684",v.\uFB73="\u0684",v.\uFB74="\u0684",v.\uFB75="\u0684",v.\uFB76="\u0683",v.\uFB77="\u0683",v.\uFB78="\u0683",v.\uFB79="\u0683",v.\uFB7A="\u0686",v.\uFB7B="\u0686",v.\uFB7C="\u0686",v.\uFB7D="\u0686",v.\uFB7E="\u0687",v.\uFB7F="\u0687",v.\uFB80="\u0687",v.\uFB81="\u0687",v.\uFB82="\u068D",v.\uFB83="\u068D",v.\uFB84="\u068C",v.\uFB85="\u068C",v.\uFB86="\u068E",v.\uFB87="\u068E",v.\uFB88="\u0688",v.\uFB89="\u0688",v.\uFB8A="\u0698",v.\uFB8B="\u0698",v.\uFB8C="\u0691",v.\uFB8D="\u0691",v.\uFB8E="\u06A9",v.\uFB8F="\u06A9",v.\uFB90="\u06A9",v.\uFB91="\u06A9",v.\uFB92="\u06AF",v.\uFB93="\u06AF",v.\uFB94="\u06AF",v.\uFB95="\u06AF",v.\uFB96="\u06B3",v.\uFB97="\u06B3",v.\uFB98="\u06B3",v.\uFB99="\u06B3",v.\uFB9A="\u06B1",v.\uFB9B="\u06B1",v.\uFB9C="\u06B1",v.\uFB9D="\u06B1",v.\uFB9E="\u06BA",v.\uFB9F="\u06BA",v.\uFBA0="\u06BB",v.\uFBA1="\u06BB",v.\uFBA2="\u06BB",v.\uFBA3="\u06BB",v.\uFBA4="\u06C0",v.\uFBA5="\u06C0",v.\uFBA6="\u06C1",v.\uFBA7="\u06C1",v.\uFBA8="\u06C1",v.\uFBA9="\u06C1",v.\uFBAA="\u06BE",v.\uFBAB="\u06BE",v.\uFBAC="\u06BE",v.\uFBAD="\u06BE",v.\uFBAE="\u06D2",v.\uFBAF="\u06D2",v.\uFBB0="\u06D3",v.\uFBB1="\u06D3",v.\uFBD3="\u06AD",v.\uFBD4="\u06AD",v.\uFBD5="\u06AD",v.\uFBD6="\u06AD",v.\uFBD7="\u06C7",v.\uFBD8="\u06C7",v.\uFBD9="\u06C6",v.\uFBDA="\u06C6",v.\uFBDB="\u06C8",v.\uFBDC="\u06C8",v.\uFBDD="\u0677",v.\uFBDE="\u06CB",v.\uFBDF="\u06CB",v.\uFBE0="\u06C5",v.\uFBE1="\u06C5",v.\uFBE2="\u06C9",v.\uFBE3="\u06C9",v.\uFBE4="\u06D0",v.\uFBE5="\u06D0",v.\uFBE6="\u06D0",v.\uFBE7="\u06D0",v.\uFBE8="\u0649",v.\uFBE9="\u0649",v.\uFBEA="\u0626\u0627",v.\uFBEB="\u0626\u0627",v.\uFBEC="\u0626\u06D5",v.\uFBED="\u0626\u06D5",v.\uFBEE="\u0626\u0648",v.\uFBEF="\u0626\u0648",v.\uFBF0="\u0626\u06C7",v.\uFBF1="\u0626\u06C7",v.\uFBF2="\u0626\u06C6",v.\uFBF3="\u0626\u06C6",v.\uFBF4="\u0626\u06C8",v.\uFBF5="\u0626\u06C8",v.\uFBF6="\u0626\u06D0",v.\uFBF7="\u0626\u06D0",v.\uFBF8="\u0626\u06D0",v.\uFBF9="\u0626\u0649",v.\uFBFA="\u0626\u0649",v.\uFBFB="\u0626\u0649",v.\uFBFC="\u06CC",v.\uFBFD="\u06CC",v.\uFBFE="\u06CC",v.\uFBFF="\u06CC",v.\uFC00="\u0626\u062C",v.\uFC01="\u0626\u062D",v.\uFC02="\u0626\u0645",v.\uFC03="\u0626\u0649",v.\uFC04="\u0626\u064A",v.\uFC05="\u0628\u062C",v.\uFC06="\u0628\u062D",v.\uFC07="\u0628\u062E",v.\uFC08="\u0628\u0645",v.\uFC09="\u0628\u0649",v.\uFC0A="\u0628\u064A",v.\uFC0B="\u062A\u062C",v.\uFC0C="\u062A\u062D",v.\uFC0D="\u062A\u062E",v.\uFC0E="\u062A\u0645",v.\uFC0F="\u062A\u0649",v.\uFC10="\u062A\u064A",v.\uFC11="\u062B\u062C",v.\uFC12="\u062B\u0645",v.\uFC13="\u062B\u0649",v.\uFC14="\u062B\u064A",v.\uFC15="\u062C\u062D",v.\uFC16="\u062C\u0645",v.\uFC17="\u062D\u062C",v.\uFC18="\u062D\u0645",v.\uFC19="\u062E\u062C",v.\uFC1A="\u062E\u062D",v.\uFC1B="\u062E\u0645",v.\uFC1C="\u0633\u062C",v.\uFC1D="\u0633\u062D",v.\uFC1E="\u0633\u062E",v.\uFC1F="\u0633\u0645",v.\uFC20="\u0635\u062D",v.\uFC21="\u0635\u0645",v.\uFC22="\u0636\u062C",v.\uFC23="\u0636\u062D",v.\uFC24="\u0636\u062E",v.\uFC25="\u0636\u0645",v.\uFC26="\u0637\u062D",v.\uFC27="\u0637\u0645",v.\uFC28="\u0638\u0645",v.\uFC29="\u0639\u062C",v.\uFC2A="\u0639\u0645",v.\uFC2B="\u063A\u062C",v.\uFC2C="\u063A\u0645",v.\uFC2D="\u0641\u062C",v.\uFC2E="\u0641\u062D",v.\uFC2F="\u0641\u062E",v.\uFC30="\u0641\u0645",v.\uFC31="\u0641\u0649",v.\uFC32="\u0641\u064A",v.\uFC33="\u0642\u062D",v.\uFC34="\u0642\u0645",v.\uFC35="\u0642\u0649",v.\uFC36="\u0642\u064A",v.\uFC37="\u0643\u0627",v.\uFC38="\u0643\u062C",v.\uFC39="\u0643\u062D",v.\uFC3A="\u0643\u062E",v.\uFC3B="\u0643\u0644",v.\uFC3C="\u0643\u0645",v.\uFC3D="\u0643\u0649",v.\uFC3E="\u0643\u064A",v.\uFC3F="\u0644\u062C",v.\uFC40="\u0644\u062D",v.\uFC41="\u0644\u062E",v.\uFC42="\u0644\u0645",v.\uFC43="\u0644\u0649",v.\uFC44="\u0644\u064A",v.\uFC45="\u0645\u062C",v.\uFC46="\u0645\u062D",v.\uFC47="\u0645\u062E",v.\uFC48="\u0645\u0645",v.\uFC49="\u0645\u0649",v.\uFC4A="\u0645\u064A",v.\uFC4B="\u0646\u062C",v.\uFC4C="\u0646\u062D",v.\uFC4D="\u0646\u062E",v.\uFC4E="\u0646\u0645",v.\uFC4F="\u0646\u0649",v.\uFC50="\u0646\u064A",v.\uFC51="\u0647\u062C",v.\uFC52="\u0647\u0645",v.\uFC53="\u0647\u0649",v.\uFC54="\u0647\u064A",v.\uFC55="\u064A\u062C",v.\uFC56="\u064A\u062D",v.\uFC57="\u064A\u062E",v.\uFC58="\u064A\u0645",v.\uFC59="\u064A\u0649",v.\uFC5A="\u064A\u064A",v.\uFC5B="\u0630\u0670",v.\uFC5C="\u0631\u0670",v.\uFC5D="\u0649\u0670",v.\uFC5E=" \u064C\u0651",v.\uFC5F=" \u064D\u0651",v.\uFC60=" \u064E\u0651",v.\uFC61=" \u064F\u0651",v.\uFC62=" \u0650\u0651",v.\uFC63=" \u0651\u0670",v.\uFC64="\u0626\u0631",v.\uFC65="\u0626\u0632",v.\uFC66="\u0626\u0645",v.\uFC67="\u0626\u0646",v.\uFC68="\u0626\u0649",v.\uFC69="\u0626\u064A",v.\uFC6A="\u0628\u0631",v.\uFC6B="\u0628\u0632",v.\uFC6C="\u0628\u0645",v.\uFC6D="\u0628\u0646",v.\uFC6E="\u0628\u0649",v.\uFC6F="\u0628\u064A",v.\uFC70="\u062A\u0631",v.\uFC71="\u062A\u0632",v.\uFC72="\u062A\u0645",v.\uFC73="\u062A\u0646",v.\uFC74="\u062A\u0649",v.\uFC75="\u062A\u064A",v.\uFC76="\u062B\u0631",v.\uFC77="\u062B\u0632",v.\uFC78="\u062B\u0645",v.\uFC79="\u062B\u0646",v.\uFC7A="\u062B\u0649",v.\uFC7B="\u062B\u064A",v.\uFC7C="\u0641\u0649",v.\uFC7D="\u0641\u064A",v.\uFC7E="\u0642\u0649",v.\uFC7F="\u0642\u064A",v.\uFC80="\u0643\u0627",v.\uFC81="\u0643\u0644",v.\uFC82="\u0643\u0645",v.\uFC83="\u0643\u0649",v.\uFC84="\u0643\u064A",v.\uFC85="\u0644\u0645",v.\uFC86="\u0644\u0649",v.\uFC87="\u0644\u064A",v.\uFC88="\u0645\u0627",v.\uFC89="\u0645\u0645",v.\uFC8A="\u0646\u0631",v.\uFC8B="\u0646\u0632",v.\uFC8C="\u0646\u0645",v.\uFC8D="\u0646\u0646",v.\uFC8E="\u0646\u0649",v.\uFC8F="\u0646\u064A",v.\uFC90="\u0649\u0670",v.\uFC91="\u064A\u0631",v.\uFC92="\u064A\u0632",v.\uFC93="\u064A\u0645",v.\uFC94="\u064A\u0646",v.\uFC95="\u064A\u0649",v.\uFC96="\u064A\u064A",v.\uFC97="\u0626\u062C",v.\uFC98="\u0626\u062D",v.\uFC99="\u0626\u062E",v.\uFC9A="\u0626\u0645",v.\uFC9B="\u0626\u0647",v.\uFC9C="\u0628\u062C",v.\uFC9D="\u0628\u062D",v.\uFC9E="\u0628\u062E",v.\uFC9F="\u0628\u0645",v.\uFCA0="\u0628\u0647",v.\uFCA1="\u062A\u062C",v.\uFCA2="\u062A\u062D",v.\uFCA3="\u062A\u062E",v.\uFCA4="\u062A\u0645",v.\uFCA5="\u062A\u0647",v.\uFCA6="\u062B\u0645",v.\uFCA7="\u062C\u062D",v.\uFCA8="\u062C\u0645",v.\uFCA9="\u062D\u062C",v.\uFCAA="\u062D\u0645",v.\uFCAB="\u062E\u062C",v.\uFCAC="\u062E\u0645",v.\uFCAD="\u0633\u062C",v.\uFCAE="\u0633\u062D",v.\uFCAF="\u0633\u062E",v.\uFCB0="\u0633\u0645",v.\uFCB1="\u0635\u062D",v.\uFCB2="\u0635\u062E",v.\uFCB3="\u0635\u0645",v.\uFCB4="\u0636\u062C",v.\uFCB5="\u0636\u062D",v.\uFCB6="\u0636\u062E",v.\uFCB7="\u0636\u0645",v.\uFCB8="\u0637\u062D",v.\uFCB9="\u0638\u0645",v.\uFCBA="\u0639\u062C",v.\uFCBB="\u0639\u0645",v.\uFCBC="\u063A\u062C",v.\uFCBD="\u063A\u0645",v.\uFCBE="\u0641\u062C",v.\uFCBF="\u0641\u062D",v.\uFCC0="\u0641\u062E",v.\uFCC1="\u0641\u0645",v.\uFCC2="\u0642\u062D",v.\uFCC3="\u0642\u0645",v.\uFCC4="\u0643\u062C",v.\uFCC5="\u0643\u062D",v.\uFCC6="\u0643\u062E",v.\uFCC7="\u0643\u0644",v.\uFCC8="\u0643\u0645",v.\uFCC9="\u0644\u062C",v.\uFCCA="\u0644\u062D",v.\uFCCB="\u0644\u062E",v.\uFCCC="\u0644\u0645",v.\uFCCD="\u0644\u0647",v.\uFCCE="\u0645\u062C",v.\uFCCF="\u0645\u062D",v.\uFCD0="\u0645\u062E",v.\uFCD1="\u0645\u0645",v.\uFCD2="\u0646\u062C",v.\uFCD3="\u0646\u062D",v.\uFCD4="\u0646\u062E",v.\uFCD5="\u0646\u0645",v.\uFCD6="\u0646\u0647",v.\uFCD7="\u0647\u062C",v.\uFCD8="\u0647\u0645",v.\uFCD9="\u0647\u0670",v.\uFCDA="\u064A\u062C",v.\uFCDB="\u064A\u062D",v.\uFCDC="\u064A\u062E",v.\uFCDD="\u064A\u0645",v.\uFCDE="\u064A\u0647",v.\uFCDF="\u0626\u0645",v.\uFCE0="\u0626\u0647",v.\uFCE1="\u0628\u0645",v.\uFCE2="\u0628\u0647",v.\uFCE3="\u062A\u0645",v.\uFCE4="\u062A\u0647",v.\uFCE5="\u062B\u0645",v.\uFCE6="\u062B\u0647",v.\uFCE7="\u0633\u0645",v.\uFCE8="\u0633\u0647",v.\uFCE9="\u0634\u0645",v.\uFCEA="\u0634\u0647",v.\uFCEB="\u0643\u0644",v.\uFCEC="\u0643\u0645",v.\uFCED="\u0644\u0645",v.\uFCEE="\u0646\u0645",v.\uFCEF="\u0646\u0647",v.\uFCF0="\u064A\u0645",v.\uFCF1="\u064A\u0647",v.\uFCF2="\u0640\u064E\u0651",v.\uFCF3="\u0640\u064F\u0651",v.\uFCF4="\u0640\u0650\u0651",v.\uFCF5="\u0637\u0649",v.\uFCF6="\u0637\u064A",v.\uFCF7="\u0639\u0649",v.\uFCF8="\u0639\u064A",v.\uFCF9="\u063A\u0649",v.\uFCFA="\u063A\u064A",v.\uFCFB="\u0633\u0649",v.\uFCFC="\u0633\u064A",v.\uFCFD="\u0634\u0649",v.\uFCFE="\u0634\u064A",v.\uFCFF="\u062D\u0649",v.\uFD00="\u062D\u064A",v.\uFD01="\u062C\u0649",v.\uFD02="\u062C\u064A",v.\uFD03="\u062E\u0649",v.\uFD04="\u062E\u064A",v.\uFD05="\u0635\u0649",v.\uFD06="\u0635\u064A",v.\uFD07="\u0636\u0649",v.\uFD08="\u0636\u064A",v.\uFD09="\u0634\u062C",v.\uFD0A="\u0634\u062D",v.\uFD0B="\u0634\u062E",v.\uFD0C="\u0634\u0645",v.\uFD0D="\u0634\u0631",v.\uFD0E="\u0633\u0631",v.\uFD0F="\u0635\u0631",v.\uFD10="\u0636\u0631",v.\uFD11="\u0637\u0649",v.\uFD12="\u0637\u064A",v.\uFD13="\u0639\u0649",v.\uFD14="\u0639\u064A",v.\uFD15="\u063A\u0649",v.\uFD16="\u063A\u064A",v.\uFD17="\u0633\u0649",v.\uFD18="\u0633\u064A",v.\uFD19="\u0634\u0649",v.\uFD1A="\u0634\u064A",v.\uFD1B="\u062D\u0649",v.\uFD1C="\u062D\u064A",v.\uFD1D="\u062C\u0649",v.\uFD1E="\u062C\u064A",v.\uFD1F="\u062E\u0649",v.\uFD20="\u062E\u064A",v.\uFD21="\u0635\u0649",v.\uFD22="\u0635\u064A",v.\uFD23="\u0636\u0649",v.\uFD24="\u0636\u064A",v.\uFD25="\u0634\u062C",v.\uFD26="\u0634\u062D",v.\uFD27="\u0634\u062E",v.\uFD28="\u0634\u0645",v.\uFD29="\u0634\u0631",v.\uFD2A="\u0633\u0631",v.\uFD2B="\u0635\u0631",v.\uFD2C="\u0636\u0631",v.\uFD2D="\u0634\u062C",v.\uFD2E="\u0634\u062D",v.\uFD2F="\u0634\u062E",v.\uFD30="\u0634\u0645",v.\uFD31="\u0633\u0647",v.\uFD32="\u0634\u0647",v.\uFD33="\u0637\u0645",v.\uFD34="\u0633\u062C",v.\uFD35="\u0633\u062D",v.\uFD36="\u0633\u062E",v.\uFD37="\u0634\u062C",v.\uFD38="\u0634\u062D",v.\uFD39="\u0634\u062E",v.\uFD3A="\u0637\u0645",v.\uFD3B="\u0638\u0645",v.\uFD3C="\u0627\u064B",v.\uFD3D="\u0627\u064B",v.\uFD50="\u062A\u062C\u0645",v.\uFD51="\u062A\u062D\u062C",v.\uFD52="\u062A\u062D\u062C",v.\uFD53="\u062A\u062D\u0645",v.\uFD54="\u062A\u062E\u0645",v.\uFD55="\u062A\u0645\u062C",v.\uFD56="\u062A\u0645\u062D",v.\uFD57="\u062A\u0645\u062E",v.\uFD58="\u062C\u0645\u062D",v.\uFD59="\u062C\u0645\u062D",v.\uFD5A="\u062D\u0645\u064A",v.\uFD5B="\u062D\u0645\u0649",v.\uFD5C="\u0633\u062D\u062C",v.\uFD5D="\u0633\u062C\u062D",v.\uFD5E="\u0633\u062C\u0649",v.\uFD5F="\u0633\u0645\u062D",v.\uFD60="\u0633\u0645\u062D",v.\uFD61="\u0633\u0645\u062C",v.\uFD62="\u0633\u0645\u0645",v.\uFD63="\u0633\u0645\u0645",v.\uFD64="\u0635\u062D\u062D",v.\uFD65="\u0635\u062D\u062D",v.\uFD66="\u0635\u0645\u0645",v.\uFD67="\u0634\u062D\u0645",v.\uFD68="\u0634\u062D\u0645",v.\uFD69="\u0634\u062C\u064A",v.\uFD6A="\u0634\u0645\u062E",v.\uFD6B="\u0634\u0645\u062E",v.\uFD6C="\u0634\u0645\u0645",v.\uFD6D="\u0634\u0645\u0645",v.\uFD6E="\u0636\u062D\u0649",v.\uFD6F="\u0636\u062E\u0645",v.\uFD70="\u0636\u062E\u0645",v.\uFD71="\u0637\u0645\u062D",v.\uFD72="\u0637\u0645\u062D",v.\uFD73="\u0637\u0645\u0645",v.\uFD74="\u0637\u0645\u064A",v.\uFD75="\u0639\u062C\u0645",v.\uFD76="\u0639\u0645\u0645",v.\uFD77="\u0639\u0645\u0645",v.\uFD78="\u0639\u0645\u0649",v.\uFD79="\u063A\u0645\u0645",v.\uFD7A="\u063A\u0645\u064A",v.\uFD7B="\u063A\u0645\u0649",v.\uFD7C="\u0641\u062E\u0645",v.\uFD7D="\u0641\u062E\u0645",v.\uFD7E="\u0642\u0645\u062D",v.\uFD7F="\u0642\u0645\u0645",v.\uFD80="\u0644\u062D\u0645",v.\uFD81="\u0644\u062D\u064A",v.\uFD82="\u0644\u062D\u0649",v.\uFD83="\u0644\u062C\u062C",v.\uFD84="\u0644\u062C\u062C",v.\uFD85="\u0644\u062E\u0645",v.\uFD86="\u0644\u062E\u0645",v.\uFD87="\u0644\u0645\u062D",v.\uFD88="\u0644\u0645\u062D",v.\uFD89="\u0645\u062D\u062C",v.\uFD8A="\u0645\u062D\u0645",v.\uFD8B="\u0645\u062D\u064A",v.\uFD8C="\u0645\u062C\u062D",v.\uFD8D="\u0645\u062C\u0645",v.\uFD8E="\u0645\u062E\u062C",v.\uFD8F="\u0645\u062E\u0645",v.\uFD92="\u0645\u062C\u062E",v.\uFD93="\u0647\u0645\u062C",v.\uFD94="\u0647\u0645\u0645",v.\uFD95="\u0646\u062D\u0645",v.\uFD96="\u0646\u062D\u0649",v.\uFD97="\u0646\u062C\u0645",v.\uFD98="\u0646\u062C\u0645",v.\uFD99="\u0646\u062C\u0649",v.\uFD9A="\u0646\u0645\u064A",v.\uFD9B="\u0646\u0645\u0649",v.\uFD9C="\u064A\u0645\u0645",v.\uFD9D="\u064A\u0645\u0645",v.\uFD9E="\u0628\u062E\u064A",v.\uFD9F="\u062A\u062C\u064A",v.\uFDA0="\u062A\u062C\u0649",v.\uFDA1="\u062A\u062E\u064A",v.\uFDA2="\u062A\u062E\u0649",v.\uFDA3="\u062A\u0645\u064A",v.\uFDA4="\u062A\u0645\u0649",v.\uFDA5="\u062C\u0645\u064A",v.\uFDA6="\u062C\u062D\u0649",v.\uFDA7="\u062C\u0645\u0649",v.\uFDA8="\u0633\u062E\u0649",v.\uFDA9="\u0635\u062D\u064A",v.\uFDAA="\u0634\u062D\u064A",v.\uFDAB="\u0636\u062D\u064A",v.\uFDAC="\u0644\u062C\u064A",v.\uFDAD="\u0644\u0645\u064A",v.\uFDAE="\u064A\u062D\u064A",v.\uFDAF="\u064A\u062C\u064A",v.\uFDB0="\u064A\u0645\u064A",v.\uFDB1="\u0645\u0645\u064A",v.\uFDB2="\u0642\u0645\u064A",v.\uFDB3="\u0646\u062D\u064A",v.\uFDB4="\u0642\u0645\u062D",v.\uFDB5="\u0644\u062D\u0645",v.\uFDB6="\u0639\u0645\u064A",v.\uFDB7="\u0643\u0645\u064A",v.\uFDB8="\u0646\u062C\u062D",v.\uFDB9="\u0645\u062E\u064A",v.\uFDBA="\u0644\u062C\u0645",v.\uFDBB="\u0643\u0645\u0645",v.\uFDBC="\u0644\u062C\u0645",v.\uFDBD="\u0646\u062C\u062D",v.\uFDBE="\u062C\u062D\u064A",v.\uFDBF="\u062D\u062C\u064A",v.\uFDC0="\u0645\u062C\u064A",v.\uFDC1="\u0641\u0645\u064A",v.\uFDC2="\u0628\u062D\u064A",v.\uFDC3="\u0643\u0645\u0645",v.\uFDC4="\u0639\u062C\u0645",v.\uFDC5="\u0635\u0645\u0645",v.\uFDC6="\u0633\u062E\u064A",v.\uFDC7="\u0646\u062C\u064A",v["\uFE49"]="\u203E",v["\uFE4A"]="\u203E",v["\uFE4B"]="\u203E",v["\uFE4C"]="\u203E",v["\uFE4D"]="_",v["\uFE4E"]="_",v["\uFE4F"]="_",v.\uFE80="\u0621",v.\uFE81="\u0622",v.\uFE82="\u0622",v.\uFE83="\u0623",v.\uFE84="\u0623",v.\uFE85="\u0624",v.\uFE86="\u0624",v.\uFE87="\u0625",v.\uFE88="\u0625",v.\uFE89="\u0626",v.\uFE8A="\u0626",v.\uFE8B="\u0626",v.\uFE8C="\u0626",v.\uFE8D="\u0627",v.\uFE8E="\u0627",v.\uFE8F="\u0628",v.\uFE90="\u0628",v.\uFE91="\u0628",v.\uFE92="\u0628",v.\uFE93="\u0629",v.\uFE94="\u0629",v.\uFE95="\u062A",v.\uFE96="\u062A",v.\uFE97="\u062A",v.\uFE98="\u062A",v.\uFE99="\u062B",v.\uFE9A="\u062B",v.\uFE9B="\u062B",v.\uFE9C="\u062B",v.\uFE9D="\u062C",v.\uFE9E="\u062C",v.\uFE9F="\u062C",v.\uFEA0="\u062C",v.\uFEA1="\u062D",v.\uFEA2="\u062D",v.\uFEA3="\u062D",v.\uFEA4="\u062D",v.\uFEA5="\u062E",v.\uFEA6="\u062E",v.\uFEA7="\u062E",v.\uFEA8="\u062E",v.\uFEA9="\u062F",v.\uFEAA="\u062F",v.\uFEAB="\u0630",v.\uFEAC="\u0630",v.\uFEAD="\u0631",v.\uFEAE="\u0631",v.\uFEAF="\u0632",v.\uFEB0="\u0632",v.\uFEB1="\u0633",v.\uFEB2="\u0633",v.\uFEB3="\u0633",v.\uFEB4="\u0633",v.\uFEB5="\u0634",v.\uFEB6="\u0634",v.\uFEB7="\u0634",v.\uFEB8="\u0634",v.\uFEB9="\u0635",v.\uFEBA="\u0635",v.\uFEBB="\u0635",v.\uFEBC="\u0635",v.\uFEBD="\u0636",v.\uFEBE="\u0636",v.\uFEBF="\u0636",v.\uFEC0="\u0636",v.\uFEC1="\u0637",v.\uFEC2="\u0637",v.\uFEC3="\u0637",v.\uFEC4="\u0637",v.\uFEC5="\u0638",v.\uFEC6="\u0638",v.\uFEC7="\u0638",v.\uFEC8="\u0638",v.\uFEC9="\u0639",v.\uFECA="\u0639",v.\uFECB="\u0639",v.\uFECC="\u0639",v.\uFECD="\u063A",v.\uFECE="\u063A",v.\uFECF="\u063A",v.\uFED0="\u063A",v.\uFED1="\u0641",v.\uFED2="\u0641",v.\uFED3="\u0641",v.\uFED4="\u0641",v.\uFED5="\u0642",v.\uFED6="\u0642",v.\uFED7="\u0642",v.\uFED8="\u0642",v.\uFED9="\u0643",v.\uFEDA="\u0643",v.\uFEDB="\u0643",v.\uFEDC="\u0643",v.\uFEDD="\u0644",v.\uFEDE="\u0644",v.\uFEDF="\u0644",v.\uFEE0="\u0644",v.\uFEE1="\u0645",v.\uFEE2="\u0645",v.\uFEE3="\u0645",v.\uFEE4="\u0645",v.\uFEE5="\u0646",v.\uFEE6="\u0646",v.\uFEE7="\u0646",v.\uFEE8="\u0646",v.\uFEE9="\u0647",v.\uFEEA="\u0647",v.\uFEEB="\u0647",v.\uFEEC="\u0647",v.\uFEED="\u0648",v.\uFEEE="\u0648",v.\uFEEF="\u0649",v.\uFEF0="\u0649",v.\uFEF1="\u064A",v.\uFEF2="\u064A",v.\uFEF3="\u064A",v.\uFEF4="\u064A",v.\uFEF5="\u0644\u0622",v.\uFEF6="\u0644\u0622",v.\uFEF7="\u0644\u0623",v.\uFEF8="\u0644\u0623",v.\uFEF9="\u0644\u0625",v.\uFEFA="\u0644\u0625",v.\uFEFB="\u0644\u0627",v.\uFEFC="\u0644\u0627"});function C(v){var J=v.length;if(J<=1||!$(v.charCodeAt(0)))return v;for(var ae="",H=J-1;H>=0;H--)ae+=v[H];return ae}f.mapSpecialUnicodeValues=k,f.reverseIfRtl=C,f.getUnicodeRangeFor=w,f.getNormalizedUnicodes=Q,f.getUnicodeForGlyph=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.FontRendererFactory=void 0;var m=b(2),y=b(30),k=b(33),a=b(32),q=b(12),w=function(){function Q(P,B){return P[B]<<24|P[B+1]<<16|P[B+2]<<8|P[B+3]}function C(P,B){return P[B]<<8|P[B+1]}function v(P){const B=P.length;let M=32768;return B<1240?M=107:B<33900&&(M=1131),M}function J(P,B,M){var F=C(P,B+2)===1?Q(P,B+8):Q(P,B+16),S=C(P,B+F),A,E,_;if(S===4){C(P,B+F+2);var D=C(P,B+F+6)>>1;for(E=B+F+14,A=[],_=0;_<D;_++,E+=2)A[_]={end:C(P,E)};for(E+=2,_=0;_<D;_++,E+=2)A[_].start=C(P,E);for(_=0;_<D;_++,E+=2)A[_].idDelta=C(P,E);for(_=0;_<D;_++,E+=2){var N=C(P,E);if(N!==0){A[_].ids=[];for(var U=0,z=A[_].end-A[_].start+1;U<z;U++)A[_].ids[U]=C(P,E+N),N+=2}}return A}else if(S===12){Q(P,B+F+4);var te=Q(P,B+F+12);for(E=B+F+16,A=[],_=0;_<te;_++)A.push({start:Q(P,E),end:Q(P,E+4),idDelta:Q(P,E+8)-Q(P,E)}),E+=12;return A}throw new m.FormatError(`unsupported cmap: ${S}`)}function ae(P,B,M,F){var S={},A=new y.CFFParser(new q.Stream(P,B,M-B),S,F),E=A.parse();return{glyphs:E.charStrings.objects,subrs:E.topDict.privateDict&&E.topDict.privateDict.subrsIndex&&E.topDict.privateDict.subrsIndex.objects,gsubrs:E.globalSubrIndex&&E.globalSubrIndex.objects,isCFFCIDFont:E.isCIDFont,fdSelect:E.fdSelect,fdArray:E.fdArray}}function H(P,B,M){var F,S;M?(F=4,S=function(U,z){return U[z]<<24|U[z+1]<<16|U[z+2]<<8|U[z+3]}):(F=2,S=function(U,z){return U[z]<<9|U[z+1]<<1});for(var A=[],E=S(B,0),_=F;_<B.length;_+=F){var D=S(B,_);A.push(P.subarray(E,D)),E=D}return A}function Y(P,B){for(var M=B.codePointAt(0),F=0,S=0,A=P.length-1;S<A;){var E=S+A+1>>1;M<P[E].start?A=E-1:S=E}return P[S].start<=M&&M<=P[S].end&&(F=P[S].idDelta+(P[S].ids?P[S].ids[M-P[S].start]:M)&65535),{charCode:M,glyphId:F}}function G(P,B,M){function F(ve,xe){B.push({cmd:"moveTo",args:[ve,xe]})}function S(ve,xe){B.push({cmd:"lineTo",args:[ve,xe]})}function A(ve,xe,Ce,be){B.push({cmd:"quadraticCurveTo",args:[ve,xe,Ce,be]})}var E=0,_=(P[E]<<24|P[E+1]<<16)>>16,D,N=0,U=0;if(E+=10,_<0)do{D=P[E]<<8|P[E+1];var z=P[E+2]<<8|P[E+3];E+=4;var te,W;D&1?(te=(P[E]<<24|P[E+1]<<16)>>16,W=(P[E+2]<<24|P[E+3]<<16)>>16,E+=4):(te=P[E++],W=P[E++]),D&2?(N=te,U=W):(N=0,U=0);var re=1,ee=1,X=0,K=0;D&8?(re=ee=(P[E]<<24|P[E+1]<<16)/1073741824,E+=2):D&64?(re=(P[E]<<24|P[E+1]<<16)/1073741824,ee=(P[E+2]<<24|P[E+3]<<16)/1073741824,E+=4):D&128&&(re=(P[E]<<24|P[E+1]<<16)/1073741824,X=(P[E+2]<<24|P[E+3]<<16)/1073741824,K=(P[E+4]<<24|P[E+5]<<16)/1073741824,ee=(P[E+6]<<24|P[E+7]<<16)/1073741824,E+=8);var Z=M.glyphs[z];Z&&(B.push({cmd:"save"}),B.push({cmd:"transform",args:[re,X,K,ee,N,U]}),G(Z,B,M),B.push({cmd:"restore"}))}while(D&32);else{var se=[],ie,de;for(ie=0;ie<_;ie++)se.push(P[E]<<8|P[E+1]),E+=2;var ce=P[E]<<8|P[E+1];E+=2+ce;for(var he=se[se.length-1]+1,oe=[];oe.length<he;){D=P[E++];var ne=1;for(D&8&&(ne+=P[E++]);ne-- >0;)oe.push({flags:D})}for(ie=0;ie<he;ie++){switch(oe[ie].flags&18){case 0:N+=(P[E]<<24|P[E+1]<<16)>>16,E+=2;break;case 2:N-=P[E++];break;case 18:N+=P[E++];break}oe[ie].x=N}for(ie=0;ie<he;ie++){switch(oe[ie].flags&36){case 0:U+=(P[E]<<24|P[E+1]<<16)>>16,E+=2;break;case 4:U-=P[E++];break;case 36:U+=P[E++];break}oe[ie].y=U}var ue=0;for(E=0;E<_;E++){var le=se[E],fe=oe.slice(ue,le+1);if(fe[0].flags&1)fe.push(fe[0]);else if(fe[fe.length-1].flags&1)fe.unshift(fe[fe.length-1]);else{var pe={flags:1,x:(fe[0].x+fe[fe.length-1].x)/2,y:(fe[0].y+fe[fe.length-1].y)/2};fe.unshift(pe),fe.push(pe)}for(F(fe[0].x,fe[0].y),ie=1,de=fe.length;ie<de;ie++)fe[ie].flags&1?S(fe[ie].x,fe[ie].y):fe[ie+1].flags&1?(A(fe[ie].x,fe[ie].y,fe[ie+1].x,fe[ie+1].y),ie++):A(fe[ie].x,fe[ie].y,(fe[ie].x+fe[ie+1].x)/2,(fe[ie].y+fe[ie+1].y)/2);ue=le+1}}}function j(P,B,M,F){function S(te,W){B.push({cmd:"moveTo",args:[te,W]})}function A(te,W){B.push({cmd:"lineTo",args:[te,W]})}function E(te,W,re,ee,X,K){B.push({cmd:"bezierCurveTo",args:[te,W,re,ee,X,K]})}var _=[],D=0,N=0,U=0;function z(te){for(var W=0;W<te.length;){var re=!1,ee=te[W++],X,K,Z,se,ie,de,ce,he,oe;switch(ee){case 1:U+=_.length>>1,re=!0;break;case 3:U+=_.length>>1,re=!0;break;case 4:N+=_.pop(),S(D,N),re=!0;break;case 5:for(;_.length>0;)D+=_.shift(),N+=_.shift(),A(D,N);break;case 6:for(;_.length>0&&(D+=_.shift(),A(D,N),_.length!==0);)N+=_.shift(),A(D,N);break;case 7:for(;_.length>0&&(N+=_.shift(),A(D,N),_.length!==0);)D+=_.shift(),A(D,N);break;case 8:for(;_.length>0;)X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N);break;case 10:if(he=_.pop(),oe=null,M.isCFFCIDFont){const ve=M.fdSelect.getFDIndex(F);if(ve>=0&&ve<M.fdArray.length){const xe=M.fdArray[ve];let Ce;xe.privateDict&&xe.privateDict.subrsIndex&&(Ce=xe.privateDict.subrsIndex.objects),Ce&&(he+=v(Ce),oe=Ce[he])}else(0,m.warn)("Invalid fd index for glyph index.")}else oe=M.subrs[he+M.subrsBias];oe&&z(oe);break;case 11:return;case 12:switch(ee=te[W++],ee){case 34:X=D+_.shift(),K=X+_.shift(),ie=N+_.shift(),D=K+_.shift(),E(X,N,K,ie,D,ie),X=D+_.shift(),K=X+_.shift(),D=K+_.shift(),E(X,ie,K,N,D,N);break;case 35:X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N),X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N),_.pop();break;case 36:X=D+_.shift(),ie=N+_.shift(),K=X+_.shift(),de=ie+_.shift(),D=K+_.shift(),E(X,ie,K,de,D,de),X=D+_.shift(),K=X+_.shift(),ce=de+_.shift(),D=K+_.shift(),E(X,de,K,ce,D,N);break;case 37:var ne=D,ue=N;X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N),X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K,N=se,Math.abs(D-ne)>Math.abs(N-ue)?D+=_.shift():N+=_.shift(),E(X,Z,K,se,D,N);break;default:throw new m.FormatError(`unknown operator: 12 ${ee}`)}break;case 14:if(_.length>=4){var le=_.pop(),fe=_.pop();N=_.pop(),D=_.pop(),B.push({cmd:"save"}),B.push({cmd:"translate",args:[D,N]});var pe=Y(M.cmap,String.fromCharCode(M.glyphNameMap[a.StandardEncoding[le]]));j(M.glyphs[pe.glyphId],B,M,pe.glyphId),B.push({cmd:"restore"}),pe=Y(M.cmap,String.fromCharCode(M.glyphNameMap[a.StandardEncoding[fe]])),j(M.glyphs[pe.glyphId],B,M,pe.glyphId)}return;case 18:U+=_.length>>1,re=!0;break;case 19:U+=_.length>>1,W+=U+7>>3,re=!0;break;case 20:U+=_.length>>1,W+=U+7>>3,re=!0;break;case 21:N+=_.pop(),D+=_.pop(),S(D,N),re=!0;break;case 22:D+=_.pop(),S(D,N),re=!0;break;case 23:U+=_.length>>1,re=!0;break;case 24:for(;_.length>2;)X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N);D+=_.shift(),N+=_.shift(),A(D,N);break;case 25:for(;_.length>6;)D+=_.shift(),N+=_.shift(),A(D,N);X=D+_.shift(),Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+_.shift(),E(X,Z,K,se,D,N);break;case 26:for(_.length%2&&(D+=_.shift());_.length>0;)X=D,Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K,N=se+_.shift(),E(X,Z,K,se,D,N);break;case 27:for(_.length%2&&(N+=_.shift());_.length>0;)X=D+_.shift(),Z=N,K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se,E(X,Z,K,se,D,N);break;case 28:_.push((te[W]<<24|te[W+1]<<16)>>16),W+=2;break;case 29:he=_.pop()+M.gsubrsBias,oe=M.gsubrs[he],oe&&z(oe);break;case 30:for(;_.length>0&&(X=D,Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+(_.length===1?_.shift():0),E(X,Z,K,se,D,N),_.length!==0);)X=D+_.shift(),Z=N,K=X+_.shift(),se=Z+_.shift(),N=se+_.shift(),D=K+(_.length===1?_.shift():0),E(X,Z,K,se,D,N);break;case 31:for(;_.length>0&&(X=D+_.shift(),Z=N,K=X+_.shift(),se=Z+_.shift(),N=se+_.shift(),D=K+(_.length===1?_.shift():0),E(X,Z,K,se,D,N),_.length!==0);)X=D,Z=N+_.shift(),K=X+_.shift(),se=Z+_.shift(),D=K+_.shift(),N=se+(_.length===1?_.shift():0),E(X,Z,K,se,D,N);break;default:if(ee<32)throw new m.FormatError(`unknown operator: ${ee}`);ee<247?_.push(ee-139):ee<251?_.push((ee-247)*256+te[W++]+108):ee<255?_.push(-(ee-251)*256-te[W++]-108):(_.push((te[W]<<24|te[W+1]<<16|te[W+2]<<8|te[W+3])/65536),W+=4);break}re&&(_.length=0)}}z(P)}const L=[];class R{constructor(B){this.constructor===R&&(0,m.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=B,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(B){const M=Y(this.cmap,B);let F=this.compiledGlyphs[M.glyphId];return F||(F=this.compileGlyph(this.glyphs[M.glyphId],M.glyphId),this.compiledGlyphs[M.glyphId]=F),this.compiledCharCodeToGlyphId[M.charCode]===void 0&&(this.compiledCharCodeToGlyphId[M.charCode]=M.glyphId),F}compileGlyph(B,M){if(!B||B.length===0||B[0]===14)return L;let F=this.fontMatrix;if(this.isCFFCIDFont){const A=this.fdSelect.getFDIndex(M);A>=0&&A<this.fdArray.length?F=this.fdArray[A].getByName("FontMatrix")||m.FONT_IDENTITY_MATRIX:(0,m.warn)("Invalid fd index for glyph index.")}const S=[];return S.push({cmd:"save"}),S.push({cmd:"transform",args:F.slice()}),S.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(B,S,M),S.push({cmd:"restore"}),S}compileGlyphImpl(){(0,m.unreachable)("Children classes should implement this.")}hasBuiltPath(B){const M=Y(this.cmap,B);return this.compiledGlyphs[M.glyphId]!==void 0&&this.compiledCharCodeToGlyphId[M.charCode]!==void 0}}class T extends R{constructor(B,M,F){super(F||[488e-6,0,0,488e-6,0,0]),this.glyphs=B,this.cmap=M}compileGlyphImpl(B,M){G(B,M,this)}}class O extends R{constructor(B,M,F,S){super(F||[.001,0,0,.001,0,0]),this.glyphs=B.glyphs,this.gsubrs=B.gsubrs||[],this.subrs=B.subrs||[],this.cmap=M,this.glyphNameMap=S||(0,k.getGlyphsUnicode)(),this.gsubrsBias=v(this.gsubrs),this.subrsBias=v(this.subrs),this.isCFFCIDFont=B.isCFFCIDFont,this.fdSelect=B.fdSelect,this.fdArray=B.fdArray}compileGlyphImpl(B,M,F){j(B,M,this,F)}}return{create:function(B,M){for(var F=new Uint8Array(B.data),S,A,E,_,D,N,U=C(F,4),z=0,te=12;z<U;z++,te+=16){var W=(0,m.bytesToString)(F.subarray(te,te+4)),re=Q(F,te+8),ee=Q(F,te+12);switch(W){case"cmap":S=J(F,re);break;case"glyf":A=F.subarray(re,re+ee);break;case"loca":E=F.subarray(re,re+ee);break;case"head":N=C(F,re+18),D=C(F,re+50);break;case"CFF ":_=ae(F,re,re+ee,M);break}}if(A){var X=N?[1/N,0,0,1/N,0,0]:B.fontMatrix;return new T(H(A,E,D),S,X)}return new O(_,S,B.fontMatrix,B.glyphNameMap)}}}();f.FontRendererFactory=w},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.Type1Parser=void 0;var m=b(32),y=b(8),k=b(12),a=b(2),q=!1,w=function(){var C={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};function v(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return v.prototype={convert:function(ae,H,Y){for(var G=ae.length,j=!1,L,R,T,O=0;O<G;O++){var P=ae[O];if(P<32){switch(P===12&&(P=(P<<8)+ae[++O]),P){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){j=!0;break}var B=this.stack.pop();this.stack.push(0,B);break}j=this.executeCommand(1,C.vmoveto);break;case 5:j=this.executeCommand(2,C.rlineto);break;case 6:j=this.executeCommand(1,C.hlineto);break;case 7:j=this.executeCommand(1,C.vlineto);break;case 8:j=this.executeCommand(6,C.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){j=!0;break}if(T=this.stack.pop(),!H[T]){j=!0;break}j=this.convert(H[T],H,Y);break;case 11:return j;case 13:if(this.stack.length<2){j=!0;break}L=this.stack.pop(),R=this.stack.pop(),this.lsb=R,this.width=L,this.stack.push(L,R),j=this.executeCommand(2,C.hmoveto);break;case 14:this.output.push(C.endchar[0]);break;case 21:if(this.flexing)break;j=this.executeCommand(2,C.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}j=this.executeCommand(1,C.hmoveto);break;case 30:j=this.executeCommand(4,C.vhcurveto);break;case 31:j=this.executeCommand(4,C.hvcurveto);break;case(12<<8)+0:this.stack=[];break;case(12<<8)+1:{this.stack=[];break}case(12<<8)+2:{this.stack=[];break}case(12<<8)+6:Y?(this.seac=this.stack.splice(-4,4),j=this.executeCommand(0,C.endchar)):j=this.executeCommand(4,C.endchar);break;case(12<<8)+7:if(this.stack.length<4){j=!0;break}this.stack.pop(),L=this.stack.pop();var M=this.stack.pop();R=this.stack.pop(),this.lsb=R,this.width=L,this.stack.push(L,R,M),j=this.executeCommand(3,C.rmoveto);break;case(12<<8)+12:if(this.stack.length<2){j=!0;break}var F=this.stack.pop(),S=this.stack.pop();this.stack.push(S/F);break;case(12<<8)+16:if(this.stack.length<2){j=!0;break}T=this.stack.pop();var A=this.stack.pop();if(T===0&&A===3){var E=this.stack.splice(this.stack.length-17,17);this.stack.push(E[2]+E[0],E[3]+E[1],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14]),j=this.executeCommand(13,C.flex,!0),this.flexing=!1,this.stack.push(E[15],E[16])}else T===1&&A===0&&(this.flexing=!0);break;case(12<<8)+17:break;case(12<<8)+33:this.stack=[];break;default:(0,a.warn)('Unknown type 1 charstring command of "'+P+'"');break}if(j)break;continue}else P<=246?P=P-139:P<=250?P=(P-247)*256+ae[++O]+108:P<=254?P=-((P-251)*256)-ae[++O]-108:P=(ae[++O]&255)<<24|(ae[++O]&255)<<16|(ae[++O]&255)<<8|(ae[++O]&255)<<0;this.stack.push(P)}return j},executeCommand(J,ae,H){var Y=this.stack.length;if(J>Y)return!0;for(var G=Y-J,j=G;j<Y;j++){var L=this.stack[j];Number.isInteger(L)?this.output.push(28,L>>8&255,L&255):(L=65536*L|0,this.output.push(255,L>>24&255,L>>16&255,L>>8&255,L&255))}return this.output.push.apply(this.output,ae),H?this.stack.splice(G,J):this.stack.length=0,!1}},v}(),$=function(){var C=55665,v=4330;function J(j){return j>=48&&j<=57||j>=65&&j<=70||j>=97&&j<=102}function ae(j,L,R){if(R>=j.length)return new Uint8Array(0);var T=L|0,O=52845,P=22719,B,M;for(B=0;B<R;B++)T=(j[B]+T)*O+P&(1<<16)-1;var F=j.length-R,S=new Uint8Array(F);for(B=R,M=0;M<F;B++,M++){var A=j[B];S[M]=A^T>>8,T=(A+T)*O+P&(1<<16)-1}return S}function H(j,L,R){var T=L|0,O=52845,P=22719,B=j.length,M=B>>>1,F=new Uint8Array(M),S,A;for(S=0,A=0;S<B;S++){var E=j[S];if(!!J(E)){S++;for(var _;S<B&&!J(_=j[S]);)S++;if(S<B){var D=parseInt(String.fromCharCode(E,_),16);F[A++]=D^T>>8,T=(D+T)*O+P&(1<<16)-1}}}return F.slice(R,A)}function Y(j){return j===47||j===91||j===93||j===123||j===125||j===40||j===41}function G(j,L,R){if(L){var T=j.getBytes(),O=!((J(T[0])||(0,y.isWhiteSpace)(T[0]))&&J(T[1])&&J(T[2])&&J(T[3])&&J(T[4])&&J(T[5])&&J(T[6])&&J(T[7]));j=new k.Stream(O?ae(T,C,4):H(T,C,4))}this.seacAnalysisEnabled=!!R,this.stream=j,this.nextChar()}return G.prototype={readNumberArray:function(){this.getToken();for(var L=[];;){var R=this.getToken();if(R===null||R==="]"||R==="}")break;L.push(parseFloat(R||0))}return L},readNumber:function(){var L=this.getToken();return parseFloat(L||0)},readInt:function(){var L=this.getToken();return parseInt(L||0,10)|0},readBoolean:function(){var L=this.getToken();return L==="true"?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var L=!1,R=this.currentChar;;){if(R===-1)return null;if(L)(R===10||R===13)&&(L=!1);else if(R===37)L=!0;else if(!(0,y.isWhiteSpace)(R))break;R=this.nextChar()}if(Y(R))return this.nextChar(),String.fromCharCode(R);var T="";do T+=String.fromCharCode(R),R=this.nextChar();while(R>=0&&!(0,y.isWhiteSpace)(R)&&!Y(R));return T},readCharStrings:function(L,R){return R===-1?L:ae(L,v,R)},extractFontProgram:function(L){var R=this.stream,T=[],O=[],P=Object.create(null);P.lenIV=4;for(var B={subrs:[],charstrings:[],properties:{privateData:P}},M,F,S,A,E;(M=this.getToken())!==null;)if(M==="/")switch(M=this.getToken(),M){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();M=this.getToken(),!(M===null||M==="end");)if(M==="/"){var _=this.getToken();F=this.readInt(),this.getToken(),S=F>0?R.getBytes(F):new Uint8Array(0),A=B.properties.privateData.lenIV,E=this.readCharStrings(S,A),this.nextChar(),M=this.getToken(),M==="noaccess"&&this.getToken(),O.push({glyph:_,encoded:E})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const W=this.readInt();F=this.readInt(),this.getToken(),S=F>0?R.getBytes(F):new Uint8Array(0),A=B.properties.privateData.lenIV,E=this.readCharStrings(S,A),this.nextChar(),M=this.getToken(),M==="noaccess"&&this.getToken(),T[W]=E}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var D=this.readNumberArray();D.length>0&&D.length%2===0&&q&&(B.properties.privateData[M]=D);break;case"StemSnapH":case"StemSnapV":B.properties.privateData[M]=this.readNumberArray();break;case"StdHW":case"StdVW":B.properties.privateData[M]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":B.properties.privateData[M]=this.readNumber();break;case"ForceBold":B.properties.privateData[M]=this.readBoolean();break}for(var N=0;N<O.length;N++){_=O[N].glyph,E=O[N].encoded;var U=new w,z=U.convert(E,T,this.seacAnalysisEnabled),te=U.output;z&&(te=[14]);const W={glyphName:_,charstring:te,width:U.width,lsb:U.lsb,seac:U.seac};if(_===".notdef"?B.charstrings.unshift(W):B.charstrings.push(W),L.builtInEncoding){const re=L.builtInEncoding.indexOf(_);re>-1&&L.widths[re]===void 0&&re>=L.firstChar&&re<=L.lastChar&&(L.widths[re]=U.width)}}return B},extractFontHeader:function(L){for(var R;(R=this.getToken())!==null;)if(R==="/")switch(R=this.getToken(),R){case"FontMatrix":var T=this.readNumberArray();L.fontMatrix=T;break;case"Encoding":var O=this.getToken(),P;if(!/^\d+$/.test(O))P=(0,m.getEncoding)(O);else{P=[];var B=parseInt(O,10)|0;this.getToken();for(var M=0;M<B;M++){for(R=this.getToken();R!=="dup"&&R!=="def";)if(R=this.getToken(),R===null)return;if(R==="def")break;var F=this.readInt();this.getToken();var S=this.getToken();P[F]=S,this.getToken()}}L.builtInEncoding=P;break;case"FontBBox":var A=this.readNumberArray();L.ascent=Math.max(A[3],A[1]),L.descent=Math.min(A[1],A[3]),L.ascentScaled=!0;break}}},G}();f.Type1Parser=$},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getTilingPatternIR=Q,f.Pattern=void 0;var m=b(2),y=b(23),k=b(5),a=b(8),q={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},w=function(){function v(){(0,m.unreachable)("should not call Pattern constructor")}return v.prototype={getPattern:function(ae){(0,m.unreachable)(`Should not call Pattern.getStyle: ${ae}`)}},v.parseShading=function(J,ae,H,Y,G,j){var L=(0,k.isStream)(J)?J.dict:J,R=L.get("ShadingType");try{switch(R){case q.AXIAL:case q.RADIAL:return new $.RadialAxial(L,ae,H,Y,j);case q.FREE_FORM_MESH:case q.LATTICE_FORM_MESH:case q.COONS_PATCH_MESH:case q.TENSOR_PATCH_MESH:return new $.Mesh(J,ae,H,Y,j);default:throw new m.FormatError("Unsupported ShadingType: "+R)}}catch(T){if(T instanceof a.MissingDataException)throw T;return G.send("UnsupportedFeature",{featureId:m.UNSUPPORTED_FEATURES.shadingPattern}),(0,m.warn)(T),new $.Dummy}},v}();f.Pattern=w;var $={};$.SMALL_NUMBER=1e-6,$.RadialAxial=function(){function v(J,ae,H,Y,G){this.matrix=ae,this.coordsArr=J.getArray("Coords"),this.shadingType=J.get("ShadingType"),this.type="Pattern";var j=J.get("ColorSpace","CS");j=y.ColorSpace.parse(j,H,Y,G),this.cs=j;const L=J.getArray("BBox");Array.isArray(L)&&L.length===4?this.bbox=m.Util.normalizeRect(L):this.bbox=null;var R=0,T=1;if(J.has("Domain")){var O=J.getArray("Domain");R=O[0],T=O[1]}var P=!1,B=!1;if(J.has("Extend")){var M=J.getArray("Extend");P=M[0],B=M[1]}if(this.shadingType===q.RADIAL&&(!P||!B)){var F=this.coordsArr[0],S=this.coordsArr[1],A=this.coordsArr[2],E=this.coordsArr[3],_=this.coordsArr[4],D=this.coordsArr[5],N=Math.sqrt((F-E)*(F-E)+(S-_)*(S-_));A<=D+N&&D<=A+N&&(0,m.warn)("Unsupported radial gradient.")}this.extendStart=P,this.extendEnd=B;var U=J.get("Function"),z=G.createFromArray(U);const te=10,W=(T-R)/te;var re=this.colorStops=[];if(R>=T||W<=0){(0,m.info)("Bad shading domain.");return}var ee=new Float32Array(j.numComps),X=new Float32Array(1),K;for(let ie=0;ie<=te;ie++){X[0]=R+ie*W,z(X,0,ee,0),K=j.getRgb(ee,0);var Z=m.Util.makeCssRgb(K[0],K[1],K[2]);re.push([ie/te,Z])}var se="transparent";J.has("Background")&&(K=j.getRgb(J.get("Background"),0),se=m.Util.makeCssRgb(K[0],K[1],K[2])),P||(re.unshift([0,se]),re[1][0]+=$.SMALL_NUMBER),B||(re[re.length-1][0]-=$.SMALL_NUMBER,re.push([1,se])),this.colorStops=re}return v.prototype={getIR:function(){var ae=this.coordsArr,H=this.shadingType,Y,G,j,L,R;H===q.AXIAL?(G=[ae[0],ae[1]],j=[ae[2],ae[3]],L=null,R=null,Y="axial"):H===q.RADIAL?(G=[ae[0],ae[1]],j=[ae[3],ae[4]],L=ae[2],R=ae[5],Y="radial"):(0,m.unreachable)(`getPattern type unknown: ${H}`);var T=this.matrix;if(T&&(G=m.Util.applyTransform(G,T),j=m.Util.applyTransform(j,T),H===q.RADIAL)){var O=m.Util.singularValueDecompose2dScale(T);L*=O[0],R*=O[1]}return["RadialAxial",Y,this.bbox,this.colorStops,G,j,L,R]}},v}(),$.Mesh=function(){function v(M,F){this.stream=M,this.context=F,this.buffer=0,this.bufferLength=0;var S=F.numComps;this.tmpCompsBuf=new Float32Array(S);var A=F.colorSpace.numComps;this.tmpCsCompsBuf=F.colorFn?new Float32Array(A):this.tmpCompsBuf}v.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var M=this.stream.getByte();return M<0?!1:(this.buffer=M,this.bufferLength=8,!0)},readBits:function(F){var S=this.buffer,A=this.bufferLength;if(F===32){if(A===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;S=S<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var E=this.stream.getByte();return this.buffer=E&(1<<A)-1,(S<<8-A|(E&255)>>A)>>>0}if(F===8&&A===0)return this.stream.getByte();for(;A<F;)S=S<<8|this.stream.getByte(),A+=8;return A-=F,this.bufferLength=A,this.buffer=S&(1<<A)-1,S>>A},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var F=this.context.bitsPerCoordinate,S=this.readBits(F),A=this.readBits(F),E=this.context.decode,_=F<32?1/((1<<F)-1):23283064365386963e-26;return[S*_*(E[1]-E[0])+E[0],A*_*(E[3]-E[2])+E[2]]},readComponents:function(){for(var F=this.context.numComps,S=this.context.bitsPerComponent,A=S<32?1/((1<<S)-1):23283064365386963e-26,E=this.context.decode,_=this.tmpCompsBuf,D=0,N=4;D<F;D++,N+=2){var U=this.readBits(S);_[D]=U*A*(E[N+1]-E[N])+E[N]}var z=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(_,0,z,0),this.context.colorSpace.getRgb(z,0)}};function J(M,F){for(var S=M.coords,A=M.colors,E=[],_=0;F.hasData;){var D=F.readFlag(),N=F.readCoordinate(),U=F.readComponents();if(_===0){if(!(0<=D&&D<=2))throw new m.FormatError("Unknown type4 flag");switch(D){case 0:_=3;break;case 1:E.push(E[E.length-2],E[E.length-1]),_=1;break;case 2:E.push(E[E.length-3],E[E.length-1]),_=1;break}}E.push(S.length),S.push(N),A.push(U),_--,F.align()}M.figures.push({type:"triangles",coords:new Int32Array(E),colors:new Int32Array(E)})}function ae(M,F,S){for(var A=M.coords,E=M.colors,_=[];F.hasData;){var D=F.readCoordinate(),N=F.readComponents();_.push(A.length),A.push(D),E.push(N)}M.figures.push({type:"lattice",coords:new Int32Array(_),colors:new Int32Array(_),verticesPerRow:S})}var H=3,Y=20,G=20,j=function(){function F(A){for(var E=[],_=0;_<=A;_++){var D=_/A,N=1-D;E.push(new Float32Array([N*N*N,3*D*N*N,3*D*D*N,D*D*D]))}return E}var S=[];return function(E){return S[E]||(S[E]=F(E)),S[E]}}();function L(M,F){var S=M.figures[F];(0,m.assert)(S.type==="patch","Unexpected patch mesh figure");var A=M.coords,E=M.colors,_=S.coords,D=S.colors,N=Math.min(A[_[0]][0],A[_[3]][0],A[_[12]][0],A[_[15]][0]),U=Math.min(A[_[0]][1],A[_[3]][1],A[_[12]][1],A[_[15]][1]),z=Math.max(A[_[0]][0],A[_[3]][0],A[_[12]][0],A[_[15]][0]),te=Math.max(A[_[0]][1],A[_[3]][1],A[_[12]][1],A[_[15]][1]),W=Math.ceil((z-N)*G/(M.bounds[2]-M.bounds[0]));W=Math.max(H,Math.min(Y,W));var re=Math.ceil((te-U)*G/(M.bounds[3]-M.bounds[1]));re=Math.max(H,Math.min(Y,re));for(var ee=W+1,X=new Int32Array((re+1)*ee),K=new Int32Array((re+1)*ee),Z=0,se=new Uint8Array(3),ie=new Uint8Array(3),de=E[D[0]],ce=E[D[1]],he=E[D[2]],oe=E[D[3]],ne=j(re),ue=j(W),le=0;le<=re;le++){se[0]=(de[0]*(re-le)+he[0]*le)/re|0,se[1]=(de[1]*(re-le)+he[1]*le)/re|0,se[2]=(de[2]*(re-le)+he[2]*le)/re|0,ie[0]=(ce[0]*(re-le)+oe[0]*le)/re|0,ie[1]=(ce[1]*(re-le)+oe[1]*le)/re|0,ie[2]=(ce[2]*(re-le)+oe[2]*le)/re|0;for(var fe=0;fe<=W;fe++,Z++)if(!((le===0||le===re)&&(fe===0||fe===W))){for(var pe=0,ve=0,xe=0,Ce=0;Ce<=3;Ce++)for(var be=0;be<=3;be++,xe++){var me=ne[le][Ce]*ue[fe][be];pe+=A[_[xe]][0]*me,ve+=A[_[xe]][1]*me}X[Z]=A.length,A.push([pe,ve]),K[Z]=E.length;var ge=new Uint8Array(3);ge[0]=(se[0]*(W-fe)+ie[0]*fe)/W|0,ge[1]=(se[1]*(W-fe)+ie[1]*fe)/W|0,ge[2]=(se[2]*(W-fe)+ie[2]*fe)/W|0,E.push(ge)}}X[0]=_[0],K[0]=D[0],X[W]=_[3],K[W]=D[1],X[ee*re]=_[12],K[ee*re]=D[2],X[ee*re+W]=_[15],K[ee*re+W]=D[3],M.figures[F]={type:"lattice",coords:X,colors:K,verticesPerRow:ee}}function R(M,F){for(var S=M.coords,A=M.colors,E=new Int32Array(16),_=new Int32Array(4);F.hasData;){var D=F.readFlag();if(!(0<=D&&D<=3))throw new m.FormatError("Unknown type6 flag");var N,U,z=S.length;for(N=0,U=D!==0?8:12;N<U;N++)S.push(F.readCoordinate());var te=A.length;for(N=0,U=D!==0?2:4;N<U;N++)A.push(F.readComponents());var W,re,ee,X;switch(D){case 0:E[12]=z+3,E[13]=z+4,E[14]=z+5,E[15]=z+6,E[8]=z+2,E[11]=z+7,E[4]=z+1,E[7]=z+8,E[0]=z,E[1]=z+11,E[2]=z+10,E[3]=z+9,_[2]=te+1,_[3]=te+2,_[0]=te,_[1]=te+3;break;case 1:W=E[12],re=E[13],ee=E[14],X=E[15],E[12]=X,E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=ee,E[11]=z+3,E[4]=re,E[7]=z+4,E[0]=W,E[1]=z+7,E[2]=z+6,E[3]=z+5,W=_[2],re=_[3],_[2]=re,_[3]=te,_[0]=W,_[1]=te+1;break;case 2:W=E[15],re=E[11],E[12]=E[3],E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=E[7],E[11]=z+3,E[4]=re,E[7]=z+4,E[0]=W,E[1]=z+7,E[2]=z+6,E[3]=z+5,W=_[3],_[2]=_[1],_[3]=te,_[0]=W,_[1]=te+1;break;case 3:E[12]=E[0],E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=E[1],E[11]=z+3,E[4]=E[2],E[7]=z+4,E[0]=E[3],E[1]=z+7,E[2]=z+6,E[3]=z+5,_[2]=_[0],_[3]=te,_[0]=_[1],_[1]=te+1;break}E[5]=S.length,S.push([(-4*S[E[0]][0]-S[E[15]][0]+6*(S[E[4]][0]+S[E[1]][0])-2*(S[E[12]][0]+S[E[3]][0])+3*(S[E[13]][0]+S[E[7]][0]))/9,(-4*S[E[0]][1]-S[E[15]][1]+6*(S[E[4]][1]+S[E[1]][1])-2*(S[E[12]][1]+S[E[3]][1])+3*(S[E[13]][1]+S[E[7]][1]))/9]),E[6]=S.length,S.push([(-4*S[E[3]][0]-S[E[12]][0]+6*(S[E[2]][0]+S[E[7]][0])-2*(S[E[0]][0]+S[E[15]][0])+3*(S[E[4]][0]+S[E[14]][0]))/9,(-4*S[E[3]][1]-S[E[12]][1]+6*(S[E[2]][1]+S[E[7]][1])-2*(S[E[0]][1]+S[E[15]][1])+3*(S[E[4]][1]+S[E[14]][1]))/9]),E[9]=S.length,S.push([(-4*S[E[12]][0]-S[E[3]][0]+6*(S[E[8]][0]+S[E[13]][0])-2*(S[E[0]][0]+S[E[15]][0])+3*(S[E[11]][0]+S[E[1]][0]))/9,(-4*S[E[12]][1]-S[E[3]][1]+6*(S[E[8]][1]+S[E[13]][1])-2*(S[E[0]][1]+S[E[15]][1])+3*(S[E[11]][1]+S[E[1]][1]))/9]),E[10]=S.length,S.push([(-4*S[E[15]][0]-S[E[0]][0]+6*(S[E[11]][0]+S[E[14]][0])-2*(S[E[12]][0]+S[E[3]][0])+3*(S[E[2]][0]+S[E[8]][0]))/9,(-4*S[E[15]][1]-S[E[0]][1]+6*(S[E[11]][1]+S[E[14]][1])-2*(S[E[12]][1]+S[E[3]][1])+3*(S[E[2]][1]+S[E[8]][1]))/9]),M.figures.push({type:"patch",coords:new Int32Array(E),colors:new Int32Array(_)})}}function T(M,F){for(var S=M.coords,A=M.colors,E=new Int32Array(16),_=new Int32Array(4);F.hasData;){var D=F.readFlag();if(!(0<=D&&D<=3))throw new m.FormatError("Unknown type7 flag");var N,U,z=S.length;for(N=0,U=D!==0?12:16;N<U;N++)S.push(F.readCoordinate());var te=A.length;for(N=0,U=D!==0?2:4;N<U;N++)A.push(F.readComponents());var W,re,ee,X;switch(D){case 0:E[12]=z+3,E[13]=z+4,E[14]=z+5,E[15]=z+6,E[8]=z+2,E[9]=z+13,E[10]=z+14,E[11]=z+7,E[4]=z+1,E[5]=z+12,E[6]=z+15,E[7]=z+8,E[0]=z,E[1]=z+11,E[2]=z+10,E[3]=z+9,_[2]=te+1,_[3]=te+2,_[0]=te,_[1]=te+3;break;case 1:W=E[12],re=E[13],ee=E[14],X=E[15],E[12]=X,E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=ee,E[9]=z+9,E[10]=z+10,E[11]=z+3,E[4]=re,E[5]=z+8,E[6]=z+11,E[7]=z+4,E[0]=W,E[1]=z+7,E[2]=z+6,E[3]=z+5,W=_[2],re=_[3],_[2]=re,_[3]=te,_[0]=W,_[1]=te+1;break;case 2:W=E[15],re=E[11],E[12]=E[3],E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=E[7],E[9]=z+9,E[10]=z+10,E[11]=z+3,E[4]=re,E[5]=z+8,E[6]=z+11,E[7]=z+4,E[0]=W,E[1]=z+7,E[2]=z+6,E[3]=z+5,W=_[3],_[2]=_[1],_[3]=te,_[0]=W,_[1]=te+1;break;case 3:E[12]=E[0],E[13]=z+0,E[14]=z+1,E[15]=z+2,E[8]=E[1],E[9]=z+9,E[10]=z+10,E[11]=z+3,E[4]=E[2],E[5]=z+8,E[6]=z+11,E[7]=z+4,E[0]=E[3],E[1]=z+7,E[2]=z+6,E[3]=z+5,_[2]=_[0],_[3]=te,_[0]=_[1],_[1]=te+1;break}M.figures.push({type:"patch",coords:new Int32Array(E),colors:new Int32Array(_)})}}function O(M){for(var F=M.coords[0][0],S=M.coords[0][1],A=F,E=S,_=1,D=M.coords.length;_<D;_++){var N=M.coords[_][0],U=M.coords[_][1];F=F>N?N:F,S=S>U?U:S,A=A<N?N:A,E=E<U?U:E}M.bounds=[F,S,A,E]}function P(M){var F,S,A,E,_=M.coords,D=new Float32Array(_.length*2);for(F=0,A=0,S=_.length;F<S;F++){var N=_[F];D[A++]=N[0],D[A++]=N[1]}M.coords=D;var U=M.colors,z=new Uint8Array(U.length*3);for(F=0,A=0,S=U.length;F<S;F++){var te=U[F];z[A++]=te[0],z[A++]=te[1],z[A++]=te[2]}M.colors=z;var W=M.figures;for(F=0,S=W.length;F<S;F++){var re=W[F],ee=re.coords,X=re.colors;for(A=0,E=ee.length;A<E;A++)ee[A]*=2,X[A]*=3}}function B(M,F,S,A,E){if(!(0,k.isStream)(M))throw new m.FormatError("Mesh data is not a stream");var _=M.dict;this.matrix=F,this.shadingType=_.get("ShadingType"),this.type="Pattern";const D=_.getArray("BBox");Array.isArray(D)&&D.length===4?this.bbox=m.Util.normalizeRect(D):this.bbox=null;var N=_.get("ColorSpace","CS");N=y.ColorSpace.parse(N,S,A,E),this.cs=N,this.background=_.has("Background")?N.getRgb(_.get("Background"),0):null;var U=_.get("Function"),z=U?E.createFromArray(U):null;this.coords=[],this.colors=[],this.figures=[];var te={bitsPerCoordinate:_.get("BitsPerCoordinate"),bitsPerComponent:_.get("BitsPerComponent"),bitsPerFlag:_.get("BitsPerFlag"),decode:_.getArray("Decode"),colorFn:z,colorSpace:N,numComps:z?1:N.numComps},W=new v(M,te),re=!1;switch(this.shadingType){case q.FREE_FORM_MESH:J(this,W);break;case q.LATTICE_FORM_MESH:var ee=_.get("VerticesPerRow")|0;if(ee<2)throw new m.FormatError("Invalid VerticesPerRow");ae(this,W,ee);break;case q.COONS_PATCH_MESH:R(this,W),re=!0;break;case q.TENSOR_PATCH_MESH:T(this,W),re=!0;break;default:(0,m.unreachable)("Unsupported mesh type.");break}if(re){O(this);for(var X=0,K=this.figures.length;X<K;X++)L(this,X)}O(this),P(this)}return B.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},B}(),$.Dummy=function(){function v(){this.type="Pattern"}return v.prototype={getIR:function(){return["Dummy"]}},v}();function Q(C,v,J){const ae=v.getArray("Matrix"),H=m.Util.normalizeRect(v.getArray("BBox")),Y=v.get("XStep"),G=v.get("YStep"),j=v.get("PaintType"),L=v.get("TilingType");if(H[2]-H[0]===0||H[3]-H[1]===0)throw new m.FormatError(`Invalid getTilingPatternIR /BBox array: [${H}].`);return["TilingPattern",J,C,ae,H,Y,G,j,L]}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.bidi=ae;var m=b(2),y=["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","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","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","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],k=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","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","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","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function a(H){return(H&1)!==0}function q(H){return(H&1)===0}function w(H,Y,G){for(var j=Y,L=H.length;j<L;++j)if(H[j]!==G)return j;return j}function $(H,Y,G,j){for(var L=Y;L<G;++L)H[L]=j}function Q(H,Y,G){for(var j=Y,L=G-1;j<L;++j,--L){var R=H[j];H[j]=H[L],H[L]=R}}function C(H,Y,G=!1){let j="ltr";return G?j="ttb":Y||(j="rtl"),{str:H,dir:j}}var v=[],J=[];function ae(H,Y,G){var j=!0,L=H.length;if(L===0||G)return C(H,j,G);v.length=L,J.length=L;var R=0,T,O;for(T=0;T<L;++T){v[T]=H.charAt(T);var P=H.charCodeAt(T),B="L";P<=255?B=y[P]:1424<=P&&P<=1524?B="R":1536<=P&&P<=1791?(B=k[P&255],B||(0,m.warn)("Bidi: invalid Unicode character "+P.toString(16))):1792<=P&&P<=2220&&(B="AL"),(B==="R"||B==="AL"||B==="AN")&&R++,J[T]=B}if(R===0)return j=!0,C(H,j);Y===-1&&(R/L<.3?(j=!0,Y=0):(j=!1,Y=1));var M=[];for(T=0;T<L;++T)M[T]=Y;var F=a(Y)?"R":"L",S=F,A=S,E=S;for(T=0;T<L;++T)J[T]==="NSM"?J[T]=E:E=J[T];E=S;var _;for(T=0;T<L;++T)_=J[T],_==="EN"?J[T]=E==="AL"?"AN":"EN":(_==="R"||_==="L"||_==="AL")&&(E=_);for(T=0;T<L;++T)_=J[T],_==="AL"&&(J[T]="R");for(T=1;T<L-1;++T)J[T]==="ES"&&J[T-1]==="EN"&&J[T+1]==="EN"&&(J[T]="EN"),J[T]==="CS"&&(J[T-1]==="EN"||J[T-1]==="AN")&&J[T+1]===J[T-1]&&(J[T]=J[T-1]);for(T=0;T<L;++T)if(J[T]==="EN"){var D;for(D=T-1;D>=0&&J[D]==="ET";--D)J[D]="EN";for(D=T+1;D<L&&J[D]==="ET";++D)J[D]="EN"}for(T=0;T<L;++T)_=J[T],(_==="WS"||_==="ES"||_==="ET"||_==="CS")&&(J[T]="ON");for(E=S,T=0;T<L;++T)_=J[T],_==="EN"?J[T]=E==="L"?"L":"EN":(_==="R"||_==="L")&&(E=_);for(T=0;T<L;++T)if(J[T]==="ON"){var N=w(J,T+1,"ON"),U=S;T>0&&(U=J[T-1]);var z=A;N+1<L&&(z=J[N+1]),U!=="L"&&(U="R"),z!=="L"&&(z="R"),U===z&&$(J,T,N,U),T=N-1}for(T=0;T<L;++T)J[T]==="ON"&&(J[T]=F);for(T=0;T<L;++T)_=J[T],q(M[T])?_==="R"?M[T]+=1:(_==="AN"||_==="EN")&&(M[T]+=2):(_==="L"||_==="AN"||_==="EN")&&(M[T]+=1);var te=-1,W=99,re;for(T=0,O=M.length;T<O;++T)re=M[T],te<re&&(te=re),W>re&&a(re)&&(W=re);for(re=te;re>=W;--re){var ee=-1;for(T=0,O=M.length;T<O;++T)M[T]<re?ee>=0&&(Q(v,ee,T),ee=-1):ee<0&&(ee=T);ee>=0&&Q(v,ee,M.length)}for(T=0,O=v.length;T<O;++T){var X=v[T];(X==="<"||X===">")&&(v[T]="")}return C(v.join(""),j)}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getMetrics=void 0;var m=b(8),y=(0,m.getLookupTableFactory)(function(k){k.Courier=600,k["Courier-Bold"]=600,k["Courier-BoldOblique"]=600,k["Courier-Oblique"]=600,k.Helvetica=(0,m.getLookupTableFactory)(function(a){a.space=278,a.exclam=278,a.quotedbl=355,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=667,a.quoteright=222,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=278,a.semicolon=278,a.less=584,a.equal=584,a.greater=584,a.question=556,a.at=1015,a.A=667,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=500,a.K=667,a.L=556,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=278,a.backslash=278,a.bracketright=278,a.asciicircum=469,a.underscore=556,a.quoteleft=222,a.a=556,a.b=556,a.c=500,a.d=556,a.e=556,a.f=278,a.g=556,a.h=556,a.i=222,a.j=222,a.k=500,a.l=222,a.m=833,a.n=556,a.o=556,a.p=556,a.q=556,a.r=333,a.s=500,a.t=278,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=500,a.braceleft=334,a.bar=260,a.braceright=334,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=191,a.quotedblleft=333,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=537,a.bullet=350,a.quotesinglbase=222,a.quotedblbase=333,a.quotedblright=333,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=556,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=222,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=556,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=667,a.aacute=556,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=500,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=500,a.aring=556,a.Ncommaaccent=722,a.lacute=222,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=500,a.scedilla=500,a.iacute=278,a.lozenge=471,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=556,a.Amacron=667,a.rcaron=333,a.ccedilla=500,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=643,a.Umacron=722,a.uring=556,a.threesuperior=333,a.Ograve=778,a.Agrave=667,a.Abreve=667,a.multiply=584,a.uacute=556,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=500,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=260,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=333,a.omacron=556,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=222,a.tcaron=317,a.eogonek=556,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=556,a.zacute=500,a.iogonek=222,a.Oacute=778,a.oacute=556,a.amacron=556,a.sacute=500,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=333,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=556,a.Eogonek=667,a.dcroat=556,a.threequarters=834,a.Scedilla=667,a.lcaron=299,a.Kcommaaccent=667,a.Lacute=556,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=556,a.onehalf=834,a.lessequal=549,a.ocircumflex=556,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=556,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=556,a.Ccaron=722,a.ugrave=556,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=556,a.Rcommaaccent=722,a.Lcommaaccent=556,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=500,a.minus=584,a.Icircumflex=278,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=584,a.odieresis=556,a.udieresis=556,a.notequal=549,a.gcommaaccent=556,a.eth=556,a.zcaron=500,a.ncommaaccent=556,a.onesuperior=333,a.imacron=278,a.Euro=556}),k["Helvetica-Bold"]=(0,m.getLookupTableFactory)(function(a){a.space=278,a.exclam=333,a.quotedbl=474,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=722,a.quoteright=278,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=333,a.semicolon=333,a.less=584,a.equal=584,a.greater=584,a.question=611,a.at=975,a.A=722,a.B=722,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=556,a.K=722,a.L=611,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=584,a.underscore=556,a.quoteleft=278,a.a=556,a.b=611,a.c=556,a.d=611,a.e=556,a.f=333,a.g=611,a.h=611,a.i=278,a.j=278,a.k=556,a.l=278,a.m=889,a.n=611,a.o=611,a.p=611,a.q=611,a.r=389,a.s=556,a.t=333,a.u=611,a.v=556,a.w=778,a.x=556,a.y=556,a.z=500,a.braceleft=389,a.bar=280,a.braceright=389,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=238,a.quotedblleft=500,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=611,a.fl=611,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=556,a.bullet=350,a.quotesinglbase=278,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=611,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=278,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=611,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=722,a.aacute=556,a.Ucircumflex=722,a.yacute=556,a.scommaaccent=556,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=611,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=556,a.aring=556,a.Ncommaaccent=722,a.lacute=278,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=556,a.scedilla=556,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=611,a.acircumflex=556,a.Amacron=722,a.rcaron=389,a.ccedilla=556,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=743,a.Umacron=722,a.uring=611,a.threesuperior=333,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=584,a.uacute=611,a.Tcaron=611,a.partialdiff=494,a.ydieresis=556,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=556,a.nacute=611,a.umacron=611,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=280,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=611,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=389,a.eogonek=556,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=556,a.zacute=500,a.iogonek=278,a.Oacute=778,a.oacute=611,a.amacron=556,a.sacute=556,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=611,a.twosuperior=333,a.Odieresis=778,a.mu=611,a.igrave=278,a.ohungarumlaut=611,a.Eogonek=667,a.dcroat=611,a.threequarters=834,a.Scedilla=667,a.lcaron=400,a.Kcommaaccent=722,a.Lacute=611,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=611,a.onehalf=834,a.lessequal=549,a.ocircumflex=611,a.ntilde=611,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=611,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=611,a.Ccaron=722,a.ugrave=611,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=611,a.Rcommaaccent=722,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=556,a.minus=584,a.Icircumflex=278,a.ncaron=611,a.tcommaaccent=333,a.logicalnot=584,a.odieresis=611,a.udieresis=611,a.notequal=549,a.gcommaaccent=611,a.eth=611,a.zcaron=500,a.ncommaaccent=611,a.onesuperior=333,a.imacron=278,a.Euro=556}),k["Helvetica-BoldOblique"]=(0,m.getLookupTableFactory)(function(a){a.space=278,a.exclam=333,a.quotedbl=474,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=722,a.quoteright=278,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=333,a.semicolon=333,a.less=584,a.equal=584,a.greater=584,a.question=611,a.at=975,a.A=722,a.B=722,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=556,a.K=722,a.L=611,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=584,a.underscore=556,a.quoteleft=278,a.a=556,a.b=611,a.c=556,a.d=611,a.e=556,a.f=333,a.g=611,a.h=611,a.i=278,a.j=278,a.k=556,a.l=278,a.m=889,a.n=611,a.o=611,a.p=611,a.q=611,a.r=389,a.s=556,a.t=333,a.u=611,a.v=556,a.w=778,a.x=556,a.y=556,a.z=500,a.braceleft=389,a.bar=280,a.braceright=389,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=238,a.quotedblleft=500,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=611,a.fl=611,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=556,a.bullet=350,a.quotesinglbase=278,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=611,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=278,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=611,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=722,a.aacute=556,a.Ucircumflex=722,a.yacute=556,a.scommaaccent=556,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=611,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=556,a.aring=556,a.Ncommaaccent=722,a.lacute=278,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=556,a.scedilla=556,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=611,a.acircumflex=556,a.Amacron=722,a.rcaron=389,a.ccedilla=556,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=743,a.Umacron=722,a.uring=611,a.threesuperior=333,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=584,a.uacute=611,a.Tcaron=611,a.partialdiff=494,a.ydieresis=556,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=556,a.nacute=611,a.umacron=611,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=280,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=611,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=389,a.eogonek=556,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=556,a.zacute=500,a.iogonek=278,a.Oacute=778,a.oacute=611,a.amacron=556,a.sacute=556,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=611,a.twosuperior=333,a.Odieresis=778,a.mu=611,a.igrave=278,a.ohungarumlaut=611,a.Eogonek=667,a.dcroat=611,a.threequarters=834,a.Scedilla=667,a.lcaron=400,a.Kcommaaccent=722,a.Lacute=611,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=611,a.onehalf=834,a.lessequal=549,a.ocircumflex=611,a.ntilde=611,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=611,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=611,a.Ccaron=722,a.ugrave=611,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=611,a.Rcommaaccent=722,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=556,a.minus=584,a.Icircumflex=278,a.ncaron=611,a.tcommaaccent=333,a.logicalnot=584,a.odieresis=611,a.udieresis=611,a.notequal=549,a.gcommaaccent=611,a.eth=611,a.zcaron=500,a.ncommaaccent=611,a.onesuperior=333,a.imacron=278,a.Euro=556}),k["Helvetica-Oblique"]=(0,m.getLookupTableFactory)(function(a){a.space=278,a.exclam=278,a.quotedbl=355,a.numbersign=556,a.dollar=556,a.percent=889,a.ampersand=667,a.quoteright=222,a.parenleft=333,a.parenright=333,a.asterisk=389,a.plus=584,a.comma=278,a.hyphen=333,a.period=278,a.slash=278,a.zero=556,a.one=556,a.two=556,a.three=556,a.four=556,a.five=556,a.six=556,a.seven=556,a.eight=556,a.nine=556,a.colon=278,a.semicolon=278,a.less=584,a.equal=584,a.greater=584,a.question=556,a.at=1015,a.A=667,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=722,a.I=278,a.J=500,a.K=667,a.L=556,a.M=833,a.N=722,a.O=778,a.P=667,a.Q=778,a.R=722,a.S=667,a.T=611,a.U=722,a.V=667,a.W=944,a.X=667,a.Y=667,a.Z=611,a.bracketleft=278,a.backslash=278,a.bracketright=278,a.asciicircum=469,a.underscore=556,a.quoteleft=222,a.a=556,a.b=556,a.c=500,a.d=556,a.e=556,a.f=278,a.g=556,a.h=556,a.i=222,a.j=222,a.k=500,a.l=222,a.m=833,a.n=556,a.o=556,a.p=556,a.q=556,a.r=333,a.s=500,a.t=278,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=500,a.braceleft=334,a.bar=260,a.braceright=334,a.asciitilde=584,a.exclamdown=333,a.cent=556,a.sterling=556,a.fraction=167,a.yen=556,a.florin=556,a.section=556,a.currency=556,a.quotesingle=191,a.quotedblleft=333,a.guillemotleft=556,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=556,a.dagger=556,a.daggerdbl=556,a.periodcentered=278,a.paragraph=537,a.bullet=350,a.quotesinglbase=222,a.quotedblbase=333,a.quotedblright=333,a.guillemotright=556,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=611,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=370,a.Lslash=556,a.Oslash=778,a.OE=1e3,a.ordmasculine=365,a.ae=889,a.dotlessi=278,a.lslash=222,a.oslash=611,a.oe=944,a.germandbls=611,a.Idieresis=278,a.eacute=556,a.abreve=556,a.uhungarumlaut=556,a.ecaron=556,a.Ydieresis=667,a.divide=584,a.Yacute=667,a.Acircumflex=667,a.aacute=556,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=500,a.ecircumflex=556,a.Uring=722,a.Udieresis=722,a.aogonek=556,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=737,a.Emacron=667,a.ccaron=500,a.aring=556,a.Ncommaaccent=722,a.lacute=222,a.agrave=556,a.Tcommaaccent=611,a.Cacute=722,a.atilde=556,a.Edotaccent=667,a.scaron=500,a.scedilla=500,a.iacute=278,a.lozenge=471,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=556,a.Amacron=667,a.rcaron=333,a.ccedilla=500,a.Zdotaccent=611,a.Thorn=667,a.Omacron=778,a.Racute=722,a.Sacute=667,a.dcaron=643,a.Umacron=722,a.uring=556,a.threesuperior=333,a.Ograve=778,a.Agrave=667,a.Abreve=667,a.multiply=584,a.uacute=556,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=556,a.edieresis=556,a.cacute=500,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=278,a.plusminus=584,a.brokenbar=260,a.registered=737,a.Gbreve=778,a.Idotaccent=278,a.summation=600,a.Egrave=667,a.racute=333,a.omacron=556,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=222,a.tcaron=317,a.eogonek=556,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=556,a.zacute=500,a.iogonek=222,a.Oacute=778,a.oacute=556,a.amacron=556,a.sacute=500,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=333,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=556,a.Eogonek=667,a.dcroat=556,a.threequarters=834,a.Scedilla=667,a.lcaron=299,a.Kcommaaccent=667,a.Lacute=556,a.trademark=1e3,a.edotaccent=556,a.Igrave=278,a.Imacron=278,a.Lcaron=556,a.onehalf=834,a.lessequal=549,a.ocircumflex=556,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=556,a.gbreve=556,a.onequarter=834,a.Scaron=667,a.Scommaaccent=667,a.Ohungarumlaut=778,a.degree=400,a.ograve=556,a.Ccaron=722,a.ugrave=556,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=556,a.Rcommaaccent=722,a.Lcommaaccent=556,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=778,a.zdotaccent=500,a.Ecaron=667,a.Iogonek=278,a.kcommaaccent=500,a.minus=584,a.Icircumflex=278,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=584,a.odieresis=556,a.udieresis=556,a.notequal=549,a.gcommaaccent=556,a.eth=556,a.zcaron=500,a.ncommaaccent=556,a.onesuperior=333,a.imacron=278,a.Euro=556}),k.Symbol=(0,m.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.universal=713,a.numbersign=500,a.existential=549,a.percent=833,a.ampersand=778,a.suchthat=439,a.parenleft=333,a.parenright=333,a.asteriskmath=500,a.plus=549,a.comma=250,a.minus=549,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=278,a.semicolon=278,a.less=549,a.equal=549,a.greater=549,a.question=444,a.congruent=549,a.Alpha=722,a.Beta=667,a.Chi=722,a.Delta=612,a.Epsilon=611,a.Phi=763,a.Gamma=603,a.Eta=722,a.Iota=333,a.theta1=631,a.Kappa=722,a.Lambda=686,a.Mu=889,a.Nu=722,a.Omicron=722,a.Pi=768,a.Theta=741,a.Rho=556,a.Sigma=592,a.Tau=611,a.Upsilon=690,a.sigma1=439,a.Omega=768,a.Xi=645,a.Psi=795,a.Zeta=611,a.bracketleft=333,a.therefore=863,a.bracketright=333,a.perpendicular=658,a.underscore=500,a.radicalex=500,a.alpha=631,a.beta=549,a.chi=549,a.delta=494,a.epsilon=439,a.phi=521,a.gamma=411,a.eta=603,a.iota=329,a.phi1=603,a.kappa=549,a.lambda=549,a.mu=576,a.nu=521,a.omicron=549,a.pi=549,a.theta=521,a.rho=549,a.sigma=603,a.tau=439,a.upsilon=576,a.omega1=713,a.omega=686,a.xi=493,a.psi=686,a.zeta=494,a.braceleft=480,a.bar=200,a.braceright=480,a.similar=549,a.Euro=750,a.Upsilon1=620,a.minute=247,a.lessequal=549,a.fraction=167,a.infinity=713,a.florin=500,a.club=753,a.diamond=753,a.heart=753,a.spade=753,a.arrowboth=1042,a.arrowleft=987,a.arrowup=603,a.arrowright=987,a.arrowdown=603,a.degree=400,a.plusminus=549,a.second=411,a.greaterequal=549,a.multiply=549,a.proportional=713,a.partialdiff=494,a.bullet=460,a.divide=549,a.notequal=549,a.equivalence=549,a.approxequal=549,a.ellipsis=1e3,a.arrowvertex=603,a.arrowhorizex=1e3,a.carriagereturn=658,a.aleph=823,a.Ifraktur=686,a.Rfraktur=795,a.weierstrass=987,a.circlemultiply=768,a.circleplus=768,a.emptyset=823,a.intersection=768,a.union=768,a.propersuperset=713,a.reflexsuperset=713,a.notsubset=713,a.propersubset=713,a.reflexsubset=713,a.element=713,a.notelement=713,a.angle=768,a.gradient=713,a.registerserif=790,a.copyrightserif=790,a.trademarkserif=890,a.product=823,a.radical=549,a.dotmath=250,a.logicalnot=713,a.logicaland=603,a.logicalor=603,a.arrowdblboth=1042,a.arrowdblleft=987,a.arrowdblup=603,a.arrowdblright=987,a.arrowdbldown=603,a.lozenge=494,a.angleleft=329,a.registersans=790,a.copyrightsans=790,a.trademarksans=786,a.summation=713,a.parenlefttp=384,a.parenleftex=384,a.parenleftbt=384,a.bracketlefttp=384,a.bracketleftex=384,a.bracketleftbt=384,a.bracelefttp=494,a.braceleftmid=494,a.braceleftbt=494,a.braceex=494,a.angleright=329,a.integral=274,a.integraltp=686,a.integralex=686,a.integralbt=686,a.parenrighttp=384,a.parenrightex=384,a.parenrightbt=384,a.bracketrighttp=384,a.bracketrightex=384,a.bracketrightbt=384,a.bracerighttp=494,a.bracerightmid=494,a.bracerightbt=494,a.apple=790}),k["Times-Roman"]=(0,m.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=408,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=564,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=278,a.semicolon=278,a.less=564,a.equal=564,a.greater=564,a.question=444,a.at=921,a.A=722,a.B=667,a.C=667,a.D=722,a.E=611,a.F=556,a.G=722,a.H=722,a.I=333,a.J=389,a.K=722,a.L=611,a.M=889,a.N=722,a.O=722,a.P=556,a.Q=722,a.R=667,a.S=556,a.T=611,a.U=722,a.V=722,a.W=944,a.X=722,a.Y=722,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=469,a.underscore=500,a.quoteleft=333,a.a=444,a.b=500,a.c=444,a.d=500,a.e=444,a.f=333,a.g=500,a.h=500,a.i=278,a.j=278,a.k=500,a.l=278,a.m=778,a.n=500,a.o=500,a.p=500,a.q=500,a.r=333,a.s=389,a.t=278,a.u=500,a.v=500,a.w=722,a.x=500,a.y=500,a.z=444,a.braceleft=480,a.bar=200,a.braceright=480,a.asciitilde=541,a.exclamdown=333,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=180,a.quotedblleft=444,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=453,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=444,a.quotedblright=444,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=444,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=889,a.ordfeminine=276,a.Lslash=611,a.Oslash=722,a.OE=889,a.ordmasculine=310,a.ae=667,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=500,a.Idieresis=333,a.eacute=444,a.abreve=444,a.uhungarumlaut=500,a.ecaron=444,a.Ydieresis=722,a.divide=564,a.Yacute=722,a.Acircumflex=722,a.aacute=444,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=444,a.Uacute=722,a.uogonek=500,a.Edieresis=611,a.Dcroat=722,a.commaaccent=250,a.copyright=760,a.Emacron=611,a.ccaron=444,a.aring=444,a.Ncommaaccent=722,a.lacute=278,a.agrave=444,a.Tcommaaccent=611,a.Cacute=667,a.atilde=444,a.Edotaccent=611,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=471,a.Rcaron=667,a.Gcommaaccent=722,a.ucircumflex=500,a.acircumflex=444,a.Amacron=722,a.rcaron=333,a.ccedilla=444,a.Zdotaccent=611,a.Thorn=556,a.Omacron=722,a.Racute=667,a.Sacute=556,a.dcaron=588,a.Umacron=722,a.uring=500,a.threesuperior=300,a.Ograve=722,a.Agrave=722,a.Abreve=722,a.multiply=564,a.uacute=500,a.Tcaron=611,a.partialdiff=476,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=611,a.adieresis=444,a.edieresis=444,a.cacute=444,a.nacute=500,a.umacron=500,a.Ncaron=722,a.Iacute=333,a.plusminus=564,a.brokenbar=200,a.registered=760,a.Gbreve=722,a.Idotaccent=333,a.summation=600,a.Egrave=611,a.racute=333,a.omacron=500,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=326,a.eogonek=444,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=444,a.zacute=444,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=444,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=500,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=611,a.dcroat=500,a.threequarters=750,a.Scedilla=556,a.lcaron=344,a.Kcommaaccent=722,a.Lacute=611,a.trademark=980,a.edotaccent=444,a.Igrave=333,a.Imacron=333,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=500,a.Uhungarumlaut=722,a.Eacute=611,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=500,a.radical=453,a.Dcaron=722,a.rcommaaccent=333,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=667,a.Lcommaaccent=611,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=722,a.zdotaccent=444,a.Ecaron=611,a.Iogonek=333,a.kcommaaccent=500,a.minus=564,a.Icircumflex=333,a.ncaron=500,a.tcommaaccent=278,a.logicalnot=564,a.odieresis=500,a.udieresis=500,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=444,a.ncommaaccent=500,a.onesuperior=300,a.imacron=278,a.Euro=500}),k["Times-Bold"]=(0,m.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=555,a.numbersign=500,a.dollar=500,a.percent=1e3,a.ampersand=833,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=570,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=570,a.equal=570,a.greater=570,a.question=500,a.at=930,a.A=722,a.B=667,a.C=722,a.D=722,a.E=667,a.F=611,a.G=778,a.H=778,a.I=389,a.J=500,a.K=778,a.L=667,a.M=944,a.N=722,a.O=778,a.P=611,a.Q=778,a.R=722,a.S=556,a.T=667,a.U=722,a.V=722,a.W=1e3,a.X=722,a.Y=722,a.Z=667,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=581,a.underscore=500,a.quoteleft=333,a.a=500,a.b=556,a.c=444,a.d=556,a.e=444,a.f=333,a.g=500,a.h=556,a.i=278,a.j=333,a.k=556,a.l=278,a.m=833,a.n=556,a.o=500,a.p=556,a.q=556,a.r=444,a.s=389,a.t=333,a.u=556,a.v=500,a.w=722,a.x=500,a.y=500,a.z=444,a.braceleft=394,a.bar=220,a.braceright=394,a.asciitilde=520,a.exclamdown=333,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=278,a.quotedblleft=500,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=540,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=1e3,a.ordfeminine=300,a.Lslash=667,a.Oslash=778,a.OE=1e3,a.ordmasculine=330,a.ae=722,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=556,a.Idieresis=389,a.eacute=444,a.abreve=500,a.uhungarumlaut=556,a.ecaron=444,a.Ydieresis=722,a.divide=570,a.Yacute=722,a.Acircumflex=722,a.aacute=500,a.Ucircumflex=722,a.yacute=500,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=747,a.Emacron=667,a.ccaron=444,a.aring=500,a.Ncommaaccent=722,a.lacute=278,a.agrave=500,a.Tcommaaccent=667,a.Cacute=722,a.atilde=500,a.Edotaccent=667,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=494,a.Rcaron=722,a.Gcommaaccent=778,a.ucircumflex=556,a.acircumflex=500,a.Amacron=722,a.rcaron=444,a.ccedilla=444,a.Zdotaccent=667,a.Thorn=611,a.Omacron=778,a.Racute=722,a.Sacute=556,a.dcaron=672,a.Umacron=722,a.uring=556,a.threesuperior=300,a.Ograve=778,a.Agrave=722,a.Abreve=722,a.multiply=570,a.uacute=556,a.Tcaron=667,a.partialdiff=494,a.ydieresis=500,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=389,a.plusminus=570,a.brokenbar=220,a.registered=747,a.Gbreve=778,a.Idotaccent=389,a.summation=600,a.Egrave=667,a.racute=444,a.omacron=500,a.Zacute=667,a.Zcaron=667,a.greaterequal=549,a.Eth=722,a.Ccedilla=722,a.lcommaaccent=278,a.tcaron=416,a.eogonek=444,a.Uogonek=722,a.Aacute=722,a.Adieresis=722,a.egrave=444,a.zacute=444,a.iogonek=278,a.Oacute=778,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=778,a.Ugrave=722,a.Delta=612,a.thorn=556,a.twosuperior=300,a.Odieresis=778,a.mu=556,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=667,a.dcroat=556,a.threequarters=750,a.Scedilla=556,a.lcaron=394,a.Kcommaaccent=778,a.Lacute=667,a.trademark=1e3,a.edotaccent=444,a.Igrave=389,a.Imacron=389,a.Lcaron=667,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=778,a.degree=400,a.ograve=500,a.Ccaron=722,a.ugrave=556,a.radical=549,a.Dcaron=722,a.rcommaaccent=444,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=722,a.Lcommaaccent=667,a.Atilde=722,a.Aogonek=722,a.Aring=722,a.Otilde=778,a.zdotaccent=444,a.Ecaron=667,a.Iogonek=389,a.kcommaaccent=556,a.minus=570,a.Icircumflex=389,a.ncaron=556,a.tcommaaccent=333,a.logicalnot=570,a.odieresis=500,a.udieresis=556,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=444,a.ncommaaccent=556,a.onesuperior=300,a.imacron=278,a.Euro=500}),k["Times-BoldItalic"]=(0,m.getLookupTableFactory)(function(a){a.space=250,a.exclam=389,a.quotedbl=555,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=570,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=570,a.equal=570,a.greater=570,a.question=500,a.at=832,a.A=667,a.B=667,a.C=667,a.D=722,a.E=667,a.F=667,a.G=722,a.H=778,a.I=389,a.J=500,a.K=667,a.L=611,a.M=889,a.N=722,a.O=722,a.P=611,a.Q=722,a.R=667,a.S=556,a.T=611,a.U=722,a.V=667,a.W=889,a.X=667,a.Y=611,a.Z=611,a.bracketleft=333,a.backslash=278,a.bracketright=333,a.asciicircum=570,a.underscore=500,a.quoteleft=333,a.a=500,a.b=500,a.c=444,a.d=500,a.e=444,a.f=333,a.g=500,a.h=556,a.i=278,a.j=278,a.k=500,a.l=278,a.m=778,a.n=556,a.o=500,a.p=500,a.q=500,a.r=389,a.s=389,a.t=278,a.u=556,a.v=444,a.w=667,a.x=500,a.y=444,a.z=389,a.braceleft=348,a.bar=220,a.braceright=348,a.asciitilde=570,a.exclamdown=389,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=278,a.quotedblleft=500,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=556,a.fl=556,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=500,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=500,a.quotedblright=500,a.guillemotright=500,a.ellipsis=1e3,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=1e3,a.AE=944,a.ordfeminine=266,a.Lslash=611,a.Oslash=722,a.OE=944,a.ordmasculine=300,a.ae=722,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=722,a.germandbls=500,a.Idieresis=389,a.eacute=444,a.abreve=500,a.uhungarumlaut=556,a.ecaron=444,a.Ydieresis=611,a.divide=570,a.Yacute=611,a.Acircumflex=667,a.aacute=500,a.Ucircumflex=722,a.yacute=444,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=556,a.Edieresis=667,a.Dcroat=722,a.commaaccent=250,a.copyright=747,a.Emacron=667,a.ccaron=444,a.aring=500,a.Ncommaaccent=722,a.lacute=278,a.agrave=500,a.Tcommaaccent=611,a.Cacute=667,a.atilde=500,a.Edotaccent=667,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=494,a.Rcaron=667,a.Gcommaaccent=722,a.ucircumflex=556,a.acircumflex=500,a.Amacron=667,a.rcaron=389,a.ccedilla=444,a.Zdotaccent=611,a.Thorn=611,a.Omacron=722,a.Racute=667,a.Sacute=556,a.dcaron=608,a.Umacron=722,a.uring=556,a.threesuperior=300,a.Ograve=722,a.Agrave=667,a.Abreve=667,a.multiply=570,a.uacute=556,a.Tcaron=611,a.partialdiff=494,a.ydieresis=444,a.Nacute=722,a.icircumflex=278,a.Ecircumflex=667,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=556,a.umacron=556,a.Ncaron=722,a.Iacute=389,a.plusminus=570,a.brokenbar=220,a.registered=747,a.Gbreve=722,a.Idotaccent=389,a.summation=600,a.Egrave=667,a.racute=389,a.omacron=500,a.Zacute=611,a.Zcaron=611,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=366,a.eogonek=444,a.Uogonek=722,a.Aacute=667,a.Adieresis=667,a.egrave=444,a.zacute=389,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=576,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=667,a.dcroat=500,a.threequarters=750,a.Scedilla=556,a.lcaron=382,a.Kcommaaccent=667,a.Lacute=611,a.trademark=1e3,a.edotaccent=444,a.Igrave=389,a.Imacron=389,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=556,a.Uhungarumlaut=722,a.Eacute=667,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=556,a.Scommaaccent=556,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=556,a.radical=549,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=722,a.otilde=500,a.Rcommaaccent=667,a.Lcommaaccent=611,a.Atilde=667,a.Aogonek=667,a.Aring=667,a.Otilde=722,a.zdotaccent=389,a.Ecaron=667,a.Iogonek=389,a.kcommaaccent=500,a.minus=606,a.Icircumflex=389,a.ncaron=556,a.tcommaaccent=278,a.logicalnot=606,a.odieresis=500,a.udieresis=556,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=389,a.ncommaaccent=556,a.onesuperior=300,a.imacron=278,a.Euro=500}),k["Times-Italic"]=(0,m.getLookupTableFactory)(function(a){a.space=250,a.exclam=333,a.quotedbl=420,a.numbersign=500,a.dollar=500,a.percent=833,a.ampersand=778,a.quoteright=333,a.parenleft=333,a.parenright=333,a.asterisk=500,a.plus=675,a.comma=250,a.hyphen=333,a.period=250,a.slash=278,a.zero=500,a.one=500,a.two=500,a.three=500,a.four=500,a.five=500,a.six=500,a.seven=500,a.eight=500,a.nine=500,a.colon=333,a.semicolon=333,a.less=675,a.equal=675,a.greater=675,a.question=500,a.at=920,a.A=611,a.B=611,a.C=667,a.D=722,a.E=611,a.F=611,a.G=722,a.H=722,a.I=333,a.J=444,a.K=667,a.L=556,a.M=833,a.N=667,a.O=722,a.P=611,a.Q=722,a.R=611,a.S=500,a.T=556,a.U=722,a.V=611,a.W=833,a.X=611,a.Y=556,a.Z=556,a.bracketleft=389,a.backslash=278,a.bracketright=389,a.asciicircum=422,a.underscore=500,a.quoteleft=333,a.a=500,a.b=500,a.c=444,a.d=500,a.e=444,a.f=278,a.g=500,a.h=500,a.i=278,a.j=278,a.k=444,a.l=278,a.m=722,a.n=500,a.o=500,a.p=500,a.q=500,a.r=389,a.s=389,a.t=278,a.u=500,a.v=444,a.w=667,a.x=444,a.y=444,a.z=389,a.braceleft=400,a.bar=275,a.braceright=400,a.asciitilde=541,a.exclamdown=389,a.cent=500,a.sterling=500,a.fraction=167,a.yen=500,a.florin=500,a.section=500,a.currency=500,a.quotesingle=214,a.quotedblleft=556,a.guillemotleft=500,a.guilsinglleft=333,a.guilsinglright=333,a.fi=500,a.fl=500,a.endash=500,a.dagger=500,a.daggerdbl=500,a.periodcentered=250,a.paragraph=523,a.bullet=350,a.quotesinglbase=333,a.quotedblbase=556,a.quotedblright=556,a.guillemotright=500,a.ellipsis=889,a.perthousand=1e3,a.questiondown=500,a.grave=333,a.acute=333,a.circumflex=333,a.tilde=333,a.macron=333,a.breve=333,a.dotaccent=333,a.dieresis=333,a.ring=333,a.cedilla=333,a.hungarumlaut=333,a.ogonek=333,a.caron=333,a.emdash=889,a.AE=889,a.ordfeminine=276,a.Lslash=556,a.Oslash=722,a.OE=944,a.ordmasculine=310,a.ae=667,a.dotlessi=278,a.lslash=278,a.oslash=500,a.oe=667,a.germandbls=500,a.Idieresis=333,a.eacute=444,a.abreve=500,a.uhungarumlaut=500,a.ecaron=444,a.Ydieresis=556,a.divide=675,a.Yacute=556,a.Acircumflex=611,a.aacute=500,a.Ucircumflex=722,a.yacute=444,a.scommaaccent=389,a.ecircumflex=444,a.Uring=722,a.Udieresis=722,a.aogonek=500,a.Uacute=722,a.uogonek=500,a.Edieresis=611,a.Dcroat=722,a.commaaccent=250,a.copyright=760,a.Emacron=611,a.ccaron=444,a.aring=500,a.Ncommaaccent=667,a.lacute=278,a.agrave=500,a.Tcommaaccent=556,a.Cacute=667,a.atilde=500,a.Edotaccent=611,a.scaron=389,a.scedilla=389,a.iacute=278,a.lozenge=471,a.Rcaron=611,a.Gcommaaccent=722,a.ucircumflex=500,a.acircumflex=500,a.Amacron=611,a.rcaron=389,a.ccedilla=444,a.Zdotaccent=556,a.Thorn=611,a.Omacron=722,a.Racute=611,a.Sacute=500,a.dcaron=544,a.Umacron=722,a.uring=500,a.threesuperior=300,a.Ograve=722,a.Agrave=611,a.Abreve=611,a.multiply=675,a.uacute=500,a.Tcaron=556,a.partialdiff=476,a.ydieresis=444,a.Nacute=667,a.icircumflex=278,a.Ecircumflex=611,a.adieresis=500,a.edieresis=444,a.cacute=444,a.nacute=500,a.umacron=500,a.Ncaron=667,a.Iacute=333,a.plusminus=675,a.brokenbar=275,a.registered=760,a.Gbreve=722,a.Idotaccent=333,a.summation=600,a.Egrave=611,a.racute=389,a.omacron=500,a.Zacute=556,a.Zcaron=556,a.greaterequal=549,a.Eth=722,a.Ccedilla=667,a.lcommaaccent=278,a.tcaron=300,a.eogonek=444,a.Uogonek=722,a.Aacute=611,a.Adieresis=611,a.egrave=444,a.zacute=389,a.iogonek=278,a.Oacute=722,a.oacute=500,a.amacron=500,a.sacute=389,a.idieresis=278,a.Ocircumflex=722,a.Ugrave=722,a.Delta=612,a.thorn=500,a.twosuperior=300,a.Odieresis=722,a.mu=500,a.igrave=278,a.ohungarumlaut=500,a.Eogonek=611,a.dcroat=500,a.threequarters=750,a.Scedilla=500,a.lcaron=300,a.Kcommaaccent=667,a.Lacute=556,a.trademark=980,a.edotaccent=444,a.Igrave=333,a.Imacron=333,a.Lcaron=611,a.onehalf=750,a.lessequal=549,a.ocircumflex=500,a.ntilde=500,a.Uhungarumlaut=722,a.Eacute=611,a.emacron=444,a.gbreve=500,a.onequarter=750,a.Scaron=500,a.Scommaaccent=500,a.Ohungarumlaut=722,a.degree=400,a.ograve=500,a.Ccaron=667,a.ugrave=500,a.radical=453,a.Dcaron=722,a.rcommaaccent=389,a.Ntilde=667,a.otilde=500,a.Rcommaaccent=611,a.Lcommaaccent=556,a.Atilde=611,a.Aogonek=611,a.Aring=611,a.Otilde=722,a.zdotaccent=389,a.Ecaron=611,a.Iogonek=333,a.kcommaaccent=444,a.minus=675,a.Icircumflex=333,a.ncaron=500,a.tcommaaccent=278,a.logicalnot=675,a.odieresis=500,a.udieresis=500,a.notequal=549,a.gcommaaccent=500,a.eth=500,a.zcaron=389,a.ncommaaccent=500,a.onesuperior=300,a.imacron=278,a.Euro=500}),k.ZapfDingbats=(0,m.getLookupTableFactory)(function(a){a.space=278,a.a1=974,a.a2=961,a.a202=974,a.a3=980,a.a4=719,a.a5=789,a.a119=790,a.a118=791,a.a117=690,a.a11=960,a.a12=939,a.a13=549,a.a14=855,a.a15=911,a.a16=933,a.a105=911,a.a17=945,a.a18=974,a.a19=755,a.a20=846,a.a21=762,a.a22=761,a.a23=571,a.a24=677,a.a25=763,a.a26=760,a.a27=759,a.a28=754,a.a6=494,a.a7=552,a.a8=537,a.a9=577,a.a10=692,a.a29=786,a.a30=788,a.a31=788,a.a32=790,a.a33=793,a.a34=794,a.a35=816,a.a36=823,a.a37=789,a.a38=841,a.a39=823,a.a40=833,a.a41=816,a.a42=831,a.a43=923,a.a44=744,a.a45=723,a.a46=749,a.a47=790,a.a48=792,a.a49=695,a.a50=776,a.a51=768,a.a52=792,a.a53=759,a.a54=707,a.a55=708,a.a56=682,a.a57=701,a.a58=826,a.a59=815,a.a60=789,a.a61=789,a.a62=707,a.a63=687,a.a64=696,a.a65=689,a.a66=786,a.a67=787,a.a68=713,a.a69=791,a.a70=785,a.a71=791,a.a72=873,a.a73=761,a.a74=762,a.a203=762,a.a75=759,a.a204=759,a.a76=892,a.a77=892,a.a78=788,a.a79=784,a.a81=438,a.a82=138,a.a83=277,a.a84=415,a.a97=392,a.a98=392,a.a99=668,a.a100=668,a.a89=390,a.a90=390,a.a93=317,a.a94=317,a.a91=276,a.a92=276,a.a205=509,a.a85=509,a.a206=410,a.a86=410,a.a87=234,a.a88=234,a.a95=334,a.a96=334,a.a101=732,a.a102=544,a.a103=544,a.a104=910,a.a106=667,a.a107=760,a.a108=760,a.a112=776,a.a111=595,a.a110=694,a.a109=626,a.a120=788,a.a121=788,a.a122=788,a.a123=788,a.a124=788,a.a125=788,a.a126=788,a.a127=788,a.a128=788,a.a129=788,a.a130=788,a.a131=788,a.a132=788,a.a133=788,a.a134=788,a.a135=788,a.a136=788,a.a137=788,a.a138=788,a.a139=788,a.a140=788,a.a141=788,a.a142=788,a.a143=788,a.a144=788,a.a145=788,a.a146=788,a.a147=788,a.a148=788,a.a149=788,a.a150=788,a.a151=788,a.a152=788,a.a153=788,a.a154=788,a.a155=788,a.a156=788,a.a157=788,a.a158=788,a.a159=788,a.a160=894,a.a161=838,a.a163=1016,a.a164=458,a.a196=748,a.a165=924,a.a192=748,a.a166=918,a.a167=927,a.a168=928,a.a169=928,a.a170=834,a.a171=873,a.a172=828,a.a173=924,a.a162=924,a.a174=917,a.a175=930,a.a176=931,a.a177=463,a.a178=883,a.a179=836,a.a193=836,a.a180=867,a.a199=867,a.a181=696,a.a200=696,a.a182=874,a.a201=874,a.a183=760,a.a184=946,a.a197=771,a.a185=865,a.a194=771,a.a198=888,a.a186=967,a.a195=888,a.a187=831,a.a188=873,a.a189=927,a.a190=970,a.a191=918})});f.getMetrics=y},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.isPDFFunction=$,f.PostScriptCompiler=f.PostScriptEvaluator=f.PDFFunctionFactory=void 0;var m=b(2),y=b(5),k=b(42);class a{constructor({xref:ae,isEvalSupported:H=!0}){this.xref=ae,this.isEvalSupported=H!==!1}create(ae){return w.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:ae})}createFromArray(ae){return w.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:ae})}}f.PDFFunctionFactory=a;function q(J){if(!Array.isArray(J))return null;const ae=J.length;for(let H=0;H<ae;H++)if(typeof J[H]!="number"){const Y=new Array(ae);for(let G=0;G<ae;G++)Y[G]=+J[G];return Y}return J}var w=function(){return{getSampleArray(j,L,R,T){var O,P,B=1;for(O=0,P=j.length;O<P;O++)B*=j[O];B*=L;var M=new Array(B),F=0,S=0,A=1/(2**R-1),E=T.getBytes((B*R+7)/8),_=0;for(O=0;O<B;O++){for(;F<R;)S<<=8,S|=E[_++],F+=8;F-=R,M[O]=(S>>F)*A,S&=(1<<F)-1}return M},getIR({xref:j,isEvalSupported:L,fn:R}){var T=R.dict;T||(T=R);var O=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],P=T.get("FunctionType"),B=O[P];if(!B)throw new m.FormatError("Unknown type of function");return B.call(this,{xref:j,isEvalSupported:L,fn:R,dict:T})},fromIR({xref:j,isEvalSupported:L,IR:R}){var T=R[0];switch(T){case 0:return this.constructSampledFromIR({xref:j,isEvalSupported:L,IR:R});case 2:return this.constructInterpolatedFromIR({xref:j,isEvalSupported:L,IR:R});case 3:return this.constructStichedFromIR({xref:j,isEvalSupported:L,IR:R});default:return this.constructPostScriptFromIR({xref:j,isEvalSupported:L,IR:R})}},parse({xref:j,isEvalSupported:L,fn:R}){const T=this.getIR({xref:j,isEvalSupported:L,fn:R});return this.fromIR({xref:j,isEvalSupported:L,IR:T})},parseArray({xref:j,isEvalSupported:L,fnObj:R}){if(!Array.isArray(R))return this.parse({xref:j,isEvalSupported:L,fn:R});for(var T=[],O=0,P=R.length;O<P;O++)T.push(this.parse({xref:j,isEvalSupported:L,fn:j.fetchIfRef(R[O])}));return function(B,M,F,S){for(var A=0,E=T.length;A<E;A++)T[A](B,M,F,S+A)}},constructSampled({xref:j,isEvalSupported:L,fn:R,dict:T}){function O(z){for(var te=z.length,W=[],re=0,ee=0;ee<te;ee+=2)W[re]=[z[ee],z[ee+1]],++re;return W}var P=q(T.getArray("Domain")),B=q(T.getArray("Range"));if(!P||!B)throw new m.FormatError("No domain or range");var M=P.length/2,F=B.length/2;P=O(P),B=O(B);var S=q(T.getArray("Size")),A=T.get("BitsPerSample"),E=T.get("Order")||1;E!==1&&(0,m.info)("No support for cubic spline interpolation: "+E);var _=q(T.getArray("Encode"));if(_)_=O(_);else{_=[];for(var D=0;D<M;++D)_.push([0,S[D]-1])}var N=q(T.getArray("Decode"));N?N=O(N):N=B;var U=this.getSampleArray(S,F,A,R);return[0,M,P,_,N,U,S,F,2**A-1,B]},constructSampledFromIR({xref:j,isEvalSupported:L,IR:R}){function T(O,P,B,M,F){return M+(O-P)*((F-M)/(B-P))}return function(P,B,M,F){var S=R[1],A=R[2],E=R[3],_=R[4],D=R[5],N=R[6],U=R[7],z=R[9],te=1<<S,W=new Float64Array(te),re=new Uint32Array(te),ee,X;for(X=0;X<te;X++)W[X]=1;var K=U,Z=1;for(ee=0;ee<S;++ee){var se=A[ee][0],ie=A[ee][1],de=Math.min(Math.max(P[B+ee],se),ie),ce=T(de,se,ie,E[ee][0],E[ee][1]),he=N[ee];ce=Math.min(Math.max(ce,0),he-1);var oe=ce<he-1?Math.floor(ce):ce-1,ne=oe+1-ce,ue=ce-oe,le=oe*K,fe=le+K;for(X=0;X<te;X++)X&Z?(W[X]*=ue,re[X]+=fe):(W[X]*=ne,re[X]+=le);K*=he,Z<<=1}for(X=0;X<U;++X){var pe=0;for(ee=0;ee<te;ee++)pe+=D[re[ee]+X]*W[ee];pe=T(pe,0,1,_[X][0],_[X][1]),M[F+X]=Math.min(Math.max(pe,z[X][0]),z[X][1])}}},constructInterpolated({xref:j,isEvalSupported:L,fn:R,dict:T}){for(var O=q(T.getArray("C0"))||[0],P=q(T.getArray("C1"))||[1],B=T.get("N"),M=O.length,F=[],S=0;S<M;++S)F.push(P[S]-O[S]);return[2,O,F,B]},constructInterpolatedFromIR({xref:j,isEvalSupported:L,IR:R}){var T=R[1],O=R[2],P=R[3],B=O.length;return function(F,S,A,E){for(var _=P===1?F[S]:F[S]**P,D=0;D<B;++D)A[E+D]=T[D]+_*O[D]}},constructStiched({xref:j,isEvalSupported:L,fn:R,dict:T}){var O=q(T.getArray("Domain"));if(!O)throw new m.FormatError("No domain");var P=O.length/2;if(P!==1)throw new m.FormatError("Bad domain for stiched function");for(var B=T.get("Functions"),M=[],F=0,S=B.length;F<S;++F)M.push(this.parse({xref:j,isEvalSupported:L,fn:j.fetchIfRef(B[F])}));var A=q(T.getArray("Bounds")),E=q(T.getArray("Encode"));return[3,O,A,E,M]},constructStichedFromIR({xref:j,isEvalSupported:L,IR:R}){var T=R[1],O=R[2],P=R[3],B=R[4],M=new Float32Array(1);return function(S,A,E,_){for(var D=function(K,Z,se){return K>se?K=se:K<Z&&(K=Z),K},N=D(S[A],T[0],T[1]),U=0,z=O.length;U<z&&!(N<O[U]);++U);var te=T[0];U>0&&(te=O[U-1]);var W=T[1];U<O.length&&(W=O[U]);var re=P[2*U],ee=P[2*U+1];M[0]=te===W?re:re+(N-te)*(ee-re)/(W-te),B[U](M,0,E,_)}},constructPostScript({xref:j,isEvalSupported:L,fn:R,dict:T}){var O=q(T.getArray("Domain")),P=q(T.getArray("Range"));if(!O)throw new m.FormatError("No domain.");if(!P)throw new m.FormatError("No range.");var B=new k.PostScriptLexer(R),M=new k.PostScriptParser(B),F=M.parse();return[4,O,P,F]},constructPostScriptFromIR({xref:j,isEvalSupported:L,IR:R}){var T=R[1],O=R[2],P=R[3];if(L&&m.IsEvalSupportedCached.value){const D=new v().compile(P,T,O);if(D)return new Function("src","srcOffset","dest","destOffset",D)}(0,m.info)("Unable to compile PS function");var B=O.length>>1,M=T.length>>1,F=new C(P),S=Object.create(null),A=2048*4,E=A,_=new Float32Array(M);return function(N,U,z,te){var W,re,ee="",X=_;for(W=0;W<M;W++)re=N[U+W],X[W]=re,ee+=re+"_";var K=S[ee];if(K!==void 0){z.set(K,te);return}var Z=new Float32Array(B),se=F.execute(X),ie=se.length-B;for(W=0;W<B;W++){re=se[ie+W];var de=O[W*2];re<de?re=de:(de=O[W*2+1],re>de&&(re=de)),Z[W]=re}E>0&&(E--,S[ee]=Z),z.set(Z,te)}}}}();function $(J){var ae;if(typeof J!="object")return!1;if((0,y.isDict)(J))ae=J;else if((0,y.isStream)(J))ae=J.dict;else return!1;return ae.has("FunctionType")}var Q=function(){var ae=100;function H(Y){this.stack=Y?Array.prototype.slice.call(Y,0):[]}return H.prototype={push:function(G){if(this.stack.length>=ae)throw new Error("PostScript function stack overflow.");this.stack.push(G)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(G){if(this.stack.length+G>=ae)throw new Error("PostScript function stack overflow.");for(var j=this.stack,L=j.length-G,R=G-1;R>=0;R--,L++)j.push(j[L])},index:function(G){this.push(this.stack[this.stack.length-G-1])},roll:function(G,j){var L=this.stack,R=L.length-G,T=L.length-1,O=R+(j-Math.floor(j/G)*G),P,B,M;for(P=R,B=T;P<B;P++,B--)M=L[P],L[P]=L[B],L[B]=M;for(P=R,B=O-1;P<B;P++,B--)M=L[P],L[P]=L[B],L[B]=M;for(P=O,B=T;P<B;P++,B--)M=L[P],L[P]=L[B],L[B]=M}},H}(),C=function(){function ae(H){this.operators=H}return ae.prototype={execute:function(Y){for(var G=new Q(Y),j=0,L=this.operators,R=L.length,T,O,P;j<R;){if(T=L[j++],typeof T=="number"){G.push(T);continue}switch(T){case"jz":P=G.pop(),O=G.pop(),O||(j=P);break;case"j":O=G.pop(),j=O;break;case"abs":O=G.pop(),G.push(Math.abs(O));break;case"add":P=G.pop(),O=G.pop(),G.push(O+P);break;case"and":P=G.pop(),O=G.pop(),(0,m.isBool)(O)&&(0,m.isBool)(P)?G.push(O&&P):G.push(O&P);break;case"atan":O=G.pop(),G.push(Math.atan(O));break;case"bitshift":P=G.pop(),O=G.pop(),O>0?G.push(O<<P):G.push(O>>P);break;case"ceiling":O=G.pop(),G.push(Math.ceil(O));break;case"copy":O=G.pop(),G.copy(O);break;case"cos":O=G.pop(),G.push(Math.cos(O));break;case"cvi":O=G.pop()|0,G.push(O);break;case"cvr":break;case"div":P=G.pop(),O=G.pop(),G.push(O/P);break;case"dup":G.copy(1);break;case"eq":P=G.pop(),O=G.pop(),G.push(O===P);break;case"exch":G.roll(2,1);break;case"exp":P=G.pop(),O=G.pop(),G.push(O**P);break;case"false":G.push(!1);break;case"floor":O=G.pop(),G.push(Math.floor(O));break;case"ge":P=G.pop(),O=G.pop(),G.push(O>=P);break;case"gt":P=G.pop(),O=G.pop(),G.push(O>P);break;case"idiv":P=G.pop(),O=G.pop(),G.push(O/P|0);break;case"index":O=G.pop(),G.index(O);break;case"le":P=G.pop(),O=G.pop(),G.push(O<=P);break;case"ln":O=G.pop(),G.push(Math.log(O));break;case"log":O=G.pop(),G.push(Math.log(O)/Math.LN10);break;case"lt":P=G.pop(),O=G.pop(),G.push(O<P);break;case"mod":P=G.pop(),O=G.pop(),G.push(O%P);break;case"mul":P=G.pop(),O=G.pop(),G.push(O*P);break;case"ne":P=G.pop(),O=G.pop(),G.push(O!==P);break;case"neg":O=G.pop(),G.push(-O);break;case"not":O=G.pop(),(0,m.isBool)(O)?G.push(!O):G.push(~O);break;case"or":P=G.pop(),O=G.pop(),(0,m.isBool)(O)&&(0,m.isBool)(P)?G.push(O||P):G.push(O|P);break;case"pop":G.pop();break;case"roll":P=G.pop(),O=G.pop(),G.roll(O,P);break;case"round":O=G.pop(),G.push(Math.round(O));break;case"sin":O=G.pop(),G.push(Math.sin(O));break;case"sqrt":O=G.pop(),G.push(Math.sqrt(O));break;case"sub":P=G.pop(),O=G.pop(),G.push(O-P);break;case"true":G.push(!0);break;case"truncate":O=G.pop(),O=O<0?Math.ceil(O):Math.floor(O),G.push(O);break;case"xor":P=G.pop(),O=G.pop(),(0,m.isBool)(O)&&(0,m.isBool)(P)?G.push(O!==P):G.push(O^P);break;default:throw new m.FormatError(`Unknown operator ${T}`)}}return G.stack}},ae}();f.PostScriptEvaluator=C;var v=function(){function ae(S){this.type=S}ae.prototype.visit=function(S){(0,m.unreachable)("abstract method")};function H(S,A,E){ae.call(this,"args"),this.index=S,this.min=A,this.max=E}H.prototype=Object.create(ae.prototype),H.prototype.visit=function(S){S.visitArgument(this)};function Y(S){ae.call(this,"literal"),this.number=S,this.min=S,this.max=S}Y.prototype=Object.create(ae.prototype),Y.prototype.visit=function(S){S.visitLiteral(this)};function G(S,A,E,_,D){ae.call(this,"binary"),this.op=S,this.arg1=A,this.arg2=E,this.min=_,this.max=D}G.prototype=Object.create(ae.prototype),G.prototype.visit=function(S){S.visitBinaryOperation(this)};function j(S,A){ae.call(this,"max"),this.arg=S,this.min=S.min,this.max=A}j.prototype=Object.create(ae.prototype),j.prototype.visit=function(S){S.visitMin(this)};function L(S,A,E){ae.call(this,"var"),this.index=S,this.min=A,this.max=E}L.prototype=Object.create(ae.prototype),L.prototype.visit=function(S){S.visitVariable(this)};function R(S,A){ae.call(this,"definition"),this.variable=S,this.arg=A}R.prototype=Object.create(ae.prototype),R.prototype.visit=function(S){S.visitVariableDefinition(this)};function T(){this.parts=[]}T.prototype={visitArgument(S){this.parts.push("Math.max(",S.min,", Math.min(",S.max,", src[srcOffset + ",S.index,"]))")},visitVariable(S){this.parts.push("v",S.index)},visitLiteral(S){this.parts.push(S.number)},visitBinaryOperation(S){this.parts.push("("),S.arg1.visit(this),this.parts.push(" ",S.op," "),S.arg2.visit(this),this.parts.push(")")},visitVariableDefinition(S){this.parts.push("var "),S.variable.visit(this),this.parts.push(" = "),S.arg.visit(this),this.parts.push(";")},visitMin(S){this.parts.push("Math.min("),S.arg.visit(this),this.parts.push(", ",S.max,")")},toString(){return this.parts.join("")}};function O(S,A){return A.type==="literal"&&A.number===0?S:S.type==="literal"&&S.number===0?A:A.type==="literal"&&S.type==="literal"?new Y(S.number+A.number):new G("+",S,A,S.min+A.min,S.max+A.max)}function P(S,A){if(A.type==="literal"){if(A.number===0)return new Y(0);if(A.number===1)return S;if(S.type==="literal")return new Y(S.number*A.number)}if(S.type==="literal"){if(S.number===0)return new Y(0);if(S.number===1)return A}var E=Math.min(S.min*A.min,S.min*A.max,S.max*A.min,S.max*A.max),_=Math.max(S.min*A.min,S.min*A.max,S.max*A.min,S.max*A.max);return new G("*",S,A,E,_)}function B(S,A){if(A.type==="literal"){if(A.number===0)return S;if(S.type==="literal")return new Y(S.number-A.number)}return A.type==="binary"&&A.op==="-"&&S.type==="literal"&&S.number===1&&A.arg1.type==="literal"&&A.arg1.number===1?A.arg2:new G("-",S,A,S.min-A.max,S.max-A.min)}function M(S,A){return S.min>=A?new Y(A):S.max<=A?S:new j(S,A)}function F(){}return F.prototype={compile:function(A,E,_){var D=[],N=[],U=E.length>>1,z=_.length>>1,te=0,W,re,ee,X,K,Z,se,ie;for(let ce=0;ce<U;ce++)D.push(new H(ce,E[ce*2],E[ce*2+1]));for(let ce=0,he=A.length;ce<he;ce++){if(ie=A[ce],typeof ie=="number"){D.push(new Y(ie));continue}switch(ie){case"add":if(D.length<2)return null;X=D.pop(),ee=D.pop(),D.push(O(ee,X));break;case"cvr":if(D.length<1)return null;break;case"mul":if(D.length<2)return null;X=D.pop(),ee=D.pop(),D.push(P(ee,X));break;case"sub":if(D.length<2)return null;X=D.pop(),ee=D.pop(),D.push(B(ee,X));break;case"exch":if(D.length<2)return null;K=D.pop(),Z=D.pop(),D.push(K,Z);break;case"pop":if(D.length<1)return null;D.pop();break;case"index":if(D.length<1||(ee=D.pop(),ee.type!=="literal")||(W=ee.number,W<0||!Number.isInteger(W)||D.length<W))return null;if(K=D[D.length-W-1],K.type==="literal"||K.type==="var"){D.push(K);break}se=new L(te++,K.min,K.max),D[D.length-W-1]=se,D.push(se),N.push(new R(se,K));break;case"dup":if(D.length<1)return null;if(typeof A[ce+1]=="number"&&A[ce+2]==="gt"&&A[ce+3]===ce+7&&A[ce+4]==="jz"&&A[ce+5]==="pop"&&A[ce+6]===A[ce+1]){ee=D.pop(),D.push(M(ee,A[ce+1])),ce+=6;break}if(K=D[D.length-1],K.type==="literal"||K.type==="var"){D.push(K);break}se=new L(te++,K.min,K.max),D[D.length-1]=se,D.push(se),N.push(new R(se,K));break;case"roll":if(D.length<2||(X=D.pop(),ee=D.pop(),X.type!=="literal"||ee.type!=="literal")||(re=X.number,W=ee.number,W<=0||!Number.isInteger(W)||!Number.isInteger(re)||D.length<W))return null;if(re=(re%W+W)%W,re===0)break;Array.prototype.push.apply(D,D.splice(D.length-W,W-re));break;default:return null}}if(D.length!==z)return null;var de=[];return N.forEach(function(ce){var he=new T;ce.visit(he),de.push(he.toString())}),D.forEach(function(ce,he){var oe=new T;ce.visit(oe);var ne=_[he*2],ue=_[he*2+1],le=[oe.toString()];ne>ce.min&&(le.unshift("Math.max(",ne,", "),le.push(")")),ue<ce.max&&(le.unshift("Math.min(",ue,", "),le.push(")")),le.unshift("dest[destOffset + ",he,"] = "),le.push(";"),de.push(le.join(""))}),de.join(`
|
|
87
|
+
`)}},F}();f.PostScriptCompiler=v},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PostScriptParser=f.PostScriptLexer=void 0;var m=b(2),y=b(5),k=b(8);class a{constructor(C){this.lexer=C,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(C){return this.token.type===C?(this.nextToken(),!0):!1}expect(C){if(this.accept(C))return!0;throw new m.FormatError(`Unexpected symbol: found ${this.token.type} expected ${C}.`)}parse(){return this.nextToken(),this.expect(q.LBRACE),this.parseBlock(),this.expect(q.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(q.NUMBER))this.operators.push(this.prev.value);else if(this.accept(q.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(q.LBRACE))this.parseCondition();else return}parseCondition(){const C=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(q.RBRACE),this.accept(q.IF))this.operators[C]=this.operators.length,this.operators[C+1]="jz";else if(this.accept(q.LBRACE)){const v=this.operators.length;this.operators.push(null,null);const J=this.operators.length;this.parseBlock(),this.expect(q.RBRACE),this.expect(q.IFELSE),this.operators[v]=this.operators.length,this.operators[v+1]="j",this.operators[C]=J,this.operators[C+1]="jz"}else throw new m.FormatError("PS Function: error parsing conditional.")}}f.PostScriptParser=a;const q={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},w=function(){const C=Object.create(null);class v{constructor(ae,H){this.type=ae,this.value=H}static getOperator(ae){const H=C[ae];return H||(C[ae]=new v(q.OPERATOR,ae))}static get LBRACE(){return(0,m.shadow)(this,"LBRACE",new v(q.LBRACE,"{"))}static get RBRACE(){return(0,m.shadow)(this,"RBRACE",new v(q.RBRACE,"}"))}static get IF(){return(0,m.shadow)(this,"IF",new v(q.IF,"IF"))}static get IFELSE(){return(0,m.shadow)(this,"IFELSE",new v(q.IFELSE,"IFELSE"))}}return v}();class ${constructor(C){this.stream=C,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let C=!1,v=this.currentChar;for(;;){if(v<0)return y.EOF;if(C)(v===10||v===13)&&(C=!1);else if(v===37)C=!0;else if(!(0,k.isWhiteSpace)(v))break;v=this.nextChar()}switch(v|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new w(q.NUMBER,this.getNumber());case 123:return this.nextChar(),w.LBRACE;case 125:return this.nextChar(),w.RBRACE}const J=this.strBuf;for(J.length=0,J[0]=String.fromCharCode(v);(v=this.nextChar())>=0&&(v>=65&&v<=90||v>=97&&v<=122);)J.push(String.fromCharCode(v));const ae=J.join("");switch(ae.toLowerCase()){case"if":return w.IF;case"ifelse":return w.IFELSE;default:return w.getOperator(ae)}}getNumber(){let C=this.currentChar;const v=this.strBuf;for(v.length=0,v[0]=String.fromCharCode(C);(C=this.nextChar())>=0&&(C>=48&&C<=57||C===45||C===46);)v.push(String.fromCharCode(C));const J=parseFloat(v.join(""));if(isNaN(J))throw new m.FormatError(`Invalid floating point number: ${J}`);return J}}f.PostScriptLexer=$},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.MurmurHash3_64=void 0;var m=b(2);const y=3285377520,k=4294901760,a=65535;class q{constructor($){this.h1=$?$&4294967295:y,this.h2=$?$&4294967295:y}update($){let Q,C;if((0,m.isString)($)){Q=new Uint8Array($.length*2),C=0;for(let P=0,B=$.length;P<B;P++){const M=$.charCodeAt(P);M<=255?Q[C++]=M:(Q[C++]=M>>>8,Q[C++]=M&255)}}else if((0,m.isArrayBuffer)($))Q=$,C=Q.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const v=C>>2,J=C-v*4,ae=new Uint32Array(Q.buffer,0,v);let H=0,Y=0,G=this.h1,j=this.h2;const L=3432918353,R=461845907,T=L&a,O=R&a;for(let P=0;P<v;P++)P&1?(H=ae[P],H=H*L&k|H*T&a,H=H<<15|H>>>17,H=H*R&k|H*O&a,G^=H,G=G<<13|G>>>19,G=G*5+3864292196):(Y=ae[P],Y=Y*L&k|Y*T&a,Y=Y<<15|Y>>>17,Y=Y*R&k|Y*O&a,j^=Y,j=j<<13|j>>>19,j=j*5+3864292196);switch(H=0,J){case 3:H^=Q[v*4+2]<<16;case 2:H^=Q[v*4+1]<<8;case 1:H^=Q[v*4],H=H*L&k|H*T&a,H=H<<15|H>>>17,H=H*R&k|H*O&a,v&1?G^=H:j^=H}this.h1=G,this.h2=j}hexdigest(){let $=this.h1,Q=this.h2;$^=Q>>>1,$=$*3981806797&k|$*36045&a,Q=Q*4283543511&k|((Q<<16|$>>>16)*2950163797&k)>>>16,$^=Q>>>1,$=$*444984403&k|$*60499&a,Q=Q*3301882366&k|((Q<<16|$>>>16)*3120437893&k)>>>16,$^=Q>>>1;const C=($>>>0).toString(16),v=(Q>>>0).toString(16);return C.padStart(8,"0")+v.padStart(8,"0")}}f.MurmurHash3_64=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFImage=void 0;var m=b(2),y=b(5),k=b(23),a=b(12),q=b(18),w=b(21),$=function(){function C(ae,H,Y,G){return ae=H+ae*Y,ae<0?ae=0:ae>G&&(ae=G),ae}function v(ae,H,Y,G,j,L){var R=j*L;let T;H<=8?T=new Uint8Array(R):H<=16?T=new Uint16Array(R):T=new Uint32Array(R);var O=Y/j,P=G/L,B,M,F,S=0,A,E=new Uint16Array(j),_=Y;for(B=0;B<j;B++)E[B]=Math.floor(B*O);for(B=0;B<L;B++)for(F=Math.floor(B*P)*_,M=0;M<j;M++)A=F+E[M],T[S++]=ae[A];return T}function J({xref:ae,res:H,image:Y,isInline:G=!1,smask:j=null,mask:L=null,isMask:R=!1,pdfFunctionFactory:T}){this.image=Y;var O=Y.dict;const P=O.get("Filter");if((0,y.isName)(P))switch(P.name){case"JPXDecode":var B=new w.JpxImage;B.parseImageProperties(Y.stream),Y.stream.reset(),Y.width=B.width,Y.height=B.height,Y.bitsPerComponent=B.bitsPerComponent,Y.numComps=B.componentsCount;break;case"JBIG2Decode":Y.bitsPerComponent=1,Y.numComps=1;break}let M=O.get("Width","W"),F=O.get("Height","H");if(Number.isInteger(Y.width)&&Y.width>0&&Number.isInteger(Y.height)&&Y.height>0&&(Y.width!==M||Y.height!==F)&&((0,m.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),M=Y.width,F=Y.height),M<1||F<1)throw new m.FormatError(`Invalid image width: ${M} or height: ${F}`);this.width=M,this.height=F,this.interpolate=O.get("Interpolate","I")||!1,this.imageMask=O.get("ImageMask","IM")||!1,this.matte=O.get("Matte")||!1;var S=Y.bitsPerComponent;if(!S&&(S=O.get("BitsPerComponent","BPC"),!S))if(this.imageMask)S=1;else throw new m.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=S,!this.imageMask){var A=O.get("ColorSpace","CS");if(!A)switch((0,m.info)("JPX images (which do not require color spaces)"),Y.numComps){case 1:A=y.Name.get("DeviceGray");break;case 3:A=y.Name.get("DeviceRGB");break;case 4:A=y.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${Y.numComps} color components not supported.`)}const W=G?H:null;this.colorSpace=k.ColorSpace.parse(A,ae,W,T),this.numComps=this.colorSpace.numComps}if(this.decode=O.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,S)||R&&!k.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var E=(1<<S)-1;this.decodeCoefficients=[],this.decodeAddends=[];const W=this.colorSpace&&this.colorSpace.name==="Indexed";for(var _=0,D=0;_<this.decode.length;_+=2,++D){var N=this.decode[_],U=this.decode[_+1];this.decodeCoefficients[D]=W?(U-N)/E:U-N,this.decodeAddends[D]=W?N:E*N}}if(j)this.smask=new J({xref:ae,res:H,image:j,isInline:G,pdfFunctionFactory:T});else if(L)if((0,y.isStream)(L)){var z=L.dict,te=z.get("ImageMask","IM");te?this.mask=new J({xref:ae,res:H,image:L,isInline:G,isMask:!0,pdfFunctionFactory:T}):(0,m.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=L}return J.buildImage=function({xref:ae,res:H,image:Y,isInline:G=!1,pdfFunctionFactory:j}){const L=Y;let R=null,T=null;const O=Y.dict.get("SMask"),P=Y.dict.get("Mask");return O?R=O:P&&((0,y.isStream)(P)||Array.isArray(P)?T=P:(0,m.warn)("Unsupported mask format.")),Promise.resolve(new J({xref:ae,res:H,image:L,isInline:G,smask:R,mask:T,pdfFunctionFactory:j}))},J.createMask=function({imgArray:ae,width:H,height:Y,imageIsFromDecodeStream:G,inverseDecode:j}){var L=(H+7>>3)*Y,R=ae.byteLength,T=L===R,O,P;if(G&&(!j||T))O=ae;else if(!j)O=new Uint8ClampedArray(R),O.set(ae);else for(O=new Uint8ClampedArray(L),O.set(ae),P=R;P<L;P++)O[P]=255;if(j)for(P=0;P<R;P++)O[P]^=255;return{data:O,width:H,height:Y}},J.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer(ae){var H=this.bpc,Y=this.numComps,G=this.decodeAddends,j=this.decodeCoefficients,L=(1<<H)-1,R,T;if(H===1){for(R=0,T=ae.length;R<T;R++)ae[R]=+!ae[R];return}var O=0;for(R=0,T=this.width*this.height;R<T;R++)for(var P=0;P<Y;P++)ae[O]=C(ae[O],G[P],j[P],L),O++},getComponents(ae){var H=this.bpc;if(H===8)return ae;var Y=this.width,G=this.height,j=this.numComps,L=Y*G*j,R=0;let T;H<=8?T=new Uint8Array(L):H<=16?T=new Uint16Array(L):T=new Uint32Array(L);var O=Y*j,P=(1<<H)-1,B=0,M,F;if(H===1)for(var S,A,E,_=0;_<G;_++){for(A=B+(O&-8),E=B+O;B<A;)F=ae[R++],T[B]=F>>7&1,T[B+1]=F>>6&1,T[B+2]=F>>5&1,T[B+3]=F>>4&1,T[B+4]=F>>3&1,T[B+5]=F>>2&1,T[B+6]=F>>1&1,T[B+7]=F&1,B+=8;if(B<E)for(F=ae[R++],S=128;B<E;)T[B++]=+!!(F&S),S>>=1}else{var D=0;for(F=0,B=0,M=L;B<M;++B){for(B%O===0&&(F=0,D=0);D<H;)F=F<<8|ae[R++],D+=8;var N=D-H;let U=F>>N;U<0?U=0:U>P&&(U=P),T[B]=U,F=F&(1<<N)-1,D=N}}return T},fillOpacity(ae,H,Y,G,j){var L=this.smask,R=this.mask,T,O,P,B,M,F;if(L)O=L.width,P=L.height,T=new Uint8ClampedArray(O*P),L.fillGrayBuffer(T),(O!==H||P!==Y)&&(T=v(T,L.bpc,O,P,H,Y));else if(R)if(R instanceof J){for(O=R.width,P=R.height,T=new Uint8ClampedArray(O*P),R.numComps=1,R.fillGrayBuffer(T),B=0,M=O*P;B<M;++B)T[B]=255-T[B];(O!==H||P!==Y)&&(T=v(T,R.bpc,O,P,H,Y))}else if(Array.isArray(R)){T=new Uint8ClampedArray(H*Y);var S=this.numComps;for(B=0,M=H*Y;B<M;++B){var A=0,E=B*S;for(F=0;F<S;++F){var _=j[E+F],D=F*2;if(_<R[D]||_>R[D+1]){A=255;break}}T[B]=A}}else throw new m.FormatError("Unknown mask format.");if(T)for(B=0,F=3,M=H*G;B<M;++B,F+=4)ae[F]=T[B];else for(B=0,F=3,M=H*G;B<M;++B,F+=4)ae[F]=255},undoPreblend(ae,H,Y){var G=this.smask&&this.smask.matte;if(!!G)for(var j=this.colorSpace.getRgb(G,0),L=j[0],R=j[1],T=j[2],O=H*Y*4,P=0;P<O;P+=4){var B=ae[P+3];if(B===0){ae[P]=255,ae[P+1]=255,ae[P+2]=255;continue}var M=255/B;ae[P]=(ae[P]-L)*M+L,ae[P+1]=(ae[P+1]-R)*M+R,ae[P+2]=(ae[P+2]-T)*M+T}},createImageData(ae=!1){var H=this.drawWidth,Y=this.drawHeight,G={width:H,height:Y,kind:0,data:null},j=this.numComps,L=this.width,R=this.height,T=this.bpc,O=L*j*T+7>>3,P;if(!ae){var B;if(this.colorSpace.name==="DeviceGray"&&T===1?B=m.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&T===8&&!this.needsDecode&&(B=m.ImageKind.RGB_24BPP),B&&!this.smask&&!this.mask&&H===L&&Y===R){if(G.kind=B,P=this.getImageBytes(R*O),this.image instanceof a.DecodeStream)G.data=P;else{var M=new Uint8ClampedArray(P.length);M.set(P),G.data=M}if(this.needsDecode){(0,m.assert)(B===m.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var F=G.data,S=0,A=F.length;S<A;S++)F[S]^=255}return G}if(this.image instanceof q.JpegStream&&!this.smask&&!this.mask){let U=R*O;switch(this.colorSpace.name){case"DeviceGray":U*=3;case"DeviceRGB":case"DeviceCMYK":return G.kind=m.ImageKind.RGB_24BPP,G.data=this.getImageBytes(U,H,Y,!0),G}}}P=this.getImageBytes(R*O);var E=0|P.length/O*Y/R,_=this.getComponents(P),D,N;return!ae&&!this.smask&&!this.mask?(G.kind=m.ImageKind.RGB_24BPP,G.data=new Uint8ClampedArray(H*Y*3),D=0,N=!1):(G.kind=m.ImageKind.RGBA_32BPP,G.data=new Uint8ClampedArray(H*Y*4),D=1,N=!0,this.fillOpacity(G.data,H,Y,E,_)),this.needsDecode&&this.decodeBuffer(_),this.colorSpace.fillRgb(G.data,L,R,H,Y,E,T,_,D),N&&this.undoPreblend(G.data,H,E),G},fillGrayBuffer(ae){var H=this.numComps;if(H!==1)throw new m.FormatError(`Reading gray scale from a color image: ${H}`);var Y=this.width,G=this.height,j=this.bpc,L=Y*H*j+7>>3,R=this.getImageBytes(G*L),T=this.getComponents(R),O,P;if(j===1){if(P=Y*G,this.needsDecode)for(O=0;O<P;++O)ae[O]=T[O]-1&255;else for(O=0;O<P;++O)ae[O]=-T[O]&255;return}this.needsDecode&&this.decodeBuffer(T),P=Y*G;var B=255/((1<<j)-1);for(O=0;O<P;++O)ae[O]=B*T[O]},getImageBytes(ae,H,Y,G=!1){return this.image.reset(),this.image.drawWidth=H||this.width,this.image.drawHeight=Y||this.height,this.image.forceRGB=!!G,this.image.getBytes(ae,!0)}},J}();f.PDFImage=$},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.MessageHandler=void 0;var m=b(2);const y={UNKNOWN:0,DATA:1,ERROR:2},k={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function a(w){if(typeof w!="object"||w===null)return w;switch(w.name){case"AbortException":return new m.AbortException(w.message);case"MissingPDFException":return new m.MissingPDFException(w.message);case"UnexpectedResponseException":return new m.UnexpectedResponseException(w.message,w.status);case"UnknownErrorException":return new m.UnknownErrorException(w.message,w.details);default:return new m.UnknownErrorException(w.message,w.toString())}}class q{constructor($,Q,C){this.sourceName=$,this.targetName=Q,this.comObj=C,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=v=>{const J=v.data;if(J.targetName!==this.sourceName)return;if(J.stream){this._processStreamMessage(J);return}if(J.callback){const H=J.callbackId,Y=this.callbackCapabilities[H];if(!Y)throw new Error(`Cannot resolve callback ${H}`);if(delete this.callbackCapabilities[H],J.callback===y.DATA)Y.resolve(J.data);else if(J.callback===y.ERROR)Y.reject(a(J.reason));else throw new Error("Unexpected callback case");return}const ae=this.actionHandler[J.action];if(!ae)throw new Error(`Unknown action from worker: ${J.action}`);if(J.callbackId){const H=this.sourceName,Y=J.sourceName;new Promise(function(G){G(ae(J.data))}).then(function(G){C.postMessage({sourceName:H,targetName:Y,callback:y.DATA,callbackId:J.callbackId,data:G})},function(G){C.postMessage({sourceName:H,targetName:Y,callback:y.ERROR,callbackId:J.callbackId,reason:a(G)})});return}if(J.streamId){this._createStreamSink(J);return}ae(J.data)},C.addEventListener("message",this._onComObjOnMessage)}on($,Q){const C=this.actionHandler;if(C[$])throw new Error(`There is already an actionName called "${$}"`);C[$]=Q}send($,Q,C){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,data:Q},C)}sendWithPromise($,Q,C){const v=this.callbackId++,J=(0,m.createPromiseCapability)();this.callbackCapabilities[v]=J;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:$,callbackId:v,data:Q},C)}catch(ae){J.reject(ae)}return J.promise}sendWithStream($,Q,C,v){const J=this.streamId++,ae=this.sourceName,H=this.targetName,Y=this.comObj;return new ReadableStream({start:G=>{const j=(0,m.createPromiseCapability)();return this.streamControllers[J]={controller:G,startCall:j,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:ae,targetName:H,action:$,streamId:J,data:Q,desiredSize:G.desiredSize},v),j.promise},pull:G=>{const j=(0,m.createPromiseCapability)();return this.streamControllers[J].pullCall=j,Y.postMessage({sourceName:ae,targetName:H,stream:k.PULL,streamId:J,desiredSize:G.desiredSize}),j.promise},cancel:G=>{(0,m.assert)(G instanceof Error,"cancel must have a valid reason");const j=(0,m.createPromiseCapability)();return this.streamControllers[J].cancelCall=j,this.streamControllers[J].isClosed=!0,Y.postMessage({sourceName:ae,targetName:H,stream:k.CANCEL,streamId:J,reason:a(G)}),j.promise}},C)}_createStreamSink($){const Q=this,C=this.actionHandler[$.action],v=$.streamId,J=this.sourceName,ae=$.sourceName,H=this.comObj,Y={enqueue(G,j=1,L){if(this.isCancelled)return;const R=this.desiredSize;this.desiredSize-=j,R>0&&this.desiredSize<=0&&(this.sinkCapability=(0,m.createPromiseCapability)(),this.ready=this.sinkCapability.promise),Q._postMessage({sourceName:J,targetName:ae,stream:k.ENQUEUE,streamId:v,chunk:G},L)},close(){this.isCancelled||(this.isCancelled=!0,H.postMessage({sourceName:J,targetName:ae,stream:k.CLOSE,streamId:v}),delete Q.streamSinks[v])},error(G){(0,m.assert)(G instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,H.postMessage({sourceName:J,targetName:ae,stream:k.ERROR,streamId:v,reason:a(G)}))},sinkCapability:(0,m.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:$.desiredSize,ready:null};Y.sinkCapability.resolve(),Y.ready=Y.sinkCapability.promise,this.streamSinks[v]=Y,new Promise(function(G){G(C($.data,Y))}).then(function(){H.postMessage({sourceName:J,targetName:ae,stream:k.START_COMPLETE,streamId:v,success:!0})},function(G){H.postMessage({sourceName:J,targetName:ae,stream:k.START_COMPLETE,streamId:v,reason:a(G)})})}_processStreamMessage($){const Q=$.streamId,C=this.sourceName,v=$.sourceName,J=this.comObj;switch($.stream){case k.START_COMPLETE:$.success?this.streamControllers[Q].startCall.resolve():this.streamControllers[Q].startCall.reject(a($.reason));break;case k.PULL_COMPLETE:$.success?this.streamControllers[Q].pullCall.resolve():this.streamControllers[Q].pullCall.reject(a($.reason));break;case k.PULL:if(!this.streamSinks[Q]){J.postMessage({sourceName:C,targetName:v,stream:k.PULL_COMPLETE,streamId:Q,success:!0});break}this.streamSinks[Q].desiredSize<=0&&$.desiredSize>0&&this.streamSinks[Q].sinkCapability.resolve(),this.streamSinks[Q].desiredSize=$.desiredSize;const{onPull:ae}=this.streamSinks[$.streamId];new Promise(function(Y){Y(ae&&ae())}).then(function(){J.postMessage({sourceName:C,targetName:v,stream:k.PULL_COMPLETE,streamId:Q,success:!0})},function(Y){J.postMessage({sourceName:C,targetName:v,stream:k.PULL_COMPLETE,streamId:Q,reason:a(Y)})});break;case k.ENQUEUE:if((0,m.assert)(this.streamControllers[Q],"enqueue should have stream controller"),this.streamControllers[Q].isClosed)break;this.streamControllers[Q].controller.enqueue($.chunk);break;case k.CLOSE:if((0,m.assert)(this.streamControllers[Q],"close should have stream controller"),this.streamControllers[Q].isClosed)break;this.streamControllers[Q].isClosed=!0,this.streamControllers[Q].controller.close(),this._deleteStreamController(Q);break;case k.ERROR:(0,m.assert)(this.streamControllers[Q],"error should have stream controller"),this.streamControllers[Q].controller.error(a($.reason)),this._deleteStreamController(Q);break;case k.CANCEL_COMPLETE:$.success?this.streamControllers[Q].cancelCall.resolve():this.streamControllers[Q].cancelCall.reject(a($.reason)),this._deleteStreamController(Q);break;case k.CANCEL:if(!this.streamSinks[Q])break;const{onCancel:H}=this.streamSinks[$.streamId];new Promise(function(Y){Y(H&&H(a($.reason)))}).then(function(){J.postMessage({sourceName:C,targetName:v,stream:k.CANCEL_COMPLETE,streamId:Q,success:!0})},function(Y){J.postMessage({sourceName:C,targetName:v,stream:k.CANCEL_COMPLETE,streamId:Q,reason:a(Y)})}),this.streamSinks[Q].sinkCapability.reject(a($.reason)),this.streamSinks[Q].isCancelled=!0,delete this.streamSinks[Q];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController($){await Promise.allSettled([this.streamControllers[$].startCall,this.streamControllers[$].pullCall,this.streamControllers[$].cancelCall].map(function(Q){return Q&&Q.promise})),delete this.streamControllers[$]}_postMessage($,Q){Q&&this.postMessageTransfers?this.comObj.postMessage($,Q):this.comObj.postMessage($)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}f.MessageHandler=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFWorkerStream=void 0;var m=b(2);class y{constructor(w){this._msgHandler=w,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,m.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new k(this._msgHandler),this._fullRequestReader}getRangeReader(w,$){const Q=new a(w,$,this._msgHandler);return this._rangeRequestReaders.push(Q),Q}cancelAllRequests(w){this._fullRequestReader&&this._fullRequestReader.cancel(w),this._rangeRequestReaders.slice(0).forEach(function(Q){Q.cancel(w)})}}f.PDFWorkerStream=y;class k{constructor(w){this._msgHandler=w,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const $=this._msgHandler.sendWithStream("GetReader");this._reader=$.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(Q=>{this._isStreamingSupported=Q.isStreamingSupported,this._isRangeSupported=Q.isRangeSupported,this._contentLength=Q.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:w,done:$}=await this._reader.read();return $?{value:void 0,done:!0}:{value:w.buffer,done:!1}}cancel(w){this._reader.cancel(w)}}class a{constructor(w,$,Q){this._msgHandler=Q,this.onProgress=null;const C=this._msgHandler.sendWithStream("GetRangeReader",{begin:w,end:$});this._reader=C.getReader()}get isStreamingSupported(){return!1}async read(){const{value:w,done:$}=await this._reader.read();return $?{value:void 0,done:!0}:{value:w.buffer,done:!1}}cancel(w){this._reader.cancel(w)}}}])})})(pdf_worker);(typeof window!="undefined"?window:{}).pdfjsWorker=pdf_worker.exports;var pdf_viewer={exports:{}};(function(u,d){(function(f,b){u.exports=b()})(commonjsGlobal,function(){return function(g){var f={};function b(m){if(f[m])return f[m].exports;var y=f[m]={i:m,l:!1,exports:{}};return g[m].call(y.exports,y,y.exports,b),y.l=!0,y.exports}return b.m=g,b.c=f,b.d=function(m,y,k){b.o(m,y)||Object.defineProperty(m,y,{enumerable:!0,get:k})},b.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},b.t=function(m,y){if(y&1&&(m=b(m)),y&8||y&4&&typeof m=="object"&&m&&m.__esModule)return m;var k=Object.create(null);if(b.r(k),Object.defineProperty(k,"default",{enumerable:!0,value:m}),y&2&&typeof m!="string")for(var a in m)b.d(k,a,function(q){return m[q]}.bind(null,a));return k},b.n=function(m){var y=m&&m.__esModule?function(){return m.default}:function(){return m};return b.d(y,"a",y),y},b.o=function(m,y){return Object.prototype.hasOwnProperty.call(m,y)},b.p="",b(b.s=0)}([function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return m.AnnotationLayerBuilder}}),Object.defineProperty(f,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return m.DefaultAnnotationLayerFactory}}),Object.defineProperty(f,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return y.DefaultTextLayerFactory}}),Object.defineProperty(f,"TextLayerBuilder",{enumerable:!0,get:function(){return y.TextLayerBuilder}}),Object.defineProperty(f,"EventBus",{enumerable:!0,get:function(){return k.EventBus}}),Object.defineProperty(f,"NullL10n",{enumerable:!0,get:function(){return k.NullL10n}}),Object.defineProperty(f,"ProgressBar",{enumerable:!0,get:function(){return k.ProgressBar}}),Object.defineProperty(f,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(f,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(f,"DownloadManager",{enumerable:!0,get:function(){return q.DownloadManager}}),Object.defineProperty(f,"GenericL10n",{enumerable:!0,get:function(){return w.GenericL10n}}),Object.defineProperty(f,"PDFFindController",{enumerable:!0,get:function(){return $.PDFFindController}}),Object.defineProperty(f,"PDFHistory",{enumerable:!0,get:function(){return Q.PDFHistory}}),Object.defineProperty(f,"PDFPageView",{enumerable:!0,get:function(){return C.PDFPageView}}),Object.defineProperty(f,"PDFSinglePageViewer",{enumerable:!0,get:function(){return v.PDFSinglePageViewer}}),Object.defineProperty(f,"PDFViewer",{enumerable:!0,get:function(){return J.PDFViewer}});var m=b(1),y=b(5),k=b(3),a=b(4),q=b(6),w=b(8),$=b(10),Q=b(12),C=b(13),v=b(15),J=b(17)},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.DefaultAnnotationLayerFactory=f.AnnotationLayerBuilder=void 0;var m=b(2),y=b(3),k=b(4);class a{constructor({pageDiv:$,pdfPage:Q,linkService:C,downloadManager:v,imageResourcesPath:J="",renderInteractiveForms:ae=!1,l10n:H=y.NullL10n}){this.pageDiv=$,this.pdfPage=Q,this.linkService=C,this.downloadManager=v,this.imageResourcesPath=J,this.renderInteractiveForms=ae,this.l10n=H,this.div=null,this._cancelled=!1}render($,Q="display"){this.pdfPage.getAnnotations({intent:Q}).then(C=>{if(this._cancelled)return;const v={viewport:$.clone({dontFlip:!0}),div:this.div,annotations:C,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,linkService:this.linkService,downloadManager:this.downloadManager};if(this.div)m.AnnotationLayer.update(v);else{if(C.length===0)return;this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),v.div=this.div,m.AnnotationLayer.render(v),this.l10n.translate(this.div)}})}cancel(){this._cancelled=!0}hide(){!this.div||this.div.setAttribute("hidden","true")}}f.AnnotationLayerBuilder=a;class q{createAnnotationLayerBuilder($,Q,C="",v=!1,J=y.NullL10n){return new a({pageDiv:$,pdfPage:Q,imageResourcesPath:C,renderInteractiveForms:v,linkService:new k.SimpleLinkService,l10n:J})}}f.DefaultAnnotationLayerFactory=q},function(g,f,b){let m;typeof window!="undefined"&&window["pdfjs-dist/build/pdf"]?m=window["pdfjs-dist/build/pdf"]:m=pdf$1.exports,g.exports=m},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.isValidRotation=z,f.isValidScrollMode=te,f.isValidSpreadMode=W,f.isPortraitOrientation=re,f.clamp=se,f.getPDFFileNameFromURL=N,f.noContextMenuHandler=_,f.parseQueryString=P,f.backtrackBeforeAllVisibleElements=A,f.getVisibleElements=E,f.roundToDivide=F,f.getPageSizeInches=S,f.approximateFraction=M,f.getOutputScale=R,f.scrollIntoView=T,f.watchScroll=O,f.binarySearchFirstItem=B,f.normalizeWheelEventDelta=U,f.waitOnEventOrTimeout=X,f.moveToEndOfArray=de,f.WaitOnType=f.animationStarted=f.ProgressBar=f.EventBus=f.NullL10n=f.SpreadMode=f.ScrollMode=f.TextLayerMode=f.RendererType=f.PresentationModeState=f.VERTICAL_PADDING=f.SCROLLBAR_PADDING=f.MAX_AUTO_SCALE=f.UNKNOWN_SCALE=f.MAX_SCALE=f.MIN_SCALE=f.DEFAULT_SCALE=f.DEFAULT_SCALE_VALUE=f.CSS_UNITS=f.AutoPrintRegExp=void 0;const m=96/72;f.CSS_UNITS=m;const y="auto";f.DEFAULT_SCALE_VALUE=y;const k=1;f.DEFAULT_SCALE=k;const a=.1;f.MIN_SCALE=a;const q=10;f.MAX_SCALE=q;const w=0;f.UNKNOWN_SCALE=w;const $=1.25;f.MAX_AUTO_SCALE=$;const Q=40;f.SCROLLBAR_PADDING=Q;const C=5;f.VERTICAL_PADDING=C;const v={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};f.PresentationModeState=v;const J={CANVAS:"canvas",SVG:"svg"};f.RendererType=J;const ae={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};f.TextLayerMode=ae;const H={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};f.ScrollMode=H;const Y={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};f.SpreadMode=Y;const G=/\bprint\s*\(/;f.AutoPrintRegExp=G;function j(ce,he){return he?ce.replace(/\{\{\s*(\w+)\s*\}\}/g,(oe,ne)=>ne in he?he[ne]:"{{"+ne+"}}"):ce}const L={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(ce,he,oe){return j(oe,he)},async translate(ce){}};f.NullL10n=L;function R(ce){const he=window.devicePixelRatio||1,oe=ce.webkitBackingStorePixelRatio||ce.mozBackingStorePixelRatio||ce.msBackingStorePixelRatio||ce.oBackingStorePixelRatio||ce.backingStorePixelRatio||1,ne=he/oe;return{sx:ne,sy:ne,scaled:ne!==1}}function T(ce,he,oe=!1){let ne=ce.offsetParent;if(!ne){console.error("offsetParent is not set -- cannot scroll");return}let ue=ce.offsetTop+ce.clientTop,le=ce.offsetLeft+ce.clientLeft;for(;ne.clientHeight===ne.scrollHeight&&ne.clientWidth===ne.scrollWidth||oe&&getComputedStyle(ne).overflow==="hidden";)if(ne.dataset._scaleY&&(ue/=ne.dataset._scaleY,le/=ne.dataset._scaleX),ue+=ne.offsetTop,le+=ne.offsetLeft,ne=ne.offsetParent,!ne)return;he&&(he.top!==void 0&&(ue+=he.top),he.left!==void 0&&(le+=he.left,ne.scrollLeft=le)),ne.scrollTop=ue}function O(ce,he){const oe=function(le){ue||(ue=window.requestAnimationFrame(function(){ue=null;const pe=ce.scrollLeft,ve=ne.lastX;pe!==ve&&(ne.right=pe>ve),ne.lastX=pe;const xe=ce.scrollTop,Ce=ne.lastY;xe!==Ce&&(ne.down=xe>Ce),ne.lastY=xe,he(ne)}))},ne={right:!0,down:!0,lastX:ce.scrollLeft,lastY:ce.scrollTop,_eventHandler:oe};let ue=null;return ce.addEventListener("scroll",oe,!0),ne}function P(ce){const he=ce.split("&"),oe=Object.create(null);for(let ne=0,ue=he.length;ne<ue;++ne){const le=he[ne].split("="),fe=le[0].toLowerCase(),pe=le.length>1?le[1]:null;oe[decodeURIComponent(fe)]=decodeURIComponent(pe)}return oe}function B(ce,he){let oe=0,ne=ce.length-1;if(ne<0||!he(ce[ne]))return ce.length;if(he(ce[oe]))return oe;for(;oe<ne;){const ue=oe+ne>>1,le=ce[ue];he(le)?ne=ue:oe=ue+1}return oe}function M(ce){if(Math.floor(ce)===ce)return[ce,1];const he=1/ce,oe=8;if(he>oe)return[1,oe];if(Math.floor(he)===he)return[1,he];const ne=ce>1?he:ce;let ue=0,le=1,fe=1,pe=1;for(;;){const xe=ue+fe,Ce=le+pe;if(Ce>oe)break;ne<=xe/Ce?(fe=xe,pe=Ce):(ue=xe,le=Ce)}let ve;return ne-ue/le<fe/pe-ne?ve=ne===ce?[ue,le]:[le,ue]:ve=ne===ce?[fe,pe]:[pe,fe],ve}function F(ce,he){const oe=ce%he;return oe===0?ce:Math.round(ce-oe+he)}function S({view:ce,userUnit:he,rotate:oe}){const[ne,ue,le,fe]=ce,pe=oe%180!==0,ve=(le-ne)/72*he,xe=(fe-ue)/72*he;return{width:pe?xe:ve,height:pe?ve:xe}}function A(ce,he,oe){if(ce<2)return ce;let ne=he[ce].div,ue=ne.offsetTop+ne.clientTop;ue>=oe&&(ne=he[ce-1].div,ue=ne.offsetTop+ne.clientTop);for(let le=ce-2;le>=0&&(ne=he[le].div,!(ne.offsetTop+ne.clientTop+ne.clientHeight<=ue));--le)ce=le;return ce}function E(ce,he,oe=!1,ne=!1){const ue=ce.scrollTop,le=ue+ce.clientHeight,fe=ce.scrollLeft,pe=fe+ce.clientWidth;function ve(Ee){const De=Ee.div;return De.offsetTop+De.clientTop+De.clientHeight>ue}function xe(Ee){const De=Ee.div;return De.offsetLeft+De.clientLeft+De.clientWidth>fe}const Ce=[],be=he.length;let me=be===0?0:B(he,ne?xe:ve);me>0&&me<be&&!ne&&(me=A(me,he,ue));let ge=ne?pe:-1;for(let Ee=me;Ee<be;Ee++){const De=he[Ee],_e=De.div,Be=_e.offsetLeft+_e.clientLeft,Te=_e.offsetTop+_e.clientTop,Fe=_e.clientWidth,we=_e.clientHeight,Ae=Be+Fe,ke=Te+we;if(ge===-1)ke>=le&&(ge=ke);else if((ne?Be:Te)>ge)break;if(ke<=ue||Te>=le||Ae<=fe||Be>=pe)continue;const Pe=Math.max(0,ue-Te)+Math.max(0,ke-le),Le=Math.max(0,fe-Be)+Math.max(0,Ae-pe),Ne=(we-Pe)*(Fe-Le)*100/we/Fe|0;Ce.push({id:De.id,x:Be,y:Te,view:De,percent:Ne})}const ye=Ce[0],Se=Ce[Ce.length-1];return oe&&Ce.sort(function(Ee,De){const _e=Ee.percent-De.percent;return Math.abs(_e)>.001?-_e:Ee.id-De.id}),{first:ye,last:Se,views:Ce}}function _(ce){ce.preventDefault()}function D(ce){let he=0;const oe=ce.length;for(;he<oe&&ce[he].trim()==="";)he++;return ce.substring(he,he+5).toLowerCase()==="data:"}function N(ce,he="document.pdf"){if(typeof ce!="string")return he;if(D(ce))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),he;const oe=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,ne=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,ue=oe.exec(ce);let le=ne.exec(ue[1])||ne.exec(ue[2])||ne.exec(ue[3]);if(le&&(le=le[0],le.includes("%")))try{le=ne.exec(decodeURIComponent(le))[0]}catch{}return le||he}function U(ce){let he=Math.sqrt(ce.deltaX*ce.deltaX+ce.deltaY*ce.deltaY);const oe=Math.atan2(ce.deltaY,ce.deltaX);-.25*Math.PI<oe&&oe<.75*Math.PI&&(he=-he);const ne=0,ue=1,le=30,fe=30;return ce.deltaMode===ne?he/=le*fe:ce.deltaMode===ue&&(he/=fe),he}function z(ce){return Number.isInteger(ce)&&ce%90===0}function te(ce){return Number.isInteger(ce)&&Object.values(H).includes(ce)&&ce!==H.UNKNOWN}function W(ce){return Number.isInteger(ce)&&Object.values(Y).includes(ce)&&ce!==Y.UNKNOWN}function re(ce){return ce.width<=ce.height}const ee={EVENT:"event",TIMEOUT:"timeout"};f.WaitOnType=ee;function X({target:ce,name:he,delay:oe=0}){return new Promise(function(ne,ue){if(typeof ce!="object"||!(he&&typeof he=="string")||!(Number.isInteger(oe)&&oe>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function le(xe){ce instanceof Z?ce._off(he,fe):ce.removeEventListener(he,fe),ve&&clearTimeout(ve),ne(xe)}const fe=le.bind(null,ee.EVENT);ce instanceof Z?ce._on(he,fe):ce.addEventListener(he,fe);const pe=le.bind(null,ee.TIMEOUT),ve=setTimeout(pe,oe)})}const K=new Promise(function(ce){window.requestAnimationFrame(ce)});f.animationStarted=K;class Z{constructor(he){this._listeners=Object.create(null)}on(he,oe){this._on(he,oe,{external:!0})}off(he,oe){this._off(he,oe,{external:!0})}dispatch(he){const oe=this._listeners[he];if(!oe||oe.length===0)return;const ne=Array.prototype.slice.call(arguments,1);let ue;oe.slice(0).forEach(function({listener:le,external:fe}){if(fe){ue||(ue=[]),ue.push(le);return}le.apply(null,ne)}),ue&&(ue.forEach(function(le){le.apply(null,ne)}),ue=null)}_on(he,oe,ne=null){let ue=this._listeners[he];ue||(this._listeners[he]=ue=[]),ue.push({listener:oe,external:(ne&&ne.external)===!0})}_off(he,oe,ne=null){const ue=this._listeners[he];if(!!ue){for(let le=0,fe=ue.length;le<fe;le++)if(ue[le].listener===oe){ue.splice(le,1);return}}}}f.EventBus=Z;function se(ce,he,oe){return Math.min(Math.max(ce,he),oe)}class ie{constructor(he,{height:oe,width:ne,units:ue}={}){this.visible=!0,this.div=document.querySelector(he+" .progress"),this.bar=this.div.parentNode,this.height=oe||100,this.width=ne||100,this.units=ue||"%",this.div.style.height=this.height+this.units,this.percent=0}_updateBar(){if(this._indeterminate){this.div.classList.add("indeterminate"),this.div.style.width=this.width+this.units;return}this.div.classList.remove("indeterminate");const he=this.width*this._percent/100;this.div.style.width=he+this.units}get percent(){return this._percent}set percent(he){this._indeterminate=isNaN(he),this._percent=se(he,0,100),this._updateBar()}setWidth(he){if(!he)return;const ne=he.parentNode.offsetWidth-he.offsetWidth;ne>0&&(this.bar.style.width=`calc(100% - ${ne}px)`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}f.ProgressBar=ie;function de(ce,he){const oe=[],ne=ce.length;let ue=0;for(let le=0;le<ne;++le)he(ce[le])?oe.push(ce[le]):(ce[ue]=ce[le],++ue);for(let le=0;ue<ne;++le,++ue)ce[ue]=oe[le]}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.SimpleLinkService=f.PDFLinkService=void 0;var m=b(3);class y{constructor({eventBus:w,externalLinkTarget:$=null,externalLinkRel:Q=null,externalLinkEnabled:C=!0,ignoreDestinationZoom:v=!1}={}){this.eventBus=w,this.externalLinkTarget=$,this.externalLinkRel=Q,this.externalLinkEnabled=C,this._ignoreDestinationZoom=v,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(w,$=null){this.baseUrl=$,this.pdfDocument=w,this._pagesRefCache=Object.create(null)}setViewer(w){this.pdfViewer=w}setHistory(w){this.pdfHistory=w}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(w){this.pdfViewer.currentPageNumber=w}get rotation(){return this.pdfViewer.pagesRotation}set rotation(w){this.pdfViewer.pagesRotation=w}navigateTo(w){const $=({namedDest:Q,explicitDest:C})=>{const v=C[0];let J;if(v instanceof Object){if(J=this._cachedPageNumber(v),J===null){this.pdfDocument.getPageIndex(v).then(ae=>{this.cachePageRef(ae+1,v),$({namedDest:Q,explicitDest:C})}).catch(()=>{console.error(`PDFLinkService.navigateTo: "${v}" is not a valid page reference, for dest="${w}".`)});return}}else if(Number.isInteger(v))J=v+1;else{console.error(`PDFLinkService.navigateTo: "${v}" is not a valid destination reference, for dest="${w}".`);return}if(!J||J<1||J>this.pagesCount){console.error(`PDFLinkService.navigateTo: "${J}" is not a valid page number, for dest="${w}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:Q,explicitDest:C,pageNumber:J})),this.pdfViewer.scrollPageIntoView({pageNumber:J,destArray:C,ignoreDestinationZoom:this._ignoreDestinationZoom})};new Promise((Q,C)=>{if(typeof w=="string"){this.pdfDocument.getDestination(w).then(v=>{Q({namedDest:w,explicitDest:v})});return}Q({namedDest:"",explicitDest:w})}).then(Q=>{if(!Array.isArray(Q.explicitDest)){console.error(`PDFLinkService.navigateTo: "${Q.explicitDest}" is not a valid destination array, for dest="${w}".`);return}$(Q)})}getDestinationHash(w){if(typeof w=="string")return this.getAnchorUrl("#"+escape(w));if(Array.isArray(w)){const $=JSON.stringify(w);return this.getAnchorUrl("#"+escape($))}return this.getAnchorUrl("")}getAnchorUrl(w){return(this.baseUrl||"")+w}setHash(w){let $,Q;if(w.includes("=")){const C=(0,m.parseQueryString)(w);if("search"in C&&this.eventBus.dispatch("findfromurlhash",{source:this,query:C.search.replace(/"/g,""),phraseSearch:C.phrase==="true"}),"page"in C&&($=C.page|0||1),"zoom"in C){const v=C.zoom.split(","),J=v[0],ae=parseFloat(J);J.includes("Fit")?J==="Fit"||J==="FitB"?Q=[null,{name:J}]:J==="FitH"||J==="FitBH"||J==="FitV"||J==="FitBV"?Q=[null,{name:J},v.length>1?v[1]|0:null]:J==="FitR"?v.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):Q=[null,{name:J},v[1]|0,v[2]|0,v[3]|0,v[4]|0]:console.error(`PDFLinkService.setHash: "${J}" is not a valid zoom value.`):Q=[null,{name:"XYZ"},v.length>1?v[1]|0:null,v.length>2?v[2]|0:null,ae?ae/100:J]}Q?this.pdfViewer.scrollPageIntoView({pageNumber:$||this.page,destArray:Q,allowNegativeOffset:!0}):$&&(this.page=$),"pagemode"in C&&this.eventBus.dispatch("pagemode",{source:this,mode:C.pagemode}),"nameddest"in C&&this.navigateTo(C.nameddest)}else{Q=unescape(w);try{Q=JSON.parse(Q),Array.isArray(Q)||(Q=Q.toString())}catch{}if(typeof Q=="string"||k(Q)){this.navigateTo(Q);return}console.error(`PDFLinkService.setHash: "${unescape(w)}" is not a valid destination.`)}}executeNamedAction(w){switch(w){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:w})}cachePageRef(w,$){if(!$)return;const Q=$.gen===0?`${$.num}R`:`${$.num}R${$.gen}`;this._pagesRefCache[Q]=w}_cachedPageNumber(w){const $=w.gen===0?`${w.num}R`:`${w.num}R${w.gen}`;return this._pagesRefCache&&this._pagesRefCache[$]||null}isPageVisible(w){return this.pdfViewer.isPageVisible(w)}}f.PDFLinkService=y;function k(q){if(!Array.isArray(q))return!1;const w=q.length;if(w<2)return!1;const $=q[0];if(!(typeof $=="object"&&Number.isInteger($.num)&&Number.isInteger($.gen))&&!(Number.isInteger($)&&$>=0))return!1;const Q=q[1];if(!(typeof Q=="object"&&typeof Q.name=="string"))return!1;let C=!0;switch(Q.name){case"XYZ":if(w!==5)return!1;break;case"Fit":case"FitB":return w===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(w!==3)return!1;break;case"FitR":if(w!==6)return!1;C=!1;break;default:return!1}for(let v=2;v<w;v++){const J=q[v];if(!(typeof J=="number"||C&&J===null))return!1}return!0}class a{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(w){}get rotation(){return 0}set rotation(w){}navigateTo(w){}getDestinationHash(w){return"#"}getAnchorUrl(w){return"#"}setHash(w){}executeNamedAction(w){}cachePageRef(w,$){}isPageVisible(w){return!0}}f.SimpleLinkService=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.DefaultTextLayerFactory=f.TextLayerBuilder=void 0;var m=b(2);const y=300;class k{constructor({textLayerDiv:w,eventBus:$,pageIndex:Q,viewport:C,findController:v=null,enhanceTextSelection:J=!1}){this.textLayerDiv=w,this.eventBus=$,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=Q,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=C,this.textDivs=[],this.findController=v,this.textLayerRenderTask=null,this.enhanceTextSelection=J,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const w=document.createElement("div");w.className="endOfContent",this.textLayerDiv.appendChild(w)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(w=0){if(!(this.textContent||this.textContentStream)||this.renderingDone)return;this.cancel(),this.textDivs=[];const $=document.createDocumentFragment();this.textLayerRenderTask=(0,m.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:$,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:w,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild($),this._finishRendering(),this._updateMatches()},function(Q){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=Q=>{(Q.pageIndex===this.pageIdx||Q.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}setTextContentStream(w){this.cancel(),this.textContentStream=w}setTextContent(w){this.cancel(),this.textContent=w}_convertMatches(w,$){if(!w)return[];const{findController:Q,textContentItemsStr:C}=this;let v=0,J=0;const ae=C.length-1,H=Q.state.query.length,Y=[];for(let G=0,j=w.length;G<j;G++){let L=w[G];for(;v!==ae&&L>=J+C[v].length;)J+=C[v].length,v++;v===C.length&&console.error("Could not find a matching mapping");const R={begin:{divIdx:v,offset:L-J}};for($?L+=$[G]:L+=H;v!==ae&&L>J+C[v].length;)J+=C[v].length,v++;R.end={divIdx:v,offset:L-J},Y.push(R)}return Y}_renderMatches(w){if(w.length===0)return;const{findController:$,pageIdx:Q,textContentItemsStr:C,textDivs:v}=this,J=Q===$.selected.pageIdx,ae=$.selected.matchIdx,H=$.state.highlightAll;let Y=null;const G={divIdx:-1,offset:void 0};function j(O,P){const B=O.divIdx;v[B].textContent="",L(B,0,O.offset,P)}function L(O,P,B,M){const F=v[O],S=C[O].substring(P,B),A=document.createTextNode(S);if(M){const E=document.createElement("span");E.className=M,E.appendChild(A),F.appendChild(E);return}F.appendChild(A)}let R=ae,T=R+1;if(H)R=0,T=w.length;else if(!J)return;for(let O=R;O<T;O++){const P=w[O],B=P.begin,M=P.end,F=J&&O===ae,S=F?" selected":"";if(F&&$.scrollMatchIntoView({element:v[B.divIdx],pageIndex:Q,matchIndex:ae}),!Y||B.divIdx!==Y.divIdx?(Y!==null&&L(Y.divIdx,Y.offset,G.offset),j(B)):L(Y.divIdx,Y.offset,B.offset),B.divIdx===M.divIdx)L(B.divIdx,B.offset,M.offset,"highlight"+S);else{L(B.divIdx,B.offset,G.offset,"highlight begin"+S);for(let A=B.divIdx+1,E=M.divIdx;A<E;A++)v[A].className="highlight middle"+S;j(M,"highlight end"+S)}Y=M}Y&&L(Y.divIdx,Y.offset,G.offset)}_updateMatches(){if(!this.renderingDone)return;const{findController:w,matches:$,pageIdx:Q,textContentItemsStr:C,textDivs:v}=this;let J=-1;for(let Y=0,G=$.length;Y<G;Y++){const j=$[Y],L=Math.max(J,j.begin.divIdx);for(let R=L,T=j.end.divIdx;R<=T;R++){const O=v[R];O.textContent=C[R],O.className=""}J=j.end.divIdx+1}if(!w||!w.highlightMatches)return;const ae=w.pageMatches[Q]||null,H=w.pageMatchesLength[Q]||null;this.matches=this._convertMatches(ae,H),this._renderMatches(this.matches)}_bindMouse(){const w=this.textLayerDiv;let $=null;w.addEventListener("mousedown",Q=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){this.textLayerRenderTask.expandTextDivs(!0),$&&(clearTimeout($),$=null);return}const C=w.querySelector(".endOfContent");if(!C)return;let v=Q.target!==w;if(v=v&&window.getComputedStyle(C).getPropertyValue("-moz-user-select")!=="none",v){const J=w.getBoundingClientRect(),ae=Math.max(0,(Q.pageY-J.top)/J.height);C.style.top=(ae*100).toFixed(2)+"%"}C.classList.add("active")}),w.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){$=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),$=null},y);return}const Q=w.querySelector(".endOfContent");!Q||(Q.style.top="",Q.classList.remove("active"))})}}f.TextLayerBuilder=k;class a{createTextLayerBuilder(w,$,Q,C=!1,v){return new k({textLayerDiv:w,pageIndex:$,viewport:Q,enhanceTextSelection:C,eventBus:v})}}f.DefaultTextLayerFactory=a},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.DownloadManager=void 0;var m=b(2),y=b(7);const k=y.viewerCompatibilityParams.disableCreateObjectURL||!1;function a(w,$){const Q=document.createElement("a");if(!Q.click)throw new Error('DownloadManager: "a.click()" is not supported.');Q.href=w,Q.target="_parent","download"in Q&&(Q.download=$),(document.body||document.documentElement).appendChild(Q),Q.click(),Q.remove()}class q{constructor({disableCreateObjectURL:$=k}){this.disableCreateObjectURL=$}downloadUrl($,Q){!(0,m.createValidAbsoluteUrl)($,"http://example.com")||a($+"#pdfjs.action=download",Q)}downloadData($,Q,C){if(navigator.msSaveBlob){navigator.msSaveBlob(new Blob([$],{type:C}),Q);return}const v=(0,m.createObjectURL)($,C,this.disableCreateObjectURL);a(v,Q)}download($,Q,C){if(navigator.msSaveBlob){navigator.msSaveBlob($,C)||this.downloadUrl(Q,C);return}if(this.disableCreateObjectURL){this.downloadUrl(Q,C);return}const v=URL.createObjectURL($);a(v,C)}}f.DownloadManager=q},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.viewerCompatibilityParams=void 0;const m=Object.create(null);{const k=typeof navigator!="undefined"&&navigator.userAgent||"",a=typeof navigator!="undefined"&&navigator.platform||"",q=typeof navigator!="undefined"&&navigator.maxTouchPoints||1,w=/Android/.test(k),$=/Trident/.test(k),Q=/\b(iPad|iPhone|iPod)(?=;)/.test(k)||a==="MacIntel"&&q>1,C=/CriOS/.test(k);(function(){($||C)&&(m.disableCreateObjectURL=!0)})(),function(){(Q||w)&&(m.maxCanvasPixels=5242880)}()}const y=Object.freeze(m);f.viewerCompatibilityParams=y},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.GenericL10n=void 0,b(9);const m=document.webL10n;class y{constructor(a){this._lang=a,this._ready=new Promise((q,w)=>{m.setLanguage(a,()=>{q(m)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(a,q,w){return(await this._ready).get(a,q,w)}async translate(a){return(await this._ready).translate(a)}}f.GenericL10n=y},function(g,f,b){document.webL10n=function(m,y,k){var a={},q="",w="textContent",$="",Q={},C="loading",v=!0;function J(){return y.querySelectorAll('link[type="application/l10n"]')}function ae(){var A=y.querySelector('script[type="application/l10n"]');return A?JSON.parse(A.innerHTML):null}function H(A){return A?A.querySelectorAll("*[data-l10n-id]"):[]}function Y(A){if(!A)return{};var E=A.getAttribute("data-l10n-id"),_=A.getAttribute("data-l10n-args"),D={};if(_)try{D=JSON.parse(_)}catch{console.warn("could not parse arguments for #"+E)}return{id:E,args:D}}function G(A,E,_){E=E||function(U){},_=_||function(){};var D=new XMLHttpRequest;D.open("GET",A,v),D.overrideMimeType&&D.overrideMimeType("text/plain; charset=utf-8"),D.onreadystatechange=function(){D.readyState==4&&(D.status==200||D.status===0?E(D.responseText):_())},D.onerror=_,D.ontimeout=_;try{D.send(null)}catch{_()}}function j(A,E,_,D){var N=A.replace(/[^\/]*$/,"")||"./";function U(te){return te.lastIndexOf("\\")<0?te:te.replace(/\\\\/g,"\\").replace(/\\n/g,`
|
|
88
|
+
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function z(te,W){var re={},ee=/^\s*|\s*$/,X=/^\s*#|^\s*$/,K=/^\s*\[(.*)\]\s*$/,Z=/^\s*@import\s+url\((.*)\)\s*$/i,se=/^([^=\s]*)\s*=\s*(.+)$/;function ie(ce,he,oe){var ne=ce.replace(ee,"").split(/[\r\n]+/),ue="*",le=E.split("-",1)[0],fe=!1,pe="";function ve(){for(;;){if(!ne.length){oe();return}var xe=ne.shift();if(!X.test(xe)){if(he){if(pe=K.exec(xe),pe){ue=pe[1].toLowerCase(),fe=ue!=="*"&&ue!==E&&ue!==le;continue}else if(fe)continue;if(pe=Z.exec(xe),pe){de(N+pe[1],ve);return}}var Ce=xe.match(se);Ce&&Ce.length==3&&(re[Ce[1]]=U(Ce[2]))}}}ve()}function de(ce,he){G(ce,function(oe){ie(oe,!1,he)},function(){console.warn(ce+" not found."),he()})}ie(te,!0,function(){W(re)})}G(A,function(te){q+=te,z(te,function(W){for(var re in W){var ee,X,K=re.lastIndexOf(".");K>0?(ee=re.substring(0,K),X=re.substring(K+1)):(ee=re,X=w),a[ee]||(a[ee]={}),a[ee][X]=W[re]}_&&_()})},D)}function L(A,E){A&&(A=A.toLowerCase()),E=E||function(){},R(),$=A;var _=J(),D=_.length;if(D===0){var N=ae();if(N&&N.locales&&N.default_locale){if(console.log("using the embedded JSON directory, early way out"),a=N.locales[A],!a){var U=N.default_locale.toLowerCase();for(var z in N.locales)if(z=z.toLowerCase(),z===A){a=N.locales[A];break}else z===U&&(a=N.locales[U])}E()}else console.log("no resource to load, early way out");C="complete";return}var te=null,W=0;te=function(){W++,W>=D&&(E(),C="complete")};function re(K){var Z=K.href;this.load=function(se,ie){j(Z,se,ie,function(){console.warn(Z+" not found."),console.warn('"'+se+'" resource not found'),$="",ie()})}}for(var ee=0;ee<D;ee++){var X=new re(_[ee]);X.load(A,te)}}function R(){a={},q="",$=""}function T(A){var E={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function _(z,te){return te.indexOf(z)!==-1}function D(z,te,W){return te<=z&&z<=W}var N={0:function(z){return"other"},1:function(z){return D(z%100,3,10)?"few":z===0?"zero":D(z%100,11,99)?"many":z==2?"two":z==1?"one":"other"},2:function(z){return z!==0&&z%10===0?"many":z==2?"two":z==1?"one":"other"},3:function(z){return z==1?"one":"other"},4:function(z){return D(z,0,1)?"one":"other"},5:function(z){return D(z,0,2)&&z!=2?"one":"other"},6:function(z){return z===0?"zero":z%10==1&&z%100!=11?"one":"other"},7:function(z){return z==2?"two":z==1?"one":"other"},8:function(z){return D(z,3,6)?"few":D(z,7,10)?"many":z==2?"two":z==1?"one":"other"},9:function(z){return z===0||z!=1&&D(z%100,1,19)?"few":z==1?"one":"other"},10:function(z){return D(z%10,2,9)&&!D(z%100,11,19)?"few":z%10==1&&!D(z%100,11,19)?"one":"other"},11:function(z){return D(z%10,2,4)&&!D(z%100,12,14)?"few":z%10===0||D(z%10,5,9)||D(z%100,11,14)?"many":z%10==1&&z%100!=11?"one":"other"},12:function(z){return D(z,2,4)?"few":z==1?"one":"other"},13:function(z){return D(z%10,2,4)&&!D(z%100,12,14)?"few":z!=1&&D(z%10,0,1)||D(z%10,5,9)||D(z%100,12,14)?"many":z==1?"one":"other"},14:function(z){return D(z%100,3,4)?"few":z%100==2?"two":z%100==1?"one":"other"},15:function(z){return z===0||D(z%100,2,10)?"few":D(z%100,11,19)?"many":z==1?"one":"other"},16:function(z){return z%10==1&&z!=11?"one":"other"},17:function(z){return z==3?"few":z===0?"zero":z==6?"many":z==2?"two":z==1?"one":"other"},18:function(z){return z===0?"zero":D(z,0,2)&&z!==0&&z!=2?"one":"other"},19:function(z){return D(z,2,10)?"few":D(z,0,1)?"one":"other"},20:function(z){return(D(z%10,3,4)||z%10==9)&&!(D(z%100,10,19)||D(z%100,70,79)||D(z%100,90,99))?"few":z%1e6===0&&z!==0?"many":z%10==2&&!_(z%100,[12,72,92])?"two":z%10==1&&!_(z%100,[11,71,91])?"one":"other"},21:function(z){return z===0?"zero":z==1?"one":"other"},22:function(z){return D(z,0,1)||D(z,11,99)?"one":"other"},23:function(z){return D(z%10,1,2)||z%20===0?"one":"other"},24:function(z){return D(z,3,10)||D(z,13,19)?"few":_(z,[2,12])?"two":_(z,[1,11])?"one":"other"}},U=E[A.replace(/-.*$/,"")];return U in N?N[U]:(console.warn("plural form unknown for ["+A+"]"),function(){return"other"})}Q.plural=function(A,E,_,D){var N=parseFloat(E);if(isNaN(N)||D!=w)return A;Q._pluralRules||(Q._pluralRules=T($));var U="["+Q._pluralRules(N)+"]";return N===0&&_+"[zero]"in a?A=a[_+"[zero]"][D]:N==1&&_+"[one]"in a?A=a[_+"[one]"][D]:N==2&&_+"[two]"in a?A=a[_+"[two]"][D]:_+U in a?A=a[_+U][D]:_+"[other]"in a&&(A=a[_+"[other]"][D]),A};function O(A,E,_){var D=a[A];if(!D){if(console.warn("#"+A+" is undefined."),!_)return null;D=_}var N={};for(var U in D){var z=D[U];z=P(z,E,A,U),z=B(z,E,A),N[U]=z}return N}function P(A,E,_,D){var N=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,U=N.exec(A);if(!U||!U.length)return A;var z=U[1],te=U[2],W;if(E&&te in E?W=E[te]:te in a&&(W=a[te]),z in Q){var re=Q[z];A=re(A,W,_,D)}return A}function B(A,E,_){var D=/\{\{\s*(.+?)\s*\}\}/g;return A.replace(D,function(N,U){return E&&U in E?E[U]:U in a?a[U]:(console.log("argument {{"+U+"}} for #"+_+" is undefined."),N)})}function M(A){var E=Y(A);if(!!E.id){var _=O(E.id,E.args);if(!_){console.warn("#"+E.id+" is undefined.");return}if(_[w]){if(F(A)===0)A[w]=_[w];else{for(var D=A.childNodes,N=!1,U=0,z=D.length;U<z;U++)D[U].nodeType===3&&/\S/.test(D[U].nodeValue)&&(N?D[U].nodeValue="":(D[U].nodeValue=_[w],N=!0));if(!N){var te=y.createTextNode(_[w]);A.insertBefore(te,A.firstChild)}}delete _[w]}for(var W in _)A[W]=_[W]}}function F(A){if(A.children)return A.children.length;if(typeof A.childElementCount!="undefined")return A.childElementCount;for(var E=0,_=0;_<A.childNodes.length;_++)E+=A.nodeType===1?1:0;return E}function S(A){A=A||y.documentElement;for(var E=H(A),_=E.length,D=0;D<_;D++)M(E[D]);M(A)}return{get:function(A,E,_){var D=A.lastIndexOf("."),N=w;D>0&&(N=A.substring(D+1),A=A.substring(0,D));var U;_&&(U={},U[N]=_);var z=O(A,E,U);return z&&N in z?z[N]:"{{"+A+"}}"},getData:function(){return a},getText:function(){return q},getLanguage:function(){return $},setLanguage:function(A,E){L(A,function(){E&&E()})},getDirection:function(){var A=["ar","he","fa","ps","ur"],E=$.split("-",1)[0];return A.indexOf(E)>=0?"rtl":"ltr"},translate:S,getReadyState:function(){return C},ready:function(A){if(A)C=="complete"||C=="interactive"?m.setTimeout(function(){A()}):y.addEventListener&&y.addEventListener("localized",function E(){y.removeEventListener("localized",E),A()});else return}}}(window,document)},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFFindController=f.FindState=void 0;var m=b(2),y=b(11),k=b(3);const a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};f.FindState=a;const q=250,w=-50,$=-400,Q={"\u2018":"'","\u2019":"'","\u201A":"'","\u201B":"'","\u201C":'"',"\u201D":'"',"\u201E":'"',"\u201F":'"',"\xBC":"1/4","\xBD":"1/2","\xBE":"3/4"};let C=null;function v(ae){if(!C){const H=Object.keys(Q).join("");C=new RegExp(`[${H}]`,"g")}return ae.replace(C,function(H){return Q[H]})}class J{constructor({linkService:H,eventBus:Y}){this._linkService=H,this._eventBus=Y,this._reset(),Y._on("findbarclose",this._onFindBarClose.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(H){this._pdfDocument&&this._reset(),H&&(this._pdfDocument=H,this._firstPageCapability.resolve())}executeCommand(H,Y){if(!Y)return;const G=this._pdfDocument;(this._state===null||this._shouldDirtyMatch(H,Y))&&(this._dirtyMatch=!0),this._state=Y,H!=="findhighlightallchange"&&this._updateUIState(a.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||G&&this._pdfDocument!==G)return;this._extractText();const j=!this._highlightMatches,L=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),H==="find"?this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},q):this._dirtyMatch?this._nextMatch():H==="findagain"?(this._nextMatch(),j&&this._state.highlightAll&&this._updateAllPages()):H==="findhighlightallchange"?(L?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:H=null,pageIndex:Y=-1,matchIndex:G=-1}){if(!this._scrollMatches||!H)return;if(G===-1||G!==this._selected.matchIdx)return;if(Y===-1||Y!==this._selected.pageIdx)return;this._scrollMatches=!1;const j={top:w,left:$};(0,k.scrollIntoView)(H,j,!0)}_reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,m.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=v(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(H,Y){if(Y.query!==this._state.query)return!0;switch(H){case"findagain":const G=this._selected.pageIdx+1,j=this._linkService;return G>=1&&G<=j.pagesCount&&G!==j.page&&!j.isPageVisible(G);case"findhighlightallchange":return!1}return!0}_prepareMatches(H,Y,G){function j(L){const R=H[L],T=H[L+1];if(L<H.length-1&&R.match===T.match)return R.skipped=!0,!0;for(let O=L-1;O>=0;O--){const P=H[O];if(!P.skipped){if(P.match+P.matchLength<R.match)break;if(P.match+P.matchLength>=R.match+R.matchLength)return R.skipped=!0,!0}}return!1}H.sort(function(L,R){return L.match===R.match?L.matchLength-R.matchLength:L.match-R.match});for(let L=0,R=H.length;L<R;L++)j(L)||(Y.push(H[L].match),G.push(H[L].matchLength))}_isEntireWord(H,Y,G){if(Y>0){const L=H.charCodeAt(Y),R=H.charCodeAt(Y-1);if((0,y.getCharacterType)(L)===(0,y.getCharacterType)(R))return!1}const j=Y+G-1;if(j<H.length-1){const L=H.charCodeAt(j),R=H.charCodeAt(j+1);if((0,y.getCharacterType)(L)===(0,y.getCharacterType)(R))return!1}return!0}_calculatePhraseMatch(H,Y,G,j){const L=[],R=H.length;let T=-R;for(;T=G.indexOf(H,T+R),T!==-1;)j&&!this._isEntireWord(G,T,R)||L.push(T);this._pageMatches[Y]=L}_calculateWordMatch(H,Y,G,j){const L=[],R=H.match(/\S+/g);for(let T=0,O=R.length;T<O;T++){const P=R[T],B=P.length;let M=-B;for(;M=G.indexOf(P,M+B),M!==-1;)j&&!this._isEntireWord(G,M,B)||L.push({match:M,matchLength:B,skipped:!1})}this._pageMatchesLength[Y]=[],this._pageMatches[Y]=[],this._prepareMatches(L,this._pageMatches[Y],this._pageMatchesLength[Y])}_calculateMatch(H){let Y=this._pageContents[H],G=this._query;const{caseSensitive:j,entireWord:L,phraseSearch:R}=this._state;if(G.length===0)return;j||(Y=Y.toLowerCase(),G=G.toLowerCase()),R?this._calculatePhraseMatch(G,H,Y,L):this._calculateWordMatch(G,H,Y,L),this._state.highlightAll&&this._updatePage(H),this._resumePageIdx===H&&(this._resumePageIdx=null,this._nextPageMatch());const T=this._pageMatches[H].length;T>0&&(this._matchesCountTotal+=T,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let H=Promise.resolve();for(let Y=0,G=this._linkService.pagesCount;Y<G;Y++){const j=(0,m.createPromiseCapability)();this._extractTextPromises[Y]=j.promise,H=H.then(()=>this._pdfDocument.getPage(Y+1).then(L=>L.getTextContent({normalizeWhitespace:!0})).then(L=>{const R=L.items,T=[];for(let O=0,P=R.length;O<P;O++)T.push(R[O].str);this._pageContents[Y]=v(T.join("")),j.resolve(Y)},L=>{console.error(`Unable to get text content for page ${Y+1}`,L),this._pageContents[Y]="",j.resolve(Y)}))}}_updatePage(H){this._scrollMatches&&this._selected.pageIdx===H&&(this._linkService.page=H+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:H})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const H=this._state.findPrevious,Y=this._linkService.page-1,G=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=Y,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(let L=0;L<G;L++)this._pendingFindMatches[L]!==!0&&(this._pendingFindMatches[L]=!0,this._extractTextPromises[L].then(R=>{delete this._pendingFindMatches[R],this._calculateMatch(R)}))}if(this._query===""){this._updateUIState(a.FOUND);return}if(this._resumePageIdx)return;const j=this._offset;if(this._pagesToSearch=G,j.matchIdx!==null){const L=this._pageMatches[j.pageIdx].length;if(!H&&j.matchIdx+1<L||H&&j.matchIdx>0){j.matchIdx=H?j.matchIdx-1:j.matchIdx+1,this._updateMatch(!0);return}this._advanceOffsetPage(H)}this._nextPageMatch()}_matchesReady(H){const Y=this._offset,G=H.length,j=this._state.findPrevious;return G?(Y.matchIdx=j?G-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(j),Y.wrapped&&(Y.matchIdx=null,this._pagesToSearch<0)?(this._updateMatch(!1),!0):!1)}_nextPageMatch(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let H=null;do{const Y=this._offset.pageIdx;if(H=this._pageMatches[Y],!H){this._resumePageIdx=Y;break}}while(!this._matchesReady(H))}_advanceOffsetPage(H){const Y=this._offset,G=this._linkService.pagesCount;Y.pageIdx=H?Y.pageIdx-1:Y.pageIdx+1,Y.matchIdx=null,this._pagesToSearch--,(Y.pageIdx>=G||Y.pageIdx<0)&&(Y.pageIdx=H?G-1:0,Y.wrapped=!0)}_updateMatch(H=!1){let Y=a.NOT_FOUND;const G=this._offset.wrapped;if(this._offset.wrapped=!1,H){const j=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,Y=G?a.WRAPPED:a.FOUND,j!==-1&&j!==this._selected.pageIdx&&this._updatePage(j)}this._updateUIState(Y,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(H){const Y=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||Y&&this._pdfDocument!==Y||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(a.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){const{pageIdx:H,matchIdx:Y}=this._selected;let G=0,j=this._matchesCountTotal;if(Y!==-1){for(let L=0;L<H;L++)G+=this._pageMatches[L]&&this._pageMatches[L].length||0;G+=Y+1}return(G<1||G>j)&&(G=j=0),{current:G,total:j}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(H,Y){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:H,previous:Y,matchesCount:this._requestMatchesCount()})}}f.PDFFindController=J},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.getCharacterType=ae,f.CharacterType=void 0;const m={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};f.CharacterType=m;function y(H){return H<11904}function k(H){return(H&65408)===0}function a(H){return H>=97&&H<=122||H>=65&&H<=90}function q(H){return H>=48&&H<=57}function w(H){return H===32||H===9||H===13||H===10}function $(H){return H>=13312&&H<=40959||H>=63744&&H<=64255}function Q(H){return H>=12448&&H<=12543}function C(H){return H>=12352&&H<=12447}function v(H){return H>=65376&&H<=65439}function J(H){return(H&65408)===3584}function ae(H){return y(H)?k(H)?w(H)?m.SPACE:a(H)||q(H)||H===95?m.ALPHA_LETTER:m.PUNCT:J(H)?m.THAI_LETTER:H===160?m.SPACE:m.ALPHA_LETTER:$(H)?m.HAN_LETTER:Q(H)?m.KATAKANA_LETTER:C(H)?m.HIRAGANA_LETTER:v(H)?m.HALFWIDTH_KATAKANA_LETTER:m.ALPHA_LETTER}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.isDestHashesEqual=$,f.isDestArraysEqual=Q,f.PDFHistory=void 0;var m=b(3);const y=1e3,k=50,a=1e3;function q(){return document.location.hash}class w{constructor({linkService:v,eventBus:J}){this.linkService=v,this.eventBus=J,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",ae=>{this._isViewerInPresentationMode=ae.active||ae.switchInProgress}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1;const ae=H=>{this.eventBus._off("pagesloaded",ae),this._isPagesLoaded=!!H.pagesCount};this.eventBus._on("pagesloaded",ae)})}initialize({fingerprint:v,resetHistory:J=!1,updateUrl:ae=!1}){if(!v||typeof v!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const H=this._fingerprint!==""&&this._fingerprint!==v;this._fingerprint=v,this._updateUrl=ae===!0,this._initialized=!0,this._bindEvents();const Y=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=q(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(Y,!0)||J){const{hash:j,page:L,rotation:R}=this._parseCurrentHash(!0);if(!j||H||J){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:j,page:L,rotation:R},!0);return}const G=Y.destination;this._updateInternalState(G,Y.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),G.rotation!==void 0&&(this._initialRotation=G.rotation),G.dest?(this._initialBookmark=JSON.stringify(G.dest),this._destination.page=null):G.hash?this._initialBookmark=G.hash:G.page&&(this._initialBookmark=`page=${G.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:v=null,explicitDest:J,pageNumber:ae}){if(!this._initialized)return;if(v&&typeof v!="string"){console.error(`PDFHistory.push: "${v}" is not a valid namedDest parameter.`);return}else if(Array.isArray(J)){if(!(Number.isInteger(ae)&&ae>0&&ae<=this.linkService.pagesCount)&&(ae!==null||this._destination)){console.error(`PDFHistory.push: "${ae}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${J}" is not a valid explicitDest parameter.`);return}const H=v||JSON.stringify(J);if(!H)return;let Y=!1;if(this._destination&&($(this._destination.hash,H)||Q(this._destination.dest,J))){if(this._destination.page)return;Y=!0}this._popStateInProgress&&!Y||(this._pushOrReplaceState({dest:J,hash:H,page:ae,rotation:this.linkService.rotation},Y),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const v=window.history.state;this._isValidState(v)&&v.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const v=window.history.state;this._isValidState(v)&&v.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(v,J=!1){const ae=J||!this._destination,H={fingerprint:this._fingerprint,uid:ae?this._uid:this._uid+1,destination:v};this._updateInternalState(v,H.uid);let Y;if(this._updateUrl&&v&&v.hash){const G=document.location.href.split("#")[0];G.startsWith("file://")||(Y=`${G}#${v.hash}`)}ae?window.history.replaceState(H,"",Y):(this._maxUid=this._uid,window.history.pushState(H,"",Y))}_tryPushCurrentPosition(v=!1){if(!this._position)return;let J=this._position;if(v&&(J=Object.assign(Object.create(null),this._position),J.temporary=!0),!this._destination){this._pushOrReplaceState(J);return}if(this._destination.temporary){this._pushOrReplaceState(J,!0);return}if(this._destination.hash===J.hash||!this._destination.page&&this._numPositionUpdates<=k)return;let ae=!1;if(this._destination.page>=J.first&&this._destination.page<=J.page){if(this._destination.dest||!this._destination.first)return;ae=!0}this._pushOrReplaceState(J,ae)}_isValidState(v,J=!1){if(!v)return!1;if(v.fingerprint!==this._fingerprint)if(J){if(typeof v.fingerprint!="string"||v.fingerprint.length!==this._fingerprint.length)return!1;const[ae]=performance.getEntriesByType("navigation");if(!ae||ae.type!=="reload")return!1}else return!1;return!(!Number.isInteger(v.uid)||v.uid<0||v.destination===null||typeof v.destination!="object")}_updateInternalState(v,J,ae=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),ae&&v&&v.temporary&&delete v.temporary,this._destination=v,this._uid=J,this._numPositionUpdates=0}_parseCurrentHash(v=!1){const J=unescape(q()).substring(1),ae=(0,m.parseQueryString)(J),H=ae.nameddest||"";let Y=ae.page|0;return(!(Number.isInteger(Y)&&Y>0&&Y<=this.linkService.pagesCount)||v&&H.length>0)&&(Y=null),{hash:J,page:Y,rotation:this.linkService.rotation}}_updateViewarea({location:v}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${v.pageNumber}`:v.pdfOpenParams.substring(1),page:this.linkService.page,first:v.pageNumber,rotation:v.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},a))}_popState({state:v}){const J=q(),ae=this._currentHash!==J;if(this._currentHash=J,!v){this._uid++;const{hash:Y,page:G,rotation:j}=this._parseCurrentHash();this._pushOrReplaceState({hash:Y,page:G,rotation:j},!0);return}if(!this._isValidState(v))return;this._popStateInProgress=!0,ae&&(this._blockHashChange++,(0,m.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:y}).then(()=>{this._blockHashChange--}));const H=v.destination;this._updateInternalState(H,v.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,m.isValidRotation)(H.rotation)&&(this.linkService.rotation=H.rotation),H.dest?this.linkService.navigateTo(H.dest):H.hash?this.linkService.setHash(H.hash):H.page&&(this.linkService.page=H.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}f.PDFHistory=w;function $(C,v){if(typeof C!="string"||typeof v!="string")return!1;if(C===v)return!0;const{nameddest:J}=(0,m.parseQueryString)(C);return J===v}function Q(C,v){function J(ae,H){if(typeof ae!=typeof H||Array.isArray(ae)||Array.isArray(H))return!1;if(ae!==null&&typeof ae=="object"&&H!==null){if(Object.keys(ae).length!==Object.keys(H).length)return!1;for(const Y in ae)if(!J(ae[Y],H[Y]))return!1;return!0}return ae===H||Number.isNaN(ae)&&Number.isNaN(H)}if(!(Array.isArray(C)&&Array.isArray(v))||C.length!==v.length)return!1;for(let ae=0,H=C.length;ae<H;ae++)if(!J(C[ae],v[ae]))return!1;return!0}},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFPageView=void 0;var m=b(3),y=b(2),k=b(14),a=b(7);const q=a.viewerCompatibilityParams.maxCanvasPixels||16777216;class w{constructor(Q){const C=Q.container,v=Q.defaultViewport;this.id=Q.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=Q.scale||m.DEFAULT_SCALE,this.viewport=v,this.pdfPageRotate=v.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(Q.textLayerMode)?Q.textLayerMode:m.TextLayerMode.ENABLE,this.imageResourcesPath=Q.imageResourcesPath||"",this.renderInteractiveForms=Q.renderInteractiveForms||!1,this.useOnlyCssZoom=Q.useOnlyCssZoom||!1,this.maxCanvasPixels=Q.maxCanvasPixels||q,this.eventBus=Q.eventBus,this.renderingQueue=Q.renderingQueue,this.textLayerFactory=Q.textLayerFactory,this.annotationLayerFactory=Q.annotationLayerFactory,this.renderer=Q.renderer||m.RendererType.CANVAS,this.enableWebGL=Q.enableWebGL||!1,this.l10n=Q.l10n||m.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=k.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;const J=document.createElement("div");J.className="page",J.style.width=Math.floor(this.viewport.width)+"px",J.style.height=Math.floor(this.viewport.height)+"px",J.setAttribute("data-page-number",this.id),this.div=J,C.appendChild(J)}setPdfPage(Q){this.pdfPage=Q,this.pdfPageRotate=Q.rotate;const C=(this.rotation+this.pdfPageRotate)%360;this.viewport=Q.getViewport({scale:this.scale*m.CSS_UNITS,rotation:C}),this.stats=Q.stats,this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_resetZoomLayer(Q=!1){if(!this.zoomLayer)return;const C=this.zoomLayer.firstChild;this.paintedViewportMap.delete(C),C.width=0,C.height=0,Q&&this.zoomLayer.remove(),this.zoomLayer=null}reset(Q=!1,C=!1){this.cancelRendering(C),this.renderingState=k.RenderingStates.INITIAL;const v=this.div;v.style.width=Math.floor(this.viewport.width)+"px",v.style.height=Math.floor(this.viewport.height)+"px";const J=v.childNodes,ae=Q&&this.zoomLayer||null,H=C&&this.annotationLayer&&this.annotationLayer.div||null;for(let Y=J.length-1;Y>=0;Y--){const G=J[Y];ae===G||H===G||v.removeChild(G)}v.removeAttribute("data-loaded"),H?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),ae||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",v.appendChild(this.loadingIconDiv)}update(Q,C){this.scale=Q||this.scale,typeof C!="undefined"&&(this.rotation=C);const v=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*m.CSS_UNITS,rotation:v}),this.svg){this.cssTransform(this.svg,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}let J=!1;if(this.canvas&&this.maxCanvasPixels>0){const ae=this.outputScale;(Math.floor(this.viewport.width)*ae.sx|0)*(Math.floor(this.viewport.height)*ae.sy|0)>this.maxCanvasPixels&&(J=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&J){this.cssTransform(this.canvas,!0),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});return}!this.zoomLayer&&!this.canvas.hasAttribute("hidden")&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}cancelRendering(Q=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!Q&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(Q,C=!1){const v=this.viewport.width,J=this.viewport.height,ae=this.div;Q.style.width=Q.parentNode.style.width=ae.style.width=Math.floor(v)+"px",Q.style.height=Q.parentNode.style.height=ae.style.height=Math.floor(J)+"px";const H=this.viewport.rotation-this.paintedViewportMap.get(Q).rotation,Y=Math.abs(H);let G=1,j=1;(Y===90||Y===270)&&(G=J/v,j=v/J);const L="rotate("+H+"deg) scale("+G+","+j+")";if(Q.style.transform=L,this.textLayer){const R=this.textLayer.viewport,T=this.viewport.rotation-R.rotation,O=Math.abs(T);let P=v/R.width;(O===90||O===270)&&(P=v/R.height);const B=this.textLayer.textLayerDiv;let M,F;switch(O){case 0:M=F=0;break;case 90:M=0,F="-"+B.style.height;break;case 180:M="-"+B.style.width,F="-"+B.style.height;break;case 270:M="-"+B.style.width,F=0;break;default:console.error("Bad rotation value.");break}B.style.transform="rotate("+O+"deg) scale("+P+", "+P+") translate("+M+", "+F+")",B.style.transformOrigin="0% 0%"}C&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(Q,C){return this.viewport.convertToPdfPoint(Q,C)}draw(){this.renderingState!==k.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:Q,pdfPage:C}=this;if(!C)return this.renderingState=k.RenderingStates.FINISHED,this.loadingIconDiv&&(Q.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=k.RenderingStates.RUNNING;const v=document.createElement("div");v.style.width=Q.style.width,v.style.height=Q.style.height,v.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?Q.insertBefore(v,this.annotationLayer.div):Q.appendChild(v);let J=null;if(this.textLayerMode!==m.TextLayerMode.DISABLE&&this.textLayerFactory){const j=document.createElement("div");j.className="textLayer",j.style.width=v.style.width,j.style.height=v.style.height,this.annotationLayer&&this.annotationLayer.div?Q.insertBefore(j,this.annotationLayer.div):Q.appendChild(j),J=this.textLayerFactory.createTextLayerBuilder(j,this.id-1,this.viewport,this.textLayerMode===m.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=J;let ae=null;this.renderingQueue&&(ae=j=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=k.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=k.RenderingStates.RUNNING,j()};return}j()});const H=async j=>{if(Y===this.paintTask&&(this.paintTask=null),j instanceof y.RenderingCancelledException){this.error=null;return}if(this.renderingState=k.RenderingStates.FINISHED,this.loadingIconDiv&&(Q.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.error=j,this.stats=C.stats,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now()}),j)throw j},Y=this.renderer===m.RendererType.SVG?this.paintOnSvg(v):this.paintOnCanvas(v);Y.onRenderContinue=ae,this.paintTask=Y;const G=Y.promise.then(function(){return H(null).then(function(){if(J){const j=C.streamTextContent({normalizeWhitespace:!0});J.setTextContentStream(j),J.render()}})},function(j){return H(j)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(Q,C,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),Q.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),G}paintOnCanvas(Q){const C=(0,y.createPromiseCapability)(),v={promise:C.promise,onRenderContinue(B){B()},cancel(){P.cancel()}},J=this.viewport,ae=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(B=>{ae.setAttribute("aria-label",B)}),ae.setAttribute("hidden","hidden");let H=!0;const Y=function(){H&&(ae.removeAttribute("hidden"),H=!1)};Q.appendChild(ae),this.canvas=ae,ae.mozOpaque=!0;const G=ae.getContext("2d",{alpha:!1}),j=(0,m.getOutputScale)(G);if(this.outputScale=j,this.useOnlyCssZoom){const B=J.clone({scale:m.CSS_UNITS});j.sx*=B.width/J.width,j.sy*=B.height/J.height,j.scaled=!0}if(this.maxCanvasPixels>0){const B=J.width*J.height,M=Math.sqrt(this.maxCanvasPixels/B);j.sx>M||j.sy>M?(j.sx=M,j.sy=M,j.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const L=(0,m.approximateFraction)(j.sx),R=(0,m.approximateFraction)(j.sy);ae.width=(0,m.roundToDivide)(J.width*j.sx,L[0]),ae.height=(0,m.roundToDivide)(J.height*j.sy,R[0]),ae.style.width=(0,m.roundToDivide)(J.width,L[1])+"px",ae.style.height=(0,m.roundToDivide)(J.height,R[1])+"px",this.paintedViewportMap.set(ae,J);const T=j.scaled?[j.sx,0,0,j.sy,0,0]:null,O={canvasContext:G,transform:T,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},P=this.pdfPage.render(O);return P.onContinue=function(B){Y(),v.onRenderContinue?v.onRenderContinue(B):B()},P.promise.then(function(){Y(),C.resolve(void 0)},function(B){Y(),C.reject(B)}),v}paintOnSvg(Q){let C=!1;const v=()=>{if(C)throw new y.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},J=this.pdfPage,ae=this.viewport.clone({scale:m.CSS_UNITS});return{promise:J.getOperatorList().then(Y=>(v(),new y.SVGGraphics(J.commonObjs,J.objs).getSVG(Y,ae).then(j=>{v(),this.svg=j,this.paintedViewportMap.set(j,ae),j.style.width=Q.style.width,j.style.height=Q.style.height,this.renderingState=k.RenderingStates.FINISHED,Q.appendChild(j)}))),onRenderContinue(Y){Y()},cancel(){C=!0}}}setPageLabel(Q){this.pageLabel=typeof Q=="string"?Q:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}f.PDFPageView=w},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFRenderingQueue=f.RenderingStates=void 0;const m=3e4,y={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};f.RenderingStates=y;class k{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(q){this.pdfViewer=q}setThumbnailViewer(q){this.pdfThumbnailViewer=q}isHighestPriority(q){return this.highestPriorityPage===q.renderingId}renderHighestPriority(q){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(q)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),m)))}getHighestPriority(q,w,$){const Q=q.views,C=Q.length;if(C===0)return null;for(let v=0;v<C;++v){const J=Q[v].view;if(!this.isViewFinished(J))return J}if($){const v=q.last.id;if(w[v]&&!this.isViewFinished(w[v]))return w[v]}else{const v=q.first.id-2;if(w[v]&&!this.isViewFinished(w[v]))return w[v]}return null}isViewFinished(q){return q.renderingState===y.FINISHED}renderView(q){switch(q.renderingState){case y.FINISHED:return!1;case y.PAUSED:this.highestPriorityPage=q.renderingId,q.resume();break;case y.RUNNING:this.highestPriorityPage=q.renderingId;break;case y.INITIAL:this.highestPriorityPage=q.renderingId,q.draw().finally(()=>{this.renderHighestPriority()}).catch(w=>{console.error(`renderView: "${w}"`)});break}return!0}}f.PDFRenderingQueue=k},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFSinglePageViewer=void 0;var m=b(16),y=b(2);class k extends m.BaseViewer{constructor(q){super(q),this.eventBus._on("pagesinit",w=>{this._ensurePageViewVisible()})}get _viewerElement(){return(0,y.shadow)(this,"_viewerElement",this._shadowViewer)}_resetView(){super._resetView(),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}_ensurePageViewVisible(){const q=this._pages[this._currentPageNumber-1],w=this._pages[this._previousPageNumber-1],$=this.viewer.childNodes;switch($.length){case 0:this.viewer.appendChild(q.div);break;case 1:if($[0]!==w.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(q===w)break;this._shadowViewer.appendChild(w.div),this.viewer.appendChild(q.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}_scrollUpdate(){this._updateScrollDown&&this._updateScrollDown(),super._scrollUpdate()}_scrollIntoView({pageDiv:q,pageSpot:w=null,pageNumber:$=null}){$&&this._setCurrentPageNumber($);const Q=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:q,pageSpot:w,pageNumber:$}),this._updateScrollDown=()=>{this.scroll.down=Q,this._updateScrollDown=null}}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(q){}get _isScrollModeHorizontal(){return(0,y.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}}f.PDFSinglePageViewer=k},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.BaseViewer=void 0;var m=b(3),y=b(14),k=b(1),a=b(2),q=b(13),w=b(4),$=b(5);const Q=10;function C(ae){const H=[];this.push=function(Y){const G=H.indexOf(Y);G>=0&&H.splice(G,1),H.push(Y),H.length>ae&&H.shift().destroy()},this.resize=function(Y,G){if(ae=Y,G){const j=new Set;for(let L=0,R=G.length;L<R;++L)j.add(G[L].id);(0,m.moveToEndOfArray)(H,function(L){return j.has(L.id)})}for(;H.length>ae;)H.shift().destroy()}}function v(ae,H){return H===ae||Math.abs(H-ae)<1e-15}class J{constructor(H){if(this.constructor===J)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=H.container,this.viewer=H.viewer||H.container.firstElementChild,this.eventBus=H.eventBus,this.linkService=H.linkService||new w.SimpleLinkService,this.downloadManager=H.downloadManager||null,this.findController=H.findController||null,this.removePageBorders=H.removePageBorders||!1,this.textLayerMode=Number.isInteger(H.textLayerMode)?H.textLayerMode:m.TextLayerMode.ENABLE,this.imageResourcesPath=H.imageResourcesPath||"",this.renderInteractiveForms=H.renderInteractiveForms||!1,this.enablePrintAutoRotate=H.enablePrintAutoRotate||!1,this.renderer=H.renderer||m.RendererType.CANVAS,this.enableWebGL=H.enableWebGL||!1,this.useOnlyCssZoom=H.useOnlyCssZoom||!1,this.maxCanvasPixels=H.maxCanvasPixels,this.l10n=H.l10n||m.NullL10n,this.defaultRenderingQueue=!H.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new y.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=H.renderingQueue,this.scroll=(0,m.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=m.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(H){return this._pages[H]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(H){return H&&H.pdfPage}):!1}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(H){if(!Number.isInteger(H))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(H,!0)||console.error(`${this._name}.currentPageNumber: "${H}" is not a valid page.`)}_setCurrentPageNumber(H,Y=!1){return this._currentPageNumber===H?(Y&&this._resetCurrentPageView(),!0):0<H&&H<=this.pagesCount?(this._currentPageNumber=H,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:H,pageLabel:this._pageLabels&&this._pageLabels[H-1]}),Y&&this._resetCurrentPageView(),!0):!1}get currentPageLabel(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]}set currentPageLabel(H){if(!this.pdfDocument)return;let Y=H|0;if(this._pageLabels){const G=this._pageLabels.indexOf(H);G>=0&&(Y=G+1)}this._setCurrentPageNumber(Y,!0)||console.error(`${this._name}.currentPageLabel: "${H}" is not a valid page.`)}get currentScale(){return this._currentScale!==m.UNKNOWN_SCALE?this._currentScale:m.DEFAULT_SCALE}set currentScale(H){if(isNaN(H))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(H,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(H){!this.pdfDocument||this._setScale(H,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(H){if(!(0,m.isValidRotation)(H))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||this._pagesRotation===H)return;this._pagesRotation=H;const Y=this._currentPageNumber;for(let G=0,j=this._pages.length;G<j;G++){const L=this._pages[G];L.update(L.scale,H)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:H,pageNumber:Y}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _viewerElement(){throw new Error("Not implemented: _viewerElement")}_onePageRenderedOrForceFetch(){return!this.container.offsetParent||this._getVisiblePages().views.length===0?Promise.resolve():this._onePageRenderedCapability.promise}setDocument(H){if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=H,!H)return;const Y=H.numPages,G=H.getPage(1);this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Y})}),this._onBeforeDraw=j=>{const L=this._pages[j.pageNumber-1];!L||this._buffer.push(L)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=j=>{j.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),G.then(j=>{this._firstPageCapability.resolve(j);const L=this.currentScale,R=j.getViewport({scale:L*m.CSS_UNITS}),T=this.textLayerMode!==m.TextLayerMode.DISABLE?this:null;for(let P=1;P<=Y;++P){const B=new q.PDFPageView({container:this._viewerElement,eventBus:this.eventBus,id:P,scale:L,defaultViewport:R.clone(),renderingQueue:this.renderingQueue,textLayerFactory:T,textLayerMode:this.textLayerMode,annotationLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,renderer:this.renderer,enableWebGL:this.enableWebGL,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n});this._pages.push(B)}const O=this._pages[0];O&&(O.setPdfPage(j),this.linkService.cachePageRef(1,j.ref)),this._spreadMode!==m.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedOrForceFetch().then(()=>{if(this.findController&&this.findController.setDocument(H),H.loadingParams.disableAutoFetch||Y>7500){this._pagesCapability.resolve();return}let P=Y-1;if(P<=0){this._pagesCapability.resolve();return}for(let B=2;B<=Y;++B)H.getPage(B).then(M=>{const F=this._pages[B-1];F.pdfPage||F.setPdfPage(M),this.linkService.cachePageRef(B,M.ref),--P===0&&this._pagesCapability.resolve()},M=>{console.error(`Unable to get page ${B} to initialize viewer`,M),--P===0&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(j=>{console.error("Unable to initialize viewer",j)})}setPageLabels(H){if(!!this.pdfDocument){H?Array.isArray(H)&&this.pdfDocument.numPages===H.length?this._pageLabels=H:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let Y=0,G=this._pages.length;Y<G;Y++){const j=this._pages[Y],L=this._pageLabels&&this._pageLabels[Y];j.setPageLabel(L)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=m.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new C(Q),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=m.ScrollMode.VERTICAL,this._spreadMode=m.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}_scrollUpdate(){this.pagesCount!==0&&this.update()}_scrollIntoView({pageDiv:H,pageSpot:Y=null,pageNumber:G=null}){(0,m.scrollIntoView)(H,Y)}_setScaleUpdatePages(H,Y,G=!1,j=!1){if(this._currentScaleValue=Y.toString(),v(this._currentScale,H)){j&&this.eventBus.dispatch("scalechanging",{source:this,scale:H,presetValue:Y});return}for(let L=0,R=this._pages.length;L<R;L++)this._pages[L].update(H);if(this._currentScale=H,!G){let L=this._currentPageNumber,R;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(L=this._location.pageNumber,R=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:L,destArray:R,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:H,presetValue:j?Y:void 0}),this.defaultRenderingQueue&&this.update()}_setScale(H,Y=!1){let G=parseFloat(H);if(G>0)this._setScaleUpdatePages(G,H,Y,!1);else{const j=this._pages[this._currentPageNumber-1];if(!j)return;const L=this.isInPresentationMode||this.removePageBorders;let R=L?0:m.SCROLLBAR_PADDING,T=L?0:m.VERTICAL_PADDING;!L&&this._isScrollModeHorizontal&&([R,T]=[T,R]);const O=(this.container.clientWidth-R)/j.width*j.scale,P=(this.container.clientHeight-T)/j.height*j.scale;switch(H){case"page-actual":G=1;break;case"page-width":G=O;break;case"page-height":G=P;break;case"page-fit":G=Math.min(O,P);break;case"auto":const B=(0,m.isPortraitOrientation)(j)?O:Math.min(P,O);G=Math.min(m.MAX_AUTO_SCALE,B);break;default:console.error(`${this._name}._setScale: "${H}" is an unknown zoom value.`);return}this._setScaleUpdatePages(G,H,Y,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);const H=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:H.div})}scrollPageIntoView({pageNumber:H,destArray:Y=null,allowNegativeOffset:G=!1,ignoreDestinationZoom:j=!1}){if(!this.pdfDocument)return;const L=Number.isInteger(H)&&this._pages[H-1];if(!L){console.error(`${this._name}.scrollPageIntoView: "${H}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!Y){this._setCurrentPageNumber(H,!0);return}let R=0,T=0,O=0,P=0,B,M;const F=L.rotation%180!==0,S=(F?L.height:L.width)/L.scale/m.CSS_UNITS,A=(F?L.width:L.height)/L.scale/m.CSS_UNITS;let E=0;switch(Y[1].name){case"XYZ":R=Y[2],T=Y[3],E=Y[4],R=R!==null?R:0,T=T!==null?T:A;break;case"Fit":case"FitB":E="page-fit";break;case"FitH":case"FitBH":T=Y[2],E="page-width",T===null&&this._location&&(R=this._location.left,T=this._location.top);break;case"FitV":case"FitBV":R=Y[2],O=S,P=A,E="page-height";break;case"FitR":R=Y[2],T=Y[3],O=Y[4]-R,P=Y[5]-T;const U=this.removePageBorders?0:m.SCROLLBAR_PADDING,z=this.removePageBorders?0:m.VERTICAL_PADDING;B=(this.container.clientWidth-U)/O/m.CSS_UNITS,M=(this.container.clientHeight-z)/P/m.CSS_UNITS,E=Math.min(Math.abs(B),Math.abs(M));break;default:console.error(`${this._name}.scrollPageIntoView: "${Y[1].name}" is not a valid destination type.`);return}if(j||(E&&E!==this._currentScale?this.currentScaleValue=E:this._currentScale===m.UNKNOWN_SCALE&&(this.currentScaleValue=m.DEFAULT_SCALE_VALUE)),E==="page-fit"&&!Y[4]){this._scrollIntoView({pageDiv:L.div,pageNumber:H});return}const _=[L.viewport.convertToViewportPoint(R,T),L.viewport.convertToViewportPoint(R+O,T+P)];let D=Math.min(_[0][0],_[1][0]),N=Math.min(_[0][1],_[1][1]);G||(D=Math.max(D,0),N=Math.max(N,0)),this._scrollIntoView({pageDiv:L.div,pageSpot:{left:D,top:N},pageNumber:H})}_updateLocation(H){const Y=this._currentScale,G=this._currentScaleValue,j=parseFloat(G)===Y?Math.round(Y*1e4)/100:G,L=H.id;let R="#page="+L;R+="&zoom="+j;const T=this._pages[L-1],O=this.container,P=T.getPagePoint(O.scrollLeft-H.x,O.scrollTop-H.y),B=Math.round(P[0]),M=Math.round(P[1]);R+=","+B+","+M,this._location={pageNumber:L,scale:j,top:M,left:B,rotation:this._pagesRotation,pdfOpenParams:R}}_updateHelper(H){throw new Error("Not implemented: _updateHelper")}update(){const H=this._getVisiblePages(),Y=H.views,G=Y.length;if(G===0)return;const j=Math.max(Q,2*G+1);this._buffer.resize(j,Y),this.renderingQueue.renderHighestPriority(H),this._updateHelper(Y),this._updateLocation(H.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(H){return this.container.contains(H)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return this.isInPresentationMode?!1:this._scrollMode===m.ScrollMode.HORIZONTAL}get isInPresentationMode(){return this.presentationModeState===m.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===m.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const H=this._pages[this._currentPageNumber-1],Y=H.div,G={id:H.id,x:Y.offsetLeft+Y.clientLeft,y:Y.offsetTop+Y.clientTop,view:H};return{first:G,last:G,views:[G]}}_getVisiblePages(){return(0,m.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}isPageVisible(H){return this.pdfDocument?H<1||H>this.pagesCount?(console.error(`${this._name}.isPageVisible: "${H}" is out of bounds.`),!1):this._getVisiblePages().views.some(function(Y){return Y.id===H}):!1}cleanup(){for(let H=0,Y=this._pages.length;H<Y;H++)this._pages[H]&&this._pages[H].renderingState!==y.RenderingStates.FINISHED&&this._pages[H].reset()}_cancelRendering(){for(let H=0,Y=this._pages.length;H<Y;H++)this._pages[H]&&this._pages[H].cancelRendering()}_ensurePdfPageLoaded(H){if(H.pdfPage)return Promise.resolve(H.pdfPage);if(this._pagesRequests.has(H))return this._pagesRequests.get(H);const Y=this.pdfDocument.getPage(H.id).then(G=>(H.pdfPage||H.setPdfPage(G),this._pagesRequests.delete(H),G)).catch(G=>{console.error("Unable to get page for page view",G),this._pagesRequests.delete(H)});return this._pagesRequests.set(H,Y),Y}forceRendering(H){const Y=H||this._getVisiblePages(),G=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,j=this.renderingQueue.getHighestPriority(Y,this._pages,G);return j?(this._ensurePdfPageLoaded(j).then(()=>{this.renderingQueue.renderView(j)}),!0):!1}createTextLayerBuilder(H,Y,G,j=!1,L){return new $.TextLayerBuilder({textLayerDiv:H,eventBus:L,pageIndex:Y,viewport:G,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:this.isInPresentationMode?!1:j})}createAnnotationLayerBuilder(H,Y,G="",j=!1,L=m.NullL10n){return new k.AnnotationLayerBuilder({pageDiv:H,pdfPage:Y,imageResourcesPath:G,renderInteractiveForms:j,linkService:this.linkService,downloadManager:this.downloadManager,l10n:L})}get hasEqualPageSizes(){const H=this._pages[0];for(let Y=1,G=this._pages.length;Y<G;++Y){const j=this._pages[Y];if(j.width!==H.width||j.height!==H.height)return!1}return!0}getPagesOverview(){const H=this._pages.map(function(G){const j=G.pdfPage.getViewport({scale:1});return{width:j.width,height:j.height,rotation:j.rotation}});if(!this.enablePrintAutoRotate)return H;const Y=(0,m.isPortraitOrientation)(H[0]);return H.map(function(G){return Y===(0,m.isPortraitOrientation)(G)?G:{width:G.height,height:G.width,rotation:(G.rotation+90)%360}})}get scrollMode(){return this._scrollMode}set scrollMode(H){if(this._scrollMode!==H){if(!(0,m.isValidScrollMode)(H))throw new Error(`Invalid scroll mode: ${H}`);this._scrollMode=H,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:H}),this._updateScrollMode(this._currentPageNumber)}}_updateScrollMode(H=null){const Y=this._scrollMode,G=this.viewer;G.classList.toggle("scrollHorizontal",Y===m.ScrollMode.HORIZONTAL),G.classList.toggle("scrollWrapped",Y===m.ScrollMode.WRAPPED),!(!this.pdfDocument||!H)&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(H,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(H){if(this._spreadMode!==H){if(!(0,m.isValidSpreadMode)(H))throw new Error(`Invalid spread mode: ${H}`);this._spreadMode=H,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:H}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(H=null){if(!this.pdfDocument)return;const Y=this.viewer,G=this._pages;if(Y.textContent="",this._spreadMode===m.SpreadMode.NONE)for(let j=0,L=G.length;j<L;++j)Y.appendChild(G[j].div);else{const j=this._spreadMode-1;let L=null;for(let R=0,T=G.length;R<T;++R)L===null?(L=document.createElement("div"),L.className="spread",Y.appendChild(L)):R%2===j&&(L=L.cloneNode(!1),Y.appendChild(L)),L.appendChild(G[R].div)}!H||(this._setCurrentPageNumber(H,!0),this.update())}}f.BaseViewer=J},function(g,f,b){Object.defineProperty(f,"__esModule",{value:!0}),f.PDFViewer=void 0;var m=b(16),y=b(2);class k extends m.BaseViewer{get _viewerElement(){return(0,y.shadow)(this,"_viewerElement",this.viewer)}_scrollIntoView({pageDiv:q,pageSpot:w=null,pageNumber:$=null}){if(!w&&!this.isInPresentationMode){const Q=q.offsetLeft+q.clientLeft,C=Q+q.clientWidth,{scrollLeft:v,clientWidth:J}=this.container;(this._isScrollModeHorizontal||Q<v||C>v+J)&&(w={left:0,top:0})}super._scrollIntoView({pageDiv:q,pageSpot:w,pageNumber:$})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(q){if(this.isInPresentationMode)return;let w=this._currentPageNumber,$=!1;for(const Q of q){if(Q.percent<100)break;if(Q.id===w){$=!0;break}}$||(w=q[0].id),this._setCurrentPageNumber(w)}}f.PDFViewer=k}])})})(pdf_viewer);var resize_vue_vue_type_style_index_0_lang="";const _sfc_main$7={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var u=this.$el.firstChild,d=this.$el.lastChild;u.scrollLeft=1e5,u.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(u){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(){var u="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",d="position: absolute; left: 0; top: 0;";return h("div",{style:u+"animation-name: resizeSensorVisibility;",onanimationstart:this.update},[h("div",{style:u,onScroll:this.update},[h("div",{style:d+"width: 100000px; height: 100000px;"})]),h("div",{style:u,onScroll:this.update},[h("div",{style:d+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(this.initial===!0&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var u=function(){this.update(),d()}.bind(this),d=function(){this.$el.detachEvent("onresize",u),this.$off("resizeSensorBeforeDestroy",d)}.bind(this);this.$el.attachEvent("onresize",u),this.$on("resizeSensorBeforeDestroy",d),this.reset()}}};var pdf_viewer_css_vue_type_style_index_0_src_f48af30e_lang="";function isPDFDocumentLoadingTask(u){return typeof u=="object"&&u!==null&&u.__PDFDocumentLoadingTask===!0}function createLoadingTask(u,d){let g;if(typeof u=="string")g={url:u};else if(typeof u=="object"&&u!==null)g=Object.assign({},u);else throw new TypeError("invalid src type");const f=pdf$1.exports.getDocument(g).promise;return f.__PDFDocumentLoadingTask=!0,d!=null&&d.onPassword&&(f.onPassword=d.onPassword),d!=null&&d.onProgress&&(f.onProgress=d.onProgress),f}const _sfc_main$6={createLoadingTask,components:{resizeSensor:_sfc_main$7},props:{src:{type:[String,Object,Promise],default:""},page:{type:Number,default:1},rotate:{type:Number,default:0},scale:{type:[Number,String],default:"page-width"},resize:{type:Boolean,default:!1},annotation:{type:Boolean,default:!1},text:{type:Boolean,default:!0}},data:function(){return{internalSrc:this.src,pdf:null,pdfViewer:null,loading:!0}},watch:{pdf:function(u){const d=u.pdfInfo||u._pdfInfo;this.$emit("numpages",d.numPages)},page:function(u){this.pdf.getPage(u).then(d=>{this.pdfViewer.setPdfPage(d),this.pdfViewer.draw()})},scale:function(u){this.drawScaled(u)},rotate:function(u){this.pdfViewer&&(this.pdfViewer.update(this.scale,u),this.pdfViewer.draw())}},mounted:function(){isPDFDocumentLoadingTask(this.internalSrc)||(this.internalSrc=createLoadingTask(this.internalSrc),this.$emit("loading",!0));const u=this.$refs.container,d=new pdf_viewer.exports.EventBus;this.pdfLinkService=new pdf_viewer.exports.PDFLinkService({eventBus:d,externalLinkTarget:2}),this.pdfFindController=new pdf_viewer.exports.PDFFindController({eventBus:d,linkService:this.pdfLinkService});let g,f;this.annotation&&(g=new pdf_viewer.exports.DefaultAnnotationLayerFactory),this.text&&(f=new pdf_viewer.exports.DefaultTextLayerFactory),this.internalSrc.then(b=>(this.pdf=b,b.getPage(this.page))).then(b=>{this.pdfViewer=new pdf_viewer.exports.PDFPageView({container:u,id:this.page,scale:1,defaultViewport:b.getViewport({scale:1}),eventBus:d,textLayerFactory:f,annotationLayerFactory:g}),this.pdfViewer.setPdfPage(b);const m={scrollPageIntoView:y=>{this.$emit("link-clicked",y)}};this.pdfLinkService.setDocument(this.pdf),this.pdfLinkService.setViewer(m),this.pdfFindController.setDocument(this.pdf),this.drawScaled(this.scale),this.loading=!1,this.$emit("loading",!1)}).catch(b=>{this.$emit("error",b),this.loading=!1,this.$emit("loading",!1)})},beforeUnmount(){this.pdfViewer&&(this.pdfViewer.destroy(),this.pdfViewer=null)},methods:{calculateScale:function(u=-1,d=-1){return this.pdfViewer.update(1,this.rotate),u===-1&&d===-1&&(u=this.$refs.container.offsetWidth),u/this.pdfViewer.viewport.width},calculateScaleHeight:function(){this.pdfViewer.update(1,this.rotate);const u=this.$refs.container.offsetHeight;return this.$refs.container.parentElement.parentElement.offsetHeight/u},drawScaled:function(u){this.pdfViewer&&(u==="page-width"?(u=this.calculateScale(),this.$emit("update:scale",u)):u==="page-height"&&(u=this.calculateScaleHeight(),this.$emit("update:scale",u)),this.pdfViewer.update(u,this.rotate),this.annotation&&(this.pdfViewer.annotationLayer=this.pdfViewer.annotationLayerFactory.createAnnotationLayerBuilder(this.pdfViewer.div,this.pdfViewer.pdfPage),this.pdfViewer.annotationLayer.linkService=this.pdfLinkService),this.pdfViewer.draw(),this.text&&(this.pdfViewer.textLayer.findController=this.pdfFindController),this.loading=!1,this.$emit("loading",!1))},resizeScale:function(){this.resize&&this.drawScaled("page-width")}}},_hoisted_1$4={id:"viewerContainer",ref:"container"};function _sfc_render$6(u,d,g,f,b,m){const y=resolveComponent("resizeSensor");return openBlock(),createElementBlock("div",null,[u.loading?renderSlot(u.$slots,"loading",{key:0}):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1$4,[d[0]||(d[0]=createBaseVNode("div",{id:"viewer",class:"pdfViewer"},null,-1)),createVNode(y,{initial:!0,onResize:m.resizeScale},null,8,["onResize"])],512)])}var pdf=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]),PdfViewer_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$5={components:{pdf},props:["pdfUrl"],data(){return{page:1,numPages:0,pdfdata:void 0,errors:[],scale:"page-width"}},mounted(){this.getPdf()},methods:{getPdf(){this.pdfdata=pdf.createLoadingTask(this.pdfUrl),this.pdfdata.then(u=>{this.numPages=u.numPages})}}},_hoisted_1$3={id:"pdfvuer"};function _sfc_render$5(u,d,g,f,b,m){const y=resolveComponent("pdf");return openBlock(),createElementBlock("div",_hoisted_1$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(b.numPages,k=>(openBlock(),createBlock(y,{src:b.pdfdata,key:k,id:k,page:k,scale:b.scale,"onUpdate:scale":d[0]||(d[0]=a=>b.scale=a),style:{width:"100%",margin:"20px auto"},annotation:!0,resize:!0},{loading:withCtx(()=>d[1]||(d[1]=[createTextVNode(" loading content here... ")])),_:2},1032,["src","id","page","scale"]))),128))])}var PdfViewer=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-f14388a6"]]),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([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]),fdeb=new u8([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]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(u,d){for(var g=new u16(31),f=0;f<31;++f)g[f]=d+=1<<u[f-1];for(var b=new i32(g[30]),f=1;f<30;++f)for(var m=g[f];m<g[f+1];++m)b[m]=m-g[f]<<5|f;return{b:g,r:b}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b.b,rev=new u16(32768);for(var i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}var hMap=function(u,d,g){for(var f=u.length,b=0,m=new u16(d);b<f;++b)u[b]&&++m[u[b]-1];var y=new u16(d);for(b=1;b<d;++b)y[b]=y[b-1]+m[b-1]<<1;var k;if(g){k=new u16(1<<d);var a=15-d;for(b=0;b<f;++b)if(u[b])for(var q=b<<4|u[b],w=d-u[b],$=y[u[b]-1]++<<w,Q=$|(1<<w)-1;$<=Q;++$)k[rev[$]>>a]=q}else for(k=new u16(f),b=0;b<f;++b)u[b]&&(k[b]=rev[y[u[b]-1]++]>>15-u[b]);return k},flt=new u8(288);for(var i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;var fdt=new u8(32);for(var i=0;i<32;++i)fdt[i]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function(u){for(var d=u[0],g=1;g<u.length;++g)u[g]>d&&(d=u[g]);return d},bits=function(u,d,g){var f=d/8|0;return(u[f]|u[f+1]<<8)>>(d&7)&g},bits16=function(u,d){var g=d/8|0;return(u[g]|u[g+1]<<8|u[g+2]<<16)>>(d&7)},shft=function(u){return(u+7)/8|0},slc=function(u,d,g){return(d==null||d<0)&&(d=0),(g==null||g>u.length)&&(g=u.length),new u8(u.subarray(d,g))},ec=["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"],err=function(u,d,g){var f=new Error(d||ec[u]);if(f.code=u,Error.captureStackTrace&&Error.captureStackTrace(f,err),!g)throw f;return f},inflt=function(u,d,g,f){var b=u.length,m=f?f.length:0;if(!b||d.f&&!d.l)return g||new u8(0);var y=!g,k=y||d.i!=2,a=d.i;y&&(g=new u8(b*3));var q=function(ce){var he=g.length;if(ce>he){var oe=new u8(Math.max(he*2,ce));oe.set(g),g=oe}},w=d.f||0,$=d.p||0,Q=d.b||0,C=d.l,v=d.d,J=d.m,ae=d.n,H=b*8;do{if(!C){w=bits(u,$,1);var Y=bits(u,$+1,3);if($+=3,Y)if(Y==1)C=flrm,v=fdrm,J=9,ae=5;else if(Y==2){var R=bits(u,$,31)+257,T=bits(u,$+10,15)+4,O=R+bits(u,$+5,31)+1;$+=14;for(var P=new u8(O),B=new u8(19),M=0;M<T;++M)B[clim[M]]=bits(u,$+M*3,7);$+=T*3;for(var F=max(B),S=(1<<F)-1,A=hMap(B,F,1),M=0;M<O;){var E=A[bits(u,$,S)];$+=E&15;var G=E>>4;if(G<16)P[M++]=G;else{var _=0,D=0;for(G==16?(D=3+bits(u,$,3),$+=2,_=P[M-1]):G==17?(D=3+bits(u,$,7),$+=3):G==18&&(D=11+bits(u,$,127),$+=7);D--;)P[M++]=_}}var N=P.subarray(0,R),U=P.subarray(R);J=max(N),ae=max(U),C=hMap(N,J,1),v=hMap(U,ae,1)}else err(1);else{var G=shft($)+4,j=u[G-4]|u[G-3]<<8,L=G+j;if(L>b){a&&err(0);break}k&&q(Q+j),g.set(u.subarray(G,L),Q),d.b=Q+=j,d.p=$=L*8,d.f=w;continue}if($>H){a&&err(0);break}}k&&q(Q+131072);for(var z=(1<<J)-1,te=(1<<ae)-1,W=$;;W=$){var _=C[bits16(u,$)&z],re=_>>4;if($+=_&15,$>H){a&&err(0);break}if(_||err(2),re<256)g[Q++]=re;else if(re==256){W=$,C=null;break}else{var ee=re-254;if(re>264){var M=re-257,X=fleb[M];ee=bits(u,$,(1<<X)-1)+fl[M],$+=X}var K=v[bits16(u,$)&te],Z=K>>4;K||err(3),$+=K&15;var U=fd[Z];if(Z>3){var X=fdeb[Z];U+=bits16(u,$)&(1<<X)-1,$+=X}if($>H){a&&err(0);break}k&&q(Q+131072);var se=Q+ee;if(Q<U){var ie=m-U,de=Math.min(U,se);for(ie+Q<0&&err(3);Q<de;++Q)g[Q]=f[ie+Q]}for(;Q<se;++Q)g[Q]=g[Q-U]}}d.l=C,d.p=W,d.b=Q,d.f=w,C&&(w=1,d.m=J,d.d=v,d.n=ae)}while(!w);return Q!=g.length&&y?slc(g,0,Q):g.subarray(0,Q)},et=new u8(0),gzs=function(u){(u[0]!=31||u[1]!=139||u[2]!=8)&&err(6,"invalid gzip data");var d=u[3],g=10;d&4&&(g+=(u[10]|u[11]<<8)+2);for(var f=(d>>3&1)+(d>>4&1);f>0;f-=!u[g++]);return g+(d&2)},gzl=function(u){var d=u.length;return(u[d-4]|u[d-3]<<8|u[d-2]<<16|u[d-1]<<24)>>>0},zls=function(u,d){return((u[0]&15)!=8||u[0]>>4>7||(u[0]<<8|u[1])%31)&&err(6,"invalid zlib data"),(u[1]>>5&1)==+!d&&err(6,"invalid zlib data: "+(u[1]&32?"need":"unexpected")+" dictionary"),(u[1]>>3&4)+2};function inflateSync(u,d){return inflt(u,{i:2},d&&d.out,d&&d.dictionary)}function gunzipSync(u,d){var g=gzs(u);return g+8>u.length&&err(6,"invalid gzip data"),inflt(u.subarray(g,-8),{i:2},d&&d.out||new u8(gzl(u)),d&&d.dictionary)}function unzlibSync(u,d){return inflt(u.subarray(zls(u,d&&d.dictionary),-4),{i:2},d&&d.out,d&&d.dictionary)}function decompressSync(u,d){return u[0]==31&&u[1]==139&&u[2]==8?gunzipSync(u,d):(u[0]&15)!=8||u[0]>>4>7||(u[0]<<8|u[1])%31?inflateSync(u,d):unzlibSync(u,d)}var td=typeof TextDecoder!="undefined"&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(u){}var dutf8=function(u){for(var d="",g=0;;){var f=u[g++],b=(f>127)+(f>223)+(f>239);if(g+b>u.length)return{s:d,r:slc(u,g-1)};b?b==3?(f=((f&15)<<18|(u[g++]&63)<<12|(u[g++]&63)<<6|u[g++]&63)-65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023)):b&1?d+=String.fromCharCode((f&31)<<6|u[g++]&63):d+=String.fromCharCode((f&15)<<12|(u[g++]&63)<<6|u[g++]&63):d+=String.fromCharCode(f)}};function strFromU8(u,d){if(d){for(var g="",f=0;f<u.length;f+=16384)g+=String.fromCharCode.apply(null,u.subarray(f,f+16384));return g}else{if(td)return td.decode(u);var b=dutf8(u),m=b.s,g=b.r;return g.length&&err(8),m}}const _sfc_main$4={props:["filedata"],data:()=>({data:null}),mounted(){const u=new Uint8Array(this.filedata),d=decompressSync(u),g=strFromU8(d);this.data=g.split(`
|
|
89
|
+
`).map(f=>{try{return JSON.stringify(JSON.parse(f),null,2)}catch{return f}})}},_hoisted_1$2=["innerHTML"];function _sfc_render$4(u,d,g,f,b,m){return u.data?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(u.data,(y,k)=>(openBlock(),createElementBlock("pre",{key:k,innerHTML:y},null,8,_hoisted_1$2))),128)):createCommentVNode("",!0)}var LogGz=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]);const replaceRegex=(u,d)=>g=>g.replace(u,d),codeBlockRegex=/((\n\t)(.*))+/g,inlineCodeRegex=/(`)(.*?)\1/g,imageRegex=/!\[([^\[]+)\]\(([^\)]+)\)/g,linkRegex=/\[([^\[]+)\]\(([^\)]+)\)/g,headingRegex=/\n(#+\s*)(.*)/g,boldItalicsRegex=/(\*{1,2})(.*?)\1/g,strikethroughRegex=/(\~\~)(.*?)\1/g,blockquoteRegex=/\n(>|\>)(.*)/g,horizontalRuleRegex=/\n((\-{3,})|(={3,}))/g,unorderedListRegex=/(\n\s*(\-|\+)\s.*)+/g,orderedListRegex=/(\n\s*([0-9]+\.)\s.*)+/g,paragraphRegex=/\n+(?!<pre>)(?!<h)(?!<ul>)(?!<blockquote)(?!<hr)(?!\t)([^\n]+)\n/g,codeBlockReplacer=u=>`
|
|
90
|
+
<pre>${u}</pre>`,inlineCodeReplacer=(u,d,g)=>`<code>${g}</code>`,imageReplacer=(u,d,g)=>`<img src="${g}" alt="${d}" />`,linkReplacer=(u,d,g)=>`<a href="${g}">${d}</a>`,headingReplacer=(u,d,g)=>`
|
|
91
|
+
<h${d.trim().length}>${g}</h${d.trim().length}>`,boldItalicsReplacer=(u,d,g)=>`<${d.trim().length===1?"em":"strong"}>${g}</${d.trim().length===1?"em":"strong"}>`,strikethroughReplacer=(u,d,g)=>`<del>${g}</del>`,blockquoteReplacer=(u,d,g)=>`
|
|
92
|
+
<blockquote>${g}</blockquote>`,horizontalRuleReplacer=u=>`
|
|
93
|
+
<hr />`,unorderedListReplacer=u=>{let d="";return u.trim().split(`
|
|
94
|
+
`).forEach(g=>{d+=`<li>${g.substring(2)}</li>`}),`
|
|
95
|
+
<ul>${d}</ul>`},orderedListReplacer=u=>{let d="";return u.trim().split(`
|
|
96
|
+
`).forEach(g=>{d+=`<li>${g.substring(g.indexOf(".")+2)}</li>`}),`
|
|
97
|
+
<ol>${d}</ol>`},paragraphReplacer=(u,d)=>`<p>${d}</p>`,replaceCodeBlocks=replaceRegex(codeBlockRegex,codeBlockReplacer),replaceInlineCodes=replaceRegex(inlineCodeRegex,inlineCodeReplacer),replaceImages=replaceRegex(imageRegex,imageReplacer),replaceLinks=replaceRegex(linkRegex,linkReplacer),replaceHeadings=replaceRegex(headingRegex,headingReplacer),replaceBoldItalics=replaceRegex(boldItalicsRegex,boldItalicsReplacer),replaceceStrikethrough=replaceRegex(strikethroughRegex,strikethroughReplacer),replaceBlockquotes=replaceRegex(blockquoteRegex,blockquoteReplacer),replaceHorizontalRules=replaceRegex(horizontalRuleRegex,horizontalRuleReplacer),replaceUnorderedLists=replaceRegex(unorderedListRegex,unorderedListReplacer),replaceOrderedLists=replaceRegex(orderedListRegex,orderedListReplacer),replaceParagraphs=replaceRegex(paragraphRegex,paragraphReplacer),codeBlockFixRegex=/\n(<pre>)((\n|.)*)(<\/pre>)/g,codeBlockFixer=(u,d,g,f,b)=>{let m="";return g.split(`
|
|
98
|
+
`).forEach(y=>{m+=`${y.substring(1)}
|
|
99
|
+
`}),d+m+b},fixCodeBlocks=replaceRegex(codeBlockFixRegex,codeBlockFixer),replaceMarkdown=u=>replaceParagraphs(replaceOrderedLists(replaceUnorderedLists(replaceHorizontalRules(replaceBlockquotes(replaceceStrikethrough(replaceBoldItalics(replaceHeadings(replaceLinks(replaceImages(replaceInlineCodes(replaceCodeBlocks(u)))))))))))),parseMarkdown=u=>fixCodeBlocks(replaceMarkdown(`
|
|
100
|
+
${u}
|
|
101
|
+
`)).trim();var FilePreview_vue_vue_type_style_index_0_lang="";const _sfc_main$3={components:{LogGz,PdfViewer,EmailViewer},data:()=>({open:!1,editMode:!1,downloadProgress:0,abortControl:void 0,type:void 0,file:void 0,filename:void 0,fileData:void 0,fileDataEdited:void 0,previewConfig:[{extensions:["png","jpg","jpeg","webp","avif"],type:"image",downloadType:"objectUrl"},{extensions:["mp3"],type:"audio",downloadType:"objectUrl"},{extensions:["mp4","ogg"],type:"video",downloadType:"objectUrl"},{extensions:["pdf"],type:"pdf",downloadType:"objectUrl"},{extensions:["txt"],type:"text",downloadType:"text"},{extensions:["md"],type:"markdown",downloadType:"text"},{extensions:["csv"],type:"csv",downloadType:"text"},{extensions:["json"],type:"json",downloadType:"text"},{extensions:["html"],type:"html",downloadType:"text"},{extensions:["log.gz"],type:"logs",downloadType:"blob"},{extensions:["eml"],type:"email",downloadType:"text"}]}),methods:{getType(u){for(const d of this.previewConfig)for(const g of d.extensions)if(u.endsWith(g))return{type:d.type,downloadType:d.downloadType};return{type:"unknown",downloadType:"text"}},async openFile(u){if(bytesToMegabytes(u.size)>200){this.q.notify({message:"File is too big to preview.",color:"orange"});return}const d=this.getType(u.name);if(this.abortControl=new AbortController,await this.$router.push({name:"files-file",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder||ROOT_FOLDER,file:u.nameHash}}),this.filename=u.name,this.file=u,this.open=!0,d){this.type=d.type;const g=await apiHandler.downloadFile(this.$route.params.bucket,u.key,d,b=>{this.downloadProgress=b.loaded/b.total},this.abortControl);let f;if(d.downloadType==="objectUrl"){const b=new Blob([g.data]);f=URL.createObjectURL(b)}else d.downloadType,f=g.data;this.fileData=f}},close(){this.abortControl&&this.abortControl.abort(),this.cancelEdit(),this.$route.params.file&&(this.$route.params.folder===ROOT_FOLDER?this.$router.push({name:"files-home",params:{bucket:this.$route.params.bucket}}):this.$router.push({name:"files-folder",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder}})),this.type=void 0,this.fileData=void 0,this.filename=void 0,this.abortControl=void 0,this.downloadProgress=0},markdownParser(u){return parseMarkdown(u)},csvParser:u=>{let d="";const g=u.split(`
|
|
102
|
+
`);if(g.length===0)return"<h2>Empty csv</h2>";for(const[f,b]of g.entries()){let m="";const y=b.split(/(\s*"[^"]+"\s*|\s*[^,]+|,)(?=,|$)/g).filter(k=>k!==""&&k!==",");for(const k of y)f===0?m+=`<th>${k.replaceAll('"',"")}</th>`:m+=`<td>${k.replaceAll('"',"")}</td>`;d+=`<tr>${m}</tr>`}return`<table class="table">${d}</table>`},enableEdit:function(){typeof this.fileData=="object"?this.fileDataEdited=JSON.stringify(this.fileData,null,2):this.fileDataEdited=this.fileData,this.editMode=!0},cancelEdit:function(){this.editMode=!1,this.fileDataEdited=void 0},validateEdit:(u,d)=>{if(u==="json")try{return JSON.parse(d),!0}catch{return!1}return!0},saveEdit:async function(){var b,m;if(!this.validateEdit(this.type,this.fileDataEdited)){this.q.notify({type:"negative",message:`Content is not valid ${this.type}.`});return}const d=this.q.notify({group:!1,spinner:!0,message:"Updating file...",caption:"0%",timeout:0}),g={};(b=this.file.httpMetadata)!=null&&b.contentType&&(g.type=(m=this.file.httpMetadata)==null?void 0:m.contentType);const f=new Blob([this.fileDataEdited],g);await apiHandler.uploadObjects(f,this.file.key,this.selectedBucket,y=>{d({caption:`${Number.parseInt(y.loaded*100/f.size)}%`})}),d({icon:"done",spinner:!1,caption:"100%",message:"File updated!",timeout:5e3}),this.cancelEdit(),this.openFile(this.file)}},computed:{selectedBucket:function(){return this.$route.params.bucket}},setup(){return{q:useQuasar()}}},_hoisted_1$1={class:"text-center q-my-lg"},_hoisted_2$1={class:"text-center q-my-lg"},_hoisted_3$1={key:0,class:"flex column",style:{height:"100%"}},_hoisted_4$1={class:"file-edit"},_hoisted_5$1=["src"],_hoisted_6$1={key:3,class:"text-center"},_hoisted_7$1={controls:""},_hoisted_8=["src"],_hoisted_9={key:4,class:"text-center"},_hoisted_10={controls:"",style:{"max-width":"100%",height:"auto"}},_hoisted_11=["src"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["innerHTML"],_hoisted_17={key:12,class:"flex column",style:{height:"100%","flex-wrap":"nowrap","max-width":"100%","line-break":"anywhere"}},_hoisted_18={class:"file-edit"},_hoisted_19=["innerHTML"];function _sfc_render$3(u,d,g,f,b,m){const y=resolveComponent("pdf-viewer"),k=resolveComponent("log-gz"),a=resolveComponent("email-viewer");return openBlock(),createBlock(QDialog,{modelValue:u.open,"onUpdate:modelValue":d[1]||(d[1]=q=>u.open=q),"full-width":"","full-height":"",onHide:m.close},{default:withCtx(()=>[createVNode(QCard,{class:"flex column"},{default:withCtx(()=>[createVNode(QCardSection,{class:"row items-center q-p-sm bg-grey-3",style:{"font-size":"20px"}},{default:withCtx(()=>[createBaseVNode("div",null,toDisplayString(u.filename),1),u.editMode?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(QBtn,{icon:"delete",label:"Cancel",size:"md",class:"q-ml-md",color:"red",dense:"",onClick:m.cancelEdit},null,8,["onClick"]),createVNode(QBtn,{icon:"save",label:"Save",size:"md",class:"q-ml-md",color:"green",dense:"",onClick:m.saveEdit},null,8,["onClick"])],64)):(openBlock(),createBlock(QBtn,{key:1,icon:"edit",label:"edit",size:"md",class:"q-ml-md",color:"orange",dense:"",onClick:m.enableEdit},null,8,["onClick"])),createVNode(QSpace),withDirectives(createVNode(QBtn,{icon:"close",size:"md",round:"",dense:""},null,512),[[ClosePopup]])]),_:1}),createVNode(QCardSection,{class:"scroll",style:{flex:"1"}},{default:withCtx(()=>[u.fileData===void 0&&u.type?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_1$1,[createVNode(QSpinner,{color:"primary",size:"3em"})]),createBaseVNode("div",_hoisted_2$1,[createVNode(QLinearProgress,{stripe:"",size:"10px",value:u.downloadProgress},null,8,["value"])])],64)):(openBlock(),createElementBlock(Fragment,{key:1},[u.editMode?(openBlock(),createElementBlock("div",_hoisted_3$1,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createTextVNode(" File editing is still in tests! ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(QInput,{modelValue:u.fileDataEdited,"onUpdate:modelValue":d[0]||(d[0]=q=>u.fileDataEdited=q),filled:"",outlined:"",type:"textarea"},null,8,["modelValue"])])])):u.type==="pdf"?(openBlock(),createBlock(y,{key:1,pdfUrl:u.fileData},null,8,["pdfUrl"])):u.type==="image"?(openBlock(),createElementBlock("img",{key:2,src:u.fileData,class:"preview-image"},null,8,_hoisted_5$1)):u.type==="audio"?(openBlock(),createElementBlock("div",_hoisted_6$1,[createBaseVNode("audio",_hoisted_7$1,[createBaseVNode("source",{src:u.fileData},null,8,_hoisted_8),d[3]||(d[3]=createTextVNode(" Your browser does not support the audio element. "))])])):u.type==="video"?(openBlock(),createElementBlock("div",_hoisted_9,[createBaseVNode("video",_hoisted_10,[createBaseVNode("source",{src:u.fileData},null,8,_hoisted_11),d[4]||(d[4]=createTextVNode(" Your browser does not support the video tag. "))])])):u.type==="text"?(openBlock(),createElementBlock("div",{key:5,innerHTML:u.fileData.replaceAll(`
|
|
103
|
+
`,"<br>")},null,8,_hoisted_12)):u.type==="json"?(openBlock(),createElementBlock("pre",{key:6,innerHTML:JSON.stringify(u.fileData,null,2)},null,8,_hoisted_13)):u.type==="html"?(openBlock(),createElementBlock("pre",{key:7,innerHTML:u.fileData},null,8,_hoisted_14)):u.type==="markdown"?(openBlock(),createElementBlock("div",{key:8,class:"markdown",innerHTML:m.markdownParser(u.fileData)},null,8,_hoisted_15)):u.type==="csv"?(openBlock(),createElementBlock("div",{key:9,class:"markdown",innerHTML:m.csvParser(u.fileData)},null,8,_hoisted_16)):u.type==="logs"?(openBlock(),createBlock(k,{key:10,filedata:u.fileData},null,8,["filedata"])):u.type==="email"?(openBlock(),createBlock(a,{key:11,filedata:u.fileData},null,8,["filedata"])):u.fileData?(openBlock(),createElementBlock("div",_hoisted_17,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[5]||(d[5]=[createTextVNode(" This in a unknown file type, opening as text. ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_18,[createBaseVNode("div",{innerHTML:u.fileData.replaceAll(`
|
|
104
|
+
`,"<br>")},null,8,_hoisted_19)])])):createCommentVNode("",!0)],64))]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])}var FilePreview=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),DragAndDrop_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2={data:()=>({isHover:!1,filelist:[],dragContainer:{top:0,bottom:0,left:0,right:0}}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{openFilesUploader(){this.$refs.filesUploader.click()},openFoldersUploader(){this.$refs.foldersUploader.click()},dragover(u){if(this.mainStore.apiReadonly||this.isHover===!0)return;const d=this.$refs.dragContainer.getBoundingClientRect();this.dragContainer={top:d.top,bottom:d.bottom,left:d.left,right:d.right},this.isHover=!0},dragleave(u){this.isHover!==!1&&(u.clientX<this.dragContainer.left||u.clientX>this.dragContainer.right||u.clientY>this.dragContainer.bottom||u.clientY<this.dragContainer.top)&&(this.isHover=!1)},inputFiles(u){this.uploadFiles({"":u.target.files})},inputFolders(u){const d={};for(const g of u.target.files){const f=g.webkitRelativePath.lastIndexOf("/"),b=g.webkitRelativePath.slice(0,f);d[b]===void 0&&(d[b]=[]),d[b].push(g)}this.uploadFiles(d)},async uploadFiles(u){let d=0,g=0;const f=[];for(const[k,a]of Object.entries(u)){if(k!==""){const q=`${this.selectedFolder+k}/`;await apiHandler.createFolder(q,this.selectedBucket)}d+=a.length;for(const q of a)f.push(q.name),g+=q.size}this.$bus.emit("fetchFiles");const b=this.q.notify({group:!1,spinner:!0,message:`Uploading files 1/${f.length}...`,caption:"0%",timeout:0});let m=0,y=0;for(const[k,a]of Object.entries(u)){b({message:`Uploading files ${m+1}/${f.length}...`,caption:`${Number.parseInt((m+1)*100/f.length)}%`});let q=this.selectedFolder+k;q.length>0&&q.slice(-1)!=="/"&&(q+="/"),(q==="/"||q===ROOT_FOLDER)&&(q="");for(const w of a){m+=1;const $=q+w.name,Q=95*1024*1024;if(w.size>Q){const{uploadId:C}=(await apiHandler.multipartCreate(w,$,this.selectedBucket)).data;let v=1;const J=[];for(let ae=0;ae<w.size;ae+=Q){const H=Math.min(ae+Q,w.size),Y=w.slice(ae,H),{data:G}=await apiHandler.multipartUpload(C,v,this.selectedBucket,$,Y,j=>{b({caption:`${Number.parseInt((y+ae+j.loaded)*100/g)}%`})});J.push(G),v+=1}await apiHandler.multipartComplete(w,$,this.selectedBucket,J,C)}else await apiHandler.uploadObjects(w,$,this.selectedBucket,C=>{b({caption:`${Number.parseInt((y+C.loaded)*100/g)}%`})});y+=w.size}}b({icon:"done",spinner:!1,caption:"100%",message:"Files Uploaded!",timeout:5e3}),this.$bus.emit("fetchFiles")},async traverseFileTree(u,d,g,f){if(d=d||"",u.isFile&&f>0)await new Promise((m,y)=>{u.file(k=>{g[d].push(k),m()})});else if(u.isDirectory){const b=d?`${d}/${u.name}`:u.name;g[b]===void 0&&(g[b]=[]);const m=u.createReader();await new Promise((k,a)=>{m.readEntries(async q=>{for(let w=0;w<q.length;w++)await this.traverseFileTree(q[w],b,g,f+1);k()})})}},async drop(u){if(!this.isHover)return;const d=u.dataTransfer.files,g=await u.dataTransfer.items,f={};for(const m of g){const y=m.webkitGetAsEntry();y&&await this.traverseFileTree(y,"",f,0)}const b=[];for(const m of d)f[m.name]===void 0&&b.push(m);f[""]=b,this.uploadFiles(f),this.isHover=!1}},mounted(){this.$bus.on("openFilesUploader",this.openFilesUploader),this.$bus.on("openFoldersUploader",this.openFoldersUploader)},beforeUnmount(){this.$bus.off("openFilesUploader"),this.$bus.off("openFoldersUploader")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$2(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"dragContainer",class:normalizeClass(["upload-box",{active:u.isHover}]),onDragover:d[0]||(d[0]=withModifiers((...y)=>m.dragover&&m.dragover(...y),["prevent"])),onDragleave:d[1]||(d[1]=withModifiers((...y)=>m.dragleave&&m.dragleave(...y),["prevent"])),onDrop:d[2]||(d[2]=withModifiers((...y)=>m.drop&&m.drop(...y),["prevent"]))},[renderSlot(u.$slots,"default",{},void 0,!0),d[5]||(d[5]=createBaseVNode("div",{class:"drop-files"},[createBaseVNode("div",{class:"box"},[createBaseVNode("h3",null,"Drop files to upload"),createBaseVNode("span",{class:"font-28"},[createBaseVNode("i",{class:"bi bi-cloud-upload-fill"})])])],-1))],34),createBaseVNode("input",{style:{display:"none"},onChange:d[3]||(d[3]=(...y)=>m.inputFiles&&m.inputFiles(...y)),type:"file",name:"files[]",ref:"filesUploader",multiple:""},null,544),createBaseVNode("input",{style:{display:"none"},onChange:d[4]||(d[4]=(...y)=>m.inputFolders&&m.inputFolders(...y)),type:"file",webkitdirectory:"",name:"files[]",ref:"foldersUploader",multiple:""},null,544)],64)}var DragAndDrop=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-8e99a572"]]);const _sfc_main$1={name:"FileContextMenu",props:{prop:{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{renameObject:function(){this.$emit("renameObject",this.prop.row)},updateMetadataObject:function(){this.$emit("updateMetadataObject",this.prop.row)},openObject:function(){this.$emit("openObject",this.prop.row)},deleteObject:function(){this.$emit("deleteObject",this.prop.row)},shareObject:async function(){let u;this.prop.row.type==="folder"?u=window.location.origin+this.$router.resolve({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(this.prop.row.key)}}).href:u=window.location.origin+this.$router.resolve({name:"files-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder?encode(this.selectedFolder):ROOT_FOLDER,file:this.prop.row.nameHash}}).href;try{await navigator.clipboard.writeText(u),this.q.notify({message:"Link to file copied to clipboard!",timeout:5e3,type:"positive"})}catch(d){this.q.notify({message:`Failed to copy: ${d}`,timeout:5e3,type:"negative"})}},downloadObject:function(){const u=document.createElement("a");u.download=this.prop.row.name,u.href=`${this.mainStore.serverUrl}/api/buckets/${this.selectedBucket}/${encode(this.prop.row.key)}`,document.body.appendChild(u),u.click(),document.body.removeChild(u)}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$1(u,d,g,f,b,m){return openBlock(),createBlock(QList,{style:{"min-width":"100px"}},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.openObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[0]||(d[0]=[createTextVNode("Open")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:0,clickable:"",onClick:m.downloadObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[1]||(d[1]=[createTextVNode("Download")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:1,clickable:"",onClick:m.renameObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[2]||(d[2]=[createTextVNode("Rename")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:2,clickable:"",onClick:m.updateMetadataObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[3]||(d[3]=[createTextVNode("Update Metadata")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.shareObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[4]||(d[4]=[createTextVNode("Get sharable link")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.deleteObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[5]||(d[5]=[createTextVNode("Delete")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]])]),_:1})}var FileContextMenu=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),FilesFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({name:"FilesIndexPage",components:{FileContextMenu,FileOptions,DragAndDrop,FilePreview},data:()=>({loading:!1,rows:[],columns:[{name:"name",required:!0,label:"Name",align:"left",field:"name",sortable:!0,sort:(u,d,g,f)=>g.type==="folder"?f.type==="folder"?u.localeCompare(d):1:f.type==="folder"?-1:u.localeCompare(d)},{name:"lastModified",required:!0,label:"Last Modified",align:"left",field:"lastModified",sortable:!0,sort:(u,d,g,f)=>g.timestamp-f.timestamp},{name:"size",required:!0,label:"Size",align:"left",field:"size",sortable:!0,sort:(u,d,g,f)=>g.sizeRaw-f.sizeRaw},{name:"options",label:"",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""},breadcrumbs:function(){return this.selectedFolder?[{name:this.selectedBucket,path:"/"},...this.selectedFolder.split("/").filter(u=>u!=="").map((u,d,g)=>({name:u,path:`${g.slice(0,d+1).join("/").replace("Home/","")}/`}))]:[{name:this.selectedBucket,path:"/"}]}},watch:{selectedBucket(u){this.fetchFiles()},selectedFolder(u){this.fetchFiles()}},methods:{openRowClick:function(u,d,g){u.preventDefault(),this.openObject(d)},openRowDlbClick:function(u,d,g){u.preventDefault(),this.$bus.emit("openFileDetails",d)},breadcrumbsClick:function(u){this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.path)}})},rowClick:function(u,d){d.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(d.key)}}):this.$refs.preview.openFile(d)},openObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},renameObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},fetchFiles:async function(){this.loading=!0,this.rows=await apiHandler.fetchFile(this.selectedBucket,this.selectedFolder,"/"),this.loading=!1},openPreviewFromKey:async function(){let u=`${decode(this.$route.params.file)}`;this.selectedFolder&&this.selectedFolder!==ROOT_FOLDER&&(u=`${this.selectedFolder}${decode(this.$route.params.file)}`);const d=await apiHandler.headFile(this.selectedBucket,u);this.$refs.preview.openFile(d)}},created(){this.fetchFiles()},mounted(){this.$refs.table.sort("name"),this.$bus.on("fetchFiles",this.fetchFiles),this.$route.params.file&&this.openPreviewFromKey()},beforeUnmount(){this.$bus.off("fetchFiles")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1={class:"q-pa-md"},_hoisted_2={class:"full-width q-my-lg"},_hoisted_3={class:"flex items-center justify-center"},_hoisted_4={key:0,class:"full-width q-my-lg"},_hoisted_5={class:"flex items-center justify-center"},_hoisted_6={class:"flex",style:{"align-items":"center"}},_hoisted_7={class:"text-right"};function _sfc_render(u,d,g,f,b,m){const y=resolveComponent("FileContextMenu"),k=resolveComponent("drag-and-drop"),a=resolveComponent("file-preview"),q=resolveComponent("file-options");return openBlock(),createElementBlock(Fragment,null,[createVNode(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1,[createVNode(QBreadcrumbs,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.breadcrumbs,w=>(openBlock(),createBlock(QBreadcrumbsEl,{style:{cursor:"pointer"},key:w.name,label:w.name,onClick:$=>u.breadcrumbsClick(w)},null,8,["label","onClick"]))),128))]),_:1}),createVNode(k,{ref:"uploader"},{default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],"column-sort-order":"da",flat:!0,"table-class":"file-list",onRowDblclick:u.openRowClick,onRowClick:u.openRowDlbClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("h6",_hoisted_3,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("h6",_hoisted_5,[createVNode(QIcon,{name:"folder",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode("This folder is empty"))])]))]),"body-cell-name":withCtx(w=>[createBaseVNode("td",_hoisted_6,[createVNode(QIcon,{name:w.row.icon,size:"sm",color:w.row.color,class:"q-mr-xs"},null,8,["name","color"]),createTextVNode(" "+toDisplayString(w.row.name),1)])]),"body-cell":withCtx(w=>[createVNode(QTd,{props:w},{default:withCtx(()=>[createTextVNode(toDisplayString(w.value),1)]),_:2},1032,["props"]),createVNode(QMenu,{"touch-position":"","context-menu":""},{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),"body-cell-options":withCtx(w=>[createBaseVNode("td",_hoisted_7,[createVNode(QBtn,{round:"",flat:"",icon:"more_vert",size:"sm"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),_:2},1024)])]),_:1},8,["rows","columns","loading","onRowDblclick","onRowClick"])]),_:1},512)])]),_:1}),createVNode(a,{ref:"preview"},null,512),createVNode(q,{ref:"options"},null,512)],64)}var FilesFolderPage=_export_sfc(_sfc_main,[["render",_sfc_render]]);const routes=[{path:"/auth",component:()=>__vitePreload(()=>import("./AuthLayout.47bc4d6b.js"),[]),children:[{path:"login",name:"login",component:()=>__vitePreload(()=>import("./LoginPage.e449cd8d.js"),["assets/LoginPage.e449cd8d.js","assets/auth-store.1a4593f8.js"])}]},{path:"/",component:MainLayout,children:[{path:"/",name:"home",component:HomePage},{path:"/:bucket/files",name:"files-home",component:FilesFolderPage},{path:"/:bucket/files/:folder",name:"files-folder",component:FilesFolderPage},{path:"/:bucket/files/:folder/:file",name:"files-file",component:FilesFolderPage},{path:"/:bucket/email",name:"email-home",component:EmailFolderPage},{path:"/:bucket/email/:folder",name:"email-folder",component:EmailFolderPage},{path:"/:bucket/email/:folder/:file",name:"email-file",component:()=>__vitePreload(()=>import("./EmailFilePage.5146dfaa.js"),["assets/EmailFilePage.5146dfaa.js","assets/EmailFilePage.c4890c9c.css"])},{path:"/storage/:bucket",redirect:u=>({name:"files-home",params:{bucket:u.params.bucket}})},{path:"/storage/:bucket/:folder",redirect:u=>({name:"files-folder",params:{bucket:u.params.bucket,folder:u.params.folder}})},{path:"/storage/:bucket/:folder/:file",redirect:u=>({name:"files-file",params:{bucket:u.params.bucket,folder:u.params.folder,file:u.params.file}})}]},{path:"/:catchAll(.*)*",component:()=>__vitePreload(()=>import("./ErrorNotFound.2be1d090.js"),[])}];var createRouter=()=>createRouter$1({scrollBehavior:()=>({left:0,top:0}),routes,history:createWebHistory("/")});async function createQuasarApp(u,d){const g=u(App);g.use(Quasar,d);const f=typeof createStore=="function"?await createStore({}):createStore;g.use(f);const b=markRaw(typeof createRouter=="function"?await createRouter({store:f}):createRouter);return f.use(({store:m})=>{m.router=b}),{app:g,store:f,router:b}}let uid=0;const defaults={},groups={},notificationsList={},positionClass={},emptyRE=/^\s*$/,notifRefs=[],invalidTimeoutValues=[void 0,null,!0,!1,""],positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],badgePositions=["top-left","top-right","bottom-left","bottom-right"],notifTypes={positive:{icon:u=>u.iconSet.type.positive,color:"positive"},negative:{icon:u=>u.iconSet.type.negative,color:"negative"},warning:{icon:u=>u.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:u=>u.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function addNotification(u,d,g){if(!u)return logError("parameter required");let f;const b={textColor:"white"};if(u.ignoreDefaults!==!0&&Object.assign(b,defaults),isObject$1(u)===!1&&(b.type&&Object.assign(b,notifTypes[b.type]),u={message:u}),Object.assign(b,notifTypes[u.type||b.type],u),typeof b.icon=="function"&&(b.icon=b.icon(d)),b.spinner?(b.spinner===!0&&(b.spinner=QSpinner),b.spinner=markRaw(b.spinner)):b.spinner=!1,b.meta={hasMedia:Boolean(b.spinner!==!1||b.icon||b.avatar),hasText:hasContent(b.message)||hasContent(b.caption)},b.position){if(positionList.includes(b.position)===!1)return logError("wrong position",u)}else b.position="bottom";if(invalidTimeoutValues.includes(b.timeout)===!0)b.timeout=5e3;else{const a=Number(b.timeout);if(isNaN(a)||a<0)return logError("wrong timeout",u);b.timeout=Number.isFinite(a)?a:0}b.timeout===0?b.progress=!1:b.progress===!0&&(b.meta.progressClass="q-notification__progress"+(b.progressClass?` ${b.progressClass}`:""),b.meta.progressStyle={animationDuration:`${b.timeout+1e3}ms`});const m=(Array.isArray(u.actions)===!0?u.actions:[]).concat(u.ignoreDefaults!==!0&&Array.isArray(defaults.actions)===!0?defaults.actions:[]).concat(notifTypes[u.type]!==void 0&&Array.isArray(notifTypes[u.type].actions)===!0?notifTypes[u.type].actions:[]),{closeBtn:y}=b;if(y&&m.push({label:typeof y=="string"?y:d.lang.label.close}),b.actions=m.map(({handler:a,noDismiss:q,...w})=>({flat:!0,...w,onClick:typeof a=="function"?()=>{a(),q!==!0&&k()}:()=>{k()}})),b.multiLine===void 0&&(b.multiLine=b.actions.length>1),Object.assign(b.meta,{class:`q-notification row items-stretch q-notification--${b.multiLine===!0?"multi-line":"standard"}`+(b.color!==void 0?` bg-${b.color}`:"")+(b.textColor!==void 0?` text-${b.textColor}`:"")+(b.classes!==void 0?` ${b.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(b.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(b.multiLine===!0?"":" col"),leftClass:b.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...b.attrs}}),b.group===!1?(b.group=void 0,b.meta.group=void 0):((b.group===void 0||b.group===!0)&&(b.group=[b.message,b.caption,b.multiline].concat(b.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),b.meta.group=b.group+"|"+b.position),b.actions.length===0?b.actions=void 0:b.meta.actionsClass="q-notification__actions row items-center "+(b.multiLine===!0?"justify-end":"col-auto")+(b.meta.hasMedia===!0?" q-notification__actions--with-media":""),g!==void 0){g.notif.meta.timer&&(clearTimeout(g.notif.meta.timer),g.notif.meta.timer=void 0),b.meta.uid=g.notif.meta.uid;const a=notificationsList[b.position].value.indexOf(g.notif);notificationsList[b.position].value[a]=b}else{const a=groups[b.meta.group];if(a===void 0){if(b.meta.uid=uid++,b.meta.badge=1,["left","right","center"].indexOf(b.position)!==-1)notificationsList[b.position].value.splice(Math.floor(notificationsList[b.position].value.length/2),0,b);else{const q=b.position.indexOf("top")!==-1?"unshift":"push";notificationsList[b.position].value[q](b)}b.group!==void 0&&(groups[b.meta.group]=b)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),b.badgePosition!==void 0){if(badgePositions.includes(b.badgePosition)===!1)return logError("wrong badgePosition",u)}else b.badgePosition=`top-${b.position.indexOf("left")!==-1?"right":"left"}`;b.meta.uid=a.meta.uid,b.meta.badge=a.meta.badge+1,b.meta.badgeClass=`q-notification__badge q-notification__badge--${b.badgePosition}`+(b.badgeColor!==void 0?` bg-${b.badgeColor}`:"")+(b.badgeTextColor!==void 0?` text-${b.badgeTextColor}`:"")+(b.badgeClass?` ${b.badgeClass}`:"");const q=notificationsList[b.position].value.indexOf(a);notificationsList[b.position].value[q]=groups[b.meta.group]=b}}const k=()=>{removeNotification(b),f=void 0};if(b.timeout>0&&(b.meta.timer=setTimeout(()=>{b.meta.timer=void 0,k()},b.timeout+1e3)),b.group!==void 0)return a=>{a!==void 0?logError("trying to update a grouped one which is forbidden",u):k()};if(f={dismiss:k,config:u,notif:b},g!==void 0){Object.assign(g,f);return}return a=>{if(f!==void 0)if(a===void 0)f.dismiss();else{const q=Object.assign({},f.config,a,{group:!1,position:b.position});addNotification(q,d,f)}}}function removeNotification(u){u.meta.timer&&(clearTimeout(u.meta.timer),u.meta.timer=void 0);const d=notificationsList[u.position].value.indexOf(u);if(d!==-1){u.group!==void 0&&delete groups[u.meta.group];const g=notifRefs[""+u.meta.uid];if(g){const{width:f,height:b}=getComputedStyle(g);g.style.left=`${g.offsetLeft}px`,g.style.width=f,g.style.height=b}notificationsList[u.position].value.splice(d,1),typeof u.onDismiss=="function"&&u.onDismiss()}}function hasContent(u){return u!=null&&emptyRE.test(u)!==!0}function logError(u,d){return console.error(`Notify: ${u}`,d),!1}function getComponent(){return createComponent({name:"QNotifications",devtools:{hide:!0},setup(){return()=>h("div",{class:"q-notifications"},positionList.map(u=>h(TransitionGroup,{key:u,class:positionClass[u],tag:"div",name:`q-notification--${u}`},()=>notificationsList[u].value.map(d=>{const g=d.meta,f=[];if(g.hasMedia===!0&&(d.spinner!==!1?f.push(h(d.spinner,{class:"q-notification__spinner q-notification__spinner--"+g.leftClass,color:d.spinnerColor,size:d.spinnerSize})):d.icon?f.push(h(QIcon,{class:"q-notification__icon q-notification__icon--"+g.leftClass,name:d.icon,color:d.iconColor,size:d.iconSize,role:"img"})):d.avatar&&f.push(h(QAvatar,{class:"q-notification__avatar q-notification__avatar--"+g.leftClass},()=>h("img",{src:d.avatar,"aria-hidden":"true"})))),g.hasText===!0){let m;const y={class:"q-notification__message col"};if(d.html===!0)y.innerHTML=d.caption?`<div>${d.message}</div><div class="q-notification__caption">${d.caption}</div>`:d.message;else{const k=[d.message];m=d.caption?[h("div",k),h("div",{class:"q-notification__caption"},[d.caption])]:k}f.push(h("div",y,m))}const b=[h("div",{class:g.contentClass},f)];return d.progress===!0&&b.push(h("div",{key:`${g.uid}|p|${g.badge}`,class:g.progressClass,style:g.progressStyle})),d.actions!==void 0&&b.push(h("div",{class:g.actionsClass},d.actions.map(m=>h(QBtn,m)))),g.badge>1&&b.push(h("div",{key:`${g.uid}|${g.badge}`,class:d.meta.badgeClass,style:d.badgeStyle},[g.badge])),h("div",{ref:m=>{notifRefs[""+g.uid]=m},key:g.uid,class:g.class,...g.attrs},[h("div",{class:g.wrapperClass},b)])}))))}})}var Notify={setDefaults(u){isObject$1(u)===!0&&Object.assign(defaults,u)},registerType(u,d){isObject$1(d)===!0&&(notifTypes[u]=d)},install({$q:u,parentApp:d}){if(u.notify=this.create=g=>addNotification(g,u),u.notify.setDefaults=this.setDefaults,u.notify.registerType=this.registerType,u.config.notify!==void 0&&this.setDefaults(u.config.notify),this.__installed!==!0){positionList.forEach(f=>{notificationsList[f]=ref([]);const b=["left","center","right"].includes(f)===!0?"center":f.indexOf("top")!==-1?"top":"bottom",m=f.indexOf("left")!==-1?"start":f.indexOf("right")!==-1?"end":"center",y=["left","right"].includes(f)?`items-${f==="left"?"start":"end"} justify-center`:f==="center"?"flex-center":`items-${m}`;positionClass[f]=`q-notifications__list q-notifications__list--${b} fixed column no-wrap ${y}`});const g=createGlobalNode("q-notify");createChildApp(getComponent(),d).mount(g)}}},quasarUserOptions={config:{},plugins:{Notify}};let appPrefetch=typeof App.preFetch=="function"?App.preFetch:App.__c!==void 0&&typeof App.__c.preFetch=="function"?App.__c.preFetch:!1;function getMatchedComponents(u,d){const g=u?u.matched?u:d.resolve(u).route:d.currentRoute.value;if(!g)return[];const f=g.matched.filter(b=>b.components!==void 0);return f.length===0?[]:Array.prototype.concat.apply([],f.map(b=>Object.keys(b.components).map(m=>{const y=b.components[m];return{path:b.path,c:y}})))}function addPreFetchHooks({router:u,store:d,publicPath:g}){u.beforeResolve((f,b,m)=>{const y=window.location.href.replace(window.location.origin,""),k=getMatchedComponents(f,u),a=getMatchedComponents(b,u);let q=!1;const w=k.filter((v,J)=>q||(q=!a[J]||a[J].c!==v.c||v.path.indexOf("/:")>-1)).filter(v=>v.c!==void 0&&(typeof v.c.preFetch=="function"||v.c.__c!==void 0&&typeof v.c.__c.preFetch=="function")).map(v=>v.c.__c!==void 0?v.c.__c.preFetch:v.c.preFetch);if(appPrefetch!==!1&&(w.unshift(appPrefetch),appPrefetch=!1),w.length===0)return m();let $=!1;const Q=v=>{$=!0,m(v)},C=()=>{$===!1&&m()};w.reduce((v,J)=>v.then(()=>$===!1&&J({store:d,currentRoute:f,previousRoute:b,redirect:Q,urlPath:y,publicPath:g})),Promise.resolve()).then(C).catch(v=>{console.error(v),C()})})}const publicPath="/";async function start({app:u,router:d,store:g},f){let b=!1;const m=a=>{try{return d.resolve(a).href}catch{}return Object(a)===a?null:a},y=a=>{if(b=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const q=m(a);q!==null&&(window.location.href=q)},k=window.location.href.replace(window.location.origin,"");for(let a=0;b===!1&&a<f.length;a++)try{await f[a]({app:u,router:d,store:g,ssrContext:null,redirect:y,urlPath:k,publicPath})}catch(q){if(q&&q.url){y(q.url);return}console.error("[Quasar] boot error:",q);return}b!==!0&&(u.use(d),addPreFetchHooks({router:d,store:g}),u.mount("#q-app"))}createQuasarApp(createApp,quasarUserOptions).then(u=>{const[d,g]=Promise.allSettled!==void 0?["allSettled",f=>f.map(b=>{if(b.status==="rejected"){console.error("[Quasar] boot error:",b.reason);return}return b.value.default})]:["all",f=>f.map(b=>b.default)];return Promise[d]([__vitePreload(()=>Promise.resolve().then(function(){return axios$1}),void 0),__vitePreload(()=>import("./auth.a5ffeab6.js"),["assets/auth.a5ffeab6.js","assets/auth-store.1a4593f8.js"]),__vitePreload(()=>import("./bus.67913454.js"),[])]).then(f=>{const b=g(f).filter(m=>typeof m=="function");start(u,b)})});export{cleanEvt as $,toDisplayString as A,createCommentVNode as B,QForm as C,QInput as D,QBtn as E,QCard as F,useAnchorStaticProps as G,useModelToggleProps as H,useTransitionProps as I,validatePosition as J,validateOffset as K,scrollTargetProp as L,useModelToggleEmits as M,ref as N,parsePosition as O,useTick as P,QLayout as Q,useTimeout as R,useTransition as S,useScrollTarget as T,useAnchor as U,useModelToggle as V,usePortal as W,watch as X,onBeforeUnmount as Y,removeClickOutside as Z,_export_sfc as _,api as a,setPosition as a0,clearSelection as a1,addEvt as a2,getScrollTarget as a3,Transition as a4,addClickOutside as a5,stopAndPrevent as a6,decode as a7,encode as a8,timeSince as a9,apiHandler as aa,useQuasar as ab,createElementBlock as ac,QSpinner as ad,Fragment as ae,QCardActions as af,QSeparator as ag,renderList as ah,boot as b,defineComponent as c,defineStore as d,createBlock as e,createVNode as f,QPageContainer as g,createComponent as h,useDarkProps as i,useDark as j,computed as k,h as l,hSlot as m,getCurrentInstance as n,openBlock as o,useCheckboxProps as p,useCheckboxEmits as q,resolveComponent as r,useCheckbox as s,QIcon as t,useMainStore as u,QPage as v,withCtx as w,QCardSection as x,createBaseVNode as y,createTextVNode as z};
|