PageSourceSearch

https://pnsn.org/_nuxt/v1790800031/_Iur6-yb.js

js pnsn.org collected 2026-10-02 02:56:39 UTC 124,457 bytes, 14 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5825cd330461ef1ddd98548f447ed9b5dc315e0e`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`819b38aa-ea01-4c8a-9e71-80bb6556d19d`,e._sentryDebugIdIdentifier=`sentry-dbid-819b38aa-ea01-4c8a-9e71-80bb6556d19d`)}catch{}})();import{a as e,t}from"./QakO4a_K.js";import{i as n,n as r,r as i}from"./BTBTxyIB.js";var a=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.excelBOM=e.defaultCsv2JsonOptions=e.defaultJson2CsvOptions=e.errors=void 0,e.errors={optionsRequired:`Options were not passed and are required.`,json2csv:{cannotCallOn:`Cannot call json2csv on`,dataCheckFailure:`Data provided was not an array of documents.`,notSameSchema:`Not all documents have the same schema.`},csv2json:{cannotCallOn:`Cannot call csv2json on`,dataCheckFailure:`CSV is not a string.`}},e.defaultJson2CsvOptions={arrayIndexesAsKeys:!1,checkSchemaDifferences:!1,delimiter:{field:`,`,wrap:`"`,eol:`
2`},emptyFieldValue:void 0,escapeHeaderNestedDots:!0,excelBOM:!1,excludeKeys:[],expandNestedObjects:!0,expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1,fieldTitleMap:Object.create({})},e.defaultCsv2JsonOptions={delimiter:{field:`,`,wrap:`"`,eol:`
3`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1},e.excelBOM=``})),o=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setPath=e.evaluatePath=void 0;function t(e,n){if(!e)return null;let{dotIndex:r,key:a,remaining:o}=i(n),s=typeof e==`object`&&n in e?e[n]:void 0,c=typeof e==`object`&&a in e?e[a]:void 0;if(r>=0&&typeof e==`object`&&!(n in e)){let{key:e}=i(o),n=parseInt(e);return Array.isArray(c)&&isNaN(n)?c.map(e=>t(e,o)):t(c,o)}return Array.isArray(e)?n===a&&r===-1&&!isNaN(parseInt(a))?c:e.map(e=>t(e,n)):r>=0&&n!==a&&typeof e==`object`&&a in e?t(c,o):r===-1&&typeof e==`object`&&a in e&&!(n in e)?c:s}e.evaluatePath=t;function n(e,t,n){if(!e)throw Error(`No object was provided.`);if(!t)throw Error(`No keyPath was provided.`);return r(e,t,n)}e.setPath=n;function r(e,t,n){let{dotIndex:a,key:o,remaining:s}=i(t);if(t.startsWith(`__proto__`)||t.startsWith(`constructor`)||t.startsWith(`prototype`))return e;if(a>=0){let a=parseInt(o);if(typeof e==`object`&&e&&!(o in e)&&Array.isArray(e)&&!isNaN(a))return e[o]=e[o]??{},r(e[o],s,n),e;if(typeof e==`object`&&e&&!(o in e)&&Array.isArray(e))return e.forEach(e=>r(e,t,n)),e;if(typeof e==`object`&&e&&!(o in e)&&!Array.isArray(e)){let{key:r}=i(s);if(!isNaN(parseInt(r)))e[o]=[];else if(s===``)return e[t]=n,e;else e[o]={}}r(e[o],s,n)}else if(Array.isArray(e))return t===o&&a===-1&&!isNaN(parseInt(o))?(e[o]=n,e):(e.forEach(e=>r(e,s,n)),e);else e[o]=n;return e}function i(e){let t=a(e);return{dotIndex:t,key:e.slice(0,t>=0?t:void 0).replace(/\\./g,`.`),remaining:e.slice(t+1)}}function a(e){for(let t=0;t<e.length;t++){let n=t>0?e[t-1]:``;if(e[t]===`.`&&n!==`\\`)return t}return-1}})),s=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isDocumentToRecurOn=e.flatten=e.unique=void 0;function t(e){return[...new Set(e)]}e.unique=t;function n(e){return[].concat(...e)}e.flatten=n;function r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length}e.isDocumentToRecurOn=r})),c=t((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),l=t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};
3Object.defineProperty(e,"__esModule",{value:!0}),e.deepKeysFromList=e.deepKeys=void 0;var a=r(s());i(c(),e);function o(e,t){let n=m(t);return typeof e==`object`&&e?u(``,e,n,new WeakSet):[]}e.deepKeys=o;function l(e,t,n){let r=m(t),i=n??new WeakSet;return e.map(e=>typeof e==`object`&&e?i.has(e)?[]:u(``,e,r,i):[])}e.deepKeysFromList=l;function u(e,t,n,r){let i=[],o=Object.keys(t);r.add(t);let s=[{obj:t,keys:o,i:0,basePath:e}];for(;s.length;){let e=s[s.length-1];if(e.i>=e.keys.length){s.pop();continue}let t=e.keys[e.i++],o=e.obj[t],c=p(e.basePath,f(t,n));if(n.expandNestedObjects&&a.isDocumentToRecurOn(o)||n.arrayIndexesAsKeys&&Array.isArray(o)&&o.length){if(n.arrayIndexesAsKeys&&Array.isArray(o)){let e=o;for(let t=e.length-1;t>=0;t--){let n=e[t],a=p(c,String(t));typeof n==`object`&&n&&!Array.isArray(n)?r.has(n)||(r.add(n),s.push({obj:n,keys:Object.keys(n),i:0,basePath:a})):i.push(a)}}else r.has(o)||(r.add(o),s.push({obj:o,keys:Object.keys(o),i:0,basePath:c}))}else if(n.expandArrayObjects&&Array.isArray(o)){let e=d(o,c,n,r);for(let t of e)i.push(t)}else if(n.ignoreEmptyArrays&&Array.isArray(o)&&!o.length)continue;else i.push(c)}return a.unique(i)}function d(e,t,n,r){let i=l(e,n,r);return e.length?e.length&&a.flatten(i).length===0?[t]:(i=i.map(e=>Array.isArray(e)&&e.length===0?[t]:e.map(e=>p(t,f(e,n)))),a.unique(a.flatten(i))):n.ignoreEmptyArraysWhenExpanding?[]:[t]}function f(e,t){return t.escapeNestedDots?e.replace(/\./g,`\\.`):e}function p(e,t){return e?e+`.`+t:t}function m(e){return{arrayIndexesAsKeys:!1,expandNestedObjects:!0,expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...e??{}}}})),u=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isInvalid=e.flatten=e.unique=e.arrayDifference=e.isError=e.isUndefined=e.isNull=e.isObject=e.isString=e.isNumber=e.unwind=e.getNCharacters=e.removeEmptyFields=e.isEmptyField=e.computeSchemaDifferences=e.isDateRepresentation=e.isStringRepresentation=e.deepCopy=e.validate=e.buildC2JOptions=e.buildJ2COptions=void 0;var t=o(),n=a(),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,i=1e5;function s(e){return{...n.defaultJson2CsvOptions,...e,delimiter:{field:e?.delimiter?.field??n.defaultJson2CsvOptions.delimiter.field,wrap:e?.delimiter?.wrap||n.defaultJson2CsvOptions.delimiter.wrap,eol:e?.delimiter?.eol||n.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:e?.fieldTitleMap||Object.create({})}}e.buildJ2COptions=s;function c(e){return{...n.defaultCsv2JsonOptions,...e,delimiter:{field:e?.delimiter?.field??n.defaultCsv2JsonOptions.delimiter.field,wrap:e?.delimiter?.wrap||n.defaultCsv2JsonOptions.delimiter.wrap,eol:e?.delimiter?.eol||n.defaultCsv2JsonOptions.delimiter.eol}}}e.buildC2JOptions=c;function l(e,t,n){if(!e)throw Error(`${n.cannotCallOn} ${e}.`);if(!t(e))throw Error(n.dataCheckFailure);return!0}e.validate=l;function u(e){return JSON.parse(JSON.stringify(e))}e.deepCopy=u;function d(e,t){let n=e[0],r=e[e.length-1];return n===t.delimiter.wrap&&r===t.delimiter.wrap}e.isStringRepresentation=d;function f(e){return r.test(e)}e.isDateRepresentation=f;function p(e,t){return T(e,t).concat(T(t,e))}e.computeSchemaDifferences=p;function m(e){return C(e)||S(e)||e===``}e.isEmptyField=m;function h(e){return e.filter(e=>!m(e))}e.removeEmptyFields=h;function g(e,t,n){return e.substring(t,t+n)}e.getNCharacters=g;function _(e,n,r){let i=(0,t.evaluatePath)(n,r),a=u(n);Array.isArray(i)&&i.length?i.forEach(i=>{a=u(n),e.push((0,t.setPath)(a,r,i))}):(Array.isArray(i)&&i.length===0&&(0,t.setPath)(a,r,``),e.push(a))}function v(e,t){let n=[];return e.forEach(e=>{_(n,e,t)}),n}e.unwind=v;function y(e){return!isNaN(Number(e))}e.isNumber=y;function b(e){return typeof e==`string`}e.isString=b;function x(e){return typeof e==`object`}e.isObject=x;function S(e){return e===null}e.isNull=S;function C(e){return e===void 0}e.isUndefined=C;function w(e){return Object.prototype.toString.call(e)===`[object Error]`}e.isError=w;function T(e,t){return e.filter(e=>!t.includes(e))}e.arrayDifference=T;function E(e){return[...new Set(e)]}e.unique=E;function D(e){if(e.flat)return e.flat();if(e.length>i){let t=[];for(let n=0;n<e.length;n+=i)t=t.concat(...e.slice(n,n+i));return t}return e.reduce((e,t)=>
3e.concat(t),[])}e.flatten=D;function O(e){return e===1/0||e===-1/0}e.isInvalid=O})),d=t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.Json2Csv=void 0;var i=o(),s=l(),c=a(),d=r(u());e.Json2Csv=function(e){let t=new RegExp(e.delimiter.wrap,`g`),n=/\r?\n|\r/,r=e.parseValue&&typeof e.parseValue==`function`?e.parseValue:null,a=e.expandArrayObjects&&!e.unwindArrays,o={arrayIndexesAsKeys:e.arrayIndexesAsKeys,expandNestedObjects:e.expandNestedObjects,expandArrayObjects:a,ignoreEmptyArraysWhenExpanding:a,escapeNestedDots:!0};function l(e){return(0,s.deepKeysFromList)(e,o)}function u(t){return t.length===0?[]:e.checkSchemaDifferences?f(t):d.unique(d.flatten(t))}function f(e){let t=e[0];if(p(t,e.slice(1)))throw Error(c.errors.json2csv.notSameSchema);return t}function p(e,t){return t.reduce((t,n)=>d.computeSchemaDifferences(e,n).length>0?t+1:t,0)}function m(t){return e.excludeKeys?t.filter(t=>{for(let n of e.excludeKeys){let e=n instanceof RegExp?n:RegExp(`^${n}`);if(n===t||t.match(e))return!1}return!0}):t}function h(t){return e.sortHeader&&typeof e.sortHeader==`function`?t.sort(e.sortHeader):e.sortHeader?t.sort():t}function g(t){return e.trimHeaderFields&&(t.headerFields=t.headerFields.map(e=>e.split(`.`).map(e=>e.trim()).join(`.`))),t}
3function _(t){return e.prependHeader&&(t.headerFields=t.headerFields.map(function(e){return A(e)})),t}function v(t){let n=Object.keys(e.fieldTitleMap);return t.header=t.headerFields.map(function(t){let r=t;return n.includes(t)?r=A(e.fieldTitleMap[t]):e.escapeHeaderNestedDots||(r=r.replace(/\\\./g,`.`)),r}).join(e.delimiter.field),t}function y(){return e.keys?e.keys.map(t=>typeof t==`object`&&`field`in t?(e.fieldTitleMap[t.field]=t.title??t.field,t.field):t):[]}function b(){return e.keys?e.keys.flatMap(e=>typeof e==`string`?[]:e?.wildcardMatch?e.field:[]):[]}function x(t){let n=b(),r=y(),i=u(l(t));if(e.keys){e.keys=r;let t=r.flatMap(e=>{if(!n.includes(e))return e;let t=[],r=RegExp(`^${e}`);for(let n of i)(e===n||n.match(r))&&t.push(n);return t});if(!e.unwindArrays)return h(m(t))}return h(m(i))}function S(e){for(let t of e.records)for(let n of e.headerFields){let e=(0,i.evaluatePath)(t,n);if(Array.isArray(e))return!0}return!1}function C(t,n=!1){return e.unwindArrays?(t.headerFields.forEach(e=>{t.records=d.unwind(t.records,e)}),t.headerFields=x(t.records),S(t)?C(t,n):n?(e.keys&&(t.headerFields=m(y())),t):C(t,!0)):t}function w(t){return t.recordString=t.records.map(e=>j(E(e,t.headerFields).map(e=>{e=O(e),e=k(e);let t=r?r(e,D):D(e);return t=A(t),t}))).join(e.delimiter.eol),t}function T(t){let n=d.removeEmptyFields(t);return!t.length||!n.length?e.emptyFieldValue||``:n.length===1?n[0]:t}function E(t,n){let r=[];return n.forEach(n=>{let a=(0,i.evaluatePath)(t,n);!d.isUndefined(e.emptyFieldValue)&&d.isEmptyField(a)?a=e.emptyFieldValue:e.expandArrayObjects&&Array.isArray(a)&&(a=T(a)),r.push(a)}),r}function D(t){let n=t instanceof Date;return t===null||Array.isArray(t)||typeof t==`object`&&!n?JSON.stringify(t):t===void 0?`undefined`:n&&e.useDateIso8601Format?t.toISOString():e.useLocaleFormat?t.toLocaleString():t.toString()}function O(t){return e.trimFieldValues?Array.isArray(t)?t.map(O):typeof t==`string`?t.trim():t:t}function k(t){return e.preventCsvInjection?Array.isArray(t)?t.map(k):typeof t==`string`&&!d.isNumber(t)?t.replace(/^[ \t\r]*[=+\-@\t\r]+/g,``):t:t}function A(r){let i=e.delimiter.wrap;return r.includes(e.delimiter.wrap)&&(r=r.replace(t,i+i)),(r.includes(e.delimiter.field)||r.includes(e.delimiter.wrap)||r.match(n)||e.wrapBooleans&&(r===`true`||r===`false`))&&(r=i+r+i),r}function j(t){return t.join(e.delimiter.field)}function M(t){let n=t.header,r=t.recordString;return(e.excelBOM?c.excelBOM:``)+(e.prependHeader?n+e.delimiter.eol:``)+r}function N(e){return Array.isArray(e)||(e=[e]),M(v(g(_(w(C({headerFields:x(e),records:e,header:``,recordString:``}))))))}return{convert:N}}})),f=t((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.Csv2Json=void 0;var i=o(),s=a(),c=r(u());e.Csv2Json=function(e){let t=new RegExp(e.delimiter.wrap+e.delimiter.wrap,`g`),n=RegExp(`^`+s.excelBOM),r=e.parseValue&&typeof e.parseValue==`function`?e.parseValue:JSON.parse;function a(t){return t=g(t),e.trimHeaderFields?t.split(`.`).map(e=>e.trim()).join(`.`):t}function o(t){let n=[];if(e.headerFields)n=e.headerFields.map((e,t)=>({value:a(e),index:t}));else if(n=t[0].map((e,t)=>({value:a(e),index:t})),e.keys){let t=e.keys;n=n.filter(e=>t.includes(e.value))}return{lines:t,headerFields:n,recordLines:[]}}function l(t){return e.excelBOM?t.replace(n,``):t}function u(t){let n=[],r=t.length-1,i=e.delimiter.eol.length,a={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0},o=[],s,l,u,d,f=0;for(;f<t.length;){if(s=t[f],l=f?t[f-1]:``,u=f<r?t[f+1]:``,d=c.getNCharacters(t,f,i),(d===e.delimiter.eol&&!a.insideWrapDelimiter||f===r)&&l===e.delimiter.field)d===e.delimiter.eol&&a.startIndex===f||s===e.delimiter.field?o.push(``):o.push(t.substring(a.startIndex)),o.push(``),n.push(o),o=[],a.startIndex=f
3+i,a.parsingValue=!0,a.insideWrapDelimiter=u===e.delimiter.wrap;else if(f===r&&s===e.delimiter.field){let e=t.substring(a.startIndex,f);o.push(e),o.push(``),n.push(o)}else if(f===r||d===e.delimiter.eol&&(!a.insideWrapDelimiter||a.insideWrapDelimiter&&l===e.delimiter.wrap&&!a.justParsedDoubleQuote)){let s=f!==r||l===e.delimiter.wrap?f:void 0;o.push(t.substring(a.startIndex,s)),n.push(o),o=[],a.startIndex=f+i,a.parsingValue=!0,a.insideWrapDelimiter=u===e.delimiter.wrap}else if(s===e.delimiter.wrap&&l===e.delimiter.field&&!a.insideWrapDelimiter&&!a.parsingValue)a.startIndex=f,a.insideWrapDelimiter=!0,a.parsingValue=!0,c.getNCharacters(t,f+1,i)===e.delimiter.eol&&(f+=e.delimiter.eol.length+1);else if(l===e.delimiter.field&&s===e.delimiter.wrap&&u===e.delimiter.eol)o.push(t.substring(a.startIndex,f-1)),a.startIndex=f,a.parsingValue=!0,a.insideWrapDelimiter=!0,a.justParsedDoubleQuote=!0,f+=1;else if((l!==e.delimiter.wrap||a.justParsedDoubleQuote&&l===e.delimiter.wrap)&&s===e.delimiter.wrap&&c.getNCharacters(t,f+1,i)===e.delimiter.eol)a.insideWrapDelimiter=!1,a.parsingValue=!1;else if(s===e.delimiter.wrap&&(f===0||c.getNCharacters(t,f-i,i)===e.delimiter.eol&&!a.insideWrapDelimiter))a.insideWrapDelimiter=!0,a.parsingValue=!0,a.startIndex=f;else if(s===e.delimiter.wrap&&u===e.delimiter.field&&a.insideWrapDelimiter)o.push(t.substring(a.startIndex,f+1)),a.startIndex=f+2,a.insideWrapDelimiter=!1,a.parsingValue=!1;else if(s===e.delimiter.wrap&&l===e.delimiter.field&&!a.insideWrapDelimiter&&a.parsingValue)o.push(t.substring(a.startIndex,f-1)),a.insideWrapDelimiter=!0,a.parsingValue=!0,a.startIndex=f;else if(s===e.delimiter.wrap&&u===e.delimiter.wrap&&f!==a.startIndex){f+=2,a.justParsedDoubleQuote=!0;continue}else s===e.delimiter.field&&l!==e.delimiter.wrap&&u!==e.delimiter.wrap&&!a.insideWrapDelimiter&&a.parsingValue?(o.push(t.substring(a.startIndex,f)),a.startIndex=f+1):s===e.delimiter.field&&l===e.delimiter.wrap&&u!==e.delimiter.wrap&&!a.parsingValue&&(a.insideWrapDelimiter=!1,a.parsingValue=!0,a.startIndex=f+1);f++,a.justParsedDoubleQuote=!1}return n}function d(t){return t.recordLines=e.headerFields?t.lines:t.lines.splice(1),t}function f(e,t){let n=t[e.index];return p(n)}function p(e){let t=y(e);return!c.isError(t)&&!c.isInvalid(t)?t:e===`undefined`?void 0:e}function m(t){return e.trimFieldValues&&t!==null?t.trim():t}function h(e,t){return e.reduce((e,n)=>{let r=f(n,t);try{return(0,i.setPath)(e,n.value,r)}catch{return e}},{})}function g(t){let n=t[0],r=t.length-1,i=t[r];return n===e.delimiter.wrap&&i===e.delimiter.wrap?t.length<=2?``:t.substring(1,r):t}function _(n){return n.replace(t,e.delimiter.wrap)}function v(e){return e.recordLines.reduce((t,n)=>{n=n.map(e=>(e=g(e),e=_(e),e=m(e),e));let r=h(e.headerFields,n);return t.concat(r)},[])}function y(t){try{if(c.isStringRepresentation(t,e)&&!c.isDateRepresentation(t))return t;let n=r(t);return Array.isArray(n)?n.map(m):n}catch(e){return e}}function b(e){return v(d(o(u(l(e)))))}return{convert:b}}})),p=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.csv2json=e.json2csv=void 0;var t=a(),n=d(),r=f(),i=u();function o(e,r){let a=(0,i.buildJ2COptions)(r??{});return(0,i.validate)(e,i.isObject,t.errors.json2csv),(0,n.Json2Csv)(a).convert(e)}e.json2csv=o;function s(e,n){let a=(0,i.buildC2JOptions)(n??{});return(0,i.validate)(e,i.isString,t.errors.csv2json),(0,r.Csv2Json)(a).convert(e)}e.csv2json=s})),m=t((e=>{(function(){e.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:`@`,charkey:`#`,explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:`@@`,charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:``},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:`$`,charkey:`_`,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:`$$`,charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:`root`,xmldec:{version:`1.0`,encoding:`UTF-8`,standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:`  `,newline:`
4`},headless:!1,chunkSize:1e4,emptyTag:``,cdata:!1}}}).call(e)})),h=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c=[].slice,l={}.hasOwnProperty;e=function(){var e,t,n,r,i,o=arguments[0];
4if(i=2<=arguments.length?c.call(arguments,1):[],a(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=i.length;e<n;e++)if(r=i[e],r!=null)for(t in r)l.call(r,t)&&(o[t]=r[t]);return o},a=function(e){return!!e&&Object.prototype.toString.call(e)===`[object Function]`},o=function(e){var t;return!!e&&((t=typeof e)==`function`||t===`object`)},r=function(e){return a(Array.isArray)?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(l.call(e,t))return!1;return!0},s=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&typeof t==`function`&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return a(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=a,t.exports.isObject=o,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=s,t.exports.getValue=n}).call(e)})),g=t(((e,t)=>{(function(){t.exports=(function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,n){throw Error(`This DOM method is not implemented.`)},e.prototype.createDocument=function(e,t,n){throw Error(`This DOM method is not implemented.`)},e.prototype.createHTMLDocument=function(e){throw Error(`This DOM method is not implemented.`)},e.prototype.getFeature=function(e,t){throw Error(`This DOM method is not implemented.`)},e})()}).call(e)})),_=t(((e,t)=>{(function(){t.exports=(function(){function e(){}return e.prototype.handleError=function(e){throw Error(e)},e})()}).call(e)})),v=t(((e,t)=>{(function(){t.exports=(function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return this.arr.indexOf(e)!==-1},e})()}).call(e)})),y=t(((e,t)=>{(function(){var e=_(),n=v();t.exports=(function(){function t(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(t.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),t.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},t.prototype.canSetParameter=function(e,t){return!0},t.prototype.setParameter=function(e,t){return t==null?delete this.params[e]:this.params[e]=t},t})()}).call(e)})),b=t(((e,t)=>{(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(e)})),x=t(((e,t)=>{(function(){var e=b();z(),t.exports=(function(){function t(t,n,r){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw Error(`Missing attribute name. `+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(r),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"specified",{get:function(){return!0}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},t.prototype.debugInfo=function(e){return e||=this.name,e==null?`parent: <`+this.parent.name+`>`:`attribute: {`+e+`}, parent: <`+this.parent.name+`>`},t.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value},t})()}).call(e)})),S=t(((e,t)=>{(function(){t.exports=(function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t=this.nodes[e.nodeName];return this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t=this.nodes[e];return delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw Error(`This DOM method is not implemented.`)},e.prototype.setNamedItemNS=function(e){throw Error(`This DOM method is not implemented.`)},e.prototype.removeNamedItemNS=function(e,t){throw Error(`This DOM method is not implemented.`)},e})()}).call(e)})),C=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;c=h(),s=c.isObject,o=c.isFunction,a=c.getValue,i=z(),e=b(),n=x(),r=S(),t.exports=(function(t){l(i,t);function i(t,n,r){var a,o,s,c;if(i.__super__.constructor.call(this,t),n==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,r!=null&&this.attribute(r),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children)){for(c=t.children,o=0,s=c.length;o<s;o++)if(a=c[o],a.type===e.DocType){a.name=this.name;break}}}return Object.defineProperty(i.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"id",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(i.prototype,"className",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(i.prototype,"classList",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(i.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new r(this.attribs)),this.attributeMap}}),i.prototype.clone=function(){var e,t,n=Object.create(this),r;for(t in n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs,r)u.call(r,t)&&(e=r[t],n.attribs[t]=e.clone());
4return n.children=[],this.children.forEach(function(e){var t=e.clone();return t.parent=n,n.children.push(t)}),n},i.prototype.attribute=function(e,t){var r,i;if(e!=null&&(e=a(e)),s(e))for(r in e)u.call(e,r)&&(i=e[r],this.attribute(r,i));else o(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.attribs[e]=new n(this,e,``):t!=null&&(this.attribs[e]=new n(this,e,t));return this},i.prototype.removeAttribute=function(e){var t,n,r;if(e==null)throw Error(`Missing attribute name. `+this.debugInfo());if(e=a(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attribs[t];else delete this.attribs[e];return this},i.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},i.prototype.att=function(e,t){return this.attribute(e,t)},i.prototype.a=function(e,t){return this.attribute(e,t)},i.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},i.prototype.setAttribute=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},i.prototype.setAttributeNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.removeAttributeNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagName=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getAttributeNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.setAttributeNS=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.removeAttributeNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getAttributeNodeNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.setAttributeNodeNS=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},i.prototype.hasAttributeNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},i.prototype.setIdAttributeNS=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.setIdAttributeNode=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagName=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByClassName=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.isEqualNode=function(e){var t,n,r;if(!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.attribs.length!==this.attribs.length)return!1;for(t=n=0,r=this.attribs.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0},i})(i)}).call(e)})),w=t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=z(),t.exports=(function(e){n(t,e);function t(e){t.__super__.constructor.call(this,e),this.value=``}return Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||``}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.appendData=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.insertData=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.deleteData=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.replaceData=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.isEqualNode=function(e){return!(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.data!==this.data)},t})(e)}).call(e)})),T=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=b(),n=w(),t.exports=(function(t){r(n,t);function n(t,r){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=e.CData,this.value=this.stringify.cdata(r)}return n.prototype.clone=function(){return Object.create(this)}
4,n.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),E=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=b(),n=w(),t.exports=(function(t){r(n,t);function n(t,r){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=e.Comment,this.value=this.stringify.comment(r)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),D=t(((e,t)=>{(function(){var e,n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=h().isObject,n=z(),e=b(),t.exports=(function(t){i(n,t);function n(t,i,a,o){var s;n.__super__.constructor.call(this,t),r(i)&&(s=i,i=s.version,a=s.encoding,o=s.standalone),i||=`1.0`,this.type=e.Declaration,this.version=this.stringify.xmlVersion(i),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}return n.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),O=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=z(),e=b(),t.exports=(function(t){r(n,t);function n(t,r,i,a,o,s){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(i==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(r));if(!a)throw Error(`Missing DTD attribute type. `+this.debugInfo(r));if(!o)throw Error(`Missing DTD attribute default. `+this.debugInfo(r));if(o.indexOf(`#`)!==0&&(o=`#`+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(r));if(s&&!o.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(a),s&&(this.defaultValue=this.stringify.dtdAttDefault(s)),this.defaultValueType=o}return n.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),k=t(((e,t)=>{(function(){var e,n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=h().isObject,n=z(),e=b(),t.exports=(function(t){i(n,t);function n(t,i,a,o){if(n.__super__.constructor.call(this,t),a==null)throw Error(`Missing DTD entity name. `+this.debugInfo(a));if(o==null)throw Error(`Missing DTD entity value. `+this.debugInfo(a));if(this.pe=!!i,this.name=this.stringify.name(a),this.type=e.EntityDeclaration,!r(o))this.value=this.stringify.dtdEntityValue(o),this.internal=!0;else{if(!o.pubID&&!o.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(a));if(o.pubID&&!o.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(a));if(this.internal=!1,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID)),o.nData!=null&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(a))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),A=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=z(),e=b(),t.exports=(function(t){r(n,t);function n(t,r,i){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing DTD element name. `+this.debugInfo());i||=`(#PCDATA)`,Array.isArray(i)&&(i=`(`+i.join(`,`)+`)`),this.name=this.stringify.name(r),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return n.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),j=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=z(),e=b(),t.exports=(function(t){r(n,t);function n(t,r,i){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing DTD notation name. `+this.debugInfo(r));if(!i.pubID&&!i.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(r));this.name=this.stringify.name(r),this.type=e.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),M=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;c=h().isObject,s=z(),e=b(),n=O(),i=k(),r=A(),a=j(),o=S(),t.exports=(function(t){l(s,t);function s(t,n,r){var i,a,o,l,u,d;if(s.__super__.constructor.call(this,t),this.type=e.DocType,t.children){for(l=t.children,a=0,o=l.length;a<o;a++)if(i=l[a],i.type===e.Element){this.name=i.name;break}}this.documentObject=t,c(n)&&(u=n,n=u.pubID,r=u.sysID),r??(d=[n,r],r=
4d[0],n=d[1]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),r!=null&&(this.sysID=this.stringify.dtdSysID(r))}return Object.defineProperty(s.prototype,"entities",{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.EntityDeclaration&&!t.pe&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(s.prototype,"notations",{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.NotationDeclaration&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(s.prototype,"internalSubset",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),s.prototype.element=function(e,t){var n=new r(this,e,t);return this.children.push(n),this},s.prototype.attList=function(e,t,r,i,a){var o=new n(this,e,t,r,i,a);return this.children.push(o),this},s.prototype.entity=function(e,t){var n=new i(this,!1,e,t);return this.children.push(n),this},s.prototype.pEntity=function(e,t){var n=new i(this,!0,e,t);return this.children.push(n),this},s.prototype.notation=function(e,t){var n=new a(this,e,t);return this.children.push(n),this},s.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))},s.prototype.ele=function(e,t){return this.element(e,t)},s.prototype.att=function(e,t,n,r,i){return this.attList(e,t,n,r,i)},s.prototype.ent=function(e,t){return this.entity(e,t)},s.prototype.pent=function(e,t){return this.pEntity(e,t)},s.prototype.not=function(e,t){return this.notation(e,t)},s.prototype.up=function(){return this.root()||this.documentObject},s.prototype.isEqualNode=function(e){return!(!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.name!==this.name||e.publicId!==this.publicId||e.systemId!==this.systemId)},s})(s)}).call(e)})),N=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=b(),n=z(),t.exports=(function(t){r(n,t);function n(t,r){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(r)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},n})(n)}).call(e)})),P=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=b(),n=w(),t.exports=(function(t){r(n,t);function n(t,r){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=e.Text,this.value=this.stringify.text(r)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var e,t,n=``;for(t=this.previousSibling;t;)n=t.data+n,t=t.previousSibling;for(n+=this.data,e=this.nextSibling;e;)n+=e.data,e=e.nextSibling;return n}}),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},n.prototype.splitText=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},n.prototype.replaceWholeText=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},n})(n)}).call(e)})),F=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;e=b(),n=w(),t.exports=(function(t){r(n,t);function n(t,r,i){if(n.__super__.constructor.call(this,t),r==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},n.prototype.isEqualNode=function(e){return!(!n.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)||e.target!==this.target)},n})(n)}).call(e)})),I=t(((e,t)=>{(function(){var e,n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=z(),e=b(),t.exports=(function(t){r(n,t);function n(t){n.__super__.constructor.call(this,t),this.type=e.Dummy}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return``},n})(n)}).call(e)})),L=t(((e,t)=>{(function(){t.exports=(function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e})()}).call(e)})),R=t(((e,t)=>{(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(e)})),z=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,g,_,v,y={}.hasOwnProperty;v=h(),_=v.isObject,g=v.isFunction,m=v.isEmpty,p=v.getValue,c=null,r=null,i=null,a=null,o=null,d=null,f=null,u=null,s=null,n=null,l=null,e=null,t.exports=(function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=C(),r=T(),i=E(),a=D(),o=M(),d=N(),f=P(),u=F(),s=I(),n=b(),l=L(),S(),e=R())}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,r,i,a;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(a=``,i=this.children,t=0,r=i.length;t<r;t++)e=i[t],e.textContent&&(a+=e.textContent);return a}return null},set:function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),t.prototype.setParent=function(e){var t,n,r,i,a;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),i=this.children,a=[],n=0,r=i.length;n<r;n++)t=i[n],a.push(t.setParent(this));return a},t.prototype.element=function(e,t,n){var r,i,a,o,s,c=null,l,u,d,f,h;if(t===null&&n==null&&(d=[{},null],t=d[0],n=d[1]),t??={},t=p(t),_(t)||(f=[t,n],n=f[0],t=f[1]),e!=null&&(e=p(e)),Array.isArray(e))for(a=0,l=e.length;a<l;
4a++)i=e[a],c=this.element(i);else if(g(e))c=this.element(e.apply());else if(_(e)){for(s in e)if(y.call(e,s)){if(h=e[s],g(h)&&(h=h.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0)c=this.attribute(s.substr(this.stringify.convertAttKey.length),h);else if(!this.options.separateArrayItems&&Array.isArray(h)&&m(h))c=this.dummy();else if(_(h)&&m(h))c=this.element(s);else if(!this.options.keepNullNodes&&h==null)c=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(h))for(o=0,u=h.length;o<u;o++)i=h[o],r={},r[s]=i,c=this.element(r);else _(h)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0?c=this.element(h):(c=this.element(s),c.element(h)):c=this.element(s,h)}}else c=!this.options.keepNullNodes&&n===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(c==null)throw Error(`Could not create any elements with: `+e+`. `+this.debugInfo());return c},t.prototype.insertBefore=function(e,t,n){var r,i,a,o,s;if(e?.type)return a=e,o=t,a.setParent(this),o?(i=children.indexOf(o),s=children.splice(i),children.push(a),Array.prototype.push.apply(children,s)):children.push(a),a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r},t.prototype.insertAfter=function(e,t,n){var r,i,a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),r},t.prototype.remove=function(){var e;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1]),this.parent},t.prototype.node=function(e,t,n){var r,i;return e!=null&&(e=p(e)),t||={},t=p(t),_(t)||(i=[t,n],n=i[0],t=i[1]),r=new c(this,e,t),n!=null&&r.text(n),this.children.push(r),r},t.prototype.text=function(e){var t;return _(e)&&this.element(e),t=new f(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t=new r(this,e);return this.children.push(t),this},t.prototype.comment=function(e){var t=new i(this,e);return this.children.push(t),this},t.prototype.commentBefore=function(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.commentAfter=function(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.raw=function(e){var t=new d(this,e);return this.children.push(t),this},t.prototype.dummy=function(){return new s(this)},t.prototype.instruction=function(e,t){var n,r,i,a,o;if(e!=null&&(e=p(e)),t!=null&&(t=p(t)),Array.isArray(e))for(a=0,o=e.length;a<o;a++)n=e[a],this.instruction(n);else if(_(e))for(n in e)y.call(e,n)&&(r=e[n],this.instruction(n,r));else g(t)&&(t=t.apply()),i=new u(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.instructionAfter=function(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.declaration=function(e,t,r){var i=this.document(),o=new a(i,e,t,r);return i.children.length===0?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},t.prototype.dtd=function(e,t){var r,i=this.document(),a=new o(i,e,t),s,c,l,u,d,f=i.children,p;for(s=c=0,u=f.length;c<u;s=++c)if(r=f[s],r.type===n.DocType)return i.children[s]=a,a;for(p=i.children,s=l=0,d=p.length;l<d;s=++l)if(r=p[s],r.isRoot)return i.children.splice(s,0,a),a;return i.children.push(a),a},t.prototype.up=function(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent},t.prototype.root=function(){for(var e=this;e;)if(e.type===n.Document)return e.rootObject;else if(e.isRoot)return e;else e=e.parent},t.prototype.document=function(){for(var e=this;e;)if(e.type===n.Document)return e;else e=e.parent},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e=this.parent.children.indexOf(this);if(e<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){var e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[e+1]}
4,t.prototype.importDocument=function(e){var t=e.root().clone();return t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){return e||=this.name,e==null&&!this.parent?.name?``:e==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+e+`>, parent: <`+this.parent.name+`>`:`node: <`+e+`>`},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.removeChild=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.appendChild=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.hasChildNodes=function(){return this.children.length!==0},t.prototype.cloneNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.normalize=function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return this.attribs.length!==0},t.prototype.compareDocumentPosition=function(t){var n=this,r;return n===t?0:this.document()===t.document()?n.isAncestor(t)?e.Contains|e.Preceding:n.isDescendant(t)?e.Contains|e.Following:n.isPreceding(t)?e.Preceding:e.Following:(r=e.Disconnected|e.ImplementationSpecific,r|=Math.random()<.5?e.Preceding:e.Following,r)},t.prototype.isSameNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,n,r;if(e.nodeType!==this.nodeType||e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.setUserData=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.getUserData=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},t.prototype.contains=function(e){return e?e===this||this.isDescendant(e):!1},t.prototype.isDescendant=function(e){var t,n,r,i,a=this.children;for(r=0,i=a.length;r<i;r++)if(t=a[r],e===t||(n=t.isDescendant(e),n))return!0;return!1},t.prototype.isAncestor=function(e){return e.isDescendant(this)},t.prototype.isPreceding=function(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t<n},t.prototype.isFollowing=function(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t>n},t.prototype.treePosition=function(e){var t,n=0;return t=!1,this.foreachTreeNode(this.document(),function(r){if(n++,!t&&r===e)return t=!0}),t?n:-1},t.prototype.foreachTreeNode=function(e,t){var n,r,i,a,o;for(e||=this.document(),a=e.children,r=0,i=a.length;r<i;r++)if(n=a[r],(o=t(n))||(o=this.foreachTreeNode(n,t),o))return o},t})()}).call(e)})),B=t(((e,t)=>{(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;t.exports=(function(){function t(t){this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this);var r,i,a;for(r in t||={},this.options=t,this.options.version||(this.options.version=`1.0`),i=t.stringify||{},i)n.call(i,r)&&(a=i[r],this[r]=a)}return t.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(``+e||``)},t.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(``+e||``))},t.prototype.cdata=function(e){return this.options.noValidation?e:(e=``+e||``,e=e.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:``+e||``},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=``+e||``))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/\?>/))throw Error(`Invalid processing instruction value: `+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?`yes`:`no`},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)},t.prototype.convertAttKey=`@`,t.prototype.convertPIKey=`?`,t.prototype.convertTextKey=`#text`,t.prototype.convertCDataKey=`#cdata`,t.prototype.convertCommentKey=`#comment`,t.prototype.convertRawKey=`#raw`,t.prototype.assertLegalChar=function(e){var t,n;if(this.options.noValidation)return e;if(t=``,this.options.version===`1.0`){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t))throw Error(`Invalid character in string: `+e+` at index `+n.index)}else if(this.options.version===`1.1`&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t)))throw Error(`Invalid character in string: `+e+` at index `+n.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw Error(`Invalid character in name`);return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\r/g,`&#xD;`))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/\t/g,`&#x9;`).replace(/\n/g,`&#xA;`).replace(/\r/g,`&#xD;`))},t})()}).call(e)})),V=t(((e,t)=>{(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(e)})),H=t(((e,t)=>{(function(){var e,n,r,i={}.hasOwnProperty;
4r=h().assign,e=b(),D(),M(),T(),E(),C(),N(),P(),F(),I(),O(),A(),k(),j(),n=V(),t.exports=(function(){function t(e){var t,n,r;for(t in e||={},this.options=e,n=e.writer||{},n)i.call(n,t)&&(r=n[t],this[`_`+t]=this[t],this[t]=r)}return t.prototype.filterOptions=function(e){var t;return e||={},e=r({},this.options,e),t={writer:this},t.pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=e.indent??`  `,t.newline=e.newline??`
5`,t.offset=e.offset??0,t.dontPrettyTextNodes=e.dontPrettyTextNodes??e.dontprettytextnodes??0,t.spaceBeforeSlash=e.spaceBeforeSlash??e.spacebeforeslash??``,t.spaceBeforeSlash===!0&&(t.spaceBeforeSlash=` `),t.suppressPrettyCount=0,t.user={},t.state=n.None,t},t.prototype.indent=function(e,t,n){var r;return!t.pretty||t.suppressPrettyCount?``:t.pretty&&(r=(n||0)+t.offset+1,r>0)?Array(r).join(t.indent):``},t.prototype.endline=function(e,t,n){return!t.pretty||t.suppressPrettyCount?``:t.newline},t.prototype.attribute=function(e,t,n){var r;return this.openAttribute(e,t,n),r=` `+e.name+`="`+e.value+`"`,this.closeAttribute(e,t,n),r},t.prototype.cdata=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<![CDATA[`,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=`]]>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.comment=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!-- `,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=` -->`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.declaration=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?xml`,t.state=n.InsideTag,i+=` version="`+e.version+`"`,e.encoding!=null&&(i+=` encoding="`+e.encoding+`"`),e.standalone!=null&&(i+=` standalone="`+e.standalone+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.docType=function(e,t,r){var i,a,o,s,c;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,s=this.indent(e,t,r),s+=`<!DOCTYPE `+e.root().name,e.pubID&&e.sysID?s+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(s+=` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(s+=` [`,s+=this.endline(e,t,r),t.state=n.InsideTag,c=e.children,a=0,o=c.length;a<o;a++)i=c[a],s+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,s+=`]`}return t.state=n.CloseTag,s+=t.spaceBeforeSlash+`>`,s+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),s},t.prototype.element=function(t,r,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y;for(m in a||=0,h=!1,g=``,this.openNode(t,r,a),r.state=n.OpenTag,g+=this.indent(t,r,a)+`<`+t.name,_=t.attribs,_)i.call(_,m)&&(o=_[m],g+=this.attribute(o,r,a));if(c=t.children.length,l=c===0?null:t.children[0],c===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw)&&t.value===``}))r.allowEmpty?(g+=`>`,r.state=n.CloseTag,g+=`</`+t.name+`>`+this.endline(t,r,a)):(r.state=n.CloseTag,g+=r.spaceBeforeSlash+`/>`+this.endline(t,r,a));else if(r.pretty&&c===1&&(l.type===e.Text||l.type===e.Raw)&&l.value!=null)g+=`>`,r.state=n.InsideTag,r.suppressPrettyCount++,h=!0,g+=this.writeChildNode(l,r,a+1),r.suppressPrettyCount--,h=!1,r.state=n.CloseTag,g+=`</`+t.name+`>`+this.endline(t,r,a);else{if(r.dontPrettyTextNodes){for(v=t.children,u=0,f=v.length;u<f;u++)if(s=v[u],(s.type===e.Text||s.type===e.Raw)&&s.value!=null){r.suppressPrettyCount++,h=!0;break}}for(g+=`>`+this.endline(t,r,a),r.state=n.InsideTag,y=t.children,d=0,p=y.length;d<p;d++)s=y[d],g+=this.writeChildNode(s,r,a+1);r.state=n.CloseTag,g+=this.indent(t,r,a)+`</`+t.name+`>`,h&&r.suppressPrettyCount--,g+=this.endline(t,r,a),r.state=n.None}return this.closeNode(t,r,a),g},t.prototype.writeChildNode=function(t,n,r){switch(t.type){case e.CData:return this.cdata(t,n,r);case e.Comment:return this.comment(t,n,r);case e.Element:return this.element(t,n,r);case e.Raw:return this.raw(t,n,r);case e.Text:return this.text(t,n,r);case e.ProcessingInstruction:return this.processingInstruction(t,n,r);case e.Dummy:return``;case e.Declaration:return this.declaration(t,n,r);case e.DocType:return this.docType(t,n,r);case e.AttributeDeclaration:return this.dtdAttList(t,n,r);case e.ElementDeclaration:return this.dtdElement(t,n,r);case e.EntityDeclaration:return this.dtdEntity(t,n,r);case e.NotationDeclaration:return this.dtdNotation(t,n,r);default:throw Error(`Unknown XML node type: `+t.constructor.name)}},t.prototype.processingInstruction=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?`,t.state=n.InsideTag,i+=e.target,e.value&&(i+=` `+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.raw=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.text=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.dtdAttList=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ATTLIST`,t.state=n.InsideTag,i+=` `+e.elementName+` `+e.attributeName+` `+e.attributeType,e.defaultValueType!==`#DEFAULT`&&(i+=` `+e.defaultValueType),e.defaultValue&&(i+=` "`+e.defaultValue+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.dtdElement=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ELEMENT`,t.state=n.InsideTag,i+=` `+e.name+` `+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.dtdEntity=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ENTITY`,t.state=n.InsideTag,e.pe&&(i+=` %`),i+=` `+e.name,e.value?i+=` "`+e.value+`"`:(e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),e.nData&&(i+=` NDATA `+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.dtdNotation=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!NOTATION`,t.state=n.InsideTag,i+=` `+e.name,e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.pubID?i+=` PUBLIC "`+e.pubID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},t.prototype.openNode=function(e,t,n){},t.prototype.closeNode=function(e,t,n){},t.prototype.openAttribute=function(e,t,n){},t.prototype.closeAttribute=function(e,t,n){},t})()}).call(e)})),U=t(((e,t)=>{(function(){var e,n=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=H(),t.exports=(function(e){n(t,e);function t(e){t.__super__.constructor.call(this,e)}return t.prototype.document=function(e,t){var n,r,i,a,o;for(t=this.filterOptions(t),a=``,o=e.children,r=0,i=o.length;r<i;r++)n=o[r],a+=this.writeChildNode(n,t,0);return t.pretty&&a.slice(-t.newline.length)===t.newline&&(a=a.slice(0,-t.newline.length)),a},t})(e)}).call(e)})),W=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c=function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty;s=h().isPlainObject,r=g(),n=y(),i=z(),e=b(),o=B(),a=U(),t.exports=(function(t){c(i,t);function i(t){i.__super__.constructor.call(this,null),this.name=`#document`,this.type=e.Document,this.documentURI=null,this.domConfig=new n,t||={},t.writer||(t.writer=new a),this.options=t,this.stringify=new o(t)}return Object.defineProperty(i.prototype,"implementation",{value:new r}),Object.defineProperty(i.prototype,"doctype",{get:function(){var t,n,r,i=this.children;for(n=0,r=i.length;n<r;n++)if(t=i[n],t.type===e.DocType)return t;return null}}),Object.defineProperty(i.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(i.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration&&this.children[0].standalone===`yes`}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(i.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(i.prototype,"origin",{get:function(){return null}}),Object.defineProperty(i.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(i.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(i.prototype,"contentType",{get:function(){return null}}),i.prototype.end=function(e){var t={};return e?s(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},i.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},i.prototype.createElement=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createDocumentFragment=function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createTextNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createComment=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createCDATASection=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createProcessingInstruction=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createAttribute=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createEntityReference=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagName=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.importNode=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createElementNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createAttributeNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementById=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.adoptNode=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.normalizeDocument=function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.renameNode=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.getElementsByClassName=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createEvent=function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createRange=function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createNodeIterator=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i.prototype.createTreeWalker=function(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())},i})(i)}).call(e)})),G=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,g,_,v,y,S,w,I,L,R,z={}.hasOwnProperty;R=h(),I=R.isObject,w=R.isFunction,L=R.isPlainObject,S=R.getValue,e=b(),f=W(),p=C(),i=T(),a=E(),g=N(),y=P(),m=F(),u=D(),d=M(),o=O(),c=k(),s=A(),l=j(),r=x(),v=B(),_=U(),n=V(),t.exports=(function(){function t(t,n,r){var i;this.name=`?xml`,this.type=e.Document,t||={},i={},t.writer?L(t.writer)&&(i=t.writer,t.writer=new _):t.writer=new _,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new v(t),this.onDataCallback=n||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.createChildNode=function(t){var n,r,i,a,o,s,c,l;switch(t.type){case e.CData:this.cdata(t.value);break;case e.Comment:this.comment(t.value);break;case e.Element:for(r in i={},c=t.attribs,c)z.call(c,r)&&(n=c[r],i[r]=n.value);this.node(t.name,i);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(t.value);break;case e.Text:this.text(t.value);break;case e.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+t.constructor.name)}for(l=t.children,o=0,s=l.length;o<s;o++)a=l[o],this.createChildNode(a),a.type===e.Element&&this.up();return this},t.prototype.dummy=function(){return this},t.prototype.node=function(e,t,n){var r;if(e==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(e));return this.openCurrent(),e=S(e),t??={},t=S(t),I(t)||(r=[t,n],n=r[0],t=r[1]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this},t.prototype.element=function(t,n,r){var i,a,o,s,c,l;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(t)||I(t)||w(t))for(s=this.options.noValidation,this.options.noValidation=!0,l=new f(this.options).element
5(`TEMP_ROOT`),l.element(t),this.options.noValidation=s,c=l.children,a=0,o=c.length;a<o;a++)i=c[a],this.createChildNode(i),i.type===e.Element&&this.up();else this.node(t,n,r);return this},t.prototype.attribute=function(e,t){var n,i;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(e));if(e!=null&&(e=S(e)),I(e))for(n in e)z.call(e,n)&&(i=e[n],this.attribute(n,i));else w(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.currentNode.attribs[e]=new r(this,e,``):t!=null&&(this.currentNode.attribs[e]=new r(this,e,t));return this},t.prototype.text=function(e){var t;return this.openCurrent(),t=new y(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(e){var t;return this.openCurrent(),t=new a(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(e){var t;return this.openCurrent(),t=new g(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(e,t){var n,r,i,a,o;if(this.openCurrent(),e!=null&&(e=S(e)),t!=null&&(t=S(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)r=e[n],this.instruction(r);else if(I(e))for(r in e)z.call(e,r)&&(i=e[r],this.instruction(r,i));else w(t)&&(t=t.apply()),o=new m(this,e,t),this.onData(this.writer.processingInstruction(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(e,t,n){if(this.openCurrent(),e==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new d(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new s(this,e,t),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new c(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new c(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new l(this,e,t),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){var r,i,a,o;if(!t.isOpen){if(!this.root&&this.currentLevel===0&&t.type===e.Element&&(this.root=t),i=``,t.type===e.Element){for(a in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<`+t.name,o=t.attribs,o)z.call(o,a)&&(r=o[a],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?`>`:`/>`)+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+t.rootNodeName,t.pubID&&t.sysID?i+=` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`:t.sysID&&(i+=` SYSTEM "`+t.sysID+`"`),t.children?(i+=` [`,this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=`>`),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}},t.prototype.closeNode=function(t){var r;if(!t.isClosed)return r=``,this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+`</`+t.
5name+`>`+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0},t.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(e){return e==null?``:`node: <`+e+`>`},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t})()}).call(e)})),K=t(((e,t)=>{(function(){var e,n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;e=b(),r=H(),n=V(),t.exports=(function(t){i(r,t);function r(e,t){this.stream=e,r.__super__.constructor.call(this,t)}return r.prototype.endline=function(e,t,i){return e.isLastRootNode&&t.state===n.CloseTag?``:r.__super__.endline.call(this,e,t,i)},r.prototype.document=function(e,t){var n,r,i,a,o,s,c=e.children,l,u;for(r=i=0,o=c.length;i<o;r=++i)n=c[r],n.isLastRootNode=r===e.children.length-1;for(t=this.filterOptions(t),l=e.children,u=[],a=0,s=l.length;a<s;a++)n=l[a],u.push(this.writeChildNode(n,t,0));return u},r.prototype.attribute=function(e,t,n){return this.stream.write(r.__super__.attribute.call(this,e,t,n))},r.prototype.cdata=function(e,t,n){return this.stream.write(r.__super__.cdata.call(this,e,t,n))},r.prototype.comment=function(e,t,n){return this.stream.write(r.__super__.comment.call(this,e,t,n))},r.prototype.declaration=function(e,t,n){return this.stream.write(r.__super__.declaration.call(this,e,t,n))},r.prototype.docType=function(e,t,r){var i,a,o,s;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write(`<!DOCTYPE `+e.root().name),e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,s=e.children,a=0,o=s.length;a<o;a++)i=s[a],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write(`]`)}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+`>`),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)},r.prototype.element=function(t,r,i){var o,s,c,l,u,d,f,p,m;for(f in i||=0,this.openNode(t,r,i),r.state=n.OpenTag,this.stream.write(this.indent(t,r,i)+`<`+t.name),p=t.attribs,p)a.call(p,f)&&(o=p[f],this.attribute(o,r,i));if(c=t.children.length,l=c===0?null:t.children[0],c===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw)&&t.value===``}))r.allowEmpty?(this.stream.write(`>`),r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`)):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+`/>`));else if(r.pretty&&c===1&&(l.type===e.Text||l.type===e.Raw)&&l.value!=null)this.stream.write(`>`),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(l,r,i+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`);else{for(this.stream.write(`>`+this.endline(t,r,i)),r.state=n.InsideTag,m=t.children,u=0,d=m.length;u<d;u++)s=m[u],this.writeChildNode(s,r,i+1);
5r.state=n.CloseTag,this.stream.write(this.indent(t,r,i)+`</`+t.name+`>`)}return this.stream.write(this.endline(t,r,i)),r.state=n.None,this.closeNode(t,r,i)},r.prototype.processingInstruction=function(e,t,n){return this.stream.write(r.__super__.processingInstruction.call(this,e,t,n))},r.prototype.raw=function(e,t,n){return this.stream.write(r.__super__.raw.call(this,e,t,n))},r.prototype.text=function(e,t,n){return this.stream.write(r.__super__.text.call(this,e,t,n))},r.prototype.dtdAttList=function(e,t,n){return this.stream.write(r.__super__.dtdAttList.call(this,e,t,n))},r.prototype.dtdElement=function(e,t,n){return this.stream.write(r.__super__.dtdElement.call(this,e,t,n))},r.prototype.dtdEntity=function(e,t,n){return this.stream.write(r.__super__.dtdEntity.call(this,e,t,n))},r.prototype.dtdNotation=function(e,t,n){return this.stream.write(r.__super__.dtdNotation.call(this,e,t,n))},r})(r)}).call(e)})),q=t(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u=h();c=u.assign,l=u.isFunction,r=g(),i=W(),a=G(),s=U(),o=K(),e=b(),n=V(),t.exports.create=function(e,t,n,r){var a,o;if(e==null)throw Error(`Root element needs a name.`);return r=c({},t,n,r),a=new i(r),o=a.element(e),r.headless||(a.declaration(r),(r.pubID!=null||r.sysID!=null)&&a.dtd(r)),o},t.exports.begin=function(e,t,n){var r;return l(e)&&(r=[e,t],t=r[0],n=r[1],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new s(e)},t.exports.streamWriter=function(e,t){return new o(e,t)},t.exports.implementation=new r,t.exports.nodeType=e,t.exports.writerState=n}).call(e)})),J=t((e=>{(function(){var t,n,r,i,a,o={}.hasOwnProperty;t=q(),n=m().defaults,i=function(e){return typeof e==`string`&&(e.indexOf(`&`)>=0||e.indexOf(`>`)>=0||e.indexOf(`<`)>=0)},a=function(e){return`<![CDATA[`+r(e)+`]]>`},r=function(e){return e.replace(`]]>`,`]]]]><![CDATA[>`)},e.Builder=(function(){function e(e){var t,r,i;for(t in this.options={},r=n[`0.2`],r)o.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)o.call(e,t)&&(i=e[t],this.options[t]=i)}return e.prototype.buildObject=function(e){var r=this.options.attrkey,s=this.options.charkey,c,l,u;return Object.keys(e).length===1&&this.options.rootName===n[`0.2`].rootName?(u=Object.keys(e)[0],e=e[u]):u=this.options.rootName,c=(function(e){return function(t,n){var l,u,d,f,p,m;if(typeof n!=`object`)e.options.cdata&&i(n)?t.raw(a(n)):t.txt(n);else if(Array.isArray(n)){for(f in n)if(o.call(n,f))for(p in u=n[f],u)d=u[p],t=c(t.ele(p),d).up()}else for(p in n)if(o.call(n,p)){if(u=n[p],p===r){if(typeof u==`object`)for(l in u)m=u[l],t=t.att(l,m)}else if(p===s)t=e.options.cdata&&i(u)?t.raw(a(u)):t.txt(u);else if(Array.isArray(u))for(f in u)o.call(u,f)&&(d=u[f],t=typeof d==`string`?e.options.cdata&&i(d)?t.ele(p).raw(a(d)).up():t.ele(p,d).up():c(t.ele(p),d).up());else typeof u==`object`?t=c(t.ele(p),u).up():typeof u==`string`&&e.options.cdata&&i(u)?t=t.ele(p).raw(a(u)).up():(u??=``,t=t.ele(p,u.toString()).up())}return t}})(this),l=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(l,e).end(this.options.renderOpts)},e})()}).call(e)})),Y=t(((e,t)=>{t.exports={}})),X=t((e=>{(function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.SAXStream=u,e.createStream=c,e.MAX_BUFFER_LENGTH=65536;var t=[`comment`,`sgmlDecl`,`textNode`,`tagName`,`doctype`,`procInstName`,`procInstBody`,`entity`,`attribName`,`attribValue`,`cdata`,`script`];e.EVENTS=[`text`,`processinginstruction`,`sgmldeclaration`,`doctype`,`comment`,`opentagstart`,`attribute`,`opentag`,`closetag`,`opencdata`,`cdata`,`closecdata`,`error`,`end`,`ready`,`script`,`opennamespace`,`closenamespace`];function n(t,r){if(!(this instanceof n))return new n(t,r);var a=this;i(a),a.q=a.c=``,a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.encoding=null,a.opt=r||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?`toLowerCase`:`toUpperCase`,a.opt.maxEntityCount=a.opt.maxEntityCount||512,a.opt.maxEntityDepth=a.opt.maxEntityDepth||4,a.entityCount=a.entityDepth=0,a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!t,a.noscript=!!(t||a.opt.noscript),a.state=T.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(h)),a.opt.unquotedAttributeValues===void 0&&(a.opt.unquotedAttributeValues=!t),a.trackPosition=a.opt.position!==!1,a.trackPosition&&(a.position=a.line=a.column=0),D(a,`onready`)}Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t});function r(n){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,a=0,o=t.length;a<o;a++){var s=n[t[a]].length;if(s>r)switch(t[a]){case`textNode`:N(n);break;case`cdata`:M(n,`oncdata`,n.cdata),n.cdata=``;break;case`script`:M(n,`onscript`,n.script),n.script=``;break;default:F(n,`Max buffer length exceeded: `+t[a])}i=Math.max(i,s)}n.bufferCheckPosition=e.MAX_BUFFER_LENGTH-i+n.position}function i(e){for(var n=0,r=t.length;n<r;n++)e[t[n]]=``}function a(e){N(e),e.cdata!==``&&(M(e,`oncdata`,e.cdata),e.cdata=``),e.script!==``&&(M(e,`onscript`,e.script),e.script=``)}n.prototype={end:function(){I(this)},write:q,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o;try{o=Y().Stream}catch{o=function(){}}o||=function(){};var s=e.EVENTS.filter(function(e){return e!==`error`&&e!==`end`});function c(e,t){return new u(e,t)}function l(e,t){if(e.length>=2){if(e[0]===255&&e[1]===254)return`utf-16le`;if(e[0]===254&&e[1]===255)return`utf-16be`}return e.length>=3&&e[0]===239&&e[1]===187&&e[2]===191?`utf8`:e.length>=4?e[0]===60&&e[1]===0&&e[2]===63&&e[3]===0?`utf-16le`:e[0]===0&&e[1]===60&&e[2]===0&&e[3]===63?`utf-16be`:`utf8`:t?`utf8`:null}function u(e,t){if(!(this instanceof u))return new u(e,t);o.apply(this),this._parser=new n(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit(`end`)},this._parser.onerror=function(e){r.emit(`error`,e),r._parser.error=null}
5,this._decoder=null,this._decoderBuffer=null,s.forEach(function(e){Object.defineProperty(r,`on`+e,{get:function(){return r._parser[`on`+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser[`on`+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(o.prototype,{constructor:{value:u}}),u.prototype._decodeBuffer=function(e,t){if(this._decoderBuffer&&=(e=Buffer.concat([this._decoderBuffer,e]),null),!this._decoder){var n=l(e,t);if(!n)return this._decoderBuffer=e,``;this._parser.encoding=n,this._decoder=new TextDecoder(n)}return this._decoder.decode(e,{stream:!t})},u.prototype.write=function(e){if(typeof Buffer==`function`&&typeof Buffer.isBuffer==`function`&&Buffer.isBuffer(e))e=this._decodeBuffer(e,!1);else if(this._decoderBuffer){var t=this._decodeBuffer(Buffer.alloc(0),!0);t&&(this._parser.write(t),this.emit(`data`,t))}return this._parser.write(e.toString()),this.emit(`data`,e),!0},u.prototype.end=function(e){if(e&&e.length&&this.write(e),this._decoderBuffer){var t=this._decodeBuffer(Buffer.alloc(0),!0);t&&(this._parser.write(t),this.emit(`data`,t))}else if(this._decoder){var n=this._decoder.decode();n&&(this._parser.write(n),this.emit(`data`,n))}return this._parser.end(),!0},u.prototype.on=function(e,t){var n=this;return!n._parser[`on`+e]&&s.indexOf(e)!==-1&&(n._parser[`on`+e]=function(){var t=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),o.prototype.on.call(n,e,t)};var d=/^\[CDATA\[$/i,f=/^DOCTYPE$/i,p=`http://www.w3.org/XML/1998/namespace`,m=`http://www.w3.org/2000/xmlns/`,h={xml:p,xmlns:m},g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(e){return e===` `||e===`
6`||e===`\r`||e===`	`}function x(e){return e===`"`||e===`'`}function S(e){return e===`>`||b(e)}function C(e,t){return e.test(t)}function w(e,t){return!C(e,t)}var T=0;for(var E in e.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},e.XML_ENTITIES=Object.assign(Object.create(null),{amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`}),e.ENTITIES=Object.assign(Object.create(null),{amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`,AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
vendor: 13,895 bytes, lines 6-14
674,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}),Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r=typeof n==`number`?String.fromCharCode(n):n;e.ENTITIES[t]=r}),e.STATE)e.STATE[e.STATE[E]]=E;T=e.STATE;function D(e,t,n){e[t]&&e[t](n)}function O(e){var t=e&&e.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return t?t[2]:null}function k(e){return e?e.toLowerCase().replace(/[^a-z0-9]/g,``):null}function A(e,t){let n=k(e),r=k(t);return!n||!r?!0:r===`utf16`?n===`utf16le`||n===`utf16be`:n===r}function j(e,t){if(!(!e.strict||!e.encoding||!t||t.name!==`xml`)){var n=O(t.body);n&&!A(e.encoding,n)&&L(e,`XML declaration encoding `+n+` does not match detected stream encoding `+e.encoding.toUpperCase())}}function M(e,t,n){e.textNode&&N(e),D(e,t,n)}function N(e){e.textNode=P(e.opt,e.textNode),e.textNode&&D(e,`ontext`,e.textNode),e.textNode=``}function P(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g,` `)),t}function F(e,t){return N(e),e.trackPosition&&(t+=`
7Line: `+e.line+`
8Column: `+e.column+`
9Char: `+e.c),t=Error(t),e.error=t,D(e,`onerror`,t),e}function I(e){return e.sawRoot&&!e.closedRoot&&L(e,`Unclosed root tag`),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&F(e,`Unexpected end`),N(e),e.c=``,e.closed=!0,D(e,`onend`),n.call(e,e.strict,e.opt),e}function L(e,t){if(typeof e!=`object`||!(e instanceof n))throw Error(`bad call to strictFail`);e.strict&&F(e,t)}function R(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,M(e,`onopentagstart`,n)}function z(e,t){var n=e.indexOf(`:`)<0?[``,e]:e.split(`:`),r=n[0],i=n[1];return t&&e===`xmlns`&&(r=`xmlns`,i=``),{prefix:r,local:i}}function B(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue=``;return}if(e.opt.xmlns){var t=z(e.attribName,!0),n=t.prefix,r=t.local;if(n===`xmlns`){if(r===`xml`&&e.attribValue!==p)L(e,`xml: prefix must be bound to `+p+`
10Actual: `+e.attribValue);else if(r===`xmlns`&&e.attribValue!==m)L(e,`xmlns: prefix must be bound to `+m+`
11Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,M(e,`onattribute`,{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=``}function V(e,t){if(e.opt.xmlns){var n=e.tag,r=z(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||``,n.prefix&&!n.uri&&(L(e,`Unbound namespace prefix: `+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){M(e,`onopennamespace`,{prefix:t,uri:n.ns[t]})});for(var a=0,o=e.attribList.length;a<o;a++){var s=e.attribList[a],c=s[0],l=s[1],u=z(c,!0),d=u.prefix,f=u.local,p=d===``?``:n.ns[d]||``,m={name:c,value:l,prefix:d,local:f,uri:p};d&&d!==`xmlns`&&!p&&(L(e,`Unbound namespace prefix: `+JSON.stringify(d)),m.uri=d),e.tag.attributes[c]=m,M(e,`onattribute`,m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),M(e,`onopentag`,e.tag),t||(e.state=!e.noscript&&e.tagName.toLowerCase()===`script`?T.SCRIPT:T.TEXT,e.tag=null,e.tagName=``),e.attribName=e.attribValue=``,e.attribList.length=0}function H(e){if(!e.tagName){L(e,`Weird empty close tag.`),e.textNode+=`</>`,e.state=T.TEXT;return}if(e.script){if(e.tagName!==`script`){e.script+=`</`+e.tagName+`>`,e.tagName=``,e.state=T.SCRIPT;return}M(e,`onscript`,e.script),e.script=``}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--&&e.tags[t].name!==r;)L(e,`Unexpected close tag`);if(t<0){L(e,`Unmatched closing tag: `+e.tagName),e.textNode+=`</`+e.tagName+`>`,e.state=T.TEXT;return}e.tagName=n;for(var i=e.tags.length;i-->t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,M(e,`onclosetag`,e.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach(function(t){var n=a.ns[t];M(e,`onclosenamespace`,{prefix:t,uri:n})})}t===0&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName=``,e.attribList.length=0,e.state=T.TEXT}function U(e){var t=e.entity,n=t.toLowerCase(),r,i=``;return e.ENTITIES[t]?e.ENTITIES[t]:e.ENTITIES[n]?e.ENTITIES[n]:(t=n,t.charAt(0)===`#`&&(t.charAt(1)===`x`?(t=t.slice(2),r=parseInt(t,16),i=r.toString(16)):(t=t.slice(1),r=parseInt(t,10),i=r.toString(10))),t=t.replace(/^0+/,``),isNaN(r)||i.toLowerCase()!==t||r<0||r>1114111||!W(r)?(L(e,`Invalid character entity`),`&`+e.entity+`;`):String.fromCodePoint(r))}function W(e){return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}function G(e,t){t===`<`?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):b(t)||(L(e,`Non-whitespace before first tag.`),e.textNode=t,e.state=T.TEXT)}function K(e,t){var n=``;return t<e.length&&(n=e.charAt(t)),n}function q(t){var n=this;if(this.error)throw this.error;if(n.closed)return F(n,`Cannot write after close. Assign an onready handler.`);if(t===null)return I(n);typeof t==`object`&&(t=t.toString());for(var i=0,a=``;a=K(t,i++),n.c=a,a;)switch(n.trackPosition&&(n.position++,a===`
12`?(n.line++,n.column=0):n.column++),n.state){case T.BEGIN:if(n.state=T.BEGIN_WHITESPACE,a===``)continue;G(n,a);continue;case T.BEGIN_WHITESPACE:G(n,a);continue;case T.TEXT:if(n.sawRoot&&!n.closedRoot){for(var o=i-1;a&&a!==`<`&&a!==`&`;)a=K(t,i++),a&&n.trackPosition&&(n.position++,a===`
13`?(n.line++,n.column=0):n.column++);n.textNode+=t.substring(o,i-1)}a===`<`&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=T.OPEN_WAKA,n.startTagPosition=n.position):(!b(a)&&(!n.sawRoot||n.closedRoot)&&L(n,`Text data outside of root node.`),a===`&`?n.state=T.TEXT_ENTITY:n.textNode+=a);continue;case T.SCRIPT:a===`<`?n.state=T.SCRIPT_ENDING:n.script+=a;continue;case T.SCRIPT_ENDING:a===`/`?n.state=T.CLOSE_TAG:(n.script+=`<`+a,n.state=T.SCRIPT);continue;case T.OPEN_WAKA:if(a===`!`)n.state=T.SGML_DECL,n.sgmlDecl=``;else if(!b(a)){if(C(g,a))n.state=T.OPEN_TAG,n.tagName=a;else if(a===`/`)n.state=T.CLOSE_TAG,n.tagName=``;else if(a===`?`)n.state=T.PROC_INST,n.procInstName=n.procInstBody=``;else{if(L(n,`Unencoded <`),n.startTagPosition+1<n.position){var s=n.position-n.startTagPosition;a=Array(s).join(` `)+a}n.textNode+=`<`+a,n.state=T.TEXT}}continue;case T.SGML_DECL:if(n.sgmlDecl+a===`--`){n.state=T.COMMENT,n.comment=``,n.sgmlDecl=``;continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=T.DOCTYPE_DTD,n.doctype+=`<!`+n.sgmlDecl+a,n.sgmlDecl=``):d.test(n.sgmlDecl+a)?(M(n,`onopencdata`),n.state=T.CDATA,n.sgmlDecl=``,n.cdata=``):f.test(n.sgmlDecl+a)?(n.state=T.DOCTYPE,(n.doctype||n.sawRoot)&&L(n,`Inappropriately located doctype declaration`),n.doctype=``,n.sgmlDecl=``):a===`>`?(M(n,`onsgmldeclaration`,n.sgmlDecl),n.sgmlDecl=``,n.state=T.TEXT):(x(a)&&(n.state=T.SGML_DECL_QUOTED),n.sgmlDecl+=a);continue;case T.SGML_DECL_QUOTED:a===n.q&&(n.state=T.SGML_DECL,n.q=``),n.sgmlDecl+=a;continue;case T.DOCTYPE:a===`>`?(n.state=T.TEXT,M(n,`ondoctype`,n.doctype),n.doctype=!0):(n.doctype+=a,a===`[`?n.state=T.DOCTYPE_DTD:x(a)&&(n.state=T.DOCTYPE_QUOTED,n.q=a));continue;case T.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q=``,n.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:a===`]`?(n.doctype+=a,n.state=T.DOCTYPE):a===`<`?(n.state=T.OPEN_WAKA,n.startTagPosition=n.position):x(a)?(n.doctype+=a,n.state=T.DOCTYPE_DTD_QUOTED,n.q=a):n.doctype+=a;continue;case T.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=T.DOCTYPE_DTD,n.q=``);continue;case T.COMMENT:a===`-`?n.state=T.COMMENT_ENDING:n.comment+=a;continue;case T.COMMENT_ENDING:a===`-`?(n.state=T.COMMENT_ENDED,n.comment=P(n.opt,n.comment),n.comment&&M(n,`oncomment`,n.comment),n.comment=``):(n.comment+=`-`+a,n.state=T.COMMENT);continue;case T.COMMENT_ENDED:a===`>`?n.state=n.doctype&&n.doctype!==!0?T.DOCTYPE_DTD:T.TEXT:(L(n,`Malformed comment`),n.comment+=`--`+a,n.state=T.COMMENT);continue;case T.CDATA:for(var o=i-1;a&&a!==`]`;)a=K(t,i++),a&&n.trackPosition&&(n.position++,a===`
14`?(n.line++,n.column=0):n.column++);n.cdata+=t.substring(o,i-1),a===`]`&&(n.state=T.CDATA_ENDING);continue;case T.CDATA_ENDING:a===`]`?n.state=T.CDATA_ENDING_2:(n.cdata+=`]`+a,n.state=T.CDATA);continue;case T.CDATA_ENDING_2:a===`>`?(n.cdata&&M(n,`oncdata`,n.cdata),M(n,`onclosecdata`),n.cdata=``,n.state=T.TEXT):a===`]`?n.cdata+=`]`:(n.cdata+=`]]`+a,n.state=T.CDATA);continue;case T.PROC_INST:a===`?`?n.state=T.PROC_INST_ENDING:b(a)?n.state=T.PROC_INST_BODY:n.procInstName+=a;continue;case T.PROC_INST_BODY:if(!n.procInstBody&&b(a))continue;a===`?`?n.state=T.PROC_INST_ENDING:n.procInstBody+=a;continue;case T.PROC_INST_ENDING:if(a===`>`){let e={name:n.procInstName,body:n.procInstBody};j(n,e),M(n,`onprocessinginstruction`,e),n.procInstName=n.procInstBody=``,n.state=T.TEXT}else n.procInstBody+=`?`+a,n.state=T.PROC_INST_BODY;continue;case T.OPEN_TAG:C(_,a)?n.tagName+=a:(R(n),a===`>`?V(n):a===`/`?n.state=T.OPEN_TAG_SLASH:(b(a)||L(n,`Invalid character in tag name`),n.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:a===`>`?(V(n,!0),H(n)):(L(n,`Forward-slash in opening tag not followed by >`),n.state=T.ATTRIB);continue;case T.ATTRIB:if(b(a))continue;a===`>`?V(n):a===`/`?n.state=T.OPEN_TAG_SLASH:C(g,a)?(n.attribName=a,n.attribValue=``,n.state=T.ATTRIB_NAME):L(n,`Invalid attribute name`);continue;case T.ATTRIB_NAME:a===`=`?n.state=T.ATTRIB_VALUE:a===`>`?(L(n,`Attribute without value`),n.attribValue=n.attribName,B(n),V(n)):b(a)?n.state=T.ATTRIB_NAME_SAW_WHITE:C(_,a)?n.attribName+=a:L(n,`Invalid attribute name`);continue;case T.ATTRIB_NAME_SAW_WHITE:if(a===`=`)n.state=T.ATTRIB_VALUE;else if(b(a))continue;else L(n,`Attribute without value`),n.tag.attributes[n.attribName]=``,n.attribValue=``,M(n,`onattribute`,{name:n.attribName,value:``}),n.attribName=``,a===`>`?V(n):C(g,a)?(n.attribName=a,n.state=T.ATTRIB_NAME):(L(n,`Invalid attribute name`),n.state=T.ATTRIB);continue;case T.ATTRIB_VALUE:if(b(a))continue;x(a)?(n.q=a,n.state=T.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||F(n,`Unquoted attribute value`),n.state=T.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case T.ATTRIB_VALUE_QUOTED:if(a!==n.q){a===`&`?n.state=T.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}B(n),n.q=``,n.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:b(a)?n.state=T.ATTRIB:a===`>`?V(n):a===`/`?n.state=T.OPEN_TAG_SLASH:C(g,a)?(L(n,`No whitespace between attributes`),n.attribName=a,n.attribValue=``,n.state=T.ATTRIB_NAME):L(n,`Invalid attribute name`);continue;case T.ATTRIB_VALUE_UNQUOTED:if(!S(a)){a===`&`?n.state=T.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}B(n),a===`>`?V(n):n.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(n.tagName)a===`>`?H(n):C(_,a)?n.tagName+=a:n.script?(n.script+=`</`+n.tagName+a,n.tagName=``,n.state=T.SCRIPT):(b(a)||L(n,`Invalid tagname in closing tag`),n.state=T.CLOSE_TAG_SAW_WHITE);else{if(b(a))continue;w(g,a)?n.script?(n.script+=`</`+a,n.state=T.SCRIPT):L(n,`Invalid tagname in closing tag.`):n.tagName=a}continue;case T.CLOSE_TAG_SAW_WHITE:if(b(a))continue;a===`>`?H(n):L(n,`Invalid characters in closing tag`);continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:var c,l;switch(n.state){case T.TEXT_ENTITY:c=T.TEXT,l=`textNode`;break;case T.ATTRIB_VALUE_ENTITY_Q:c=T.ATTRIB_VALUE_QUOTED,l=`attribValue`;break;case T.ATTRIB_VALUE_ENTITY_U:c=T.ATTRIB_VALUE_UNQUOTED,l=`attribValue`}if(a===`;`){var u=U(n);n.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(u)?((n.entityCount+=1)>n.opt.maxEntityCount&&F(n,`Parsed entity count exceeds max entity count`),(n.entityDepth+=1)>n.opt.maxEntityDepth&&F(n,`Parsed entity depth exceeds max entity depth`),n.entity=``,n.state=c,n.write(u),--n.entityDepth):(n[l]+=u,n.entity=``,n.state=c)}else C(n.entity.length?y:v,a)?n.entity+=a:(L(n,`Invalid character in entity name`),n[l]+=`&`+n.entity+a,n.entity=``,n.state=c);continue;default:throw Error(n,`Unknown state: `+n.state)}return n.position>=n.bufferCheckPosition&&r(n),n}
14String.fromCodePoint||(function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n=16384,r=[],i,a,o=-1,s=arguments.length;if(!s)return``;for(var c=``;++o<s;){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l)throw RangeError(`Invalid code point: `+l);l<=65535?r.push(l):(l-=65536,i=(l>>10)+55296,a=l%1024+56320,r.push(i,a)),(o+1===s||r.length>n)&&(c+=e.apply(null,r),r.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n})()})(e===void 0?e.sax={}:e)})),Z=t(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
14(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),ee=t((e=>{(function(){e.stripBOM=function(e){return e[0]===``?e.substring(1):e}}).call(e)})),Q=t((e=>{(function(){var t=new RegExp(/(?!xmlns)^.*:/);e.normalize=function(e){return e.toLowerCase()},e.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},e.stripPrefix=function(e){return e.replace(t,``)},e.parseNumbers=function(e){return isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e},e.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()===`true`),e}}).call(e)})),te=t((e=>{(function(){var t,n,r,i,a,o,s,c,l,u=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){for(var n in t)f.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;c=X(),i=Z(),t=ee(),s=Q(),l=Y().setImmediate,n=m().defaults,a=function(e){return typeof e==`object`&&!!e&&Object.keys(e).length===0},o=function(e,t,n){var r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r],t=a(t,n);return t},r=function(e,t,n){var r=Object.create(null);return r.value=n,r.writable=!0,r.enumerable=!0,r.configurable=!0,Object.defineProperty(e,t,r)},e.Parser=(function(i){d(p,i);function p(t){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var r,i,a;if(!(this instanceof e.Parser))return new e.Parser(t);for(r in this.options={},i=n[`0.2`],i)f.call(i,r)&&(a=i[r],this.options[r]=a);for(r in t)f.call(t,r)&&(a=t[r],this.options[r]=a);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+`ns`),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(s.normalize)),this.reset()}return p.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining=``,this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),l(this.processAsync))}catch(e){if(t=e,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit
14(t)}},p.prototype.assignOrPush=function(e,t,n){return t in e?(e[t]instanceof Array||r(e,t,[e[t]]),e[t].push(n)):this.options.explicitArray?r(e,t,[n]):r(e,t,n)},p.prototype.reset=function(){var e,t,n,i;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(e){return function(t){if(e.saxParser.resume(),!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit(`error`,t)}})(this),this.saxParser.onend=(function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit(`end`,e.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,i=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=(function(n){return function(a){var s,c,l={},u,d;if(l[t]=``,!n.options.ignoreAttrs)for(s in d=a.attributes,d)f.call(d,s)&&(!(e in l)&&!n.options.mergeAttrs&&(l[e]={}),c=n.options.attrValueProcessors?o(n.options.attrValueProcessors,a.attributes[s],s):a.attributes[s],u=n.options.attrNameProcessors?o(n.options.attrNameProcessors,s):s,n.options.mergeAttrs?n.assignOrPush(l,u,c):r(l[e],u,c));return l[`#name`]=n.options.tagNameProcessors?o(n.options.tagNameProcessors,a.name):a.name,n.options.xmlns&&(l[n.options.xmlnskey]={uri:a.uri,local:a.local}),i.push(l)}})(this),this.saxParser.onclosetag=(function(e){return function(){var n,s,c,l,u,d=i.pop(),p,m,h,g;if(u=d[`#name`],(!e.options.explicitChildren||!e.options.preserveChildrenOrder)&&delete d[`#name`],d.cdata===!0&&(n=d.cdata,delete d.cdata),h=i[i.length-1],d[t].match(/^\s*$/)&&!n?(s=d[t],delete d[t]):(e.options.trim&&(d[t]=d[t].trim()),e.options.normalize&&(d[t]=d[t].replace(/\s{2,}/g,` `).trim()),d[t]=e.options.valueProcessors?o(e.options.valueProcessors,d[t],u):d[t],Object.keys(d).length===1&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])),a(d)&&(d=typeof e.options.emptyTag==`function`?e.options.emptyTag():e.options.emptyTag===``?s:e.options.emptyTag),e.options.validator!=null&&(g=`/`+(function(){var e,t,n=[];for(e=0,t=i.length;e<t;e++)l=i[e],n.push(l[`#name`]);return n})().concat(u).join(`/`),(function(){var t;try{return d=e.options.validator(g,h&&h[u],d)}catch(n){return t=n,e.emit(`error`,t)}})()),e.options.explicitChildren&&!e.options.mergeAttrs&&typeof d==`object`){if(!e.options.preserveChildrenOrder)l={},e.options.attrkey in d&&(l[e.options.attrkey]=d[e.options.attrkey],delete d[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in d&&(l[e.options.charkey]=d[e.options.charkey],delete d[e.options.charkey]),Object.getOwnPropertyNames(d).length>0&&(l[e.options.childkey]=d),d=l;else if(h){for(c in h[e.options.childkey]=h[e.options.childkey]||[],p={},d)f.call(d,c)&&r(p,c,d[c]);h[e.options.childkey].push(p),delete d[`#name`],Object.keys(d).length===1&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])}}return i.length>0?e.assignOrPush(h,u,d):(e.options.explicitRoot&&(m=d,d={},r(d,u,m)),e.resultObject=d,e.saxParser.ended=!0,e.emit(`end`,e.resultObject))}})(this),n=(function(e){return function(n){var r,a=i[i.length-1];if(a)return a[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||n.replace(/\\n
14/g,``).trim()!==``)&&(a[e.options.childkey]=a[e.options.childkey]||[],r={"#name":`__text__`},r[t]=n,e.options.normalize&&(r[t]=r[t].replace(/\s{2,}/g,` `).trim()),a[e.options.childkey].push(r)),a}})(this),this.saxParser.ontext=n,this.saxParser.oncdata=(function(e){return function(e){var t=n(e);if(t)return t.cdata=!0}})(this)},p.prototype.parseString=function(e,n){var r;n!=null&&typeof n==`function`&&(this.on(`end`,function(e){return this.reset(),n(null,e)}),this.on(`error`,function(e){return this.reset(),n(e)}));try{return e=e.toString(),e.trim()===``?(this.emit(`end`,null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,l(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(e){if(r=e,!(this.saxParser.errThrown||this.saxParser.ended))return this.emit(`error`,r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},p.prototype.parseStringPromise=function(e){return new Promise((function(t){return function(n,r){return t.parseString(e,function(e,t){return e?r(e):n(t)})}})(this))},p})(i),e.parseString=function(t,n,r){var i,a,o;return r==null?(typeof n==`function`&&(i=n),a={}):(typeof r==`function`&&(i=r),typeof n==`object`&&(a=n)),o=new e.Parser(a),o.parseString(t,i)},e.parseStringPromise=function(t,n){var r,i;return typeof n==`object`&&(r=n),i=new e.Parser(r),i.parseStringPromise(t)}}).call(e)})),ne=t((e=>{(function(){var t,n,r,i,a=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=m(),t=J(),r=te(),i=Q(),e.defaults=n.defaults,e.processors=i,e.ValidationError=(function(e){a(t,e);function t(e){this.message=e}return t})(Error),e.Builder=t.Builder,e.Parser=r.Parser,e.parseString=r.parseString,e.parseStringPromise=r.parseStringPromise}).call(e)})),re=p(),ie=e(ne(),1);function ae(e,t){let r=`text/`,i;if(e&&e[0]&&n(e[0]))throw Error(`Not Implemented`);try{switch(t){case`csv`:r+=`csv`,i=(0,re.json2csv)(e);break;case`json`:r+=`json`,i=JSON.stringify(e);break;case`geojson`:r+=`json`,i=JSON.stringify($(e));break;case`xml`:r+=`plain`,i=oe(e)}}catch{throw Error(`Could not format data.`)}return new Blob([i],{type:r})}function oe(e){let t=new ie.Builder({}),n;if(!e[0])return t.buildObject({});try{let i=r(e[0])?`event`:`station`,a={[`${i}s`]:e.map(e=>({[`${i}`]:e}))};n=t.buildObject(a)}catch{throw Error(`Could not format xml`)}return n}function $(e){return{type:`FeatureCollection`,features:e?.map(e=>{if(n(e))return{type:`Feature`,id:e.properties.id,geometry:{type:`Point`,coordinates:e.geometry.coordinates},properties:{...e.properties,datetime:new Date(e.properties.time).getTime()/1e3,lat:e.geometry.coordinates[1],lon:e.geometry.coordinates[0]}};let t=e&&`evid`in e?e.evid:e?.sta;return i(e)&&(e.station_type||={code:`unknown`,id:1,description:`Other`},e.channels?.length&&(t+=`-${e.channels.map(e=>e.seedchan).join(`.`)}`)),{type:`Feature`,id:t,geometry:e.lon&&e.lat?{coordinates:[e.lon,e.lat],type:`Point`}:null,properties:e}})}}function se(e){let t;if(`show`in e&&e.show)t=e.geojson;else if(`show_on_load`in e&&e.show_on_load)t=e.map_content_id.geojson;else if(`features`in e)t=e;else return;return t}export{$ as n,se as r,ae as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.