9router-proxy 0.5.84 → 0.5.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +7 -7
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +7 -7
- package/app/.next-cli-build/server/chunks/1478.js +1 -1
- package/app/.next-cli-build/server/chunks/2353.js +1 -1
- package/app/.next-cli-build/server/chunks/2751.js +1 -1
- package/app/.next-cli-build/server/chunks/318.js +4 -5
- package/app/.next-cli-build/server/chunks/4037.js +1 -1
- package/app/.next-cli-build/server/chunks/4125.js +1 -1
- package/app/.next-cli-build/server/chunks/4572.js +1 -1
- package/app/.next-cli-build/server/chunks/5081.js +5 -5
- package/app/.next-cli-build/server/chunks/8145.js +1 -1
- package/app/.next-cli-build/server/chunks/8499.js +2 -2
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8843.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-ead6aef6af002b41.js +1 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-a5d8e3855a06191d.js +0 -1
- /package/app/.next-cli-build/static/{8voY36sc1ZdqaQh3B48Q2 → a1APIqjk3OYhFAGdrYfsz}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{8voY36sc1ZdqaQh3B48Q2 → a1APIqjk3OYhFAGdrYfsz}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894),n=(0,f.deprecate)(()=>{},"`getOriginalXmlWithIds()` is deprecated and will be removed in a future version. Use the `location` option of `computeSignature()` to place the signature, then `getSignedXml()`. For a detached signature, put an ID attribute the signer recognizes on each referenced element (`wsu:Id` for WS-Security), sign that document, and send it alongside `getSignatureXml()`.","XML_CRYPTO_GET_ORIGINAL_XML_WITH_IDS"),o=(0,f.deprecate)(()=>{},"`validateElementAgainstReferences()` is deprecated and will be removed in a future version. After `checkSignature()` succeeds, use the XML that `getSignedReferences()` returns instead of nodes from the original document.","XML_CRYPTO_VALIDATE_ELEMENT_AGAINST_REFERENCES");class p{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=p.getKeyInfoContent,this.getCertFromKeyInfo=p.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1":l.RsaSha256Mgf1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};const{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:n,implicitTransforms:o,keyInfoAttributes:q,getKeyInfoContent:r,getCertFromKeyInfo:s,objects:t}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof n?this.inclusiveNamespacesPrefixList=n.split(" "):m.isArrayHasLength(n)&&(this.inclusiveNamespacesPrefixList=n),this.implicitTransforms=o??this.implicitTransforms,this.keyInfoAttributes=q??this.keyInfoAttributes,this.getKeyInfoContent=r??this.getKeyInfoContent,this.getCertFromKeyInfo=s??p.noop,this.objects=t,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=p.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"",Buffer.isBuffer(a)&&(a=a.toString("latin1"));let c="string"==typeof a?m.pemCertificates(a):[];if(0===c.length)return null;let d=c.map(a=>`<${b}X509Certificate>${a}</${b}X509Certificate>`).join("");return`<${b}X509Data>${d}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isElementNode(b))return m.toPem(b.textContent,"CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");let c=this.signedReferences;this.signedReferences=[],this.signedXml=a;let d=new e.DOMParser().parseFromString(a);this.references=[];let f=this.getCanonSignedInfoXml(d);if(!f){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let g=new e.DOMParser().parseFromString(f,"text/xml").documentElement;if(!g){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let h=m.findChildren(g,"Reference");if(!m.isArrayHasLength(h)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of h)this.loadReference(a);let i=[];for(let a of this.references){let c=this.validateReference(a,d);if(void 0===c){if(b)return void b(Error("Could not validate all references"),!1);return!1}i.push(c)}let j=this.findSignatureAlgorithm(this.signatureAlgorithm),k=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==k)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!0===j.verifySignature(f,k,this.signatureValue)){if(this.signedReferences=[...c,...i],this.references.forEach((a,b)=>{a.signedReference=i[b]}),!b)return!0;b(null,!0)}else if(b)return void b(Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));else throw Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=m.findAncestorNs(a,"//*[local-name()='SignedInfo']");return this.getCanonXml([this.canonicalizationAlgorithm],b[0],{ancestorNamespaces:c})}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={inclusiveNamespacesPrefixList:b.inclusiveNamespacesPrefixList,ancestorNamespaces:b.ancestorNamespaces},e=""===b.uri||b.uri.startsWith("#");return this.canonicalize(b.transforms,c,d,{discardComments:e})}calculateSignatureValue(a,b){let c=this.getCanonSignedInfoXml(a),d=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");"function"==typeof b?d.getSignature(c,this.privateKey,b):this.signatureValue=d.getSignature(c,this.privateKey)}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if(o(),"string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""===c)e=g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);a.validationError=b;return}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);a.validationError=b;return}return h}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);let l=g.select1(".//*[local-name(.)='SignatureValue']/text()",a);d.isTextNode(l)&&(this.signatureValue=l.data.replace(/\r?\n/g,""));let n=g.select1(".//*[local-name(.)='KeyInfo']",a);d.isNodeLike(n)&&(this.keyInfo=n)}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0],c=m.findChildren(a,"Transform");for(let a of c){let b=m.findAttr(a,"Algorithm");b&&h.push(b.value)}let d=m.findChildren(c[c.length-1],"InclusiveNamespaces");m.isArrayHasLength(d)&&(i=d.flatMap(a=>(a.getAttribute("PrefixList")??"").split(" ")).filter(a=>a.length>0))}m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let j=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:j,digestValue:g,inclusiveNamespacesPrefixList:i,isEmptyUri:!1})}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1,id:h,type:i}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,id:h,type:i,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let f,h;"function"==typeof b&&null==c?(f=b,b={}):(f=c,b=b??{});let i=new e.DOMParser().parseFromString(a),j="xmlns",k=[],l=["append","prepend","before","after"],n=b.prefix,o=b.attrs||{},p=b.location||{},q=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?q[a]:null}},p.reference=p.reference||"/*",p.action=p.action||"append",-1===l.indexOf(p.action)){let a=Error(`location.action option has an invalid action: ${p.action}, must be any of the following values: ${l.join(", ")}`);if(f)return void f(a);throw a}let r=new Map;for(let a of this.getReferences()){let b=g.selectWithResolver(a.xpath??"",i,this.namespaceResolver);d.assertIsArrayOfNodes(b);let c=b.map(a=>(d.assertIsElementNode(a),{node:a}));r.set(a,c)}this.ensureTargetsHaveIds(r),this.originalXmlWithIds=this.serialize(i),n?(j+=`:${n}`,h=`${n}:`):h="",Object.keys(o).forEach(function(a){"xmlns"!==a&&a!==j&&k.push(`${a}="${o[a]}"`)}),k.push(`${j}="http://www.w3.org/2000/09/xmldsig#"`);let s=`<${h}Signature ${k.join(" ")}>`;s+=this.createSignedInfo(i,n),s+=this.getKeyInfo(n),s+=this.getObjects(n),s+=`</${h}Signature>`;let t="";Object.keys(q).forEach(function(a){t+=`xmlns:${a}="${q[a]}" `});let u=`<Dummy ${t}>${s}</Dummy>`,v=new e.DOMParser().parseFromString(u).documentElement.firstChild,w=g.select1(p.reference,i);if(!d.isNodeLike(w)){let a=Error(`the following xpath cannot be used because it was not found: ${p.reference}`);if(f)return void f(a);throw a}let x=this.signatureNode;this.signatureNode=v;try{for(let[a,b]of r)for(let c of b)c.digestValue=this.calculateReferenceDigest(a,c.node);if("append"===p.action)w.appendChild(v);else if("prepend"===p.action)w.insertBefore(v,w.firstChild);else if("before"===p.action){if(null==w.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `before`");w.parentNode.insertBefore(v,w)}else if("after"===p.action){if(null==w.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `after`");w.parentNode.insertBefore(v,w.nextSibling)}this.addAllReferences(i,v,r,n)}catch(a){throw this.signatureNode=x,a}let y=m.findChildren(this.signatureNode,"SignedInfo");if(0===y.length){let a=Error("could not find SignedInfo element in the message");if(f)return void f(a);throw a}let z=y[0];"function"==typeof f?this.calculateSignatureValue(i,(a,b)=>{a?f(a):(this.signatureValue=b||"",v.insertBefore(this.createSignature(n),z.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(i),f(null,this))}):(this.calculateSignatureValue(i),v.insertBefore(this.createSignature(n),z.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(i))}serialize(a){return a.toString().replace(/\r/g,"
")}ensureTargetsHaveIds(a){for(let[b,c]of a)if(!b.isEmptyUri)for(let{node:a}of c)this.ensureHasId(a)}calculateReferenceDigest(a,b){a.ancestorNamespaces=m.findAncestorNsForElement(b);let c=this.canonicalize(a.transforms,b,{inclusiveNamespacesPrefixList:a.inclusiveNamespacesPrefixList,ancestorNamespaces:a.ancestorNamespaces},{discardComments:!0});return this.findHashAlgorithm(a.digestAlgorithm).getHash(c)}findSignatureContentTargets(a,b,c){let e=g.selectWithResolver(a.xpath??"",b,this.namespaceResolver);return d.assertIsArrayOfNodes(e),e.filter(a=>a===c||m.isDescendantOf(a,c)).map(a=>(d.assertIsElementNode(a),{node:a}))}addAllReferences(a,b,c,e){if(!m.isArrayHasLength(this.references))return;let f=e?`${e}:`:"",h="http://www.w3.org/2000/09/xmldsig#",i=g.select1("./*[local-name(.)='SignedInfo']",b);d.assertIsElementNode(i);let j=b.ownerDocument,k=new Map;for(let[d,e]of c)0===e.length&&k.set(d,this.findSignatureContentTargets(d,a,b));for(let[a,d]of(this.ensureTargetsHaveIds(k),c)){let c=k.get(a)??d;if(!m.isArrayHasLength(c))throw Error(`the following xpath cannot be signed because it was not found: ${a.xpath}`);for(let{node:d,digestValue:e}of c){let c;if(d===b||d===i||m.isDescendantOf(d,i))throw Error(`Cannot sign a reference to the Signature or SignedInfo element itself: ${a.xpath}`);if(a.isEmptyUri)c="";else{let b=this.ensureHasId(d);a.uri=b,c=`#${b}`}let g=j.createElementNS(h,`${f}Reference`);g.setAttribute("URI",c),a.id&&g.setAttribute("Id",a.id),a.type&&g.setAttribute("Type",a.type);let k=j.createElementNS(h,`${f}Transforms`);for(let b of a.transforms||[]){let c=this.findCanonicalizationAlgorithm(b),d=j.createElementNS(h,`${f}Transform`);if(d.setAttribute("Algorithm",c.getAlgorithmName()),m.isArrayHasLength(a.inclusiveNamespacesPrefixList)){let b=j.createElementNS(c.getAlgorithmName(),"InclusiveNamespaces");b.setAttribute("PrefixList",a.inclusiveNamespacesPrefixList.join(" ")),d.appendChild(b)}k.appendChild(d)}let l=this.findHashAlgorithm(a.digestAlgorithm),n=j.createElementNS(h,`${f}DigestMethod`);n.setAttribute("Algorithm",l.getAlgorithmName());let o=j.createElementNS(h,`${f}DigestValue`);o.textContent=e??this.calculateReferenceDigest(a,d),g.appendChild(k),g.appendChild(n),g.appendChild(o),i.appendChild(g)}}}getKeyInfo(a){let b=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});if(!b)return"";let c=a?`${a}:`:"",d="";return this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{d+=` ${a}="${this.keyInfoAttributes[a]}"`}),`<${c}KeyInfo${d}>${b}</${c}KeyInfo>`}getObjects(a){let b=a?`${a}:`:"";if(!this.objects||0===this.objects.length)return"";let c="";for(let a of this.objects){let d="";a.attributes&&Object.keys(a.attributes).forEach(b=>{let c=a.attributes?.[b];void 0!==c&&(d+=` ${b}="${c}"`)}),c+=`<${b}Object${d}>${a.content}</${b}Object>`}return c}getCanonXml(a,b,c={}){return this.canonicalize(a,b,c,{discardComments:!1})}canonicalize(a,b,c,{discardComments:e}){c.defaultNsForPrefix=c.defaultNsForPrefix??p.defaultNsForPrefix,c.signatureNode=this.signatureNode;let f=b.cloneNode(!0);if(a.includes("http://www.w3.org/2000/09/xmldsig#enveloped-signature")){let a=[],d=this.findLoadedSignature(b);for(;d?.parentNode&&d!==b;)a.push(Array.from(d.parentNode.childNodes).indexOf(d)),d=d.parentNode;d===b&&(c.signatureNode=a.reverse().reduce((a,b)=>a.childNodes[b],f))}if(e){let a=g.select(".//comment()",f);d.assertIsArrayOfNodes(a),a.forEach(a=>a.parentNode?.removeChild(a))}let h=f,i=c;for(let b of a)d.isNodeLike(h)||(h=this.parseTransformInput(h,b),i={...c,ancestorNamespaces:[],defaultNs:"",signatureNode:this.findLoadedSignature(h)??c.signatureNode}),h=this.findCanonicalizationAlgorithm(b).process(h,i);return d.isNodeLike(h)&&(h=this.findCanonicalizationAlgorithm("http://www.w3.org/TR/2001/REC-xml-c14n-20010315").process(h,i)),h.toString()}findLoadedSignature(a){let b,c=a.ownerDocument??a;if(null==this.signatureNode||this.signatureNode.ownerDocument===c)return this.signatureNode;let e=m.findChildren(this.signatureNode,"SignatureValue")[0]?.textContent;if(!e)return null;let f=(b=g.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",c),d.assertIsArrayOfNodes(b),b.filter(d.isElementNode)).filter(a=>m.findChildren(a,"SignatureValue")[0]?.textContent===e);if(f.length>1)throw Error("Cannot validate a document which contains multiple Signature elements with the same SignatureValue, in order to prevent signature wrapping attack.");return f[0]??null}parseTransformInput(a,b){let c=[],d=new e.DOMParser({errorHandler:(a,b)=>c.push(String(b))}).parseFromString(a);if(c.length>0||null==d.documentElement)throw Error(`Cannot apply transform ${b}: the output of the previous transform is not well-formed XML`);return d.documentElement}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let c=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),d=this.findSignatureAlgorithm(this.signatureAlgorithm),e=b?`${b}:`:"",f=`<${e}SignedInfo>`;return f+=`<${e}CanonicalizationMethod Algorithm="${c.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?f+=`><InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${c.getAlgorithmName()}"/></${e}CanonicalizationMethod>`:f+=" />",f+=`<${e}SignatureMethod Algorithm="${d.getAlgorithmName()}" /></${e}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return n(),this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=p,p.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},p.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f){let g,h,i,j=[],k=c,l=[],m=a.namespaceURI||"";a.prefix&&-1===b.indexOf(a.prefix)&&(l.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push(a.prefix));let n=null;if(a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===a.attributes[g].name&&(n=a.attributes[g].value);if((i=null!==n?n:a.prefix?c:m)!==c&&j.push(' xmlns="',k=i,'"'),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&-1===b.indexOf(h.localName)&&(l.push({prefix:h.localName,namespaceURI:h.value}),b.push(h.localName)),h.prefix&&-1===b.indexOf(h.prefix)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(l.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push(h.prefix));if(d.isArrayHasLength(f))for(let a of f){let b=!1;for(let c of l)c.prefix===a.prefix&&c.namespaceURI===a.namespaceURI&&(b=!0);!b&&(l.push(a),a.prefix||(k=a.namespaceURI))}return l.sort(this.nsCompare),j.push(...l.map(a=>a.prefix?` xmlns:${a.prefix}="${a.namespaceURI}"`:` xmlns="${a.namespaceURI}"`)),{rendered:j.join(""),newDefaultNs:k}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,[]));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!==d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).defaultNs||"",d=b.defaultNsForPrefix||{},e=b.ancestorNamespaces||[],f=[];for(let a=0;a<e.length;a++)f.push(e[a].prefix);return this.processInner(a,f,c,d,e)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(46780),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.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},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},9315:(a,b,c)=>{a.exports=function(a){function b(a){let c,e,f,g=null;function h(...a){if(!h.enabled)return;let d=Number(new Date);h.diff=d-(c||d),h.prev=c,h.curr=d,c=d,a[0]=b.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let e=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(c,d)=>{if("%%"===c)return"%";e++;let f=b.formatters[d];if("function"==typeof f){let b=a[e];c=f.call(h,b),a.splice(e,1),e--}return c}),b.formatArgs.call(h,a),(h.log||b.log).apply(h,a)}return h.namespace=a,h.useColors=b.useColors(),h.color=b.selectColor(a),h.extend=d,h.destroy=b.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(e!==b.namespaces&&(e=b.namespaces,f=b.enabled(a)),f),set:a=>{g=a}}),"function"==typeof b.init&&b.init(h),h}function d(a,c){let d=b(this.namespace+(void 0===c?":":c)+a);return d.log=this.log,d}function e(a,b){let c=0,d=0,e=-1,f=0;for(;c<a.length;)if(d<b.length&&(b[d]===a[c]||"*"===b[d]))"*"===b[d]?(e=d,f=c):c++,d++;else{if(-1===e)return!1;d=e+1,c=++f}for(;d<b.length&&"*"===b[d];)d++;return d===b.length}return b.debug=b,b.default=b,b.coerce=function(a){return a instanceof Error?a.stack||a.message:a},b.disable=function(){let a=[...b.names,...b.skips.map(a=>"-"+a)].join(",");return b.enable(""),a},b.enable=function(a){for(let c of(b.save(a),b.namespaces=a,b.names=[],b.skips=[],("string"==typeof a?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===c[0]?b.skips.push(c.slice(1)):b.names.push(c)},b.enabled=function(a){for(let c of b.skips)if(e(a,c))return!1;for(let c of b.names)if(e(a,c))return!0;return!1},b.humanize=c(20890),b.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{b[c]=a[c]}),b.names=[],b.skips=[],b.formatters={},b.selectColor=function(a){let c=0;for(let b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b)|0;return b.colors[Math.abs(c)%b.colors.length]},b.enable(b.load()),b}},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,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(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0;let d=c(61894),e=c(62119);function f(a,b,c){let d=!1;return a.forEach(function(a){a.prefix===b&&a.namespaceURI===c&&(d=!0)}),d}class g{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,d,e){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?f(b,a.prefix,a.namespaceURI||d[a.prefix])||(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]})):c!==l&&(j=a.namespaceURI,i.push(' xmlns="',j,'"')),a.attributes)for(g=0;g<a.attributes.length;++g)(h=a.attributes[g]).prefix&&!f(b,h.localName,h.value)&&e.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!f(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k))i.push(" xmlns:",a.prefix,'="',a.namespaceURI,'"');return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!=d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).inclusiveNamespacesPrefixList||[],e=b.defaultNs||"",f=b.defaultNsForPrefix||{},g=b.ancestorNamespaces||[];if(!d.isArrayHasLength(c)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(c=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(c)&&c.forEach(function(b){g&&g.forEach(function(c){b===c.prefix&&a.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${b}`,c.namespaceURI)})}),this.processInner(a,[],e,f,c)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=g;class h extends g{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=h},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},20890:a=>{function b(a,b,c,d){return Math.round(a/c)+" "+d+(b>=1.5*c?"s":"")}a.exports=function(a,c){c=c||{};var d,e,f,g,h=typeof a;if("string"===h&&a.length>0){var i=a;if(!((i=String(i)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(j){var k=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return 864e5*k;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*k;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*k;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:break}}}return}if("number"===h&&isFinite(a)){return c.long?(e=Math.abs(d=a))>=864e5?b(d,e,864e5,"day"):e>=36e5?b(d,e,36e5,"hour"):e>=6e4?b(d,e,6e4,"minute"):e>=1e3?b(d,e,1e3,"second"):d+" ms":(g=Math.abs(f=a))>=864e5?Math.round(f/864e5)+"d":g>=36e5?Math.round(f/36e5)+"h":g>=6e4?Math.round(f/6e4)+"m":g>=1e3?Math.round(f/1e3)+"s":f+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},21584:(a,b,c)=>{let d;b.formatArgs=function(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;b.splice(1,0,c,"color: inherit");let d=0,e=0;b[0].replace(/%[a-zA-Z%]/g,a=>{"%%"!==a&&(d++,"%c"===a&&(e=d))}),b.splice(e,0,c)},b.save=function(a){try{a?b.storage.setItem("debug",a):b.storage.removeItem("debug")}catch(a){}},b.load=function(){let a;try{a=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch(a){}return!a&&"u">typeof process&&"env"in process&&(a=process.env.DEBUG),a},b.useColors=function(){let a;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},b.storage=function(){try{return localStorage}catch(a){}}(),d=!1,b.destroy=()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.log=console.debug||console.log||(()=>{}),a.exports=c(9315)(b);let{formatters:e}=a.exports;e.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.BASE64_REGEX=b.EXTRACT_X509_CERTS=b.PEM_FORMAT_REGEX=b.derToPem=b.validateDigestValue=b.encodeSpecialCharactersInText=b.encodeSpecialCharactersInAttribute=b.isDescendantOf=b.findChilds=b.findChildren=b.findAttr=b.isArrayHasLength=b.toPem=b.pemToDer=b.pemCertificates=b.normalizePem=b.findAncestorNs=b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let f=c(28354),g=c(61894);var h=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return h.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return h.C14nCanonicalizationWithComments}});var i=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return i.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return i.ExclusiveCanonicalizationWithComments}});var j=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return j.SignedXml}}),e(c(75546),b);var k=c(61894);Object.defineProperty(b,"findAncestorNs",{enumerable:!0,get:function(){return k.findAncestorNs}}),Object.defineProperty(b,"normalizePem",{enumerable:!0,get:function(){return k.normalizePem}}),Object.defineProperty(b,"pemCertificates",{enumerable:!0,get:function(){return k.pemCertificates}}),Object.defineProperty(b,"pemToDer",{enumerable:!0,get:function(){return k.pemToDer}}),Object.defineProperty(b,"toPem",{enumerable:!0,get:function(){return k.toPem}}),b.isArrayHasLength=(0,f.deprecate)(g.isArrayHasLength,"`isArrayHasLength()` is deprecated and will be removed in version 7.0. Use `Array.isArray(x) && x.length > 0` instead.","XML_CRYPTO_IS_ARRAY_HAS_LENGTH"),b.findAttr=(0,f.deprecate)(g.findAttr,"`findAttr()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_ATTR"),b.findChildren=(0,f.deprecate)(g.findChildren,"`findChildren()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDREN"),b.findChilds=(0,f.deprecate)(g.findChilds,"`findChilds()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDS"),b.isDescendantOf=(0,f.deprecate)(g.isDescendantOf,"`isDescendantOf()` is deprecated and will be removed in version 7.0. Walk `parentNode` yourself, or use `Node.contains()` instead.","XML_CRYPTO_IS_DESCENDANT_OF"),b.encodeSpecialCharactersInAttribute=(0,f.deprecate)(g.encodeSpecialCharactersInAttribute,"`encodeSpecialCharactersInAttribute()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_ATTRIBUTE"),b.encodeSpecialCharactersInText=(0,f.deprecate)(g.encodeSpecialCharactersInText,"`encodeSpecialCharactersInText()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_TEXT"),b.validateDigestValue=(0,f.deprecate)(g.validateDigestValue,"`validateDigestValue()` is deprecated and will be removed in version 7.0. Decode both digests from base64 and use `a.length === b.length && crypto.timingSafeEqual(a, b)` instead, and never `===`.","XML_CRYPTO_VALIDATE_DIGEST_VALUE"),b.derToPem=(0,f.deprecate)(g.toPem,"`derToPem()` is deprecated and will be removed in version 7.0. Use `toPem()` instead.","XML_CRYPTO_DER_TO_PEM"),b.PEM_FORMAT_REGEX=RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),b.EXTRACT_X509_CERTS=RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),b.BASE64_REGEX=RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s")},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24706:function(a){(function(){a.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(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,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)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.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(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.stripPemHeaderAndFooter=b.generateUniqueId=b.keyInfoToPem=void 0;let d=c(55511),e=c(36481),f=/^(-----BEGIN [A-Z\x20]{1,48}-----(\r\n|\r|\n){1}.*(\r\n|\r|\n){1}-----END [A-Z\x20]{1,48}-----(\r\n|\r|\n){0,1})$/s,g=/^(?:[A-Za-z0-9\+\/]{4}\n{0,1})*(?:[A-Za-z0-9\+\/]{2}==|[A-Za-z0-9\+\/]{3}=)?$/s,h=a=>{var b;return`${(null!=(b=a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g))?b:[]).join("\n")}
|
|
1
|
+
exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894),n=(0,f.deprecate)(()=>{},"`getOriginalXmlWithIds()` is deprecated and will be removed in a future version. Use the `location` option of `computeSignature()` to place the signature, then `getSignedXml()`. For a detached signature, put an ID attribute the signer recognizes on each referenced element (`wsu:Id` for WS-Security), sign that document, and send it alongside `getSignatureXml()`.","XML_CRYPTO_GET_ORIGINAL_XML_WITH_IDS"),o=(0,f.deprecate)(()=>{},"`validateElementAgainstReferences()` is deprecated and will be removed in a future version. After `checkSignature()` succeeds, use the XML that `getSignedReferences()` returns instead of nodes from the original document.","XML_CRYPTO_VALIDATE_ELEMENT_AGAINST_REFERENCES");class p{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=p.getKeyInfoContent,this.getCertFromKeyInfo=p.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1":l.RsaSha256Mgf1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};const{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:n,implicitTransforms:o,keyInfoAttributes:q,getKeyInfoContent:r,getCertFromKeyInfo:s,objects:t}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof n?this.inclusiveNamespacesPrefixList=n.split(" "):m.isArrayHasLength(n)&&(this.inclusiveNamespacesPrefixList=n),this.implicitTransforms=o??this.implicitTransforms,this.keyInfoAttributes=q??this.keyInfoAttributes,this.getKeyInfoContent=r??this.getKeyInfoContent,this.getCertFromKeyInfo=s??p.noop,this.objects=t,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=p.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"",Buffer.isBuffer(a)&&(a=a.toString("latin1"));let c="string"==typeof a?function(a){let b=m.pemCertificates(a);if(b.length>0)return b;try{return[m.bareCertificate(a)]}catch{return[]}}(a):[];if(0===c.length)return null;let d=c.map(a=>`<${b}X509Certificate>${a}</${b}X509Certificate>`).join("");return`<${b}X509Data>${d}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isElementNode(b))return m.toPem(b.textContent,"CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");let c=this.signedReferences;this.signedReferences=[],this.signedXml=a;let d=new e.DOMParser().parseFromString(a);this.references=[];let f=this.getCanonSignedInfoXml(d);if(!f){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let g=new e.DOMParser().parseFromString(f,"text/xml").documentElement;if(!g){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let h=m.findChildren(g,"Reference");if(!m.isArrayHasLength(h)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of h)this.loadReference(a);let i=[];for(let a of this.references){let c=this.validateReference(a,d);if(void 0===c){if(b)return void b(Error("Could not validate all references"),!1);return!1}i.push(c)}let j=this.findSignatureAlgorithm(this.signatureAlgorithm),k=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==k)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!0===j.verifySignature(f,k,this.signatureValue)){if(this.signedReferences=[...c,...i],this.references.forEach((a,b)=>{a.signedReference=i[b]}),!b)return!0;b(null,!0)}else if(b)return void b(Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));else throw Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=m.findAncestorNs(a,"//*[local-name()='SignedInfo']");return this.getCanonXml([this.canonicalizationAlgorithm],b[0],{ancestorNamespaces:c})}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={inclusiveNamespacesPrefixList:b.inclusiveNamespacesPrefixList,ancestorNamespaces:b.ancestorNamespaces},e=""===b.uri||b.uri.startsWith("#");return this.canonicalize(b.transforms,c,d,{discardComments:e})}calculateSignatureValue(a,b){let c=this.getCanonSignedInfoXml(a),d=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");"function"==typeof b?d.getSignature(c,this.privateKey,b):this.signatureValue=d.getSignature(c,this.privateKey)}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if(o(),"string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""===c)e=g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);a.validationError=b;return}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);a.validationError=b;return}return h}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);let l=g.select1(".//*[local-name(.)='SignatureValue']/text()",a);d.isTextNode(l)&&(this.signatureValue=l.data.replace(/\r?\n/g,""));let n=g.select1(".//*[local-name(.)='KeyInfo']",a);d.isNodeLike(n)&&(this.keyInfo=n)}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0],c=m.findChildren(a,"Transform");for(let a of c){let b=m.findAttr(a,"Algorithm");b&&h.push(b.value)}let d=m.findChildren(c[c.length-1],"InclusiveNamespaces");m.isArrayHasLength(d)&&(i=d.flatMap(a=>(a.getAttribute("PrefixList")??"").split(" ")).filter(a=>a.length>0))}m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let j=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:j,digestValue:g,inclusiveNamespacesPrefixList:i,isEmptyUri:!1})}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1,id:h,type:i}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,id:h,type:i,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let f,h;"function"==typeof b&&null==c?(f=b,b={}):(f=c,b=b??{});let i=new e.DOMParser().parseFromString(a),j="xmlns",k=[],l=["append","prepend","before","after"],n=b.prefix,o=b.attrs||{},p=b.location||{},q=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?q[a]:null}},p.reference=p.reference||"/*",p.action=p.action||"append",-1===l.indexOf(p.action)){let a=Error(`location.action option has an invalid action: ${p.action}, must be any of the following values: ${l.join(", ")}`);if(f)return void f(a);throw a}let r=new Map;for(let a of this.getReferences()){let b=g.selectWithResolver(a.xpath??"",i,this.namespaceResolver);d.assertIsArrayOfNodes(b);let c=b.map(a=>(d.assertIsElementNode(a),{node:a}));r.set(a,c)}this.ensureTargetsHaveIds(r),this.originalXmlWithIds=this.serialize(i),n?(j+=`:${n}`,h=`${n}:`):h="",Object.keys(o).forEach(function(a){"xmlns"!==a&&a!==j&&k.push(`${a}="${o[a]}"`)}),k.push(`${j}="http://www.w3.org/2000/09/xmldsig#"`);let s=`<${h}Signature ${k.join(" ")}>`;s+=this.createSignedInfo(i,n),s+=this.getKeyInfo(n),s+=this.getObjects(n),s+=`</${h}Signature>`;let t="";Object.keys(q).forEach(function(a){t+=`xmlns:${a}="${q[a]}" `});let u=`<Dummy ${t}>${s}</Dummy>`,v=new e.DOMParser().parseFromString(u).documentElement.firstChild,w=g.select1(p.reference,i);if(!d.isNodeLike(w)){let a=Error(`the following xpath cannot be used because it was not found: ${p.reference}`);if(f)return void f(a);throw a}let x=this.signatureNode;this.signatureNode=v;try{for(let[a,b]of r)for(let c of b)c.digestValue=this.calculateReferenceDigest(a,c.node);if("append"===p.action)w.appendChild(v);else if("prepend"===p.action)w.insertBefore(v,w.firstChild);else if("before"===p.action){if(null==w.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `before`");w.parentNode.insertBefore(v,w)}else if("after"===p.action){if(null==w.parentNode)throw Error("`location.reference` refers to the root node (by default), so we can't insert `after`");w.parentNode.insertBefore(v,w.nextSibling)}this.addAllReferences(i,v,r,n)}catch(a){throw this.signatureNode=x,a}let y=m.findChildren(this.signatureNode,"SignedInfo");if(0===y.length){let a=Error("could not find SignedInfo element in the message");if(f)return void f(a);throw a}let z=y[0];"function"==typeof f?this.calculateSignatureValue(i,(a,b)=>{a?f(a):(this.signatureValue=b||"",v.insertBefore(this.createSignature(n),z.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(i),f(null,this))}):(this.calculateSignatureValue(i),v.insertBefore(this.createSignature(n),z.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(i))}serialize(a){return a.toString().replace(/\r/g,"
")}ensureTargetsHaveIds(a){for(let[b,c]of a)if(!b.isEmptyUri)for(let{node:a}of c)this.ensureHasId(a)}calculateReferenceDigest(a,b){a.ancestorNamespaces=m.findAncestorNsForElement(b);let c=this.canonicalize(a.transforms,b,{inclusiveNamespacesPrefixList:a.inclusiveNamespacesPrefixList,ancestorNamespaces:a.ancestorNamespaces},{discardComments:!0});return this.findHashAlgorithm(a.digestAlgorithm).getHash(c)}findSignatureContentTargets(a,b,c){let e=g.selectWithResolver(a.xpath??"",b,this.namespaceResolver);return d.assertIsArrayOfNodes(e),e.filter(a=>a===c||m.isDescendantOf(a,c)).map(a=>(d.assertIsElementNode(a),{node:a}))}addAllReferences(a,b,c,e){if(!m.isArrayHasLength(this.references))return;let f=e?`${e}:`:"",h="http://www.w3.org/2000/09/xmldsig#",i=g.select1("./*[local-name(.)='SignedInfo']",b);d.assertIsElementNode(i);let j=b.ownerDocument,k=new Map;for(let[d,e]of c)0===e.length&&k.set(d,this.findSignatureContentTargets(d,a,b));for(let[a,d]of(this.ensureTargetsHaveIds(k),c)){let c=k.get(a)??d;if(!m.isArrayHasLength(c))throw Error(`the following xpath cannot be signed because it was not found: ${a.xpath}`);for(let{node:d,digestValue:e}of c){let c;if(d===b||d===i||m.isDescendantOf(d,i))throw Error(`Cannot sign a reference to the Signature or SignedInfo element itself: ${a.xpath}`);if(a.isEmptyUri)c="";else{let b=this.ensureHasId(d);a.uri=b,c=`#${b}`}let g=j.createElementNS(h,`${f}Reference`);g.setAttribute("URI",c),a.id&&g.setAttribute("Id",a.id),a.type&&g.setAttribute("Type",a.type);let k=j.createElementNS(h,`${f}Transforms`);for(let b of a.transforms||[]){let c=this.findCanonicalizationAlgorithm(b),d=j.createElementNS(h,`${f}Transform`);if(d.setAttribute("Algorithm",c.getAlgorithmName()),m.isArrayHasLength(a.inclusiveNamespacesPrefixList)){let b=j.createElementNS(c.getAlgorithmName(),"InclusiveNamespaces");b.setAttribute("PrefixList",a.inclusiveNamespacesPrefixList.join(" ")),d.appendChild(b)}k.appendChild(d)}let l=this.findHashAlgorithm(a.digestAlgorithm),n=j.createElementNS(h,`${f}DigestMethod`);n.setAttribute("Algorithm",l.getAlgorithmName());let o=j.createElementNS(h,`${f}DigestValue`);o.textContent=e??this.calculateReferenceDigest(a,d),g.appendChild(k),g.appendChild(n),g.appendChild(o),i.appendChild(g)}}}getKeyInfo(a){let b=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});if(!b)return"";let c=a?`${a}:`:"",d="";return this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{d+=` ${a}="${this.keyInfoAttributes[a]}"`}),`<${c}KeyInfo${d}>${b}</${c}KeyInfo>`}getObjects(a){let b=a?`${a}:`:"";if(!this.objects||0===this.objects.length)return"";let c="";for(let a of this.objects){let d="";a.attributes&&Object.keys(a.attributes).forEach(b=>{let c=a.attributes?.[b];void 0!==c&&(d+=` ${b}="${c}"`)}),c+=`<${b}Object${d}>${a.content}</${b}Object>`}return c}getCanonXml(a,b,c={}){return this.canonicalize(a,b,c,{discardComments:!1})}canonicalize(a,b,c,{discardComments:e}){c.defaultNsForPrefix=c.defaultNsForPrefix??p.defaultNsForPrefix,c.signatureNode=this.signatureNode;let f=b.cloneNode(!0);if(a.includes("http://www.w3.org/2000/09/xmldsig#enveloped-signature")){let a=[],d=this.findLoadedSignature(b);for(;d?.parentNode&&d!==b;)a.push(Array.from(d.parentNode.childNodes).indexOf(d)),d=d.parentNode;d===b&&(c.signatureNode=a.reverse().reduce((a,b)=>a.childNodes[b],f))}if(e){let a=g.select(".//comment()",f);d.assertIsArrayOfNodes(a),a.forEach(a=>a.parentNode?.removeChild(a))}let h=f,i=c;for(let b of a)d.isNodeLike(h)||(h=this.parseTransformInput(h,b),i={...c,ancestorNamespaces:[],defaultNs:"",signatureNode:this.findLoadedSignature(h)??c.signatureNode}),h=this.findCanonicalizationAlgorithm(b).process(h,i);return d.isNodeLike(h)&&(h=this.findCanonicalizationAlgorithm("http://www.w3.org/TR/2001/REC-xml-c14n-20010315").process(h,i)),h.toString()}findLoadedSignature(a){let b,c=a.ownerDocument??a;if(null==this.signatureNode||this.signatureNode.ownerDocument===c)return this.signatureNode;let e=m.findChildren(this.signatureNode,"SignatureValue")[0]?.textContent;if(!e)return null;let f=(b=g.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",c),d.assertIsArrayOfNodes(b),b.filter(d.isElementNode)).filter(a=>m.findChildren(a,"SignatureValue")[0]?.textContent===e);if(f.length>1)throw Error("Cannot validate a document which contains multiple Signature elements with the same SignatureValue, in order to prevent signature wrapping attack.");return f[0]??null}parseTransformInput(a,b){let c=[],d=new e.DOMParser({errorHandler:(a,b)=>c.push(String(b))}).parseFromString(a);if(c.length>0||null==d.documentElement)throw Error(`Cannot apply transform ${b}: the output of the previous transform is not well-formed XML`);return d.documentElement}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let c=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),d=this.findSignatureAlgorithm(this.signatureAlgorithm),e=b?`${b}:`:"",f=`<${e}SignedInfo>`;return f+=`<${e}CanonicalizationMethod Algorithm="${c.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?f+=`><InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${c.getAlgorithmName()}"/></${e}CanonicalizationMethod>`:f+=" />",f+=`<${e}SignatureMethod Algorithm="${d.getAlgorithmName()}" /></${e}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return n(),this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=p,p.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},p.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f){let g,h,i,j=[],k=c,l=[],m=a.namespaceURI||"";a.prefix&&-1===b.indexOf(a.prefix)&&(l.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push(a.prefix));let n=null;if(a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===a.attributes[g].name&&(n=a.attributes[g].value);if((i=null!==n?n:a.prefix?c:m)!==c&&j.push(' xmlns="',k=i,'"'),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&-1===b.indexOf(h.localName)&&(l.push({prefix:h.localName,namespaceURI:h.value}),b.push(h.localName)),h.prefix&&-1===b.indexOf(h.prefix)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(l.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push(h.prefix));if(d.isArrayHasLength(f))for(let a of f){let b=!1;for(let c of l)c.prefix===a.prefix&&c.namespaceURI===a.namespaceURI&&(b=!0);!b&&(l.push(a),a.prefix||(k=a.namespaceURI))}return l.sort(this.nsCompare),j.push(...l.map(a=>a.prefix?` xmlns:${a.prefix}="${a.namespaceURI}"`:` xmlns="${a.namespaceURI}"`)),{rendered:j.join(""),newDefaultNs:k}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,[]));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!==d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).defaultNs||"",d=b.defaultNsForPrefix||{},e=b.ancestorNamespaces||[],f=[];for(let a=0;a<e.length;a++)f.push(e[a].prefix);return this.processInner(a,f,c,d,e)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(46780),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.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},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},9315:(a,b,c)=>{a.exports=function(a){function b(a){let c,e,f,g=null;function h(...a){if(!h.enabled)return;let d=Number(new Date);h.diff=d-(c||d),h.prev=c,h.curr=d,c=d,a[0]=b.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let e=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(c,d)=>{if("%%"===c)return"%";e++;let f=b.formatters[d];if("function"==typeof f){let b=a[e];c=f.call(h,b),a.splice(e,1),e--}return c}),b.formatArgs.call(h,a),(h.log||b.log).apply(h,a)}return h.namespace=a,h.useColors=b.useColors(),h.color=b.selectColor(a),h.extend=d,h.destroy=b.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(e!==b.namespaces&&(e=b.namespaces,f=b.enabled(a)),f),set:a=>{g=a}}),"function"==typeof b.init&&b.init(h),h}function d(a,c){let d=b(this.namespace+(void 0===c?":":c)+a);return d.log=this.log,d}function e(a,b){let c=0,d=0,e=-1,f=0;for(;c<a.length;)if(d<b.length&&(b[d]===a[c]||"*"===b[d]))"*"===b[d]?(e=d,f=c):c++,d++;else{if(-1===e)return!1;d=e+1,c=++f}for(;d<b.length&&"*"===b[d];)d++;return d===b.length}return b.debug=b,b.default=b,b.coerce=function(a){return a instanceof Error?a.stack||a.message:a},b.disable=function(){let a=[...b.names,...b.skips.map(a=>"-"+a)].join(",");return b.enable(""),a},b.enable=function(a){for(let c of(b.save(a),b.namespaces=a,b.names=[],b.skips=[],("string"==typeof a?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===c[0]?b.skips.push(c.slice(1)):b.names.push(c)},b.enabled=function(a){for(let c of b.skips)if(e(a,c))return!1;for(let c of b.names)if(e(a,c))return!0;return!1},b.humanize=c(20890),b.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{b[c]=a[c]}),b.names=[],b.skips=[],b.formatters={},b.selectColor=function(a){let c=0;for(let b=0;b<a.length;b++)c=(c<<5)-c+a.charCodeAt(b)|0;return b.colors[Math.abs(c)%b.colors.length]},b.enable(b.load()),b}},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,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(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0;let d=c(61894),e=c(62119);function f(a,b,c){let d=!1;return a.forEach(function(a){a.prefix===b&&a.namespaceURI===c&&(d=!0)}),d}class g{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)0!==(c=a.attributes[b]).name.indexOf("xmlns")&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,d,e){let g,h,i=[],j=c,k=[],l=a.namespaceURI||"";if(a.prefix?f(b,a.prefix,a.namespaceURI||d[a.prefix])||(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||d[a.prefix]})):c!==l&&(j=a.namespaceURI,i.push(' xmlns="',j,'"')),a.attributes)for(g=0;g<a.attributes.length;++g)(h=a.attributes[g]).prefix&&!f(b,h.localName,h.value)&&e.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!f(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k))i.push(" xmlns:",a.prefix,'="',a.namespaceURI,'"');return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(e.isCommentNode(a))return this.renderComment(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a){if(!this.includeComments)return"";let b=a.ownerDocument===a.parentNode,c=!1,e=!1;if(b){let b=a,d=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){c=!0;break}b=b.nextSibling}for(;null!=d;){if(d===a.ownerDocument.documentElement){e=!0;break}d=d.previousSibling}}let f=e?"\n":"",g=c?"\n":"",h=d.encodeSpecialCharactersInText(a.data);return`${f}<!--${h}-->${g}`}process(a,b){let c=(b=b||{}).inclusiveNamespacesPrefixList||[],e=b.defaultNs||"",f=b.defaultNsForPrefix||{},g=b.ancestorNamespaces||[];if(!d.isArrayHasLength(c)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(c=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(c)&&c.forEach(function(b){g&&g.forEach(function(c){b===c.prefix&&a.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${b}`,c.namespaceURI)})}),this.processInner(a,[],e,f,c)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=g;class h extends g{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=h},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},20890:a=>{function b(a,b,c,d){return Math.round(a/c)+" "+d+(b>=1.5*c?"s":"")}a.exports=function(a,c){c=c||{};var d,e,f,g,h=typeof a;if("string"===h&&a.length>0){var i=a;if(!((i=String(i)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(j){var k=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return 864e5*k;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*k;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*k;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:break}}}return}if("number"===h&&isFinite(a)){return c.long?(e=Math.abs(d=a))>=864e5?b(d,e,864e5,"day"):e>=36e5?b(d,e,36e5,"hour"):e>=6e4?b(d,e,6e4,"minute"):e>=1e3?b(d,e,1e3,"second"):d+" ms":(g=Math.abs(f=a))>=864e5?Math.round(f/864e5)+"d":g>=36e5?Math.round(f/36e5)+"h":g>=6e4?Math.round(f/6e4)+"m":g>=1e3?Math.round(f/1e3)+"s":f+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}},21584:(a,b,c)=>{let d;b.formatArgs=function(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;b.splice(1,0,c,"color: inherit");let d=0,e=0;b[0].replace(/%[a-zA-Z%]/g,a=>{"%%"!==a&&(d++,"%c"===a&&(e=d))}),b.splice(e,0,c)},b.save=function(a){try{a?b.storage.setItem("debug",a):b.storage.removeItem("debug")}catch(a){}},b.load=function(){let a;try{a=b.storage.getItem("debug")||b.storage.getItem("DEBUG")}catch(a){}return!a&&"u">typeof process&&"env"in process&&(a=process.env.DEBUG),a},b.useColors=function(){let a;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},b.storage=function(){try{return localStorage}catch(a){}}(),d=!1,b.destroy=()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},b.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],b.log=console.debug||console.log||(()=>{}),a.exports=c(9315)(b);let{formatters:e}=a.exports;e.j=function(a){try{return JSON.stringify(a)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.BASE64_REGEX=b.EXTRACT_X509_CERTS=b.PEM_FORMAT_REGEX=b.derToPem=b.validateDigestValue=b.encodeSpecialCharactersInText=b.encodeSpecialCharactersInAttribute=b.isDescendantOf=b.findChilds=b.findChildren=b.findAttr=b.isArrayHasLength=b.toPem=b.pemToDer=b.pemCertificates=b.normalizePem=b.findAncestorNs=b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let f=c(28354),g=c(61894);var h=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return h.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return h.C14nCanonicalizationWithComments}});var i=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return i.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return i.ExclusiveCanonicalizationWithComments}});var j=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return j.SignedXml}}),e(c(75546),b);var k=c(61894);Object.defineProperty(b,"findAncestorNs",{enumerable:!0,get:function(){return k.findAncestorNs}}),Object.defineProperty(b,"normalizePem",{enumerable:!0,get:function(){return k.normalizePem}}),Object.defineProperty(b,"pemCertificates",{enumerable:!0,get:function(){return k.pemCertificates}}),Object.defineProperty(b,"pemToDer",{enumerable:!0,get:function(){return k.pemToDer}}),Object.defineProperty(b,"toPem",{enumerable:!0,get:function(){return k.toPem}}),b.isArrayHasLength=(0,f.deprecate)(g.isArrayHasLength,"`isArrayHasLength()` is deprecated and will be removed in version 7.0. Use `Array.isArray(x) && x.length > 0` instead.","XML_CRYPTO_IS_ARRAY_HAS_LENGTH"),b.findAttr=(0,f.deprecate)(g.findAttr,"`findAttr()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_ATTR"),b.findChildren=(0,f.deprecate)(g.findChildren,"`findChildren()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDREN"),b.findChilds=(0,f.deprecate)(g.findChilds,"`findChilds()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDS"),b.isDescendantOf=(0,f.deprecate)(g.isDescendantOf,"`isDescendantOf()` is deprecated and will be removed in version 7.0. Walk `parentNode` yourself, or use `Node.contains()` instead.","XML_CRYPTO_IS_DESCENDANT_OF"),b.encodeSpecialCharactersInAttribute=(0,f.deprecate)(g.encodeSpecialCharactersInAttribute,"`encodeSpecialCharactersInAttribute()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_ATTRIBUTE"),b.encodeSpecialCharactersInText=(0,f.deprecate)(g.encodeSpecialCharactersInText,"`encodeSpecialCharactersInText()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_TEXT"),b.validateDigestValue=(0,f.deprecate)(g.validateDigestValue,"`validateDigestValue()` is deprecated and will be removed in version 7.0. Decode both digests from base64 and use `a.length === b.length && crypto.timingSafeEqual(a, b)` instead, and never `===`.","XML_CRYPTO_VALIDATE_DIGEST_VALUE"),b.derToPem=(0,f.deprecate)(g.toPem,"`derToPem()` is deprecated and will be removed in version 7.0. Use `toPem()` instead.","XML_CRYPTO_DER_TO_PEM"),b.PEM_FORMAT_REGEX=RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),b.EXTRACT_X509_CERTS=RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),b.BASE64_REGEX=RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s")},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24706:function(a){(function(){a.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(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,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)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.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(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.stripPemHeaderAndFooter=b.generateUniqueId=b.keyInfoToPem=void 0;let d=c(55511),e=c(36481),f=/^(-----BEGIN [A-Z\x20]{1,48}-----(\r\n|\r|\n){1}.*(\r\n|\r|\n){1}-----END [A-Z\x20]{1,48}-----(\r\n|\r|\n){0,1})$/s,g=/^(?:[A-Za-z0-9\+\/]{4}\n{0,1})*(?:[A-Za-z0-9\+\/]{2}==|[A-Za-z0-9\+\/]{3}=)?$/s,h=a=>{var b;return`${(null!=(b=a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g))?b:[]).join("\n")}
|
|
2
2
|
`};b.keyInfoToPem=(a,b,c="keyInfo")=>{let d=Buffer.isBuffer(a)?a.toString("latin1"):a;if((0,e.assertRequired)(d,`${c} is not provided`),f.test(d))return h(d);let i=g.test(d);return(0,e.assertRequired)(i||void 0,`${c} is not in PEM format or in base64 format`),h(`-----BEGIN ${b}-----
|
|
3
3
|
${a}
|
|
4
4
|
-----END ${b}-----`)},b.generateUniqueId=()=>"_"+d.randomBytes(20).toString("hex"),b.stripPemHeaderAndFooter=a=>a.replace(/(\r\n|\r)/g,"\n").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,"")},29394:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},30072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_WANT_ASSERTIONS_SIGNED=b.DEFAULT_IDENTIFIER_FORMAT=void 0,b.DEFAULT_IDENTIFIER_FORMAT="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",b.DEFAULT_WANT_ASSERTIONS_SIGNED=!0},31673:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.InMemoryCacheProvider=void 0;class c{constructor(a){var b;this.lastPrune=0,this.cacheKeys={},this.options={...a,keyExpirationPeriodMs:null!=(b=a.keyExpirationPeriodMs)?b:288e5},this.prune=()=>{let a=new Date().getTime();if(a>this.lastPrune+this.options.keyExpirationPeriodMs){let b=Object.keys(this.cacheKeys),c=[];b.forEach(b=>{a>=this.cacheKeys[b].createdAt+this.options.keyExpirationPeriodMs&&c.push(b)}),c.forEach(a=>this.removeAsync(a)),this.lastPrune=a}},this.removeKeyIfExpired=async(a,b)=>{this.cacheKeys[a]&&b>=this.cacheKeys[a].createdAt+this.options.keyExpirationPeriodMs&&await this.removeAsync(a)}}async saveAsync(a,b){this.prune();let c=new Date().getTime();return(await this.removeKeyIfExpired(a,c),this.cacheKeys[a])?null:(this.cacheKeys[a]={createdAt:c,value:b},this.cacheKeys[a])}async getAsync(a){this.prune();let b=new Date().getTime();return(await this.removeKeyIfExpired(a,b),this.cacheKeys[a])?this.cacheKeys[a].value:null}async removeAsync(a){return null!=a&&this.cacheKeys[a]?(delete this.cacheKeys[a],a):null}}b.InMemoryCacheProvider=c},31753:function(a){(function(){var b={}.hasOwnProperty;a.exports=(function(){class a{constructor(a){var c,d,e;for(c in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}name(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")}text(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))}cdata(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))}comment(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)}raw(a){return this.options.noValidation?a:""+a||""}attValue(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))}insTarget(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}insValue(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)}xmlVersion(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a}xmlEncoding(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)}xmlStandalone(a){return this.options.noValidation?a:a?"yes":"no"}dtdPubID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdSysID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdElementValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttType(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttDefault(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdEntityValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdNData(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}assertLegalChar(a){var b,c;if(this.options.noValidation)return a;if("1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}else if("1.1"===this.options.version){if(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}return a}assertLegalName(a){if(this.options.noValidation)return a;if(!(a=this.assertLegalChar(a)).match(/^([: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])*$/))throw Error(`Invalid character in name: ${a}`);return a}textEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))}attEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))}}return a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a}).call(this)}).call(this)},31777:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.type=b.Dummy}return e(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(d)}).call(this)},32046:(a,b)=>{!function(a){"use strict";var b,c,d,e,f="__namespace",g=function(a){var b;return a&&((b=a.nodeType)===f||Number.isInteger(b)&&b>=1&&b<=11)&&"string"==typeof a.nodeName},h=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},i=function(a,b,c){var d=b;return h(function(b,c){d=a(d,b,c)},c),d},j=function(a,b){var c=Array(b.length);return h(function(b,d){c[d]=a(b)},b),c},k=function(a,b){var c=[];return h(function(b,d){a(b,d)&&c.push(b)},b),c},l=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function m(a){return a.toString()}var n=function(a,b){return b.join(a)},o=function(a,b,c){return a+c+b},p=Array.prototype.concat,q=function(a,b){var c=new ab;c.addArray(a);var d=c.toArray();return b?d.reverse():d};function r(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function s(){this.init()}function t(a){this.expression=a}function u(a,b,c){b in a||(a[b]=c)}function v(){}function w(a){arguments.length>0&&this.init(a)}function x(a){arguments.length>0&&this.init(a)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b){arguments.length>0&&this.init(a,b)}function L(a,b){arguments.length>0&&this.init(a,b)}function M(a,b){arguments.length>0&&this.init(a,b)}function N(a,b,c){arguments.length>0&&this.init(a,b,c)}s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new z(a[0],a[2])},this.reduceActions[5]=function(a){return new A(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new C(a[0],a[2])},this.reduceActions[10]=function(a){return new D(a[0],a[2])},this.reduceActions[11]=function(a){return new E(a[0],a[2])},this.reduceActions[12]=function(a){return new F(a[0],a[2])},this.reduceActions[13]=function(a){return new G(a[0],a[2])},this.reduceActions[15]=function(a){return new H(a[0],a[2])},this.reduceActions[16]=function(a){return new I(a[0],a[2])},this.reduceActions[18]=function(a){return new J(a[0],a[2])},this.reduceActions[19]=function(a){return new K(a[0],a[2])},this.reduceActions[20]=function(a){return new L(a[0],a[2])},this.reduceActions[22]=function(a){return new x(a[1])},this.reduceActions[24]=function(a){return new M(a[0],a[2])},this.reduceActions[25]=function(a){return new N(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new N(a[0],[],void 0)},this.reduceActions[30]=function(a){return ai.instance_of(a[0],N)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new N(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new Z(a[0])},this.reduceActions[34]=function(a){return new $(a[0])},this.reduceActions[36]=function(a){return new X(a[0],[])},this.reduceActions[37]=function(a){return new X(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new S(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new S(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new T(a[0],a[1],[])},this.reduceActions[50]=function(a){return new T(T.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new T(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new T(T.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return T.ANCESTOR;if("ancestor-or-self"==a[0])return T.ANCESTORORSELF;if("attribute"==a[0])return T.ATTRIBUTE;if("child"==a[0])return T.CHILD;if("descendant"==a[0])return T.DESCENDANT;else if("descendant-or-self"==a[0])return T.DESCENDANTORSELF;else if("following"==a[0])return T.FOLLOWING;else if("following-sibling"==a[0])return T.FOLLOWINGSIBLING;else if("namespace"==a[0])return T.NAMESPACE;else if("parent"==a[0])return T.PARENT;else if("preceding"==a[0])return T.PRECEDING;else if("preceding-sibling"==a[0])return T.PRECEDINGSIBLING;else if("self"==a[0])return T.SELF;return -1},this.reduceActions[57]=function(a){return T.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?V.commentTest:"text"==a[0]?V.textTest:"processing-instruction"==a[0]?V.anyPiTest:"node"==a[0]?V.nodeTest:new V(-1,void 0)},this.reduceActions[60]=function(a){return new V.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new T(T.SELF,V.nodeTest,[])},this.reduceActions[66]=function(a){return new T(T.PARENT,V.nodeTest,[])},this.reduceActions[67]=function(a){return new W(a[1])},this.reduceActions[68]=function(a){return V.nameTestAny},this.reduceActions[69]=function(a){return new V.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new V.NameTestQName(a[0])}},s.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],s.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],s.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],s.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],s.DOUBLEDOT=2,s.DOUBLECOLON=3,s.DOUBLESLASH=4,s.NOTEQUAL=5,s.LESSTHANOREQUAL=6,s.GREATERTHANOREQUAL=7,s.AND=8,s.OR=9,s.MOD=10,s.DIV=11,s.MULTIPLYOPERATOR=12,s.FUNCTIONNAME=13,s.AXISNAME=14,s.LITERAL=15,s.NUMBER=16,s.ASTERISKNAMETEST=17,s.QNAME=18,s.NCNAMECOLONASTERISK=19,s.NODETYPE=20,s.PROCESSINGINSTRUCTIONWITHLITERAL=21,s.EQUALS=22,s.LESSTHAN=23,s.GREATERTHAN=24,s.PLUS=25,s.MINUS=26,s.BAR=27,s.SLASH=28,s.LEFTPARENTHESIS=29,s.RIGHTPARENTHESIS=30,s.COMMA=31,s.AT=32,s.LEFTBRACKET=33,s.RIGHTBRACKET=34,s.DOT=35,s.DOLLAR=36,s.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(s.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(s.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(s.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(s.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(s.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(s.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(s.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(s.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(s.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(s.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(s.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(s.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}b.push(s.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ak.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(s.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){b.push(s.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(s.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(s.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(s.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(s.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(s.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(s.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(s.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(s.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(s.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ai.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){if("and"==k){b.push(s.AND),c.push(k);continue}if("or"==k){b.push(s.OR),c.push(k);continue}if("mod"==k){b.push(s.MOD),c.push(k);continue}if("div"==k){b.push(s.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(s.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ai.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(s.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(s.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(s.NODETYPE):b.push(s.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},s.SHIFT="s",s.REDUCE="r",s.ACCEPT="a",s.prototype.parse=function(a){if(!a)throw Error("XPath expression unspecified.");if("string"!=typeof a)throw Error("XPath expression must be a string.");var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],s.actionTable[a].charAt(d-1)){case s.SHIFT:i.push(-d),j.push(e),h.push(s.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case s.REDUCE:for(var k=s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(s.gotoTable[n].charCodeAt(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case s.ACCEPT:return new t(j.pop());default:throw Error("XPath parse error")}}},t.prototype={},t.prototype.constructor=t,t.superclass=Object.prototype,t.prototype.toString=function(){return this.expression.toString()},t.prototype.evaluate=function(a){var b=a.expressionContextNode;if(!(null==b||g(b)))throw Error("Context node does not appear to be a valid DOM node.");return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(u(a,"caseInsensitive",!0),u(a,"allowAnyNamespaceForNoPrefix",!0)),u(a,"caseInsensitive",!1),this.expression.evaluate(a)},t.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",t.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",v.prototype={},v.prototype.constructor=v,v.superclass=Object.prototype,v.prototype.init=function(){},v.prototype.toString=function(){return"<Expression>"},v.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a){this.rhs=a},x.prototype=new w,x.prototype.constructor=x,x.superclass=w.prototype,x.prototype.init=function(a){x.superclass.init.call(this,a)},x.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},x.prototype.toString=function(){return"-"+this.rhs.toString()},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){this.lhs=a,this.rhs=b},z.prototype=new y,z.prototype.constructor=z,z.superclass=y.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},A.prototype=new y,A.prototype.constructor=A,A.superclass=y.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},A.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},B.prototype=new y,B.prototype.constructor=B,B.superclass=y.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},C.prototype=new y,C.prototype.constructor=C,C.superclass=y.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},D.prototype=new y,D.prototype.constructor=D,D.superclass=y.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},E.prototype=new y,E.prototype.constructor=E,E.superclass=y.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},E.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},F.prototype=new y,F.prototype.constructor=F,F.superclass=y.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},F.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},G.prototype=new y,G.prototype.constructor=G,G.superclass=y.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},G.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},H.prototype=new y,H.prototype.constructor=H,H.superclass=y.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},I.prototype=new y,I.prototype.constructor=I,I.superclass=y.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},J.prototype=new y,J.prototype.constructor=J,J.superclass=y.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},J.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},K.prototype=new y,K.prototype.constructor=K,K.superclass=y.prototype,K.prototype.init=function(a,b){K.superclass.init.call(this,a,b)},K.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},K.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},L.prototype=new y,L.prototype.constructor=L,L.superclass=y.prototype,L.prototype.init=function(a,b){L.superclass.init.call(this,a,b)},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},L.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},M.prototype=new y,M.prototype.constructor=M,M.superclass=y.prototype,M.prototype.init=function(a,b){M.superclass.init.call(this,a,b)},M.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},M.prototype.toString=function(){return j(m,[this.lhs,this.rhs]).join(" | ")},N.prototype=new v,N.prototype.constructor=N,N.superclass=v.prototype,N.prototype.init=function(a,b,c){N.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c};var O=function(a,b,c,d){if(0===a.length)return c;var e=b.extend({});return i(function(a,b){return e.contextSize=a.length,k(function(a,c){return e.contextNode=a,e.contextPosition=c+1,N.predicateMatches(b,e)},a)},q(c,d),a)};N.getRoot=function(a,b){var c=b[0];if(c&&9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;if(!c)throw Error("Context node not found when determining document root.");var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e};var P=function(a){var b=String(a.name);return"xmlns"===b?"":"xmlns:"===b.substring(0,6)?b.substring(6,b.length):null};function Q(a,b,c){return O(a.predicates,b,N.applyStep(a,b,c),l(U,a.axis))}function R(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=p.apply(b,d)}return b}(j(Q.bind(null,c,a),b))}function S(a,b){arguments.length>0&&this.init(a,b)}function T(a,b,c){arguments.length>0&&this.init(a,b,c)}N.applyStep=function(a,b,c){if(!c)throw Error("Context node not found when evaluating XPath step: "+a);var d,e,f=[];switch(b.contextNode=c,a.axis){case T.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case T.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?N.getOwnerElement(d):d.parentNode);break;case T.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case T.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case T.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=new ac("xml",null,t.XML_NAMESPACE_URI,b.contextNode);for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=P(j);null!=k&&void 0==i[k]&&(i[k]=new ac(k,j,j.value,b.contextNode))}for(var k in i){var c=i[k];a.nodeTest.matches(c,b)&&f.push(c)}}break;case T.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case T.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case T.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},N.applySteps=function(a,b,c){return i(R.bind(null,b),c,a)},N.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ai.instance_of(c,ab)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:O(this.filterPredicates||[],b,c.toUnsortedArray(),!1)}},N.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[N.getRoot(b,c)]:c;return N.applySteps(a.steps,b,d)},N.prototype.evaluate=function(a){var b=r(new ad,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new ab;return d.addArray(N.applyLocationPath(this.locationPath,b,c.nodes)),d},N.predicateMatches=function(a,b){var c=a.evaluate(b);return ai.instance_of(c,$)?b.contextPosition===c.numberValue():c.booleanValue()},N.predicateString=function(a){return o("[","]",a.toString())},N.predicatesString=function(a){return n("",j(N.predicateString,a))},N.prototype.toString=function(){if(void 0!=this.filter){var a=m(this.filter);return ai.instance_of(this.filter,Z)?o("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?o("(",")",a)+N.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+m(this.locationPath):a}return m(this.locationPath)},N.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},S.prototype={},S.prototype.constructor=S,S.superclass=Object.prototype,S.prototype.init=function(a,b){this.absolute=a,this.steps=b},S.prototype.toString=function(){return(this.absolute?"/":"")+j(m,this.steps).join("/")},T.prototype={},T.prototype.constructor=T,T.superclass=Object.prototype,T.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},T.prototype.toString=function(){return T.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+N.predicatesString(this.predicates)},T.ANCESTOR=0,T.ANCESTORORSELF=1,T.ATTRIBUTE=2,T.CHILD=3,T.DESCENDANT=4,T.DESCENDANTORSELF=5,T.FOLLOWING=6,T.FOLLOWINGSIBLING=7,T.NAMESPACE=8,T.PARENT=9,T.PRECEDING=10,T.PRECEDINGSIBLING=11,T.SELF=12,T.STEPNAMES=i(function(a,b){return a[b[0]]=b[1],a},{},[[T.ANCESTOR,"ancestor"],[T.ANCESTORORSELF,"ancestor-or-self"],[T.ATTRIBUTE,"attribute"],[T.CHILD,"child"],[T.DESCENDANT,"descendant"],[T.DESCENDANTORSELF,"descendant-or-self"],[T.FOLLOWING,"following"],[T.FOLLOWINGSIBLING,"following-sibling"],[T.NAMESPACE,"namespace"],[T.PARENT,"parent"],[T.PRECEDING,"preceding"],[T.PRECEDINGSIBLING,"preceding-sibling"],[T.SELF,"self"]]);var U=[T.ANCESTOR,T.ANCESTORORSELF,T.PARENT,T.PRECEDING,T.PRECEDINGSIBLING];function V(a,b){arguments.length>0&&this.init(a,b)}function W(a){arguments.length>0&&this.init(a)}function X(a,b){arguments.length>0&&this.init(a,b)}V.prototype={},V.prototype.constructor=V,V.superclass=Object.prototype,V.prototype.init=function(a,b){this.type=a,this.value=b},V.prototype.toString=function(){return"<unknown nodetest type>"},V.prototype.matches=function(a,b){console.warn("unknown node test type")},V.NAMETESTANY=0,V.NAMETESTPREFIXANY=1,V.NAMETESTQNAME=2,V.COMMENT=3,V.TEXT=4,V.PI=5,V.NODE=6,V.isNodeType=function(a){return function(b){return l(a,b.nodeType)}},V.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new V(a),d.prototype.constructor=d,r(d.prototype,b),d},V.makeNodeTypeTest=function(a,b,c){return new(V.makeNodeTestType(a,{matches:V.isNodeType(b),toString:function(){return c}}))},V.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},V.isElementOrAttribute=V.isNodeType([1,2]),V.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!V.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},V.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},V.NameTestPrefixAny=V.makeNodeTestType(V.NAMETESTPREFIXANY,{matches:function(a,b){return V.isElementOrAttribute(a)&&V.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),V.NameTestQName=V.makeNodeTestType(V.NAMETESTQNAME,{matches:function(a,b){return V.isNodeType([1,2,f])(a)&&V.nameSpaceMatches(this.prefix,b,a)&&V.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),V.PITest=V.makeNodeTestType(V.PI,{matches:function(a,b){return V.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return o('processing-instruction("','")',this.name)}},function(a){this.name=a}),V.nameTestAny=V.makeNodeTypeTest(V.NAMETESTANY,[1,2,f],"*"),V.textTest=V.makeNodeTypeTest(V.TEXT,[3,4],"text()"),V.commentTest=V.makeNodeTypeTest(V.COMMENT,[8],"comment()"),V.nodeTest=V.makeNodeTypeTest(V.NODE,[1,2,3,4,7,8,9],"node()"),V.anyPiTest=V.makeNodeTypeTest(V.PI,[7],"processing-instruction()"),W.prototype=new v,W.prototype.constructor=W,W.superclass=v.prototype,W.prototype.init=function(a){this.variable=a},W.prototype.toString=function(){return"$"+this.variable},W.prototype.evaluate=function(a){var b=ai.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ak.fromMessage("Undeclared variable: "+this.toString());return c},X.prototype=new v,X.prototype.constructor=X,X.superclass=v.prototype,X.prototype.init=function(a,b){this.functionName=a,this.arguments=b},X.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},X.prototype.evaluate=function(a){var b=af.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var Y={};function Z(a){arguments.length>0&&this.init(a)}function $(a){arguments.length>0&&this.init(a)}function _(a){arguments.length>0&&this.init(a)}function aa(a){this.init(a)}function ab(){this.init()}function ac(a,b,c,d){this.isXPathNamespace=!0,this.baseNode=b,this.ownerDocument=d.ownerDocument,this.nodeName=a,this.prefix=a,this.localName=a,this.namespaceURI=null,this.nodeValue=c,this.ownerElement=d,this.nodeType=f}function ad(a,b,c){this.variableResolver=null!=a?a:new ae,this.namespaceResolver=null!=b?b:new ag,this.functionResolver=null!=c?c:new af}function ae(){}function af(a){this.thisArg=null!=a?a:ah,this.functions={},this.addStandardFunctions()}function ag(){}Y.equals=function(a,b){return a.equals(b)},Y.notequal=function(a,b){return a.notequal(b)},Y.lessthan=function(a,b){return a.lessthan(b)},Y.greaterthan=function(a,b){return a.greaterthan(b)},Y.lessthanorequal=function(a,b){return a.lessthanorequal(b)},Y.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},Z.prototype=new v,Z.prototype.constructor=Z,Z.superclass=v.prototype,Z.prototype.init=function(a){this.str=String(a)},Z.prototype.toString=function(){return this.str},Z.prototype.evaluate=function(a){return this},Z.prototype.string=function(){return this},Z.prototype.number=function(){return new $(this.str)},Z.prototype.bool=function(){return new _(this.str)},Z.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},Z.prototype.stringValue=function(){return this.str},Z.prototype.numberValue=function(){return this.number().numberValue()},Z.prototype.booleanValue=function(){return this.bool().booleanValue()},Z.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,$)?this.number().equals(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.equals):new _(this.str==a.str)},Z.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,$)?this.number().notequal(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.notequal):new _(this.str!=a.str)},Z.prototype.lessthan=function(a){return this.number().lessthan(a)},Z.prototype.greaterthan=function(a){return this.number().greaterthan(a)},Z.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},Z.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},$.prototype=new v,$.prototype.constructor=$,$.superclass=v.prototype,$.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},$.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,$.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},$.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},$.prototype.evaluate=function(a){return this},$.prototype.string=function(){return new Z(this.toString())},$.prototype.number=function(){return this},$.prototype.bool=function(){return new _(this.num)},$.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},$.prototype.stringValue=function(){return this.string().stringValue()},$.prototype.numberValue=function(){return this.num},$.prototype.booleanValue=function(){return this.bool().booleanValue()},$.prototype.negate=function(){return new $(-this.num)},$.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,Z)?this.equals(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.equals):new _(this.num==a.num)},$.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,Z)?this.notequal(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.notequal):new _(this.num!=a.num)},$.prototype.lessthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthan(a.number()):new _(this.num<a.num)},$.prototype.greaterthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthan(a.number()):new _(this.num>a.num)},$.prototype.lessthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthanorequal(a.number()):new _(this.num<=a.num)},$.prototype.greaterthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthanorequal(a.number()):new _(this.num>=a.num)},$.prototype.plus=function(a){return new $(this.num+a.num)},$.prototype.minus=function(a){return new $(this.num-a.num)},$.prototype.multiply=function(a){return new $(this.num*a.num)},$.prototype.div=function(a){return new $(this.num/a.num)},$.prototype.mod=function(a){return new $(this.num%a.num)},_.prototype=new v,_.prototype.constructor=_,_.superclass=v.prototype,_.prototype.init=function(a){this.b=!!a},_.prototype.toString=function(){return this.b.toString()},_.prototype.evaluate=function(a){return this},_.prototype.string=function(){return new Z(this.b)},_.prototype.number=function(){return new $(this.b)},_.prototype.bool=function(){return this},_.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},_.prototype.stringValue=function(){return this.string().stringValue()},_.prototype.numberValue=function(){return this.number().numberValue()},_.prototype.booleanValue=function(){return this.b},_.prototype.not=function(){return new _(!this.b)},_.prototype.equals=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.equals(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.equals):new _(this.b==a.b)},_.prototype.notequal=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.notequal(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.notequal):new _(this.b!=a.b)},_.prototype.lessthan=function(a){return this.number().lessthan(a)},_.prototype.greaterthan=function(a){return this.number().greaterthan(a)},_.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},_.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},_.true_=new _(!0),_.false_=new _(!1),aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},aa.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},aa.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},aa.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},aa.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=aj(a),k=aj(b);if(j&&!k)return -1;if(!j&&k)return 1;if(a.isXPathNamespace){if(a.nodeValue===t.XML_NAMESPACE_URI||!b.isXPathNamespace)return -1;if(b.nodeValue===t.XML_NAMESPACE_URI)return 1}else if(b.isXPathNamespace)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=a.baseNode||a,o=b.baseNode||b,p=0;p<m;p+=1){var q=l[p];if(q===n)return -1;if(q===o)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new aa(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new aa(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},ab.prototype=new v,ab.prototype.constructor=ab,ab.superclass=v.prototype,ab.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},ab.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},ab.prototype.evaluate=function(a){return this},ab.prototype.string=function(){return new Z(this.toString())},ab.prototype.stringValue=function(){return this.toString()},ab.prototype.number=function(){return new $(this.string())},ab.prototype.numberValue=function(){return Number(this.string())},ab.prototype.bool=function(){return new _(this.booleanValue())},ab.prototype.booleanValue=function(){return!!this.size},ab.prototype.nodeset=function(){return this},ab.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},ab.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},ab.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new aa(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},ab.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},ab.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},ab.prototype.addArray=function(a){var b=this;h(function(a){b.add(a)},a)},ab.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},ab.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},ab.prototype.toUnsortedArray=function(){return this.nodes.slice()},ab.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new Z(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new $(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},ab.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new Z(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new _(!1)},b=function(a,b){return ai.instance_of(b,Z)?this.compareWithString(b,a):ai.instance_of(b,$)?this.compareWithNumber(b,a):ai.instance_of(b,_)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,ab.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},ab.prototype.equals=ab.compareWith(Y.equals),ab.prototype.notequal=ab.compareWith(Y.notequal),ab.prototype.lessthan=ab.compareWith(Y.lessthan),ab.prototype.greaterthan=ab.compareWith(Y.greaterthan),ab.prototype.lessthanorequal=ab.compareWith(Y.lessthanorequal),ab.prototype.greaterthanorequal=ab.compareWith(Y.greaterthanorequal),ab.prototype.union=function(a){var b=new ab;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},ac.prototype={},ac.prototype.constructor=ac,ac.superclass=Object.prototype,ac.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},ad.prototype={},ad.prototype.constructor=ad,ad.superclass=Object.prototype,ad.prototype.extend=function(a){return r(new ad,this,a)},ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.prototype.getVariable=function(a,b){return null},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.addStandardFunctions=function(){this.functions["{}last"]=ah.last,this.functions["{}position"]=ah.position,this.functions["{}count"]=ah.count,this.functions["{}id"]=ah.id,this.functions["{}local-name"]=ah.localName,this.functions["{}namespace-uri"]=ah.namespaceURI,this.functions["{}name"]=ah.name,this.functions["{}string"]=ah.string,this.functions["{}concat"]=ah.concat,this.functions["{}starts-with"]=ah.startsWith,this.functions["{}contains"]=ah.contains,this.functions["{}substring-before"]=ah.substringBefore,this.functions["{}substring-after"]=ah.substringAfter,this.functions["{}substring"]=ah.substring,this.functions["{}string-length"]=ah.stringLength,this.functions["{}normalize-space"]=ah.normalizeSpace,this.functions["{}translate"]=ah.translate,this.functions["{}boolean"]=ah.boolean_,this.functions["{}not"]=ah.not,this.functions["{}true"]=ah.true_,this.functions["{}false"]=ah.false_,this.functions["{}lang"]=ah.lang,this.functions["{}number"]=ah.number,this.functions["{}sum"]=ah.sum,this.functions["{}floor"]=ah.floor,this.functions["{}ceiling"]=ah.ceiling,this.functions["{}round"]=ah.round},af.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},af.getFunctionFromContext=function(a,b){var c=ai.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},af.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.getNamespace=function(a,b){if("xml"==a)return t.XML_NAMESPACE_URI;if("xmlns"==a)return t.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=N.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ah={};ah.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new $(a.contextSize)},ah.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new $(a.contextPosition)},ah.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function count expects (node-set)");return new $(a.size)},ah.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ai.instance_of(a,ab)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new ab,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ai.getElementById(f,d[g]))&&e.add(b);return e},ah.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new Z(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ah.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new Z(null==a?"":a.namespaceURI||"")},ah.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new Z(""):1==a.nodeType?new Z(a.nodeName):2==a.nodeType?new Z(a.name||a.nodeName):7===a.nodeType?new Z(a.target||a.nodeName):null==a.localName?new Z(""):new Z(a.localName)},ah.string=function(){var a=arguments[0];if(1==arguments.length)return new Z(ab.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ah.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new Z(b)},ah.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(b.substring(0,c.length)==c)},ah.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(-1!==b.indexOf(c))},ah.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new Z(b.substring(0,b.indexOf(c)))},ah.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new Z(b);var d=b.indexOf(c);return new Z(-1==d?"":b.substring(d+c.length))},ah.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new Z(b.substring(c,d))},ah.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new $(a.length)},ah.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ai.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ai.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new Z(e)},ah.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),g=d.evaluate(a).stringValue(),h=i(function(a,b,c){return b in a||(a[b]=c>g.length?"":g[c]),a},{},f);return new Z(n("",j(function(a){return a in h?h[a]:a},e)))},ah.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ah.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ah.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return _.true_},ah.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return _.false_},ah.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(t.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return _.false_;var e=arguments[1].evaluate(b).stringValue();return new _(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ah.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new $(ab.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ah.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new $(ab.prototype.stringForNode(a[d])).numberValue();return new $(c)},ah.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new $(Math.floor(arguments[1].evaluate(a).numberValue()))},ah.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new $(Math.ceil(arguments[1].evaluate(a).numberValue()))},ah.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new $(Math.round(arguments[1].evaluate(a).numberValue()))};var ai={},aj=function(a){return a&&(2===a.nodeType||a.ownerElement||a.isXPathNamespace)};ai.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ai.resolveQName=function(a,b,c,d){var e=ai.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ai.isSpace=function(a){return 9==a||13==a||10==a||32==a},ai.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ai.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ai.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ai.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ai.coalesceText(b)},ai.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ai.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ai.getElementById(c,b);if(null!=d)return d}return null};var ak=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function al(a,b,c){this.xpath=c.parse(a),this.context=new ad,this.context.namespaceResolver=new am(b)}function am(a){this.xpathNSResolver=a}function an(a){this.node=a,this.namespaceResolver=new ag}function ao(a,b){switch(b==ao.ANY_TYPE&&(a.constructor===Z?b=ao.STRING_TYPE:a.constructor===$?b=ao.NUMBER_TYPE:a.constructor===_?b=ao.BOOLEAN_TYPE:a.constructor===ab&&(b=ao.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ao.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ao.STRING_TYPE:this.stringValue=a.stringValue();return;case ao.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ao.ANY_UNORDERED_NODE_TYPE:case ao.FIRST_ORDERED_NODE_TYPE:if(a.constructor===ab){this.singleNodeValue=a.first();return}break;case ao.UNORDERED_NODE_ITERATOR_TYPE:case ao.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===ab){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ao.UNORDERED_NODE_SNAPSHOT_TYPE:case ao.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===ab){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ak(ak.TYPE_ERR)}function ap(a,b){a.createExpression=function(a,c){try{return new al(a,c,b)}catch(a){throw new ak(ak.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new an(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}al.prototype={},al.prototype.constructor=al,al.superclass=Object.prototype,al.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},al.detectHtmlDom=function(a){if(!a)return!1;var b=al.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},al.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=al.detectHtmlDom(a),new ao(this.xpath.evaluate(this.context),b)},am.prototype={},am.prototype.constructor=am,am.superclass=Object.prototype,am.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},an.prototype={},an.prototype.constructor=an,an.superclass=Object.prototype,an.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ao.prototype={},ao.prototype.constructor=ao,ao.superclass=Object.prototype,ao.prototype.iterateNext=function(){if(this.resultType!=ao.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ao.ORDERED_NODE_ITERATOR_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ao.prototype.snapshotItem=function(a){if(this.resultType!=ao.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ao.ORDERED_NODE_SNAPSHOT_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[a]},ao.ANY_TYPE=0,ao.NUMBER_TYPE=1,ao.STRING_TYPE=2,ao.BOOLEAN_TYPE=3,ao.UNORDERED_NODE_ITERATOR_TYPE=4,ao.ORDERED_NODE_ITERATOR_TYPE=5,ao.UNORDERED_NODE_SNAPSHOT_TYPE=6,ao.ORDERED_NODE_SNAPSHOT_TYPE=7,ao.ANY_UNORDERED_NODE_TYPE=8,ao.FIRST_ORDERED_NODE_TYPE=9;try{var aq=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aq=!1)}catch(a){}aq&&ap(document,new s)}catch(a){}ap(a,new s),function(){var b=new s,c=new ag,d=new af,e=new ae;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof Z||a instanceof _||a instanceof $||a instanceof ab)return a;switch(typeof a){case"string":return new Z(a);case"boolean":return new _(a);case"number":return new $(a)}var b=new ab;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new ad,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),r(a,{XPath:t,XPathParser:s,XPathResult:ao,Step:T,PathExpr:N,NodeTest:V,LocationPath:S,OrOperation:z,AndOperation:A,BarOperation:M,EqualsOperation:B,NotEqualOperation:C,LessThanOperation:D,GreaterThanOperation:E,LessThanOrEqualOperation:F,GreaterThanOrEqualOperation:G,PlusOperation:H,MinusOperation:I,MultiplyOperation:J,DivOperation:K,ModOperation:L,UnaryMinusOperation:x,FunctionCall:X,VariableReference:W,XPathContext:ad,XNodeSet:ab,XBoolean:_,XString:Z,XNumber:$,NamespaceResolver:ag,FunctionResolver:af,VariableResolver:ae,Utilities:ai}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new al(a,c,new s),f=ao.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ao.STRING_TYPE?g=g.stringValue:g.resultType==ao.NUMBER_TYPE?g=g.numberValue:g.resultType==ao.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ar=function(a){return function(b){return g(b)&&b.nodeType===a}};r(a,{isNodeLike:g,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(g)},isElement:ar(1),isAttribute:ar(2),isTextNode:ar(3),isCDATASection:ar(4),isProcessingInstruction:ar(7),isComment:ar(8),isDocumentNode:ar(9),isDocumentTypeNode:ar(10),isDocumentFragment:ar(11)})}(b)},32748:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HmacSha1=b.RsaSha512=b.RsaSha256Mgf1=b.RsaSha256=b.RsaSha1=void 0;let d=c(55511),e=c(75546);class f{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA1");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA1");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}b.RsaSha1=f;class g{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA256");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}b.RsaSha256=g;class h{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let c=d.createSign("RSA-SHA256");return c.update(a),c.sign({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1"}}b.RsaSha256Mgf1=h;class i{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA512");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA512");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}b.RsaSha512=i;class j{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createHmac("SHA1",b);return c.update(a),c.digest("base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createHmac("SHA1",b);e.update(a);let f=e.digest("base64");try{return d.timingSafeEqual(Buffer.from(f,"base64"),Buffer.from(c,"base64"))}catch(a){return!1}}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}b.HmacSha1=j},33773:function(a,b,c){(function(){var b,d,e,f,g,h,i,j;({isObject:j}=c(43594)),i=c(73067),b=c(26468),d=c(77192),f=c(71920),e=c(1243),g=c(48813),h=c(87074),a.exports=(function(){class a extends i{constructor(a,c,d){var e,f,g,h;if(super(a),this.type=b.DocType,a.children){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.Element){this.name=e.name;break}}this.documentObject=a,j(c)&&({pubID:c,sysID:d}=c),null==d&&([d,c]=[c,d]),null!=c&&(this.pubID=this.stringify.dtdPubID(c)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}element(a,b){var c;return c=new e(this,a,b),this.children.push(c),this}attList(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this}entity(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this}pEntity(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this}notation(a,b){var c;return c=new g(this,a,b),this.children.push(c),this}toString(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))}ele(a,b){return this.element(a,b)}att(a,b,c,d,e){return this.attList(a,b,c,d,e)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}up(){return this.root()||this.documentObject}isEqualNode(a){return!!super.isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId}}return Object.defineProperty(a.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},34153:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.signSamlPost=e,b.signAuthnRequestPost=function(a,b){return e(a,'/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]',b)};let d=c(65756);function e(a,b,c){return(0,d.signXml)(a,b,{reference:b+'/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]',action:"after"},c)}},34370:function(a){(function(){a.exports=(function(){class a{constructor(a){this.arr=a||[]}item(a){return this.arr[a]||null}contains(a){return -1!==this.arr.indexOf(a)}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a}).call(this)}).call(this)},35312:(a,b)=>{"use strict";var c,d;Object.defineProperty(b,"__esModule",{value:!0}),b.SamlStatusError=b.ValidateInResponseTo=b.isValidSamlSigningOptions=void 0,b.isValidSamlSigningOptions=a=>null!=a.privateKey,(d=c||(b.ValidateInResponseTo=c={})).never="never",d.ifPresent="ifPresent",d.always="always";class e extends Error{constructor(a,b){super(a),this.xmlStatus=b}}b.SamlStatusError=e},35387:(a,b,c)=>{a.exports=c(91848)},35971:function(a){(function(){a.exports=function(){function a(){}return a.prototype.hasFeature=function(a,b){return!0},a.prototype.createDocumentType=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createDocument=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(a){throw Error("This DOM method is not implemented.")},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},36481:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.assertRequired=function(a,b){if(null==a||"string"==typeof a&&0===a.length)throw TypeError(null!=b?b:"value does not exist")},b.assertBooleanIfPresent=function(a,b){if(null!=a&&"boolean"!=typeof a)throw TypeError(null!=b?b:"value is set but not boolean")},b.signXmlResponse=function(a,b){let c='//*[local-name(.)="Response" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';return(0,d.signXml)(a,c,{reference:c,action:"append"},b)},b.signXmlMetadata=function(a,b){let c='//*[local-name(.)="EntityDescriptor" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:metadata"]';return(0,d.signXml)(a,c,{reference:c,action:"prepend"},b)};let d=c(65756)},36700:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},41892:(a,b,c)=>{"use strict";let d,e=c(21820),f=c(83997),g=c(92535),{env:h}=process;function i(a){return 0!==a&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function j(a,b){if(0===d)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(a&&!b&&void 0===d)return 0;let c=d||0;if("dumb"===h.TERM)return c;if("win32"===process.platform){let a=e.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in h)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in h)||"codeship"===h.CI_NAME?1:c;if("TEAMCITY_VERSION"in h)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION);if("truecolor"===h.COLORTERM)return 3;if("TERM_PROGRAM"in h){let a=parseInt((h.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(h.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||"COLORTERM"in h?1:c}g("no-color")||g("no-colors")||g("color=false")||g("color=never")?d=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(d=1),"FORCE_COLOR"in h&&(d="true"===h.FORCE_COLOR?1:"false"===h.FORCE_COLOR?0:0===h.FORCE_COLOR.length?1:Math.min(parseInt(h.FORCE_COLOR,10),3)),a.exports={supportsColor:function(a){return i(j(a,a&&a.isTTY))},stdout:i(j(!0,f.isatty(1))),stderr:i(j(!0,f.isatty(2)))}},42429:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ak=function(a){return a&&"number"==typeof a.nodeType&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName},al=function(a){return function(b){return ak(b)&&b.nodeType===a}};o(a,{isNodeLike:ak,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(ak)},isElement:al(1),isAttribute:al(2),isTextNode:al(3),isCDATASection:al(4),isProcessingInstruction:al(7),isComment:al(8),isDocumentNode:al(9),isDocumentTypeNode:al(10),isDocumentFragment:al(11)})}(b)},43594:function(a){(function(){var b,c,d,e={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(a,...b){var d,f,g,h;if(c(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=b.length;d<g;d++)if(null!=(h=b[d]))for(f in h)e.call(h,f)&&(a[f]=h[f]);return a},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(e.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},43849:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;i=(j=c(4700)).isObject,h=j.isFunction,g=j.getValue,f=c(8957),b=c(24706),d=c(94253),e=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i;if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=e&&this.attribute(e),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.DocType){f.name=this.name;break}}}return k(c,a),Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)l.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)l.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this},c.prototype.toString=function(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c.prototype.getAttribute=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null},c.prototype.setAttribute=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null},c.prototype.setAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(a){return this.attribs.hasOwnProperty(a)},c.prototype.hasAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b},c.prototype.setIdAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){var b,d,e;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=d=0,e=this.attribs.length-1;0<=e?d<=e:d>=e;b=0<=e?++d:--d)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0},c}(f)}).call(this)},44558:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Sha512=b.Sha256=b.Sha1=void 0;let d=c(55511);class e{constructor(){this.getHash=function(a){let b=d.createHash("sha1");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}b.Sha1=e;class f{constructor(){this.getHash=function(a){let b=d.createHash("sha256");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}b.Sha256=f;class g{constructor(){this.getHash=function(a){let b=d.createHash("sha512");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}b.Sha512=g},44981:function(a,b,c){(function(){var b;b=c(67289),a.exports=class extends b{constructor(a){super(a)}document(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f}}}).call(this)},45454:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e,f,g,h){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());if(null==e)throw Error("Missing DTD attribute name. "+this.debugInfo(d));if(!f)throw Error("Missing DTD attribute type. "+this.debugInfo(d));if(!g)throw Error("Missing DTD attribute default. "+this.debugInfo(d));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(e),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},45540:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateServiceProviderMetadata=void 0;let d=c(26884),e=c(35312),f=c(36481),g=c(65756),h=c(26884),i=c(30072);b.generateServiceProviderMetadata=a=>{let{issuer:b,callbackUrl:c,logoutCallbackUrl:j,decryptionPvk:k,privateKey:l,metadataContactPerson:m,metadataOrganization:n,identifierFormat:o=i.DEFAULT_IDENTIFIER_FORMAT,wantAssertionsSigned:p=i.DEFAULT_WANT_ASSERTIONS_SIGNED,generateUniqueId:q=h.generateUniqueId}=a,{publicCerts:r,decryptionCert:s}=a;if(null!=k){if(!s)throw Error("Missing decryptionCert while generating metadata for decrypting service provider")}else s=null;if(null!=l){if(!r)throw Error("Missing publicCert while generating metadata for signing service provider messages");r=Array.isArray(r)?r:[r]}else r=null;let t={EntityDescriptor:{"@xmlns":"urn:oasis:names:tc:SAML:2.0:metadata","@xmlns:ds":"http://www.w3.org/2000/09/xmldsig#","@entityID":b,"@ID":q(),SPSSODescriptor:{"@protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol","@AuthnRequestsSigned":"false"},...n?{Organization:n}:{},...m?{ContactPerson:m}:{}}};if(null!=s||null!=r){if(t.EntityDescriptor.SPSSODescriptor.KeyDescriptor=[],(0,e.isValidSamlSigningOptions)(a)){(0,f.assertRequired)(r,"Missing publicCert while generating metadata for signing service provider messages"),t.EntityDescriptor.SPSSODescriptor["@AuthnRequestsSigned"]=!0;let a=(Array.isArray(r)?r:[r]).map(a=>({"@use":"signing","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,d.stripPemHeaderAndFooter)(a)}}}}));t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push(a)}null!=k&&((0,f.assertRequired)(s,"Missing decryptionCert while generating metadata for decrypting service provider"),s=(0,d.stripPemHeaderAndFooter)(s),t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push({"@use":"encryption","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":s}}},EncryptionMethod:[{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes256-gcm"},{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes128-gcm"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes256-cbc"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes128-cbc"}]}))}null!=j&&(t.EntityDescriptor.SPSSODescriptor.SingleLogoutService={"@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":j}),null!=o&&(t.EntityDescriptor.SPSSODescriptor.NameIDFormat=o),p&&(t.EntityDescriptor.SPSSODescriptor["@WantAssertionsSigned"]=!0),t.EntityDescriptor.SPSSODescriptor.AssertionConsumerService={"@index":"1","@isDefault":"true","@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":c};let u=(0,g.buildXmlBuilderObject)(t,!0);return!0===a.signMetadata&&(0,e.isValidSamlSigningOptions)(a)&&(u=(0,f.signXmlMetadata)(u,{privateKey:a.privateKey,signatureAlgorithm:a.signatureAlgorithm,xmlSignatureTransforms:a.xmlSignatureTransforms,digestAlgorithm:a.digestAlgorithm})),u}},46140:(a,b,c)=>{"u"<typeof process||"renderer"===process.type||process.__nwjs?a.exports=c(21584):a.exports=c(89830)},46584:function(a){(function(){a.exports=function(){function a(a){this.arr=a||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(a){return this.arr[a]||null},a.prototype.contains=function(a){return -1!==this.arr.indexOf(a)},a}()}).call(this)},46780:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},46898:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))}}}).call(this)},47564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SAML=void 0;let d=c(46140),e=c(74075),f=c(55511),g=c(1932),h=c(11723),i=c(28354),j=c(31673),k=c(86175),l=c(35312),m=c(36481),n=c(65756),o=c(26884),p=c(19691),q=c(34153),r=c(45540),s=c(30072),t=(0,d.default)("node-saml"),u=i.promisify(e.inflateRaw),v=i.promisify(e.deflateRaw),w=async({idpCert:a})=>{let b="function"==typeof a?await i.promisify(a)().then(a=>((0,m.assertRequired)(a,"callback didn't return idpCert"),a)):a;return Array.isArray(b)?b.map((a,b)=>(0,o.keyInfoToPem)(a,"CERTIFICATE",`idpCert[${b}]`)):[(0,o.keyInfoToPem)(b,"CERTIFICATE","idpCert")]};class x{constructor(a){this.pemFiles=[],this.options=this.initialize(a),this.cacheProvider=this.options.cacheProvider}initialize(a){var b,c,d,e,f,g,h,i,k,n,p,q,r,t,u,v,w,x,y,z,A,B,C,D,E,F;if(!a)throw TypeError("SamlOptions required on construction");(0,m.assertRequired)(a.callbackUrl,"callbackUrl is required"),(0,m.assertRequired)(a.issuer,"issuer is required"),(0,m.assertRequired)(a.idpCert,"idpCert is required"),(0,m.assertBooleanIfPresent)(a.passive),(0,m.assertBooleanIfPresent)(a.disableRequestedAuthnContext),(0,m.assertBooleanIfPresent)(a.forceAuthn),(0,m.assertBooleanIfPresent)(a.skipRequestCompression),(0,m.assertBooleanIfPresent)(a.disableRequestAcsUrl),(0,m.assertBooleanIfPresent)(a.allowCreate),(0,m.assertBooleanIfPresent)(a.wantAssertionsSigned),(0,m.assertBooleanIfPresent)(a.wantAuthnResponseSigned),(0,m.assertBooleanIfPresent)(a.signMetadata);let G={...a,passive:null!=(b=a.passive)&&b,disableRequestedAuthnContext:null!=(c=a.disableRequestedAuthnContext)&&c,additionalParams:null!=(d=a.additionalParams)?d:{},additionalAuthorizeParams:null!=(e=a.additionalAuthorizeParams)?e:{},additionalLogoutParams:null!=(f=a.additionalLogoutParams)?f:{},forceAuthn:null!=(g=a.forceAuthn)&&g,skipRequestCompression:null!=(h=a.skipRequestCompression)&&h,disableRequestAcsUrl:null!=(i=a.disableRequestAcsUrl)&&i,acceptedClockSkewMs:null!=(k=a.acceptedClockSkewMs)?k:0,maxAssertionAgeMs:null!=(n=a.maxAssertionAgeMs)?n:0,callbackUrl:a.callbackUrl,issuer:a.issuer,audience:null!=(q=null!=(p=a.audience)?p:a.issuer)?q:"unknown_audience",identifierFormat:void 0===a.identifierFormat?s.DEFAULT_IDENTIFIER_FORMAT:a.identifierFormat,allowCreate:null==(r=a.allowCreate)||r,spNameQualifier:a.spNameQualifier,wantAssertionsSigned:null!=(t=a.wantAssertionsSigned)?t:s.DEFAULT_WANT_ASSERTIONS_SIGNED,wantAuthnResponseSigned:null==(u=a.wantAuthnResponseSigned)||u,authnContext:null!=(v=a.authnContext)?v:["urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"],validateInResponseTo:null!=(w=a.validateInResponseTo)?w:l.ValidateInResponseTo.never,idpCert:a.idpCert,requestIdExpirationPeriodMs:null!=(x=a.requestIdExpirationPeriodMs)?x:288e5,cacheProvider:null!=(y=a.cacheProvider)?y:new j.InMemoryCacheProvider({keyExpirationPeriodMs:a.requestIdExpirationPeriodMs}),logoutUrl:null!=(A=null!=(z=a.logoutUrl)?z:a.entryPoint)?A:"",signatureAlgorithm:null!=(B=a.signatureAlgorithm)?B:"sha1",authnRequestBinding:null!=(C=a.authnRequestBinding)?C:"HTTP-Redirect",generateUniqueId:null!=(D=a.generateUniqueId)?D:o.generateUniqueId,signMetadata:null!=(E=a.signMetadata)&&E,racComparison:null!=(F=a.racComparison)?F:"exact"};if(!Object.values(l.ValidateInResponseTo).includes(G.validateInResponseTo))throw TypeError("validateInResponseTo must be one of ['never', 'ifPresent', 'always']");if(!["exact","minimum","maximum","better"].includes(G.racComparison))throw TypeError("racComparison must be one of ['exact', 'minimum', 'maximum', 'better']");return G}signRequest(a){(0,m.assertRequired)(this.options.privateKey,"privateKey is required");let b={};a.SigAlg=k.getSigningAlgorithm(this.options.signatureAlgorithm);let c=k.getSigner(this.options.signatureAlgorithm);a.SAMLRequest&&(b.SAMLRequest=a.SAMLRequest),a.SAMLResponse&&(b.SAMLResponse=a.SAMLResponse),a.RelayState&&(b.RelayState=a.RelayState),a.SigAlg&&(b.SigAlg=a.SigAlg),c.update(h.stringify(b)),a.Signature=c.sign((0,o.keyInfoToPem)(this.options.privateKey,"PRIVATE KEY","privateKey"),"base64")}async generateAuthorizeRequestAsync(a,b){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let c=this.options.generateUniqueId(),d=(0,p.generateInstant)();this.mustValidateInResponseTo(!0)&&await this.cacheProvider.saveAsync(c,d);let e={"samlp:AuthnRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@ID":c,"@Version":"2.0","@IssueInstant":d,"@ProtocolBinding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Destination":this.options.entryPoint,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer}}};a&&(e["samlp:AuthnRequest"]["@IsPassive"]=!0),!0===this.options.forceAuthn&&(e["samlp:AuthnRequest"]["@ForceAuthn"]=!0),this.options.disableRequestAcsUrl||(e["samlp:AuthnRequest"]["@AssertionConsumerServiceURL"]=this.options.callbackUrl);let f=this.options.samlAuthnRequestExtensions;if(null!=f){if("object"!=typeof f)throw TypeError("samlAuthnRequestExtensions should be Object");e["samlp:AuthnRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...f}}let g={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@AllowCreate":this.options.allowCreate};if(null!=this.options.identifierFormat&&(g["@Format"]=this.options.identifierFormat),null!=this.options.spNameQualifier&&(g["@SPNameQualifier"]=this.options.spNameQualifier),e["samlp:AuthnRequest"]["samlp:NameIDPolicy"]=g,!this.options.disableRequestedAuthnContext){let a=[];this.options.authnContext.forEach(function(b){a.push({"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":b})}),e["samlp:AuthnRequest"]["samlp:RequestedAuthnContext"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@Comparison":this.options.racComparison,"saml:AuthnContextClassRef":a}}if(null!=this.options.attributeConsumingServiceIndex&&(e["samlp:AuthnRequest"]["@AttributeConsumingServiceIndex"]=this.options.attributeConsumingServiceIndex),null!=this.options.providerName&&(e["samlp:AuthnRequest"]["@ProviderName"]=this.options.providerName),null!=this.options.scoping){let a={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};"number"==typeof this.options.scoping.proxyCount&&(a["@ProxyCount"]=this.options.scoping.proxyCount),this.options.scoping.idpList&&(a["samlp:IDPList"]=this.options.scoping.idpList.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return a.entries&&(b["samlp:IDPEntry"]=a.entries.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return b["@ProviderID"]=a.providerId,a.name&&(b["@Name"]=a.name),a.loc&&(b["@Loc"]=a.loc),b})),a.getComplete&&(b["samlp:GetComplete"]=a.getComplete),b})),this.options.scoping.requesterId&&(a["samlp:RequesterID"]=this.options.scoping.requesterId),e["samlp:AuthnRequest"]["samlp:Scoping"]=a}let h=(0,n.buildXmlBuilderObject)(e,!1);return b&&(0,l.isValidSamlSigningOptions)(this.options)&&(h=(0,q.signAuthnRequestPost)(h,this.options)),h}async _generateLogoutRequest(a){let b=this.options.generateUniqueId(),c=(0,p.generateInstant)(),d={"samlp:LogoutRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":b,"@Version":"2.0","@IssueInstant":c,"@Destination":this.options.logoutUrl,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer},"samlp:Extensions":{},"saml:NameID":{"@Format":a.nameIDFormat,"#text":a.nameID}}},e=this.options.samlLogoutRequestExtensions;if(null!=e){if("object"!=typeof e)throw TypeError("samlLogoutRequestExtensions should be Object");d["samlp:LogoutRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...e}}else delete d["samlp:LogoutRequest"]["samlp:Extensions"];return null!=a.nameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@NameQualifier"]=a.nameQualifier),null!=a.spNameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@SPNameQualifier"]=a.spNameQualifier),a.sessionIndex&&(d["samlp:LogoutRequest"]["saml2p:SessionIndex"]={"@xmlns:saml2p":"urn:oasis:names:tc:SAML:2.0:protocol","#text":a.sessionIndex}),await this.cacheProvider.saveAsync(b,c),(0,n.buildXmlBuilderObject)(d,!1)}_generateLogoutResponse(a,b){let c={"samlp:LogoutResponse":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":this.options.generateUniqueId(),"@Version":"2.0","@IssueInstant":(0,p.generateInstant)(),"@Destination":this.options.logoutUrl,"@InResponseTo":a.ID,"saml:Issuer":{"#text":this.options.issuer},"samlp:Status":b?{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Success"}}:{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Requester","samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal"}}}}};return(0,n.buildXmlBuilderObject)(c,!1)}async _requestToUrlAsync(a,b,c,d){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=a||b;(0,m.assertRequired)(e,"either request or response is required");let f=(this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e)).toString("base64"),h=new g.URL(this.options.entryPoint);if("logout"===c)this.options.logoutUrl&&(h=new g.URL(this.options.logoutUrl));else if("authorize"!==c)throw Error("Unknown operation: "+c);let i=a?{SAMLRequest:f}:{SAMLResponse:f};if(Object.keys(d).forEach(a=>{i[a]=d[a]}),(0,l.isValidSamlSigningOptions)(this.options)){if(!this.options.entryPoint)throw Error('"entryPoint" config parameter is required for signed messages');this.signRequest(i)}return Object.keys(i).forEach(a=>{h.searchParams.set(a,i[a])}),h.toString()}_getAdditionalParams(a,b,c){let d={};return"string"==typeof a&&a.length>0&&(d.RelayState=a),Object.assign(d,this.options.additionalParams,"logout"===b?this.options.additionalLogoutParams:this.options.additionalAuthorizeParams,null!=c?c:{})}async getAuthorizeUrlAsync(a,b,c){let d=await this.generateAuthorizeRequestAsync(this.options.passive,!1),e="authorize",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(a,e,f))}async getAuthorizeMessageAsync(a,b,c){let d;(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=await this.generateAuthorizeRequestAsync(this.options.passive,!0);d=this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e);let f=c&&c.additionalParams||{},g=this._getAdditionalParams(a,"authorize",f),h={SAMLRequest:d.toString("base64")};return Object.keys(g).forEach(a=>{h[a]=g[a]||""}),h}async getAuthorizeFormAsync(a,b,c){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let d=function(a,b){let c=b?" ":"\n";return(""+a).replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/\r\n/g,c).replace(/[\r\n]/g,c)},e=await this.getAuthorizeMessageAsync(a,b,c),f=Object.keys(e).map(a=>'<input type="hidden" name="'+a+'" value="'+d(e[a])+'" />').join("\r\n");return["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta http-equiv="x-ua-compatible" content="ie=edge">',"</head>",'<body onload="document.forms[0].submit()">',"<noscript>","<p><strong>Note:</strong> Since your browser does not support JavaScript, you must press the button below once to proceed.</p>","</noscript>",'<form method="post" action="'+encodeURI(this.options.entryPoint)+'">',f,'<input type="submit" value="Submit" />',"</form>",'<script>document.forms[0].style.display="none";<\/script>',"</body>","</html>"].join("\r\n")}async getLogoutUrlAsync(a,b,c){let d=await this._generateLogoutRequest(a),e="logout",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(b,e,f))}getLogoutResponseUrl(a,b,c,d,e){i.callbackify(()=>this.getLogoutResponseUrlAsync(a,b,c,d))(e)}async getLogoutResponseUrlAsync(a,b,c,d){let e=this._generateLogoutResponse(a,d),f="logout",g=c&&c.additionalParams||{};return await this._requestToUrlAsync(null,e,f,this._getAdditionalParams(b,f,g))}async getKeyInfosAsPem(){return"function"==typeof this.options.idpCert?await w(this.options):(this.pemFiles.length>0||(this.pemFiles=await w(this.options)),this.pemFiles)}async getSignedAssertion(a){let b=(await (0,n.parseDomFromString)(a)).documentElement;if("Response"===b.localName){let a=n.xpath.selectElements(b,"./*[local-name()='Assertion']");if(1==a.length)return a[0].toString();let c=n.xpath.selectElements(b,"./*[local-name()='EncryptedAssertion']");if(1===c.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=c[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),d=(await (0,n.parseDomFromString)(b)).documentElement;if("Assertion"!==d.localName)throw Error("Invalid EncryptedAssertion content");return d.toString()}}else if("Assertion"===b.localName)return b.toString();return null}async validatePostResponseAsync(a){var b,c,d,e;let f,g,h=null;try{f=Buffer.from(a.SAMLResponse,"base64").toString("utf8"),g=await (0,n.parseDomFromString)(f);let i=n.xpath.selectAttributes(g,"/*[local-name()='Response']/@InResponseTo");i&&(h=i.length?i[0].nodeValue:null,await this.validateInResponseTo(h));let j=await this.getKeyInfosAsPem(),k=!1,o=(0,n.getVerifiedXml)(f,g.documentElement,j),p=null,q=null;if(o&&(k=!0),!0===this.options.wantAuthnResponseSigned&&!1===k)throw Error("Invalid document signature");let r=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='Assertion']"),s=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='EncryptedAssertion']");if(r.length+s.length>1)throw Error("Invalid signature: multiple assertions");if(1==r.length&&(this.options.wantAssertionsSigned||!k)&&!(p=(0,n.getVerifiedXml)(f,r[0],j)))throw Error("Invalid signature");if(1==s.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=s[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),c=await (0,n.parseDomFromString)(b),d=n.xpath.selectElements(c,"/*[local-name()='Assertion']");if(1!=d.length)throw Error("Invalid EncryptedAssertion content");if((this.options.wantAssertionsSigned||!k)&&(q=(0,n.getVerifiedXml)(b,d[0],j),null==q))throw Error("Invalid signature from encrypted assertion")}let t=o||p||q;if(t&&r.length+s.length==1){let a=await this.getSignedAssertion(t);if(null==a)throw Error("Cannot obtain assertion from signed data");return await this.processValidlySignedAssertionAsync(a,f,h)}let u=await (0,n.parseXml2JsFromString)(f),v=u.Response;if(v){if(!("Assertion"in v)){let a=v.Status;if(a){let f=a[0].StatusCode;if(f&&(null==(b=f[0].$)?void 0:b.Value)==="urn:oasis:names:tc:SAML:2.0:status:Responder"){let a=f[0].StatusCode;if(a&&(null==(c=a[0].$)?void 0:c.Value)==="urn:oasis:names:tc:SAML:2.0:status:NoPassive"){if(!k)throw Error("Invalid signature: NoPassive");return{profile:null,loggedOut:!1}}}if(f&&(null==(d=f[0].$)?void 0:d.Value)){let b=f[0].$.Value.match(/[^:]*$/);if(b&&"Success"!=b[0]){let c="unspecified";if(a[0].StatusMessage)c=a[0].StatusMessage[0]._||c;else if(f[0].StatusCode){let a=null==(e=f[0].StatusCode[0].$)?void 0:e.Value.match(/[^:]*$/);c=a?a[0]:c}let d=(0,n.buildXml2JsObject)("Status",a[0]);throw new l.SamlStatusError("SAML provider returned "+b+" error: "+c,d)}}}}throw Error("Missing SAML assertion")}if(!k)throw Error("Invalid signature: No response found");if(u.LogoutResponse)return{profile:null,loggedOut:!0};throw Error("Unknown SAML response message")}catch(a){throw t("validatePostResponse resulted in an error: %s",a),this.mustValidateInResponseTo(!!h)&&await this.cacheProvider.removeAsync(h),a}}async validateInResponseTo(a){if(this.mustValidateInResponseTo(!!a))if(a){if(!await this.cacheProvider.getAsync(a))throw Error("InResponseTo is not valid");return}else throw Error("InResponseTo is missing from response")}async validateRedirectAsync(a,b){let c=a.SAMLRequest?"SAMLRequest":"SAMLResponse",d=Buffer.from(a[c],"base64"),e=await u(d),f=await (0,n.parseDomFromString)(e.toString()),g=await (0,n.parseXml2JsFromString)(e);return"SAMLResponse"===c?await this.verifyLogoutResponse(g):this.verifyLogoutRequest(g),await this.hasValidSignatureForRedirect(a,b),await this.processValidlySignedSamlLogoutAsync(g,f)}async hasValidSignatureForRedirect(a,b){let c=b.split("&"),d=a=>c.filter(b=>new RegExp(a).test(b))[0];if(!a.Signature)return!0;{let b=d("SAMLRequest")||d("SAMLResponse");if(d("RelayState")&&(b+="&"+d("RelayState")),b+="&"+d("SigAlg"),!(await this.getKeyInfosAsPem()).some(c=>this.validateSignatureForRedirect(b,a.Signature,a.SigAlg,c)))throw Error("Invalid query signature")}}validateSignatureForRedirect(a,b,c,d){let e,g=f.getHashes().findIndex(function(a){let b=c.toLowerCase().replace(/.*#(.*)$/,"$1");return a.toLowerCase()===b});if(g>-1)e=f.getHashes()[g];else throw Error(c+" is not supported");let h=f.createVerify(e);return h.update(a),h.verify(d,b,"base64")}verifyLogoutRequest(a){this.verifyIssuer(a.LogoutRequest);let b=new Date().getTime(),c=a.LogoutRequest.$,d=this.checkTimestampsValidityError(b,c.NotBefore,c.NotOnOrAfter);if(d)throw d}async verifyLogoutResponse(a){let b=a.LogoutResponse.Status[0].StatusCode[0].$.Value;if("urn:oasis:names:tc:SAML:2.0:status:Success"!==b)throw Error("Bad status code: "+b);this.verifyIssuer(a.LogoutResponse);let c=a.LogoutResponse.$.InResponseTo;if(c)return this.validateInResponseTo(c)}verifyIssuer(a){if(null!=this.options.idpIssuer){let b=a.Issuer;if(b){if(b[0]._!==this.options.idpIssuer)throw Error("Unknown SAML issuer. Expected: "+this.options.idpIssuer+" Received: "+b[0]._)}else throw Error("Missing SAML issuer")}}async processValidlySignedAssertionAsync(a,b,c){let d=new Date().getTime(),e={},f=await (0,n.parseXml2JsFromString)(a),g=f.Assertion;b:{let a,b=g.Issuer;b&&b[0]._&&(e.issuer=b[0]._),null!=c&&(e.inResponseTo=c);let f=g.AuthnStatement;f&&f[0].$&&f[0].$.SessionIndex&&(e.sessionIndex=f[0].$.SessionIndex);let h=g.Subject,i=null,j=null;if(h){let b=h[0].NameID;b&&b[0]._&&(e.nameID=b[0]._,b[0].$&&b[0].$.Format&&(e.nameIDFormat=b[0].$.Format,e.nameQualifier=b[0].$.NameQualifier,e.spNameQualifier=b[0].$.SPNameQualifier)),null!=(a=null==(j=h[0].SubjectConfirmation)?void 0:j.find(a=>{var b;let c=null==(b=a.SubjectConfirmationData)?void 0:b[0];if(null==c?void 0:c.$){let a=c.$.NotBefore,b=c.$.NotOnOrAfter,e=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,b,g.$.IssueInstant);if(null===this.checkTimestampsValidityError(d,a,b,e))return!0}return!1}))&&(i=a.SubjectConfirmationData[0])}if(this.mustValidateInResponseTo(!!c))if(a){if(null==i?void 0:i.$){let a=i.$.InResponseTo;if(c&&a&&a!=c)throw await this.cacheProvider.removeAsync(c),Error("InResponseTo does not match subjectInResponseTo");if(a){let b=!1,e=await this.cacheProvider.getAsync(a);if(e&&d<new Date(e).getTime()+this.options.requestIdExpirationPeriodMs&&(b=!0),await this.cacheProvider.removeAsync(c),!b)throw Error("SubjectInResponseTo is not valid");break b}}}else if(null!=j&&null==a)throw Error("No valid subject confirmation found among those available in the SAML assertion");else{await this.cacheProvider.removeAsync(c);break b}else break b}let h=g.Conditions?g.Conditions[0]:null;if(g.Conditions&&g.Conditions.length>1)throw Error("Unable to process multiple conditions in SAML assertion");if(h&&h.$){let a=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,h.$.NotOnOrAfter,g.$.IssueInstant),b=this.checkTimestampsValidityError(d,h.$.NotBefore,h.$.NotOnOrAfter,a);if(b)throw b}if(!1!==this.options.audience){let a=this.checkAudienceValidityError(this.options.audience,h.AudienceRestriction);if(a)throw a}let i=g.AttributeStatement;if(i){let a=[].concat(...i.filter(a=>Array.isArray(a.Attribute)).map(a=>a.Attribute)),b=a=>Object.keys(a).some(a=>"_"!==a&&"$"!==a)?a:a._;if(a.length>0){let c={};a.forEach(a=>{if(!Object.prototype.hasOwnProperty.call(a,"AttributeValue"))return;let d=a.$.Name,f=1===a.AttributeValue.length?b(a.AttributeValue[0]):a.AttributeValue.map(b);c[d]=f,Object.prototype.hasOwnProperty.call(e,d)||(e[d]=f)}),e.attributes=c}}return!e.mail&&e["urn:oid:0.9.2342.19200300.100.1.3"]&&(e.mail=e["urn:oid:0.9.2342.19200300.100.1.3"]),!e.email&&e.mail&&(e.email=e.mail),e.getAssertionXml=()=>a.toString(),e.getAssertion=()=>f,e.getSamlResponseXml=()=>b,{profile:e,loggedOut:!1}}checkTimestampsValidityError(a,b,c,d){if(-1==this.options.acceptedClockSkewMs)return null;if(b){let c=(0,p.dateStringToTimestamp)(b,"NotBefore");if(a+this.options.acceptedClockSkewMs<c)return Error("SAML assertion not yet valid")}if(c){let b=(0,p.dateStringToTimestamp)(c,"NotOnOrAfter");if(a-this.options.acceptedClockSkewMs>=b)return Error("SAML assertion expired: clocks skewed too much")}return d&&a-this.options.acceptedClockSkewMs>=d?Error("SAML assertion expired: assertion too old"):null}checkAudienceValidityError(a,b){if(!b||b.length<1)return Error("SAML assertion has no AudienceRestriction");let c=b.map(b=>b.Audience&&b.Audience[0]&&b.Audience[0]._?b.Audience.every(b=>b._!==a)?Error("SAML assertion audience mismatch. Expected: "+a+" Received: "+b.Audience.map(a=>a._).join(", ")):null:Error("SAML assertion AudienceRestriction has no Audience value")).filter(a=>null!==a);return c.length>0?c[0]:null}async validatePostRequestAsync(a,{_parseDomFromString:b=n.parseDomFromString,_parseXml2JsFromString:c=n.parseXml2JsFromString,_validateSignature:d=n.validateSignature}={}){let e=Buffer.from(a.SAMLRequest,"base64").toString("utf8"),f=await b(e),g=await c(e),h=await this.getKeyInfosAsPem();if(!d(e,f.documentElement,h))throw Error("Invalid signature on documentElement");return await this.processValidlySignedPostRequestAsync(g,f)}async processValidlySignedPostRequestAsync(a,b){var c;let d=a.LogoutRequest;if(this.verifyLogoutRequest(a),d){let a={};if(d.$.ID)a.ID=d.$.ID;else throw Error("Missing SAML LogoutRequest ID");let e=d.Issuer;if(e&&e[0]._)a.issuer=e[0]._;else throw Error("Missing SAML issuer");let f=await (0,n.getNameIdAsync)(b,null!=(c=this.options.decryptionPvk)?c:null);if(f.value)a.nameID=f.value,f.format&&(a.nameIDFormat=f.format);else throw Error("Missing SAML NameID");let g=d.SessionIndex;return g&&(a.sessionIndex=g[0]._),{profile:a,loggedOut:!0}}throw Error("Unknown SAML request message")}async processValidlySignedSamlLogoutAsync(a,b){let c=a.LogoutResponse,d=a.LogoutRequest;if(c)return{profile:null,loggedOut:!0};if(d)return await this.processValidlySignedPostRequestAsync(a,b);throw Error("Unknown SAML response message")}generateServiceProviderMetadata(a,b){return(0,r.generateServiceProviderMetadata)({...this.options,decryptionCert:a,publicCerts:b})}calcMaxAgeAssertionTime(a,b,c){let d=(0,p.dateStringToTimestamp)(b,"NotOnOrAfter"),e=(0,p.dateStringToTimestamp)(c,"IssueInstant");if(0===a)return d;let f=e+a;return f<d?f:d}mustValidateInResponseTo(a){return this.options.validateInResponseTo===l.ValidateInResponseTo.always||this.options.validateInResponseTo===l.ValidateInResponseTo.ifPresent&&a}}b.SAML=x},48813:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=b.NotationDeclaration,null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}toString(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a}).call(this)}).call(this)},50962:function(a,b,c){(function(){var b,d,e,f,g,h,i;({isPlainObject:i}=c(43594)),e=c(88909),d=c(25141),f=c(73067),b=c(26468),h=c(31753),g=c(44981),a.exports=(function(){class a extends f{constructor(a){super(null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}end(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))}toString(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))}createElement(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(a){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"implementation",{value:new e}),Object.defineProperty(a.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a}).call(this)}).call(this)},55443:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,f){super(a),e(c)&&({version:c,encoding:d,standalone:f}=c),c||(c="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(c),null!=d&&(this.encoding=this.stringify.xmlEncoding(d)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}toString(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))}}}).call(this)},56068:function(a,b){(function(){b.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:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},58029:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):NaN},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)}}(b)},58892:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.target===this.target},c}(c(92478))}).call(this)},59548:(a,b,c)=>{var d=c(73669);a.exports=({contentEncryptionMethod:a,keyInfo:b,encryptedContent:c})=>`
|
|
@@ -9,10 +9,10 @@ ${a}
|
|
|
9
9
|
<xenc:CipherValue>${d(c)}</xenc:CipherValue>
|
|
10
10
|
</xenc:CipherData>
|
|
11
11
|
</xenc:EncryptedData>
|
|
12
|
-
`},61894:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isArrayHasLength=g,b.findAttr=function(a,b,c){for(let d=0;d<a.attributes.length;d++){let e=a.attributes[d];if(e.localName===b&&(e.namespaceURI===c||null==c)||e.localName===b&&(!e.namespaceURI&&a?.namespaceURI===c||null==c))return e}return null},b.findChildren=h,b.findChilds=function(a,b,c){return h(a,b,c)},b.encodeSpecialCharactersInAttribute=function(a){return a.replace(/([&<"\r\n\t])/g,function(a,b){return i[b]})},b.encodeSpecialCharactersInText=function(a){return a.replace(/([&<>\r])/g,function(a,b){return j[b]})},b.normalizePem=
|
|
13
|
-
`}function
|
|
14
|
-
${A(
|
|
15
|
-
`}function C(a){let b=function a(b,c=[]){if(!f.isElementNode(b.parentNode))return c;let d=b.parentNode;if(!d)return c;if(d.attributes&&d.attributes.length>0)for(let a=0;a<d.attributes.length;a++){let b=d.attributes[a];b&&b.nodeName&&-1!==b.nodeName.search(/^xmlns:?/)&&c.push({prefix:b.nodeName.replace(/^xmlns:?/,""),namespaceURI:b.nodeValue||""})}return a(d,c)}(a),c=[];for(let a of b)c.some(b=>b.prefix===a.prefix)||c.push(a);let d=[],e=function(a){let b=new Set,c=a.attributes;for(let a=0;a<c.length;a++){let d=c[a].nodeName;("xmlns"===d||d.startsWith("xmlns:"))&&b.add(d.replace(/^xmlns:?/,""))}return b.add(a.prefix||""),b}(a);for(let a of c)e.has(a.prefix)||d.push(a);return d}},62119:(a,b)=>{"use strict";var c,d;function e(a){return a&&"object"==typeof a&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.removeChild}function f(a){return Array.isArray(a)&&a.every(e)}function g(a,b){return e(b)&&b.nodeType===a}function h(a,b){let d=Object.keys(c).find(b=>c[b]===a);if(!g(a,b))throw Error(`Value is not of type ${d}`)}Object.defineProperty(b,"__esModule",{value:!0}),b.assertIsDocumentFragmentNode=b.assertIsDocumentTypeNode=b.assertIsDocumentNode=b.assertIsCommentNode=b.assertIsProcessingInstructionNode=b.assertIsCDATASectionNode=b.assertIsTextNode=b.assertIsAttributeNode=b.assertIsElementNode=b.isDocumentFragmentNode=b.isDocumentTypeNode=b.isDocumentNode=b.isCommentNode=b.isProcessingInstructionNode=b.isCDATASectionNode=b.isTextNode=b.isAttributeNode=b.isElementNode=b.assertIsArrayOfNodes=b.isArrayOfNodes=b.assertIsNodeLike=b.isNodeLike=b.NodeTypes=void 0,(d=c||(b.NodeTypes=c={}))[d.ELEMENT_NODE=1]="ELEMENT_NODE",d[d.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",d[d.TEXT_NODE=3]="TEXT_NODE",d[d.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",d[d.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",d[d.COMMENT_NODE=8]="COMMENT_NODE",d[d.DOCUMENT_NODE=9]="DOCUMENT_NODE",d[d.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",d[d.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",b.isNodeLike=e,b.assertIsNodeLike=function(a){if(!e(a))throw Error(`Value is not a Node-like object. Received: ${a}`)},b.isArrayOfNodes=f,b.assertIsArrayOfNodes=function(a){if(!f(a))throw Error("Value is not an array of Nodes")},b.isElementNode=a=>g(c.ELEMENT_NODE,a),b.isAttributeNode=a=>g(c.ATTRIBUTE_NODE,a),b.isTextNode=a=>g(c.TEXT_NODE,a),b.isCDATASectionNode=a=>g(c.CDATA_SECTION_NODE,a),b.isProcessingInstructionNode=a=>g(c.PROCESSING_INSTRUCTION_NODE,a),b.isCommentNode=a=>g(c.COMMENT_NODE,a),b.isDocumentNode=a=>g(c.DOCUMENT_NODE,a),b.isDocumentTypeNode=a=>g(c.DOCUMENT_TYPE_NODE,a),b.isDocumentFragmentNode=a=>g(c.DOCUMENT_FRAGMENT_NODE,a),b.assertIsElementNode=a=>{h(c.ELEMENT_NODE,a)},b.assertIsAttributeNode=a=>h(c.ATTRIBUTE_NODE,a),b.assertIsTextNode=a=>h(c.TEXT_NODE,a),b.assertIsCDATASectionNode=a=>h(c.CDATA_SECTION_NODE,a),b.assertIsProcessingInstructionNode=a=>h(c.PROCESSING_INSTRUCTION_NODE,a),b.assertIsCommentNode=a=>h(c.COMMENT_NODE,a),b.assertIsDocumentNode=a=>h(c.DOCUMENT_NODE,a),b.assertIsDocumentTypeNode=a=>h(c.DOCUMENT_TYPE_NODE,a),b.assertIsDocumentFragmentNode=a=>h(c.DOCUMENT_FRAGMENT_NODE,a)},62669:(a,b,c)=>{var d=c(23849),e=c(81349),f=c(13630),g=c(91729),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},64564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.EnvelopedSignature=void 0;let d=c(42429),e=c(62119),f=c(61894);class g{constructor(){this.includeComments=!1,this.includeComments=!1}process(a,b){if(null==b.signatureNode){let b=d.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return e.isNodeLike(b)&&b.parentNode&&b.parentNode.removeChild(b),a}let c=b.signatureNode;return(0,f.isDescendantOf)(c,a)&&c.parentNode&&c.parentNode.removeChild(c),a}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}b.EnvelopedSignature=g},65096:function(a,b,c){(function(){var b;b=c(73067),a.exports=(function(){class a extends b{constructor(a){super(a),this.value=""}clone(){return Object.create(this)}substringData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){return!!super.isEqualNode(a)&&a.data===this.data}}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),a}).call(this)}).call(this)},65756:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getNameIdAsync=b.promiseWithNameId=b.buildXmlBuilderObject=b.buildXml2JsObject=b.parseXml2JsFromString=b.parseDomFromString=b.signXml=b.validateSignature=b.getVerifiedXml=b.decryptXml=b.xpath=void 0;let d=c(28354),e=c(22859),f=c(35387),g=c(12749),h=c(74832),i=c(24938),j=c(32046),k=c(35312),l=c(86175),m=c(36481),n=c(62119),o=(0,c(46140).default)("node-saml"),p=(a,b,c)=>{let d=(0,j.select)(c,b);if(!a(d))throw Error("Invalid xpath return type");return d},q=a=>n.isArrayOfNodes(a)&&a.every(n.isAttributeNode),r=a=>n.isArrayOfNodes(a)&&a.every(n.isElementNode);b.xpath={selectAttributes:(a,b)=>p(q,a,b),selectElements:(a,b)=>p(r,a,b)},b.decryptXml=async(a,b)=>d.promisify(f.decrypt).bind(f)(a,{key:b}),b.getVerifiedXml=(a,c,d)=>{a=a.replace(/\r\n?/g,"\n");let f=b.xpath.selectElements(c,"./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']");if(f.length<1)return null;if(f.length>1)throw Error("Too many signatures found for this element");let g=f[0];if(b.xpath.selectElements(g,".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']").length>2)throw Error("Invalid signature, too many transforms");for(let c of d){let d=new e.SignedXml;d.publicCert=c,d.loadSignature(g);let f=d.getReferences();if(1!==f.length||!g.parentNode)break;let h=f[0].uri,i="#"===h[0]?h.substring(1):h;if((0,m.assertRequired)(i,"signature reference uri not found"),i.includes("'")||i.includes('"'))throw Error("ref URI included quote character ' or \". Not a valid ID, and not allowed");let j=b.xpath.selectElements(g.ownerDocument,`//*[@ID="${i}"]`);if(1!==j.length)throw Error("Invalid signature: ID cannot refer to more than one element");if(j[0]!==g.parentNode)throw Error("Invalid signature: Referenced node does not refer to it's parent element");try{if(!d.checkSignature(a))continue;if(1!==d.getSignedReferences().length)throw Error("Only 1 signed references should be present in signature");return d.getSignedReferences()[0]}catch(a){}}return null},b.validateSignature=(a,c,d)=>{let e=`.//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and descendant::*[local-name(.)='Reference' and @URI='#${c.getAttribute("ID")}']]`,f=b.xpath.selectElements(c,e);if(1!==f.length)return!1;let g=".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and ancestor::*[local-name(.)='Reference' and @URI='#"+c.getAttribute("ID")+"']]";if(b.xpath.selectElements(c,g).length>2)throw Error("Invalid signature, too many transforms");let h=f[0];return d.some(b=>s(h,b,a,c))};let s=(a,c,d,f)=>{let g=new e.SignedXml;if(g.publicCert=c,g.loadSignature(a),1!==g.getReferences().length)return!1;let h=g.getReferences()[0].uri;(0,m.assertRequired)(h,"signature reference uri not found");let i="#"===h[0]?h.substring(1):h,j=f.getAttribute("ID")?"ID":"Id";if(f.getAttribute(j)!=i||b.xpath.selectElements(f.ownerDocument,"//*[@"+j+"='"+i+"']").length>1)return!1;d=d.replace(/\r\n?/g,"\n");try{return g.checkSignature(d)}catch(a){return o("signature check resulted in an error: %s",a),!1}};b.signXml=(a,b,c,d)=>{var f;if(!a)throw Error("samlMessage is required");if(!c)throw Error("location is required");if(!d)throw Error("options is required");if(!(0,k.isValidSamlSigningOptions)(d))throw Error("options.privateKey is required");let g=null!=(f=d.xmlSignatureTransforms)?f:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/2001/10/xml-exc-c14n#"],h=new e.SignedXml;return null!=d.signatureAlgorithm&&(h.signatureAlgorithm=l.getSigningAlgorithm(d.signatureAlgorithm)),h.addReference({xpath:b,transforms:g,digestAlgorithm:l.getDigestAlgorithm(d.digestAlgorithm)}),h.privateKey=d.privateKey,h.publicCert=d.publicCert,h.canonicalizationAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#",h.computeSignature(a,{location:c}),h.getSignedXml()},b.parseDomFromString=a=>new Promise(function(b,c){function d(a){return c(Error(a))}let e=new g.DOMParser({locator:{},errorHandler:{error:d,fatalError:d}}).parseFromString(a,"text/xml");return Object.prototype.hasOwnProperty.call(e,"documentElement")?b(e):c(Error("Not a valid XML document"))}),b.parseXml2JsFromString=async a=>{let b={explicitRoot:!0,explicitCharkey:!0,tagNameProcessors:[h.processors.stripPrefix]};return new h.Parser(b).parseStringPromise(a)},b.buildXml2JsObject=(a,b)=>new h.Builder({rootName:a,headless:!0}).buildObject(b),b.buildXmlBuilderObject=(a,b)=>i.create(a).end(b?{pretty:!0,indent:" ",newline:"\n"}:{});let t=async a=>{let c=b.xpath.selectAttributes(a,"@Format");return{value:a.textContent,format:c&&c[0]&&c[0].nodeValue}};b.promiseWithNameId=t;let u=async(a,c)=>{let d=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='NameID']"),e=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='EncryptedID']");if(d.length+e.length>1)throw Error("Invalid LogoutRequest: multiple ID elements");if(1===d.length)return(0,b.promiseWithNameId)(d[0]);if(1===e.length){(0,m.assertRequired)(c,"No decryption key found getting name ID for encrypted SAML response");let a=b.xpath.selectElements(e[0],"./*[local-name()='EncryptedData']");if(1!==a.length)throw Error("Invalid LogoutRequest: no EncryptedData element found");let d=a[0].toString(),f=await (0,b.decryptXml)(d,c),g=await (0,b.parseDomFromString)(f),h=b.xpath.selectElements(g,"/*[local-name()='NameID']");if(1!==h.length)throw Error("Invalid EncryptedData content");return await (0,b.promiseWithNameId)(h[0])}throw Error("Missing SAML NameID")};b.getNameIdAsync=u},65904:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},67289:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;({assign:e}=c(43594)),b=c(26468),c(55443),c(33773),c(46898),c(12430),c(84519),c(469),c(5032),c(15890),c(76491),c(77192),c(1243),c(71920),c(48813),d=c(29394),a.exports=class{constructor(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}filterOptions(a){var b,c,f,g,h,i,j,k,l;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.width=null!=(h=a.width)?h:0,b.dontPrettyTextNodes=null!=(i=null!=(j=a.dontPrettyTextNodes)?j:a.dontprettytextnodes)?i:0,b.spaceBeforeSlash=null!=(k=null!=(l=a.spaceBeforeSlash)?l:a.spacebeforeslash)?k:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b}indent(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""}endline(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline}attribute(a,b,c){var d;return this.openAttribute(a,b,c),d=b.pretty&&b.width>0?a.name+'="'+a.value+'"':" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d}cdata(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}comment(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}declaration(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}docType(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(e||(e=0),q=!1,this.openNode(a,c,e),c.state=d.OpenTag,r=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(p in m=r.length,t=a.attribs)f.call(t,p)&&(g=t[p],m+(s=this.attribute(g,c,e)).length>c.width?(x=this.indent(a,c,e+1)+s,r+=this.endline(a,c,e)+x,m=x.length):(r+=x=" "+s,m+=x.length));else for(p in u=a.attribs)f.call(u,p)&&(g=u[p],r+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(r+=">",c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,r+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)r+=">",c.state=d.InsideTag,c.suppressPrettyCount++,q=!0,r+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,q=!1,c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,n=(v=a.children).length;k<n;k++)if(((h=v[k]).type===b.Text||h.type===b.Raw||h.type===b.CData)&&null!=h.value){c.suppressPrettyCount++,q=!0;break}}for(r+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,o=(w=a.children).length;l<o;l++)h=w[l],r+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,r+=this.indent(a,c,e)+"</"+a.name+">",q&&c.suppressPrettyCount--,r+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),r}writeChildNode(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}}processingInstruction(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}raw(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}text(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdAttList(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdElement(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdEntity(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdNotation(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}openNode(a,b,c){}closeNode(a,b,c){}openAttribute(a,b,c){}closeAttribute(a,b,c){}}}).call(this)},67925:(a,b,c)=>{var d=c(73669);a.exports=({encryptionPublicCert:a,encryptedKey:b,keyEncryptionMethod:c,keyEncryptionDigest:e})=>`
|
|
12
|
+
`},61894:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isArrayHasLength=g,b.findAttr=function(a,b,c){for(let d=0;d<a.attributes.length;d++){let e=a.attributes[d];if(e.localName===b&&(e.namespaceURI===c||null==c)||e.localName===b&&(!e.namespaceURI&&a?.namespaceURI===c||null==c))return e}return null},b.findChildren=h,b.findChilds=function(a,b,c){return h(a,b,c)},b.encodeSpecialCharactersInAttribute=function(a){return a.replace(/([&<"\r\n\t])/g,function(a,b){return i[b]})},b.encodeSpecialCharactersInText=function(a){return a.replace(/([&<>\r])/g,function(a,b){return j[b]})},b.normalizePem=B,b.pemCertificates=function(a){let b=u(t(a));if(!b.every(z))throw Error("Invalid PEM format.");let c=b.filter(a=>"CERTIFICATE"===a.label).map(a=>a.data);return c.forEach(y),c.map(A)},b.pemToDer=function(a){let b=t(a),c=o.test(b)?u(b):[];if(c.length>1)throw Error(`Expected a single PEM message, but found ${c.length}.`);if(0===c.length||!z(c[0])||c[0].headers)throw Error("Invalid PEM format.");let[{label:d,data:e}]=c;return"CERTIFICATE"===d&&y(e),Buffer.from(e,"base64")},b.bareCertificate=function(a){let b=t(a),c=b.replace(/\n/g,"");if(!q.test(b)||!v(c))throw Error("Invalid PEM format.");return y(c),A(c)},b.toPem=function(a,b){let c=t(function(a){if(!Buffer.isBuffer(a))return a;let b=a.toString("latin1");return b.replace(s,"").trimStart().startsWith("-----BEGIN ")?b:a.toString("base64")}(a));if(o.test(c)){let a=u(c);if(!a.every(z)||a.some(a=>a.headers))throw Error("Invalid PEM format.");return a.map(a=>C(a.label,a.data)).join("")}let d=c.replace(/\n/g,"");if(q.test(c)&&v(d)){if(null==b)throw Error("A PEM label is required to wrap base64 data.");if(!w(b))throw Error("Invalid PEM label.");return C(b,d)}throw Error("Invalid PEM format.")},b.findAncestorNsForElement=D,b.findAncestorNs=function(a,b,c){if(null==b)return[];let d=e.selectWithResolver(b,a,c);if(!g(d))return[];if(!d.every(a=>f.isElementNode(a)))throw Error("Document subset must be list of elements");return D(d[0])},b.validateDigestValue=function(a,b){let c=Buffer.from(a,"base64"),d=Buffer.from(b,"base64");if("function"==typeof c.equals)return c.equals(d);if(c.length!==d.length)return!1;for(let a=0;a<c.length;a++)if(c[a]!==d[a])return!1;return!0},b.isDescendantOf=function(a,b){if(!a||!b)return!1;let c=a.parentNode;for(;c;){if(c===b)return!0;c=c.parentNode}return!1};let d=c(55511),e=c(42429),f=c(62119);function g(a){return Array.isArray(a)&&a.length>0}function h(a,b,c){let d=a.documentElement??a,e=[];for(let a=0;a<d.childNodes.length;a++){let g=d.childNodes[a];f.isElementNode(g)&&g.localName===b&&(g.namespaceURI===c||null==c)&&e.push(g)}return e}let i={"&":"&","<":"<",'"':""","\r":"
","\n":"
"," ":"	"},j={"&":"&","<":"<",">":">","\r":"
"},k="[\\x21-\\x2C\\x2E-\\x7E]",l=`${k}(?:[-\\x20]?${k}){0,47}`,m=RegExp(`^${l}$`),n="(?:(?:Proc-Type|DEK-Info):[A-Za-z0-9,-]+\\n)+\\n+",o=RegExp(`^(?:-----BEGIN ${l}-----\\n+(?:${n})?(?:[A-Za-z0-9+/=]+\\n)+-----END ${l}-----\\n*)+$`),p=RegExp(`-----BEGIN (${l})-----\\n+(${n})?((?:[A-Za-z0-9+/=]+\\n)+)-----END (${l})-----`,"g"),q=/^[A-Za-z0-9+/=\n]+$/,r=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,s=/^(?:\uFEFF|\u00EF\u00BB\u00BF)/;function t(a){return a.replace(s,"").replace(/\r\n|\r/g,"\n").split("\n").map(a=>{let b=a.trim();return b.startsWith("-----")?b:a.replace(/[ \t]+/g,"")}).join("\n").trim()}function u(a){let b=[];p.lastIndex=0;let c=p.exec(a);for(;null!==c;){let d=c.index,e=d+c[0].length;(0===d||"\n"===a[d-1])&&(e===a.length||"\n"===a[e])&&b.push({label:c[1],endLabel:c[4],headers:null!=c[2],data:c[3].replace(/\n/g,"")}),c=p.exec(a)}if(a.split("-----BEGIN").length-1!==b.length)throw Error("Invalid PEM format.");return b}function v(a){return r.test(a)}function w(a){return a.length<=48&&m.test(a)}function x(a){try{return new d.X509Certificate(a),!0}catch{return!1}}function y(a){let b=Buffer.from(a,"base64");if(!x(b))throw Error("Invalid PEM format.");if(x(b.subarray(0,-1)))throw Error("Expected a single certificate, but found more data after it.")}function z({label:a,endLabel:b,headers:c,data:d}){let e=c&&"CERTIFICATE"===a;return a===b&&w(a)&&v(d)&&!e}function A(a){return Buffer.from(a,"base64").toString("base64")}function B(a){return`${(a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g)??[]).join("\n")}
|
|
13
|
+
`}function C(a,b){return"CERTIFICATE"===a&&y(b),`-----BEGIN ${a}-----
|
|
14
|
+
${B(A(b))}-----END ${a}-----
|
|
15
|
+
`}function D(a){let b=function a(b,c=[]){if(!f.isElementNode(b.parentNode))return c;let d=b.parentNode;if(!d)return c;if(d.attributes&&d.attributes.length>0)for(let a=0;a<d.attributes.length;a++){let b=d.attributes[a];b&&b.nodeName&&-1!==b.nodeName.search(/^xmlns:?/)&&c.push({prefix:b.nodeName.replace(/^xmlns:?/,""),namespaceURI:b.nodeValue||""})}return a(d,c)}(a),c=[];for(let a of b)c.some(b=>b.prefix===a.prefix)||c.push(a);let d=[],e=function(a){let b=new Set,c=a.attributes;for(let a=0;a<c.length;a++){let d=c[a].nodeName;("xmlns"===d||d.startsWith("xmlns:"))&&b.add(d.replace(/^xmlns:?/,""))}return b.add(a.prefix||""),b}(a);for(let a of c)e.has(a.prefix)||d.push(a);return d}},62119:(a,b)=>{"use strict";var c,d;function e(a){return a&&"object"==typeof a&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.removeChild}function f(a){return Array.isArray(a)&&a.every(e)}function g(a,b){return e(b)&&b.nodeType===a}function h(a,b){let d=Object.keys(c).find(b=>c[b]===a);if(!g(a,b))throw Error(`Value is not of type ${d}`)}Object.defineProperty(b,"__esModule",{value:!0}),b.assertIsDocumentFragmentNode=b.assertIsDocumentTypeNode=b.assertIsDocumentNode=b.assertIsCommentNode=b.assertIsProcessingInstructionNode=b.assertIsCDATASectionNode=b.assertIsTextNode=b.assertIsAttributeNode=b.assertIsElementNode=b.isDocumentFragmentNode=b.isDocumentTypeNode=b.isDocumentNode=b.isCommentNode=b.isProcessingInstructionNode=b.isCDATASectionNode=b.isTextNode=b.isAttributeNode=b.isElementNode=b.assertIsArrayOfNodes=b.isArrayOfNodes=b.assertIsNodeLike=b.isNodeLike=b.NodeTypes=void 0,(d=c||(b.NodeTypes=c={}))[d.ELEMENT_NODE=1]="ELEMENT_NODE",d[d.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",d[d.TEXT_NODE=3]="TEXT_NODE",d[d.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",d[d.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",d[d.COMMENT_NODE=8]="COMMENT_NODE",d[d.DOCUMENT_NODE=9]="DOCUMENT_NODE",d[d.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",d[d.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",b.isNodeLike=e,b.assertIsNodeLike=function(a){if(!e(a))throw Error(`Value is not a Node-like object. Received: ${a}`)},b.isArrayOfNodes=f,b.assertIsArrayOfNodes=function(a){if(!f(a))throw Error("Value is not an array of Nodes")},b.isElementNode=a=>g(c.ELEMENT_NODE,a),b.isAttributeNode=a=>g(c.ATTRIBUTE_NODE,a),b.isTextNode=a=>g(c.TEXT_NODE,a),b.isCDATASectionNode=a=>g(c.CDATA_SECTION_NODE,a),b.isProcessingInstructionNode=a=>g(c.PROCESSING_INSTRUCTION_NODE,a),b.isCommentNode=a=>g(c.COMMENT_NODE,a),b.isDocumentNode=a=>g(c.DOCUMENT_NODE,a),b.isDocumentTypeNode=a=>g(c.DOCUMENT_TYPE_NODE,a),b.isDocumentFragmentNode=a=>g(c.DOCUMENT_FRAGMENT_NODE,a),b.assertIsElementNode=a=>{h(c.ELEMENT_NODE,a)},b.assertIsAttributeNode=a=>h(c.ATTRIBUTE_NODE,a),b.assertIsTextNode=a=>h(c.TEXT_NODE,a),b.assertIsCDATASectionNode=a=>h(c.CDATA_SECTION_NODE,a),b.assertIsProcessingInstructionNode=a=>h(c.PROCESSING_INSTRUCTION_NODE,a),b.assertIsCommentNode=a=>h(c.COMMENT_NODE,a),b.assertIsDocumentNode=a=>h(c.DOCUMENT_NODE,a),b.assertIsDocumentTypeNode=a=>h(c.DOCUMENT_TYPE_NODE,a),b.assertIsDocumentFragmentNode=a=>h(c.DOCUMENT_FRAGMENT_NODE,a)},62669:(a,b,c)=>{var d=c(23849),e=c(81349),f=c(13630),g=c(91729),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},64564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.EnvelopedSignature=void 0;let d=c(42429),e=c(62119),f=c(61894);class g{constructor(){this.includeComments=!1,this.includeComments=!1}process(a,b){if(null==b.signatureNode){let b=d.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return e.isNodeLike(b)&&b.parentNode&&b.parentNode.removeChild(b),a}let c=b.signatureNode;return(0,f.isDescendantOf)(c,a)&&c.parentNode&&c.parentNode.removeChild(c),a}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}b.EnvelopedSignature=g},65096:function(a,b,c){(function(){var b;b=c(73067),a.exports=(function(){class a extends b{constructor(a){super(a),this.value=""}clone(){return Object.create(this)}substringData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){return!!super.isEqualNode(a)&&a.data===this.data}}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),a}).call(this)}).call(this)},65756:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getNameIdAsync=b.promiseWithNameId=b.buildXmlBuilderObject=b.buildXml2JsObject=b.parseXml2JsFromString=b.parseDomFromString=b.signXml=b.validateSignature=b.getVerifiedXml=b.decryptXml=b.xpath=void 0;let d=c(28354),e=c(22859),f=c(35387),g=c(12749),h=c(74832),i=c(24938),j=c(32046),k=c(35312),l=c(86175),m=c(36481),n=c(62119),o=(0,c(46140).default)("node-saml"),p=(a,b,c)=>{let d=(0,j.select)(c,b);if(!a(d))throw Error("Invalid xpath return type");return d},q=a=>n.isArrayOfNodes(a)&&a.every(n.isAttributeNode),r=a=>n.isArrayOfNodes(a)&&a.every(n.isElementNode);b.xpath={selectAttributes:(a,b)=>p(q,a,b),selectElements:(a,b)=>p(r,a,b)},b.decryptXml=async(a,b)=>d.promisify(f.decrypt).bind(f)(a,{key:b}),b.getVerifiedXml=(a,c,d)=>{a=a.replace(/\r\n?/g,"\n");let f=b.xpath.selectElements(c,"./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']");if(f.length<1)return null;if(f.length>1)throw Error("Too many signatures found for this element");let g=f[0];if(b.xpath.selectElements(g,".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']").length>2)throw Error("Invalid signature, too many transforms");for(let c of d){let d=new e.SignedXml;d.publicCert=c,d.loadSignature(g);let f=d.getReferences();if(1!==f.length||!g.parentNode)break;let h=f[0].uri,i="#"===h[0]?h.substring(1):h;if((0,m.assertRequired)(i,"signature reference uri not found"),i.includes("'")||i.includes('"'))throw Error("ref URI included quote character ' or \". Not a valid ID, and not allowed");let j=b.xpath.selectElements(g.ownerDocument,`//*[@ID="${i}"]`);if(1!==j.length)throw Error("Invalid signature: ID cannot refer to more than one element");if(j[0]!==g.parentNode)throw Error("Invalid signature: Referenced node does not refer to it's parent element");try{if(!d.checkSignature(a))continue;if(1!==d.getSignedReferences().length)throw Error("Only 1 signed references should be present in signature");return d.getSignedReferences()[0]}catch(a){}}return null},b.validateSignature=(a,c,d)=>{let e=`.//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and descendant::*[local-name(.)='Reference' and @URI='#${c.getAttribute("ID")}']]`,f=b.xpath.selectElements(c,e);if(1!==f.length)return!1;let g=".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and ancestor::*[local-name(.)='Reference' and @URI='#"+c.getAttribute("ID")+"']]";if(b.xpath.selectElements(c,g).length>2)throw Error("Invalid signature, too many transforms");let h=f[0];return d.some(b=>s(h,b,a,c))};let s=(a,c,d,f)=>{let g=new e.SignedXml;if(g.publicCert=c,g.loadSignature(a),1!==g.getReferences().length)return!1;let h=g.getReferences()[0].uri;(0,m.assertRequired)(h,"signature reference uri not found");let i="#"===h[0]?h.substring(1):h,j=f.getAttribute("ID")?"ID":"Id";if(f.getAttribute(j)!=i||b.xpath.selectElements(f.ownerDocument,"//*[@"+j+"='"+i+"']").length>1)return!1;d=d.replace(/\r\n?/g,"\n");try{return g.checkSignature(d)}catch(a){return o("signature check resulted in an error: %s",a),!1}};b.signXml=(a,b,c,d)=>{var f;if(!a)throw Error("samlMessage is required");if(!c)throw Error("location is required");if(!d)throw Error("options is required");if(!(0,k.isValidSamlSigningOptions)(d))throw Error("options.privateKey is required");let g=null!=(f=d.xmlSignatureTransforms)?f:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/2001/10/xml-exc-c14n#"],h=new e.SignedXml;return null!=d.signatureAlgorithm&&(h.signatureAlgorithm=l.getSigningAlgorithm(d.signatureAlgorithm)),h.addReference({xpath:b,transforms:g,digestAlgorithm:l.getDigestAlgorithm(d.digestAlgorithm)}),h.privateKey=d.privateKey,h.publicCert=d.publicCert,h.canonicalizationAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#",h.computeSignature(a,{location:c}),h.getSignedXml()},b.parseDomFromString=a=>new Promise(function(b,c){function d(a){return c(Error(a))}let e=new g.DOMParser({locator:{},errorHandler:{error:d,fatalError:d}}).parseFromString(a,"text/xml");return Object.prototype.hasOwnProperty.call(e,"documentElement")?b(e):c(Error("Not a valid XML document"))}),b.parseXml2JsFromString=async a=>{let b={explicitRoot:!0,explicitCharkey:!0,tagNameProcessors:[h.processors.stripPrefix]};return new h.Parser(b).parseStringPromise(a)},b.buildXml2JsObject=(a,b)=>new h.Builder({rootName:a,headless:!0}).buildObject(b),b.buildXmlBuilderObject=(a,b)=>i.create(a).end(b?{pretty:!0,indent:" ",newline:"\n"}:{});let t=async a=>{let c=b.xpath.selectAttributes(a,"@Format");return{value:a.textContent,format:c&&c[0]&&c[0].nodeValue}};b.promiseWithNameId=t;let u=async(a,c)=>{let d=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='NameID']"),e=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='EncryptedID']");if(d.length+e.length>1)throw Error("Invalid LogoutRequest: multiple ID elements");if(1===d.length)return(0,b.promiseWithNameId)(d[0]);if(1===e.length){(0,m.assertRequired)(c,"No decryption key found getting name ID for encrypted SAML response");let a=b.xpath.selectElements(e[0],"./*[local-name()='EncryptedData']");if(1!==a.length)throw Error("Invalid LogoutRequest: no EncryptedData element found");let d=a[0].toString(),f=await (0,b.decryptXml)(d,c),g=await (0,b.parseDomFromString)(f),h=b.xpath.selectElements(g,"/*[local-name()='NameID']");if(1!==h.length)throw Error("Invalid EncryptedData content");return await (0,b.promiseWithNameId)(h[0])}throw Error("Missing SAML NameID")};b.getNameIdAsync=u},65904:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},67289:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;({assign:e}=c(43594)),b=c(26468),c(55443),c(33773),c(46898),c(12430),c(84519),c(469),c(5032),c(15890),c(76491),c(77192),c(1243),c(71920),c(48813),d=c(29394),a.exports=class{constructor(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}filterOptions(a){var b,c,f,g,h,i,j,k,l;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.width=null!=(h=a.width)?h:0,b.dontPrettyTextNodes=null!=(i=null!=(j=a.dontPrettyTextNodes)?j:a.dontprettytextnodes)?i:0,b.spaceBeforeSlash=null!=(k=null!=(l=a.spaceBeforeSlash)?l:a.spacebeforeslash)?k:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b}indent(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""}endline(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline}attribute(a,b,c){var d;return this.openAttribute(a,b,c),d=b.pretty&&b.width>0?a.name+'="'+a.value+'"':" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d}cdata(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}comment(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}declaration(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}docType(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(e||(e=0),q=!1,this.openNode(a,c,e),c.state=d.OpenTag,r=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(p in m=r.length,t=a.attribs)f.call(t,p)&&(g=t[p],m+(s=this.attribute(g,c,e)).length>c.width?(x=this.indent(a,c,e+1)+s,r+=this.endline(a,c,e)+x,m=x.length):(r+=x=" "+s,m+=x.length));else for(p in u=a.attribs)f.call(u,p)&&(g=u[p],r+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(r+=">",c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,r+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)r+=">",c.state=d.InsideTag,c.suppressPrettyCount++,q=!0,r+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,q=!1,c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,n=(v=a.children).length;k<n;k++)if(((h=v[k]).type===b.Text||h.type===b.Raw||h.type===b.CData)&&null!=h.value){c.suppressPrettyCount++,q=!0;break}}for(r+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,o=(w=a.children).length;l<o;l++)h=w[l],r+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,r+=this.indent(a,c,e)+"</"+a.name+">",q&&c.suppressPrettyCount--,r+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),r}writeChildNode(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}}processingInstruction(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}raw(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}text(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdAttList(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdElement(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdEntity(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdNotation(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}openNode(a,b,c){}closeNode(a,b,c){}openAttribute(a,b,c){}closeAttribute(a,b,c){}}}).call(this)},67925:(a,b,c)=>{var d=c(73669);a.exports=({encryptionPublicCert:a,encryptedKey:b,keyEncryptionMethod:c,keyEncryptionDigest:e})=>`
|
|
16
16
|
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
17
17
|
<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#">
|
|
18
18
|
<e:EncryptionMethod Algorithm="${d(c)}">
|