filecat 7.21.2 → 7.22.0
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/build/dist/122.4dcdda2738126091bb48.js +1 -0
- package/build/dist/1317.4d1617ed6eddfd2960b5.js +1 -0
- package/build/dist/2334.9568f51c698d1e261092.js +1 -0
- package/build/dist/{4924.32129da284e5464bf078.js → 2543.c1df37b86fd6b03c3976.js} +2 -2
- package/build/dist/259.5dbfcbe6ecd5e8ce07ca.js +1 -0
- package/build/dist/2674.983f76fc32b01e807e4d.js +1 -0
- package/build/dist/3355.221b11ae8755cb58412f.js +1 -0
- package/build/dist/{3402.30e70a3fe5d2c355bae5.js → 3402.913056b796b3aa4dfd5f.js} +1 -1
- package/build/dist/4091.4ec37d360601d3f388ee.js +1 -0
- package/build/dist/4564.d7a5595346660e89760b.js +2 -0
- package/build/dist/4564.d7a5595346660e89760b.js.LICENSE.txt +39 -0
- package/build/dist/4598.48aad39fc631a51c30d3.js +1 -0
- package/build/dist/47.423c0f43594850475f8d.js +1 -0
- package/build/dist/5272.16c3f9821799656a93a9.js +1 -0
- package/build/dist/6097.3b8a75477b58137301a6.js +1 -0
- package/build/dist/676.ad9fb1447bfc5b04b30a.js +1 -0
- package/build/dist/7181.031a335fc6a96a548882.js +1 -0
- package/build/dist/7678.b2889b36fac2b90a9061.js +1 -0
- package/build/dist/{8435.5cf0507f0dfbd7576fff.js → 8435.1f63fa3aa621962786b1.js} +1 -1
- package/build/dist/{8765.13b3b3db8cf2edb74526.js → 8765.800f703d3d31566267ab.js} +1 -1
- package/build/dist/9202.acca2abe478020a45f13.js +1 -0
- package/build/dist/9260.2f474cb25f7647cb995a.js +1 -0
- package/build/dist/{9546.cd3b1747ad87bbd7ccc4.js → 9546.2dc17877ae589e21d6d2.js} +1 -1
- package/build/dist/9765.15869054c7b8e56ccc76.js +1 -0
- package/build/dist/991.2ff5a3ada566cb075df6.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.19ecdddaf894b36f1a47.js +2 -0
- package/build/main.js +1 -1
- package/package.json +5 -1
- package/build/dist/2334.8944eba9ea6bea2c873b.js +0 -1
- package/build/dist/2543.a6ee7f78b6f447ccae9f.js +0 -1
- package/build/dist/259.ed90168189edc15b3ea6.js +0 -1
- package/build/dist/2674.26ef7b92f7a50dde4275.js +0 -1
- package/build/dist/3355.70ffd73778049aa73d5c.js +0 -1
- package/build/dist/3528.f4bf3684610c3ce28c08.js +0 -1
- package/build/dist/4091.bbca4ee92e5d078ee770.js +0 -1
- package/build/dist/4598.6528d76c619352e7e1f3.js +0 -1
- package/build/dist/47.0ad0f7d1c95e6691b317.js +0 -1
- package/build/dist/5272.124204f2cb80d69e8561.js +0 -1
- package/build/dist/5877.afb89fcd6cbae1ab8e39.js +0 -1
- package/build/dist/6097.98ee6ec678fafcc2c2ba.js +0 -1
- package/build/dist/676.4671c5b267b93fd2112d.js +0 -1
- package/build/dist/7181.2403d6d75f9d4ea6917d.js +0 -1
- package/build/dist/7678.5769d70f52981f9434d1.js +0 -1
- package/build/dist/8358.1d1c09cc6b9185e388a2.js +0 -1
- package/build/dist/9260.72cae497ae765cc00d54.js +0 -1
- package/build/dist/9765.2f0daa101ea2bc02379a.js +0 -1
- package/build/dist/main.f512bdab9a0595432be0.js +0 -2
- /package/build/dist/{4924.32129da284e5464bf078.js.LICENSE.txt → 2543.c1df37b86fd6b03c3976.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.f512bdab9a0595432be0.js.LICENSE.txt → main.19ecdddaf894b36f1a47.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 4564.d7a5595346660e89760b.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4564],{63963(t,e,n){n.d(e,{A:()=>C});var i=n(87818),r=n(89596);function s(t){return"number"==typeof t&&Object.is(t,-0)?"-0":String(t)}function o(t){return s(t).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function a(t){return s(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}function l(t){return s(t).replace(/"/g,""").replace(/'/g,"'")}var c=n(84545);function p(t,e,n,i,r){return n.sanitizeName?r(t)?t:n.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()}):t}function u(t,e){let n="";e.format&&(n="\n");const s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let t=0;t<e.stopNodes.length;t++){const n=e.stopNodes[t];"string"==typeof n?s.push(new i.A(n)):n instanceof i.A&&s.push(n)}const o=function(t,e){if(!Array.isArray(t)||0===t.length)return"1.0";const n=t[0];if("?xml"===m(n)){const t=n[":@"];if(t){const n=e.attributeNamePrefix+"version";if(t[n])return t[n]}}return"1.0"}(t,e),a=(0,c.fH)("qName",{xmlVersion:o});return h(t,e,n,new r.A,s,a)}function h(t,e,n,i,r,l){let c="",u=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(null!=t){let n=s(t);return n=x(n,e),n}return""}for(let g=0;g<t.length;g++){const v=t[g],A=m(v);if(void 0===A)continue;const N=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||"?"===A[0]?A:p(A,!1,e,i,l),w=d(v[":@"],e);i.push(N,w);const E=b(i,r);if(N===e.textNodeName){let t=v[A];E||(t=e.tagValueProcessor(N,t),t=x(t,e)),t=s(t),u&&(c+=n),c+=t,u=!1,i.pop();continue}if(N===e.cdataPropName){u&&(c+=n);c+=`<![CDATA[${a(v[A][0][e.textNodeName])}]]>`,u=!1,i.pop();continue}if(N===e.commentPropName){c+=n+`\x3c!--${o(v[A][0][e.textNodeName])}--\x3e`,u=!0,i.pop();continue}if("?"===N[0]){c+=("?xml"===N?"":n)+`<${N}${y(v[":@"],e,E,i,l)}?>`,u=!0,i.pop();continue}let S=n;""!==S&&(S+=e.indentBy);const C=n+`<${N}${y(v[":@"],e,E,i,l)}`;let T;T=E?f(v[A],e):h(v[A],e,S,i,r,l),-1!==e.unpairedTags.indexOf(N)?e.suppressUnpairedNode?c+=C+">":c+=C+"/>":T&&0!==T.length||!e.suppressEmptyNode?T&&T.endsWith(">")?c+=C+`>${T}${n}</${N}>`:(c+=C+">",T&&""!==n&&(T.includes("/>")||T.includes("</"))?c+=n+e.indentBy+T+n:c+=T,c+=`</${N}>`):c+=C+"/>",u=!0,i.pop()}return c}function d(t,e){if(!t||e.ignoreAttributes)return null;const n={};let i=!1;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;n[r.startsWith(e.attributeNamePrefix)?r.substr(e.attributeNamePrefix.length):r]=l(t[r]),i=!0}return i?n:null}function f(t,e){if(!Array.isArray(t))return null!=t?s(t):"";let n="";for(let i=0;i<t.length;i++){const r=t[i],o=m(r);if(o===e.textNodeName)n+=s(r[o]);else if(o===e.cdataPropName)n+=r[o][0][e.textNodeName];else if(o===e.commentPropName)n+=r[o][0][e.textNodeName];else{if(o&&"?"===o[0])continue;if(o){const t=g(r[":@"],e),i=f(r[o],e);i&&0!==i.length?n+=`<${o}${t}>${i}</${o}>`:n+=`<${o}${t}/>`}}}return n}function g(t,e){let n="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let r=t[i];!0===r&&e.suppressBooleanAttributes?n+=` ${i.substr(e.attributeNamePrefix.length)}`:n+=` ${i.substr(e.attributeNamePrefix.length)}="${l(r)}"`}return n}function m(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];if(Object.prototype.hasOwnProperty.call(t,i)&&":@"!==i)return i}}function y(t,e,n,i,r){let s="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const a=o.substr(e.attributeNamePrefix.length),c=n?a:p(a,!0,e,i,r);let u;n?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=x(u,e)),!0===u&&e.suppressBooleanAttributes?s+=` ${c}`:s+=` ${c}="${l(u)}"`}return s}function b(t,e){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function x(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){const i=e.entities[n];t=t.replace(i.regex,i.val)}return t}const v={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function A(t){if(this.options=Object.assign({},v,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(t=>"string"==typeof t&&t.startsWith("*.")?".."+t.substring(2):t)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let t=0;t<this.options.stopNodes.length;t++){const e=this.options.stopNodes[t];"string"==typeof e?this.stopNodeExpressions.push(new i.A(e)):e instanceof i.A&&this.stopNodeExpressions.push(e)}var e;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=S),this.processTextOrObjNode=w,this.options.format?(this.indentate=E,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function N(t,e,n,i,r){return n.sanitizeName?r(t)?t:n.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()}):t}function w(t,e,n,i,r){const s=this.extractAttributes(t);i.push(e,s);if(this.checkStopNode(i)){const r=this.buildRawContent(t),s=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(r,e,s,n)}const o=this.j2x(t,n+1,i,r);return i.pop(),"?"===e[0]?this.buildTextValNode("",e,o.attrStr,n,i):void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,n,i):this.buildObjectNode(o.val,e,o.attrStr,n)}function E(t){return this.options.indentBy.repeat(t)}function S(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}A.prototype.build=function(t){if(this.options.preserveOrder)return u(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});const e=new r.A,n=function(t,e){const n=t["?xml"];if(n&&"object"==typeof n){if(e.attributesGroupName&&n[e.attributesGroupName]){const t=n[e.attributesGroupName][e.attributeNamePrefix+"version"];if(t)return t}const t=n[e.attributeNamePrefix+"version"];if(t)return t}return"1.0"}(t,this.options),i=(0,c.fH)("qName",{xmlVersion:n});return this.j2x(t,0,e,i).val}},A.prototype.j2x=function(t,e,n,i){let r="",o="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const a=this.options.jPath?n.toString():n,l=this.checkStopNode(n);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;const p=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||"?"===c[0]?c:N(c,!1,this.options,n,i);if(void 0===t[c])this.isAttribute(c)&&(o+="");else if(null===t[c])this.isAttribute(c)||p===this.options.cdataPropName||p===this.options.commentPropName?o+="":"?"===p[0]?o+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(t[c]instanceof Date)o+=this.buildTextValNode(t[c],p,"",e,n);else if("object"!=typeof t[c]){const u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,a)){const e=N(u,!0,this.options,n,i);r+=this.buildAttrPairStr(e,s(t[c]),l)}else if(!u)if(c===this.options.textNodeName){let e=this.options.tagValueProcessor(c,s(t[c]));o+=this.replaceEntitiesValue(e)}else{n.push(p);const i=this.checkStopNode(n);if(n.pop(),i){const n=s(t[c]);o+=""===n?this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:this.indentate(e)+"<"+p+">"+n+"</"+p+this.tagEndChar}else o+=this.buildTextValNode(t[c],p,"",e,n)}}else if(Array.isArray(t[c])){const r=t[c].length;let a="",l="";for(let u=0;u<r;u++){const r=t[c][u];if(void 0===r);else if(null===r)"?"===p[0]?o+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if("object"==typeof r)if(this.options.oneListGroup){n.push(p);const t=this.j2x(r,e+1,n,i);n.pop(),a+=t.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(l+=t.attrStr)}else a+=this.processTextOrObjNode(r,p,e,n,i);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(p,r);t=this.replaceEntitiesValue(t),t=s(t),a+=t}else{n.push(p);const t=this.checkStopNode(n);if(n.pop(),t){const t=s(r);a+=""===t?this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:this.indentate(e)+"<"+p+">"+t+"</"+p+this.tagEndChar}else a+=this.buildTextValNode(r,p,"",e,n)}}this.options.oneListGroup&&(a=this.buildObjectNode(a,p,l,e)),o+=a}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){const e=Object.keys(t[c]),o=e.length;for(let a=0;a<o;a++){const o=N(e[a],!0,this.options,n,i);r+=this.buildAttrPairStr(o,s(t[c][e[a]]),l)}}else o+=this.processTextOrObjNode(t[c],p,e,n,i)}return{attrStr:r,val:o}},A.prototype.buildAttrPairStr=function(t,e,n){return n||(e=this.options.attributeValueProcessor(t,s(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+l(e)+'"'},A.prototype.extractAttributes=function(t){if(!t||"object"!=typeof t)return null;const e={};let n=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const i=t[this.options.attributesGroupName];for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;e[t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t]=l(i[t]),n=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;const r=this.isAttribute(i);r&&(e[r]=l(t[i]),n=!0)}return n?e:null},A.prototype.buildRawContent=function(t){if("string"==typeof t)return t;if("object"!=typeof t||null===t)return String(t);if(void 0!==t[this.options.textNodeName])return t[this.options.textNodeName];let e="";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const i=t[n];if(n===this.options.textNodeName)e+=i;else if(Array.isArray(i)){for(let t of i)if("string"==typeof t||"number"==typeof t)e+=`<${n}>${t}</${n}>`;else if("object"==typeof t&&null!==t){const i=this.buildRawContent(t),r=this.buildAttributesForStopNode(t);e+=""===i?`<${n}${r}/>`:`<${n}${r}>${i}</${n}>`}}else if("object"==typeof i&&null!==i){const t=this.buildRawContent(i),r=this.buildAttributesForStopNode(i);e+=""===t?`<${n}${r}/>`:`<${n}${r}>${t}</${n}>`}else e+=`<${n}>${i}</${n}>`}return e},A.prototype.buildAttributesForStopNode=function(t){if(!t||"object"!=typeof t)return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){const n=t[this.options.attributesGroupName];for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;const i=t.startsWith(this.options.attributeNamePrefix)?t.substring(this.options.attributeNamePrefix.length):t,r=n[t];!0===r&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+l(r)+'"'}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;const i=this.isAttribute(n);if(i){const r=t[n];!0===r&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+l(r)+'"'}}return e},A.prototype.buildObjectNode=function(t,e,n,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+n+"?"+this.tagEndChar:this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar;if("?"===e[0])return this.indentate(i)+"<"+e+n+"?"+this.tagEndChar;{let r="</"+e+this.tagEndChar,s="";return"?"===e[0]&&(s="?",r=""),!n&&""!==n||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===s.length?this.indentate(i)+`\x3c!--${o(t)}--\x3e`+this.newLine:this.indentate(i)+"<"+e+n+s+this.tagEndChar+t+this.indentate(i)+r:this.indentate(i)+"<"+e+n+s+">"+t+r}},A.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},A.prototype.checkStopNode=function(t){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(t.matches(this.stopNodeExpressions[e]))return!0;return!1},A.prototype.buildTextValNode=function(t,e,n,i,r){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName){const e=a(t);return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine}if(!1!==this.options.commentPropName&&e===this.options.commentPropName){const e=o(t);return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine}if("?"===e[0])return this.indentate(i)+"<"+e+n+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(e,t);return r=this.replaceEntitiesValue(r),r=s(r),""===r?this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+n+">"+r+"</"+e+this.tagEndChar}},A.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t};const C=A},55921(t,e,n){n.d(e,{A:()=>Jt});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("^"+("["+i+"]["+(i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*")+"$");const s=function(t){const e=r.exec(t);return!(null==e)};const o=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],a=["__proto__","constructor","prototype"],l=t=>o.includes(t)?"__"+t:t,c={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:l};function p(t,e){if("string"!=typeof t)return;const n=t.toLowerCase();if(o.some(t=>n===t.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(a.some(t=>n===t.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function u(t,e){return"boolean"==typeof t?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof t&&null!==t?{enabled:!1!==t.enabled,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:u(!0)}const h=function(t){const e=Object.assign({},c,t),n=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(const{value:t,name:e}of n)t&&p(t,e);return null===e.onDangerousProperty&&(e.onDangerousProperty=l),e.processEntities=u(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(t=>"string"==typeof t&&t.startsWith("*.")?".."+t.substring(2):t)),e};let d;d="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class f{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t,e){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),this.addStartIndex(e)}addStartIndex(t){void 0!==t&&(this.child[this.child.length-1][d]={startIndex:t})}addEndIndex(t){const e=this.child[this.child.length-1];void 0!==e&&void 0!==e[d]&&void 0===e[d].endIndex&&(e[d].endIndex=t)}static getMetaDataSymbol(){return d}}var g=n(84545);class m{constructor(t,e){this.suppressValidationErr=!t,this.options=t,this.xmlVersion=e||1}setXmlVersion(t=1){this.xmlVersion=t}readDocType(t,e){const n=Object.create(null);let i=0;if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let r=1,s=!1,o=!1,a=null,l="";for(;e<t.length;e++)if(null===a)if(s||o||'"'!==t[e]&&"'"!==t[e])if("<"!==t[e]||o)if(">"===t[e]){if(o?"-"===t[e-1]&&"-"===t[e-2]&&(o=!1,r--):r--,0===r)break}else"["===t[e]?s=!0:l+=t[e];else{if(s&&b(t,"!ENTITY",e)){let r,s;if(e+=7,[r,s,e]=this.readEntityExp(t,e+1,this.suppressValidationErr),-1===s.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[r]=s,i++}}else if(s&&b(t,"!ELEMENT",e)){e+=8;const{index:n}=this.readElementExp(t,e+1);e=n}else if(s&&b(t,"!ATTLIST",e))e+=8;else if(s&&b(t,"!NOTATION",e)){e+=9;const{index:n}=this.readNotationExp(t,e+1,this.suppressValidationErr);e=n}else{if(!b(t,"!--",e))throw new Error("Invalid DOCTYPE");o=!0}r++,l=""}else a=t[e],l+=t[e];else t[e]===a&&(a=null),l+=t[e];if(null!==a||0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}readEntityExp(t,e){const n=e=y(t,e);for(;e<t.length&&!/\s/.test(t[e])&&'"'!==t[e]&&"'"!==t[e];)e++;let i=t.substring(n,e);if(x(i,{xmlVersion:this.xmlVersion}),e=y(t,e),!this.suppressValidationErr){if("SYSTEM"===t.substring(e,e+6).toUpperCase())throw new Error("External entities are not supported");if("%"===t[e])throw new Error("Parameter entities are not supported")}let r="";if([e,r]=this.readIdentifierVal(t,e,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&r.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${r.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,r,--e]}readNotationExp(t,e){const n=e=y(t,e);for(;e<t.length&&!/\s/.test(t[e]);)e++;let i=t.substring(n,e);!this.suppressValidationErr&&x(i,{xmlVersion:this.xmlVersion}),e=y(t,e);const r=t.substring(e,e+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==r&&"PUBLIC"!==r)throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);e+=r.length,e=y(t,e);let s=null,o=null;if("PUBLIC"===r)[e,s]=this.readIdentifierVal(t,e,"publicIdentifier"),'"'!==t[e=y(t,e)]&&"'"!==t[e]||([e,o]=this.readIdentifierVal(t,e,"systemIdentifier"));else if("SYSTEM"===r&&([e,o]=this.readIdentifierVal(t,e,"systemIdentifier"),!this.suppressValidationErr&&!o))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:s,systemIdentifier:o,index:--e}}readIdentifierVal(t,e,n){let i="";const r=t[e];if('"'!==r&&"'"!==r)throw new Error(`Expected quoted string, found "${r}"`);const s=++e;for(;e<t.length&&t[e]!==r;)e++;if(i=t.substring(s,e),t[e]!==r)throw new Error(`Unterminated ${n} value`);return[++e,i]}readElementExp(t,e){const n=e=y(t,e);for(;e<t.length&&!/\s/.test(t[e]);)e++;let i=t.substring(n,e);if(!this.suppressValidationErr&&!(0,g.fG)(i,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid element name: "${i}"`);let r="";if("E"===t[e=y(t,e)]&&b(t,"MPTY",e))e+=4;else if("A"===t[e]&&b(t,"NY",e))e+=2;else if("("===t[e]){const n=++e;for(;e<t.length&&")"!==t[e];)e++;if(r=t.substring(n,e),")"!==t[e])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${t[e]}"`);return{elementName:i,contentModel:r.trim(),index:e}}readAttlistExp(t,e){let n=e=y(t,e);for(;e<t.length&&!/\s/.test(t[e]);)e++;let i=t.substring(n,e);for(x(i,{xmlVersion:this.xmlVersion}),n=e=y(t,e);e<t.length&&!/\s/.test(t[e]);)e++;let r=t.substring(n,e);if(!x(r,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid attribute name: "${r}"`);e=y(t,e);let s="";if("NOTATION"===t.substring(e,e+8).toUpperCase()){if(s="NOTATION","("!==t[e=y(t,e+=8)])throw new Error(`Expected '(', found "${t[e]}"`);e++;let n=[];for(;e<t.length&&")"!==t[e];){const i=e;for(;e<t.length&&"|"!==t[e]&&")"!==t[e];)e++;let r=t.substring(i,e);if(r=r.trim(),!x(r,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid notation name: "${r}"`);n.push(r),"|"===t[e]&&(e++,e=y(t,e))}if(")"!==t[e])throw new Error("Unterminated list of notations");e++,s+=" ("+n.join("|")+")"}else{const n=e;for(;e<t.length&&!/\s/.test(t[e]);)e++;s+=t.substring(n,e);const i=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!i.includes(s.toUpperCase()))throw new Error(`Invalid attribute type: "${s}"`)}e=y(t,e);let o="";return"#REQUIRED"===t.substring(e,e+8).toUpperCase()?(o="#REQUIRED",e+=8):"#IMPLIED"===t.substring(e,e+7).toUpperCase()?(o="#IMPLIED",e+=7):[e,o]=this.readIdentifierVal(t,e,"ATTLIST"),{elementName:i,attributeName:r,attributeType:s,defaultValue:o,index:e}}}const y=(t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function b(t,e,n){for(let i=0;i<e.length;i++)if(e[i]!==t[n+i+1])return!1;return!0}function x(t,e){if((0,g.fG)(t,{xmlVersion:e}))return t;throw new Error(`Invalid entity name ${t}`)}const v=[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032],A=new Map,N=1632,w=new Uint8Array(63904).fill(255);for(const t of v)for(let e=0;e<10;e++){const n=t+e;n<=65535?w[n-N]=e:A.set(n,e)}const E=new Set([8722,65293,65123]);const S=function(t){if("string"!=typeof t)return t;const e=t.length;if(0===e)return t;let n=-1;for(let i=0;i<e;i++){const r=t.charCodeAt(i);if(!(r>=48&&r<=57||45===r))if(r<N){if(E.has(r)){n=i;break}}else if(r>=55296&&r<=56319){if(i+1<e){const e=t.charCodeAt(i+1);if(e>=56320&&e<=57343){const t=65536+(r-55296<<10)+(e-56320);if(A.has(t)){n=i;break}}}}else if(255!==w[r-N]||E.has(r)){n=i;break}}if(-1===n)return t;const i=[];n>0&&i.push(t.slice(0,n));for(let r=n;r<e;r++){const n=t.charCodeAt(r);if(n>=48&&n<=57||45===n){i.push(t[r]);continue}if(n<N){i.push(E.has(n)?"-":t[r]);continue}if(n>=55296&&n<=56319){if(r+1<e){const e=t.charCodeAt(r+1);if(e>=56320&&e<=57343){const t=65536+(n-55296<<10)+(e-56320),s=A.get(t);if(void 0!==s){i.push(String.fromCharCode(s+48)),r++;continue}}}i.push(t[r]);continue}if(E.has(n)){i.push("-");continue}const s=w[n-N];i.push(255!==s?String.fromCharCode(s+48):t[r])}return i.join("")},C=/^[-+]?0x[a-fA-F0-9]+$/,T=/^0b[01]+$/,k=/^0o[0-7]+$/,O=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,I={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original",unicode:!1};function $(t,e={}){if(e=Object.assign({},I,e),!t||"string"!=typeof t)return t;let n=t.trim();if(0===n.length)return t;if(void 0!==e.skipLike&&e.skipLike.test(n))return t;if("0"===n)return 0;if(e.unicode&&(n=S(n),"0"===n))return 0;if(e.hex&&C.test(n))return j(n,16);if(e.binary&&T.test(n))return j(n,2);if(e.octal&&k.test(n))return j(n,8);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(t,e,n){if(!n.eNotation)return t;const i=e.match(_);if(i){let r=i[1]||"";const s=-1===i[3].indexOf("e")?"E":"e",o=i[2],a=r?e[o.length+1]===s:e[o.length]===s;return o.length>1&&a?t:(1!==o.length||!i[3].startsWith(`.${s}`)&&i[3][0]!==s)&&o.length>0?n.leadingZeros&&!a?Number(e):t:Number(e)}return t}(t,n,e);{const i=O.exec(n);if(i){const r=i[1]||"",s=i[2];let o=function(t){if(t&&-1!==t.indexOf(".")){let e=t.length;for(;e>0&&48===t.charCodeAt(e-1);)e--;return"."===(t=t.slice(0,e))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substring(0,t.length-1)),t}return t}(i[3]);const a=r?"."===n[s.length+1]:"."===n[s.length];if(!e.leadingZeros&&(s.length>1||1===s.length&&!a))return t;{const i=Number(n),a=String(i);if(0===i)return i;if(-1!==a.search(/[eE]/))return e.eNotation?i:t;if(-1!==n.indexOf("."))return"0"===a||a===o||a===`${r}${o}`?i:t;let l=s?o:n;return s?l===a||r+l===a?i:t:l===a||l===r+a?i:t}}return t}}{const i=Number(n);return Number.isNaN(i)?t:function(t,e,n){const i=e===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return i?"Infinity":"-Infinity";default:return t}}(t,i,e)}}const _=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function j(t,e){const n=t.trim();if(2!==e&&8!==e||(t=n.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}var P=n(89596),F=n(87818);class D{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(t){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(t.pattern))return this;if(this._patterns.add(t.pattern),t.hasDeepWildcard()){const e=t.segments[t.segments.length-1];if(e&&"deep-wildcard"!==e.type&&"*"!==e.tag){const n=e.tag;this._deepByTerminalTag.has(n)||this._deepByTerminalTag.set(n,[]),this._deepByTerminalTag.get(n).push(t)}else this._deepWildcards.push(t);return this}const e=t.length,n=t.segments[t.segments.length-1],i=n?.tag;if(i&&"*"!==i){const n=`${e}:${i}`;this._byDepthAndTag.has(n)||this._byDepthAndTag.set(n,[]),this._byDepthAndTag.get(n).push(t)}else this._wildcardByDepth.has(e)||this._wildcardByDepth.set(e,[]),this._wildcardByDepth.get(e).push(t);return this}addAll(t){for(const e of t)this.add(e);return this}has(t){return this._patterns.has(t.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(t){return null!==this.findMatch(t)}findMatch(t){const e=t.getDepth(),n=t.getCurrentTag(),i=`${e}:${n}`,r=this._byDepthAndTag.get(i);if(r)for(let e=0;e<r.length;e++)if(t.matches(r[e]))return r[e];const s=this._wildcardByDepth.get(e);if(s)for(let e=0;e<s.length;e++)if(t.matches(s[e]))return s[e];const o=this._deepByTerminalTag.get(n);if(o)for(let e=0;e<o.length;e++)if(t.matches(o[e]))return o[e];for(let e=0;e<this._deepWildcards.length;e++)if(t.matches(this._deepWildcards[e]))return this._deepWildcards[e];return null}}const M={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"},L={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},R={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},q=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),V=new Set("!?\\\\/[]$%{}^&*()<>|+");function B(t){if("#"===t[0])throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(const e of t)if(V.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function U(...t){const e=Object.create(null);for(const n of t)if(n)for(const t of Object.keys(n)){const i=n[t];if("string"==typeof i)e[t]=i;else if(i&&"object"==typeof i&&void 0!==i.val){const n=i.val;"string"==typeof n&&(e[t]=n)}}return e}const z="external",G="base",W="all";const K=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Y=new Set([9,10,13]);class H{constructor(t={}){var e;this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof t.postCheck?t.postCheck:t=>t,this._limitTiers=(e=this._limit.applyLimitsTo??z)&&e!==z?e===W?new Set([W]):e===G?new Set([G]):Array.isArray(e)?new Set(e):new Set([z]):new Set([z]),this._numericAllowed=t.numericAllowed??!0,this._baseMap=U(L,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);const n=function(t){if(!t)return{xmlVersion:1,onLevel:K.allow,nullLevel:K.remove};const e=1.1===t.xmlVersion?1.1:1,n=K[t.onNCR]??K.allow,i=K[t.nullNCR]??K.remove;return{xmlVersion:e,onLevel:n,nullLevel:Math.max(i,K.remove)}}(t.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel,this._onExternalEntity="function"==typeof t.onExternalEntity?t.onExternalEntity:null,this._onInputEntity="function"==typeof t.onInputEntity?t.onInputEntity:null}_applyRegistrationHook(t,e,n,i){if(!t)return!0;const r=t(e,n);if(r===q.BLOCK)return!1;if(r===q.THROW)throw new Error(`[EntityDecoder] Registration of ${i} entity "&${e};" was rejected by hook`);return!0}setExternalEntities(t){if(t)for(const e of Object.keys(t))B(e);if(!this._onExternalEntity)return void(this._externalMap=U(t));const e=U(t),n=Object.create(null);for(const[t,i]of Object.entries(e))this._applyRegistrationHook(this._onExternalEntity,t,i,"external")&&(n[t]=i);this._externalMap=n}addExternalEntity(t,e){B(t),"string"==typeof e&&-1===e.indexOf("&")&&this._applyRegistrationHook(this._onExternalEntity,t,e,"external")&&(this._externalMap[t]=e)}addInputEntities(t){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity)return void(this._inputMap=U(t));const e=U(t),n=Object.create(null);for(const[t,i]of Object.entries(e))this._applyRegistrationHook(this._onInputEntity,t,i,"input")&&(n[t]=i);this._inputMap=n}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=1.1===t?1.1:1}decode(t){if("string"!=typeof t||0===t.length)return t;if(-1===t.indexOf("&"))return t;const e=t,n=[],i=t.length;let r=0,s=0;const o=this._maxTotalExpansions>0,a=this._maxExpandedLength>0,l=o||a;for(;s<i;){if(38!==t.charCodeAt(s)){s++;continue}let e=s+1;for(;e<i&&59!==t.charCodeAt(e)&&e-s<=32;)e++;if(e>=i||59!==t.charCodeAt(e)){s++;continue}const c=t.slice(s+1,e);if(0===c.length){s++;continue}let p,u;if(this._removeSet.has(c))p="",void 0===u&&(u=z);else{if(this._leaveSet.has(c)){s++;continue}if(35===c.charCodeAt(0)){const t=this._resolveNCR(c);if(void 0===t){s++;continue}p=t,u=G}else{const t=this._resolveName(c);p=t?.value,u=t?.tier}}if(void 0!==p){if(s>r&&n.push(t.slice(r,s)),n.push(p),r=e+1,s=r,l&&this._tierCounts(u)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(a){const t=p.length-(c.length+2);if(t>0&&(this._expandedLength+=t,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else s++}r<i&&n.push(t.slice(r));const c=0===n.length?t:n.join("");return this._postCheck(c,e)}_tierCounts(t){return!!this._limitTiers.has(W)||this._limitTiers.has(t)}_resolveName(t){return t in this._inputMap?{value:this._inputMap[t],tier:z}:t in this._externalMap?{value:this._externalMap[t],tier:z}:t in this._baseMap?{value:this._baseMap[t],tier:G}:void 0}_classifyNCR(t){return 0===t?this._ncrNullLevel:t>=55296&&t<=57343||1===this._ncrXmlVersion&&t>=1&&t<=31&&!Y.has(t)?K.remove:-1}_applyNCRAction(t,e,n){switch(t){case K.allow:return String.fromCodePoint(n);case K.remove:return"";case K.leave:return;case K.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${e}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(t){const e=t.charCodeAt(1);let n;if(n=120===e||88===e?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;const i=this._classifyNCR(n);if(!this._numericAllowed&&i<K.remove)return;const r=-1===i?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(r,t,n)}}const X=[{id:"sql-block-comment-open",description:"SQL block comment open: /* ... */ — unusual in legitimate user text",pattern:/\/\*/},{id:"sql-union-select",description:"UNION SELECT — most common SQL injection aggregation attack",pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:"sql-drop-table",description:"DROP TABLE — destructive DDL injection",pattern:/\bDROP\s{1,20}TABLE\b/i},{id:"sql-drop-database",description:"DROP DATABASE — destructive DDL injection",pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:"sql-insert-into",description:"INSERT INTO — data injection",pattern:/\bINSERT\s{1,20}INTO\b/i},{id:"sql-delete-from",description:"DELETE FROM — data deletion injection",pattern:/\bDELETE\s{1,20}FROM\b/i},{id:"sql-update-set",description:"UPDATE ... SET — data modification injection",pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:"sql-exec-xp",description:"EXEC xp_ — MSSQL extended stored procedure execution",pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:"sql-tautology-string",description:'Classic string tautology: \' OR \'1\'=\'1 or " OR "1"="1"',pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:"sql-tautology-numeric",description:"Numeric tautology: OR 1=1",pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:"sql-always-true-zero",description:"Numeric tautology: OR 0=0",pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:"sql-sleep-benchmark",description:"Time-based blind injection: SLEEP() or BENCHMARK()",pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:"sql-waitfor-delay",description:"MSSQL time-based blind injection: WAITFOR DELAY",pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:"sql-char-function",description:"CHAR() function — used to obfuscate injected strings",pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:"sql-information-schema",description:"INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",pattern:/\bINFORMATION_SCHEMA\b/i}],Z=[...X,{id:"sql-line-comment",description:"SQL line comment: -- followed by whitespace or end of string",pattern:/--(?:\s|$)/},{id:"sql-stacked-query",description:"Stacked queries: semicolon immediately followed by a SQL keyword",pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:"sql-hex-encoding",description:"Hex-encoded string injection: 0x41414141 style (MySQL)",pattern:/\b0x[0-9a-f]{4,}/i}],Q=Object.freeze({colon:":",Tab:"\t",NewLine:"\n"}),J=/&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;const tt=[{id:"html-script-open",description:"<script opening tag",pattern:/<script[\s>/]/i},{id:"html-script-close",description:"<\/script closing tag",pattern:/<\/script[\s>]/i},{id:"html-javascript-protocol",description:"javascript: URI scheme (with optional whitespace/encoding)",pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:"html-vbscript-protocol",description:"vbscript: URI scheme",pattern:/vbscript[\t\n\r ]*:/i},{id:"html-data-html",description:"data:text/html URI — can execute scripts in browsers",pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:"html-data-xhtml",description:"data:application/xhtml+xml URI",pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:"html-data-svg",description:"data:image/svg+xml URI — can execute scripts",pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:"html-inline-event-handler",description:"Inline event handler attributes: onclick=, onerror=, onload=, etc.",pattern:/\bon\w{1,30}\s*=/i},{id:"html-entity-obfuscated-script",description:"HTML-entity-encoded <script (e.g. <script or <script)",pattern:/(?:�*3[Cc];?|�*60;?|<)\s*script/i},{id:"html-entity-obfuscated-javascript",description:'HTML-entity-encoded javascript: (partial — catches common j or j for "j")',pattern:/(?:�*6[Aa];?|�*106;?)\s*(?:�*61;?|a)[\s\S]{0,80}script\s*:/i},{id:"html-style-expression",description:"CSS expression() — IE-era code execution in style attributes",pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:"html-object-embed",description:"<object or <embed tags that can load active content",pattern:/<(?:object|embed)[\s>/]/i},{id:"html-base-tag",description:"<base href= — can hijack all relative URLs on a page",pattern:/<base[\s>]/i},{id:"html-meta-refresh",description:'<meta http-equiv="refresh" — can redirect users',pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:"html-srcdoc",description:"srcdoc= attribute on iframes — embeds HTML that can run scripts",pattern:/srcdoc\s*=/i},{id:"html-iframe",description:"<iframe tag",pattern:/<iframe[\s>/]/i},{id:"html-form",description:"<form tag — can be used for phishing / credential harvesting injection",pattern:/<form[\s>/]/i}],et=[{id:"xml-cdata-injection",description:"CDATA section injection: <![CDATA[ breaks out of text node context",pattern:/<!\[CDATA\[/i},{id:"xml-cdata-close",description:"CDATA close sequence: ]]> can terminate an enclosing CDATA section",pattern:/\]\]>/},{id:"xml-processing-instruction",description:"XML processing instruction: <?xml-stylesheet or <?php etc.",pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:"xml-doctype-injection",description:"DOCTYPE declaration embedded in content — can define entities",pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:"xml-entity-system",description:"SYSTEM keyword — used in external entity declarations (XXE)",pattern:/\bSYSTEM\s+["']/i},{id:"xml-entity-public",description:"PUBLIC keyword — used in external entity declarations (XXE)",pattern:/\bPUBLIC\s+["']/i},{id:"xml-entity-declaration",description:"<!ENTITY declaration — defines entities, potential XXE or entity expansion",pattern:/<!ENTITY[\s%]/i},{id:"xml-billion-laughs",description:"Entity reference chaining / billion laughs: repeated &eX; style references",pattern:/(?:&\w{1,20};){3,}/},{id:"xml-namespace-confusion",description:"xmlns: attribute injection — can redefine namespaces to confuse parsers",pattern:/\bxmlns(?::\w{1,40})?\s*=/i},{id:"xml-comment-injection",description:"\x3c!-- comment injection — can hide content from some parsers",pattern:/<!--/},{id:"xml-comment-close",description:"--\x3e closes an enclosing XML comment",pattern:/-->/},{id:"xml-pi-close",description:"?> closes an enclosing processing instruction",pattern:/\?>/}],nt=[{id:"svg-script-element",description:"<script element inside SVG executes JavaScript",pattern:/<script[\s>/]/i},{id:"svg-xlink-href-javascript",description:"xlink:href with javascript: — classic SVG XSS via <a> or <use>",pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-href-javascript",description:"href= with javascript: in SVG context (<a>, <animate>, etc.)",pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-foreignobject",description:"<foreignObject embeds HTML inside SVG — can execute scripts",pattern:/<foreignObject[\s>/]/i},{id:"svg-use-external",description:"<use xlink:href or href pointing to external resource (non-fragment URL)",pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:"svg-animate-href",description:'<animate attributeName="href" — can dynamically change href to javascript:',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:"svg-animate-xlinkhref",description:'<animate attributeName="xlink:href"',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:"svg-set-javascript",description:'<set to="javascript:..." — sets an attribute to a javascript: URI',pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-event-handler",description:"SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.",pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:"svg-handler-generic",description:"Generic on* handler catch-all for SVG attributes",pattern:/\bon\w{1,30}\s*=/i},{id:"svg-filter-feimage",description:"<feImage href= — filter primitive that can load external resources",pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:"svg-image-external",description:"<image xlink:href with http/https or javascript protocol",pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:"svg-style-javascript",description:"style= attribute containing javascript: (e.g. background:url(javascript:...))",pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],it=[{id:"shell-path-traversal-unix",description:"Unix path traversal: ../ — climbing the directory tree",pattern:/\.\.\//},{id:"shell-path-traversal-windows",description:"Windows path traversal: ..\\ — climbing the directory tree",pattern:/\.\.\\/},{id:"shell-path-traversal-encoded",description:"URL-encoded path traversal: %2e%2e or %2f variants",pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:"shell-null-byte",description:"Null byte injection: \\x00 or %00 — truncates strings in C-backed functions",pattern:/\x00|%00/},{id:"shell-semicolon",description:"Semicolon command separator: cmd1; cmd2",pattern:/;/},{id:"shell-pipe",description:"Pipe operator: cmd1 | cmd2",pattern:/\|/},{id:"shell-and-operator",description:"AND operator: cmd1 && cmd2",pattern:/&&/},{id:"shell-or-operator",description:"OR operator: cmd1 || cmd2",pattern:/\|\|/},{id:"shell-backtick",description:"Backtick command substitution: `cmd`",pattern:/`/},{id:"shell-dollar-paren",description:"Dollar-paren command substitution: $(cmd)",pattern:/\$\(/},{id:"shell-dollar-brace",description:"Dollar-brace variable expansion: ${var} — can be abused for injection",pattern:/\$\{/},{id:"shell-redirect-out",description:"Output redirection: cmd > file or cmd >> file",pattern:/>{1,2}/},{id:"shell-redirect-in",description:"Input redirection: cmd < file",pattern:/</},{id:"shell-newline-injection",description:"Newline injection: \\n or \\r — can inject new shell commands",pattern:/[\n\r]/},{id:"shell-glob-star",description:"Glob expansion: * or ? — can expand to unintended files",pattern:/[/\\][*?]/},{id:"shell-absolute-root",description:"Absolute root path injection: string starting with / or \\ (Windows UNC)",pattern:/^(?:\/|\\\\)/},{id:"shell-windows-drive",description:"Windows drive letter path injection: C:\\ or D:/",pattern:/^[a-zA-Z]:[/\\]/},{id:"shell-curl-wget",description:"curl/wget with URL or flags — can exfiltrate data or download payloads",pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],rt=[{id:"redos-nested-quantifier-plus",description:"Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",pattern:/\([^)]*\+[^)]*\)[+*]/},{id:"redos-nested-quantifier-star",description:"Nested * quantifier: (a*)* or (a*)+ — catastrophic backtracking",pattern:/\([^)]*\*[^)]*\)[*+]/},{id:"redos-nested-groups",description:"Doubly nested quantified groups: ((a+)+) — guaranteed catastrophic",pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:"redos-alternation-overlap",description:"Overlapping alternation under quantifier: (a|a)+ — ambiguous NFA paths",pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:"redos-star-plus-concat",description:"(x*x)+ pattern — triggers super-linear backtracking",pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:"redos-dot-star-greedy",description:"(.*){n,} or (.+){n,} — repeated greedy dot quantifiers",pattern:/\(\.[*+]\)\{?\d/},{id:"redos-large-repetition",description:"Very large fixed or range repetition count {1000,} or {1000,n} — denial of service via backtracking",pattern:/\{\d{4,}(?:,\d*)?\}/},{id:"redos-catastrophic-alternation",description:"Long alternation with many similar branches — polynomial backtracking risk",pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],st="[\"'\\s]*:",ot=[{id:"nosql-where-operator",description:"$where — executes arbitrary JavaScript server-side in MongoDB",pattern:new RegExp(`\\$where${st}`,"i")},{id:"nosql-ne-operator",description:'$ne — "not equal" operator used to bypass equality checks',pattern:new RegExp(`\\$ne${st}`,"i")},{id:"nosql-gt-operator",description:'$gt — "greater than" used to bypass password/value checks',pattern:new RegExp(`\\$gte?${st}`,"i")},{id:"nosql-lt-operator",description:'$lt / $lte — "less than" bypass variants',pattern:new RegExp(`\\$lte?${st}`,"i")},{id:"nosql-regex-operator",description:"$regex — can be used to extract data character by character (blind injection)",pattern:new RegExp(`\\$regex${st}`,"i")},{id:"nosql-or-operator",description:"$or — logical OR; used to create always-true conditions",pattern:new RegExp(`\\$or${st}\\s*\\[`,"i")},{id:"nosql-and-operator",description:"$and — logical AND operator injection",pattern:new RegExp(`\\$and${st}\\s*\\[`,"i")},{id:"nosql-nor-operator",description:"$nor — logical NOR operator injection",pattern:new RegExp(`\\$nor${st}\\s*\\[`,"i")},{id:"nosql-exists-operator",description:"$exists — can enumerate fields to determine schema",pattern:new RegExp(`\\$exists${st}`,"i")},{id:"nosql-in-operator",description:"$in — matches any value in a list; can enumerate values",pattern:new RegExp(`\\$in${st}\\s*\\[`,"i")},{id:"nosql-expr-operator",description:"$expr — allows aggregation expressions in queries (MongoDB 3.6+)",pattern:new RegExp(`\\$expr${st}`,"i")},{id:"nosql-function-operator",description:"$function — executes arbitrary JavaScript in MongoDB 4.4+",pattern:new RegExp(`\\$function${st}`,"i")},{id:"nosql-accumulator-operator",description:"$accumulator — custom aggregation with arbitrary JS execution",pattern:new RegExp(`\\$accumulator${st}`,"i")},{id:"nosql-proto-pollution",description:"__proto__ — prototype pollution via object key injection",pattern:/__proto__/},{id:"nosql-constructor-prototype",description:"constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)",pattern:/constructor[\s"':.,{\[]*prototype/i},{id:"nosql-proto-bracket",description:'["__proto__"] — bracket-notation prototype pollution',pattern:/\[["']__proto__["']\]/}],at=[{id:"log-crlf-injection",description:"CRLF injection: literal \\r or \\n embeds fake log lines",pattern:/[\r\n]/},{id:"log-url-encoded-crlf",description:"URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers",pattern:/%0[dDaA]/},{id:"log-unicode-newline",description:"Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",pattern:/[\u2028\u2029]/},{id:"log-log4shell-jndi",description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:"log-log4shell-obfuscated",description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:"log-log4j-lookup",description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:"log-ssti-double-brace",description:"SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.",pattern:/\{\{[\s\S]{0,80}\}\}/},{id:"log-ssti-hash-brace",description:"SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB",pattern:/#\{[\s\S]{0,80}\}/},{id:"log-ssti-dollar-brace",description:"SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:"log-ssti-percent-tag",description:"SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP",pattern:/<%=[\s\S]{0,80}%>/},{id:"log-null-byte",description:"Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers",pattern:/\x00|%00/},{id:"log-ansi-escape",description:"ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",pattern:/\x1b\[/}];tt.label="HTML",et.label="XML",nt.label="SVG",tt.decodeEntities=!0,et.decodeEntities=!0,nt.decodeEntities=!0,X.label="SQL",Z.label="SQL-STRICT",it.label="SHELL",rt.label="REDOS",ot.label="NOSQL",at.label="LOG";Object.freeze({HTML:tt,XML:et,SVG:nt,SQL:X,"SQL-STRICT":Z,SHELL:it,REDOS:rt,NOSQL:ot,LOG:at});function lt(t){if("string"!=typeof t)throw new TypeError("is-unsafe: first argument must be a string, got "+typeof t)}function ct(t){if(!(t instanceof RegExp)){if(!Array.isArray(t))throw new TypeError("is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: "+typeof t);if(0===t.length)throw new TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(t[0]))for(const e of t)if(!Array.isArray(e)||0===e.length)throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}}function pt(t){return t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null}}function ut(t,e){if(!e.decodeEntities)return null;const n=-1===(i=t).indexOf("&")?i:i.replace(J,(t,e,n,i)=>{if(void 0!==i)return Object.prototype.hasOwnProperty.call(Q,i)?Q[i]:t;const r=void 0!==e?parseInt(e,16):parseInt(n,10);return!Number.isFinite(r)||r>1114111?t:String.fromCodePoint(r)});var i;return n===t?null:n}function ht(t,e){const n=e.label??"CUSTOM",i=ut(t,e);for(const r of e)if(r.pattern.test(t)||null!==i&&r.pattern.test(i))return{context:n,id:r.id,description:r.description,pattern:r.pattern};return null}function dt(t,e){lt(t),ct(e);const{lists:n,regex:i}=pt(e);if(i)return i.test(t);for(const e of n)if(null!==ht(t,e))return!0;return!1}function ft(t,e){if(!t)return{};const n=e.attributesGroupName?t[e.attributesGroupName]:t;if(!n)return{};const i={};for(const t in n)if(t.startsWith(e.attributeNamePrefix)){i[t.substring(e.attributeNamePrefix.length)]=n[t]}else i[t]=n[t];return i}function gt(t){if(!t||"string"!=typeof t)return;const e=t.indexOf(":");if(-1!==e&&e>0){const n=t.substring(0,e);if("xmlns"!==n)return n}}class mt{constructor(t,e){var n;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=At,this.parseTextData=yt,this.resolveNameSpace=bt,this.buildAttributesMap=vt,this.isItStopNode=Ct,this.replaceEntitiesValue=Et,this.readStopNodeData=It,this.saveTextToParentTag=St,this.addChild=wt,this.ignoreAttributesFn="function"==typeof(n=this.options.ignoreAttributes)?n:Array.isArray(n)?t=>{for(const e of n){if("string"==typeof e&&t===e)return!0;if(e instanceof RegExp&&e.test(t))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let i={...L};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?i=this.options.htmlEntities:!0===this.options.htmlEntities&&(i={...R,...M}),this.entityDecoder=new H({namedEntities:{...i,...e},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:(t,e)=>dt(e,[tt,et])?q.BLOCK:q.ALLOW})),this.matcher=new P.A,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new D;const r=this.options.stopNodes;if(r&&r.length>0){for(let t=0;t<r.length;t++){const e=r[t];"string"==typeof e?this.stopNodeExpressionsSet.add(new F.A(e)):e instanceof F.A&&this.stopNodeExpressionsSet.add(e)}this.stopNodeExpressionsSet.seal()}}}function yt(t,e,n,i,r,s,o){const a=this.options;if(void 0!==t&&(a.trimValues&&!i&&(t=t.trim()),t.length>0)){o||(t=this.replaceEntitiesValue(t,e,n));const i=a.jPath?n.toString():n,l=a.tagValueProcessor(e,t,i,r,s);if(null==l)return t;if(typeof l!=typeof t||l!==t)return l;if(a.trimValues)return $t(t,a.parseTagValue,a.numberParseOptions);return t.trim()===t?$t(t,a.parseTagValue,a.numberParseOptions):t}}function bt(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}const xt=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function vt(t,e,n,i=!1){const r=this.options;if(!0===i||!0!==r.ignoreAttributes&&"string"==typeof t){const i=function(t,e){const n=[];let i=e.exec(t);for(;i;){const r=[];r.startIndex=e.lastIndex-i[0].length;const s=i.length;for(let t=0;t<s;t++)r.push(i[t]);n.push(r),i=e.exec(t)}return n}(t,xt),s=i.length,o={},a=new Array(s);let l=!1;const c={};for(let t=0;t<s;t++){const e=this.resolveNameSpace(i[t][1]),s=i[t][4];if(e.length&&void 0!==s){let i=s;r.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i,n,this.readonlyMatcher),a[t]=i,c[e]=i,l=!0}}l&&"object"==typeof e&&e.updateCurrent&&e.updateCurrent(c);const p=r.jPath?e.toString():this.readonlyMatcher;let u=!1;for(let t=0;t<s;t++){const e=this.resolveNameSpace(i[t][1]);if(this.ignoreAttributesFn(e,p))continue;let n=r.attributeNamePrefix+e;if(e.length)if(r.transformAttributeName&&(n=r.transformAttributeName(n)),n=jt(n,r),void 0!==i[t][4]){const i=a[t],s=r.attributeValueProcessor(e,i,p);o[n]=null==s?i:typeof s!=typeof i||s!==i?s:$t(i,r.parseAttributeValue,r.numberParseOptions),u=!0}else r.allowBooleanAttributes&&(o[n]=!0,u=!0)}if(!u)return;if(r.attributesGroupName&&!r.preserveOrder){const t={};return t[r.attributesGroupName]=o,t}return o}}const At=function(t){const e=this.options,n=e.captureMetaData?[]:void 0;t=t.replace(/\r\n?/g,e.captureMetaData?(t,e)=>(2===t.length&&n.push(e-n.length),"\n"):"\n");const i=new f("!xml");let r=i,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;const o=new m(e.processEntities),a=t.length;for(let l=0;l<a;l++){if("<"===t[l]){const c=t.charCodeAt(l+1);if(47===c){const o=Tt(t,">",l,"Closing Tag is not closed.");let a=t.substring(l+2,o).trim();if(e.removeNSPrefix){const t=a.indexOf(":");-1!==t&&(a=a.substr(t+1))}a=_t(e.transformTagName,a,"",e).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));const c=this.matcher.getCurrentTag();if(a&&e.unpairedTagsSet.has(a))throw new Error(`Unpaired tag can not be used as closing tag: </${a}>`);c&&e.unpairedTagsSet.has(c)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||i,e.captureMetaData&&r&&r.addEndIndex(Nt(o+1,n)),s="",l=o}else if(63===c){let i=Ot(t,l,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);const a=this.buildAttributesMap(i.tagExp,this.matcher,i.tagName,!0);if(a){const t=a[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(t)||1),o.setXmlVersion(Number(t)||1)}if(e.ignoreDeclaration&&"?xml"===i.tagName||e.ignorePiTags);else{const t=new f(i.tagName);t.add(e.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&!0!==e.ignoreAttributes&&(t[":@"]=a);const s=e.captureMetaData?Nt(l,n):l;this.addChild(r,t,this.readonlyMatcher,s),e.captureMetaData&&r.addEndIndex(Nt(i.closeIndex+2,n))}l=i.closeIndex+1}else if(33===c&&45===t.charCodeAt(l+2)&&45===t.charCodeAt(l+3)){const n=Tt(t,"--\x3e",l+4,"Comment is not closed.");if(e.commentPropName){const i=t.substring(l+4,n-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(e.commentPropName,[{[e.textNodeName]:i}])}l=n}else if(33===c&&68===t.charCodeAt(l+2)){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;const e=o.readDocType(t,l);this.entityDecoder.addInputEntities(e.entities),l=e.i}else if(33===c&&91===t.charCodeAt(l+2)){const n=Tt(t,"]]>",l,"CDATA is not closed.")-2,i=t.substring(l+9,n);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let o=this.parseTextData(i,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==o&&(o=""),e.cdataPropName?r.add(e.cdataPropName,[{[e.textNodeName]:i}]):r.add(e.textNodeName,o),l=n+2}else{let o=Ot(t,l,e.removeNSPrefix);if(!o){const e=t.substring(Math.max(0,l-50),Math.min(a,l+50));throw new Error(`readTagExp returned undefined at position ${l}. Context: "${e}"`)}let c=o.tagName;const p=o.rawTagName;let u=o.tagExp,h=o.attrExpPresent,d=o.closeIndex;if(({tagName:c,tagExp:u}=_t(e.transformTagName,c,u,e)),e.strictReservedNames&&(c===e.commentPropName||c===e.cdataPropName||c===e.textNodeName||c===e.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&s&&"!xml"!==r.tagname&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));const g=r;g&&e.unpairedTagsSet.has(g.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(m=!0,"/"===c[c.length-1]?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),h=c!==u);let y,b=null,x={};y=gt(p),c!==i.tagname&&this.matcher.push(c,{},y),c!==u&&h&&(b=this.buildAttributesMap(u,this.matcher,c),b&&(x=ft(b,e))),c!==i.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const v=e.captureMetaData?Nt(l,n):l;if(this.isCurrentNodeStopNode){let i="";if(m)l=o.closeIndex;else if(e.unpairedTagsSet.has(c))l=o.closeIndex;else{const e=this.readStopNodeData(t,p,d+1);if(!e)throw new Error(`Unexpected end of ${p}`);l=e.i,i=e.tagContent}const s=new f(c);b&&(s[":@"]=b),s.add(e.textNodeName,i),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,s,this.readonlyMatcher,v),e.captureMetaData&&r.addEndIndex(Nt(l+1,n))}else{if(m){({tagName:c,tagExp:u}=_t(e.transformTagName,c,u,e));const t=new f(c);b&&(t[":@"]=b),this.addChild(r,t,this.readonlyMatcher,v),e.captureMetaData&&r.addEndIndex(Nt(d+1,n)),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(e.unpairedTagsSet.has(c)){const t=new f(c);b&&(t[":@"]=b),this.addChild(r,t,this.readonlyMatcher,v),e.captureMetaData&&r.addEndIndex(Nt(o.closeIndex+1,n)),this.matcher.pop(),this.isCurrentNodeStopNode=!1,l=o.closeIndex;continue}{const t=new f(c);if(this.tagsNodeStack.length>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),b&&(t[":@"]=b),this.addChild(r,t,this.readonlyMatcher,v),r=t}}s="",l=d}}}else s+=t[l]}return i.child};function Nt(t,e){let n=0,i=e.length;for(;n<i;){const r=Math.floor((n+i)/2);e[r]<t?n=r+1:i=r}return t+n}function wt(t,e,n,i){this.options.captureMetaData||(i=void 0);const r=this.options.jPath?n.toString():n,s=this.options.updateTag(e.tagname,r,e[":@"]);!1===s||("string"==typeof s?(e.tagname=s,t.addChild(e,i)):t.addChild(e,i))}function Et(t,e,n){const i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){const r=this.options.jPath?n.toString():n;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,r)))return t}if(i.tagFilter){const r=this.options.jPath?n.toString():n;if(!i.tagFilter(e,r))return t}return this.entityDecoder.decode(t)}function St(t,e,n,i){return t&&(void 0===i&&(i=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,i))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function Ct(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Tt(t,e,n,i){const r=t.indexOf(e,n);if(-1===r)throw new Error(i);return r+e.length-1}function kt(t,e,n,i){const r=t.indexOf(e,n);if(-1===r)throw new Error(i);return r}function Ot(t,e,n,i=">"){const r=function(t,e,n=">"){let i=0;const r=t.length,s=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1;let a="",l=e;for(let n=e;n<r;n++){const e=t.charCodeAt(n);if(i)e===i&&(i=0);else if(34===e||39===e)i=e;else if(e===s){if(-1===o)return a+=t.substring(l,n),{data:a,index:n};if(t.charCodeAt(n+1)===o)return a+=t.substring(l,n),{data:a,index:n}}else 9!==e||i||(a+=t.substring(l,n)+" ",l=n+1)}}(t,e+1,i);if(!r)return;let s=r.data;const o=r.index,a=s.search(/\s/);let l=s,c=!0;-1!==a&&(l=s.substring(0,a),s=s.substring(a+1).trimStart());const p=l;if(n){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),c=l!==r.data.substr(t+1))}return{tagName:l,tagExp:s,closeIndex:o,attrExpPresent:c,rawTagName:p}}function It(t,e,n){const i=n;let r=1,s=!1,o=-1;const a=t.length;for(;n<a;n++)if("<"===t[n]){const a=t.charCodeAt(n+1);if(47===a){const s=kt(t,">",n,`${e} is not closed`);if(t.substring(n+2,s).trim()===e&&(r--,0===r))return{tagContent:t.substring(i,n),i:s};n=s}else if(63===a){n=Tt(t,"?>",n+1,"StopNode is not closed.")}else if(33===a&&45===t.charCodeAt(n+2)&&45===t.charCodeAt(n+3)){n=Tt(t,"--\x3e",n+3,"StopNode is not closed.")}else if(33===a&&91===t.charCodeAt(n+2)){n=Tt(t,"]]>",n,"StopNode is not closed.")-2}else{const i=s?void 0:Ot(t,n,!1);if(i){i.tagName===e&&"/"!==i.tagExp[i.tagExp.length-1]&&r++,n=i.closeIndex}else{if(s=!0,o<n&&(o=t.indexOf(">",n),-1===o))return;const i=t.indexOf("<",n+1);if(-1===i||i>o){const i=t.substring(n+1,o),s=i.search(/\s/);(-1===s?i:i.substring(0,s))===e&&"/"!==i[i.length-1]&&r++,n=o}}}}}function $t(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&$(t,n)}return void 0!==t?t:""}function _t(t,e,n,i){if(t){const i=t(e);n===e&&(n=i),e=i}return{tagName:e=jt(e,i),tagExp:n}}function jt(t,e){if(a.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return o.includes(t)?e.onDangerousProperty(t):t}const Pt=f.getMetaDataSymbol();function Ft(t,e){if(!t||"object"!=typeof t)return{};if(!e)return t;const n={};for(const i in t)if(i.startsWith(e)){n[i.substring(e.length)]=t[i]}else n[i]=t[i];return n}function Dt(t,e,n,i){return Mt(t,e,n,i)}function Mt(t,e,n,i){let r;const s={};for(let o=0;o<t.length;o++){const a=t[o],l=Lt(a);if(void 0!==l&&l!==e.textNodeName){const t=Ft(a[":@"]||{},e.attributeNamePrefix);n.push(l,t)}if(l===e.textNodeName)void 0===r?r=a[l]:r+=""+a[l];else{if(void 0===l)continue;if(a[l]){let t=Mt(a[l],e,n,i);const r=qt(t,e);if(0===Object.keys(t).length&&e.alwaysCreateTextNode&&(t[e.textNodeName]=""),a[":@"]?Rt(t,a[":@"],i,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==a[Pt]&&"object"==typeof t&&null!==t&&(t[Pt]=a[Pt]),void 0!==s[l]&&Object.prototype.hasOwnProperty.call(s,l))Array.isArray(s[l])||(s[l]=[s[l]]),s[l].push(t);else{const n=e.jPath?i.toString():i;e.isArray(l,n,r)?s[l]=[t]:s[l]=t}void 0!==l&&l!==e.textNodeName&&n.pop()}}}return"string"==typeof r?r.length>0&&(s[e.textNodeName]=r):void 0!==r&&(s[e.textNodeName]=r),s}function Lt(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function Rt(t,e,n,i){if(e){const r=Object.keys(e),s=r.length;for(let o=0;o<s;o++){const s=r[o],a=s.startsWith(i.attributeNamePrefix)?s.substring(i.attributeNamePrefix.length):s,l=i.jPath?n.toString()+"."+a:n;i.isArray(s,l,!0,!0)?t[s]=[e[s]]:t[s]=e[s]}}}function qt(t,e){const{textNodeName:n}=e,i=Object.keys(t).length;return 0===i||!(1!==i||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}const Vt={allowBooleanAttributes:!1,unpairedTags:[]};function Bt(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function Ut(t,e){const n=e;for(;e<t.length;e++)if("?"==t[e]||" "==t[e]){const i=t.substr(n,e-n);if(e>5&&"xml"===i)return Yt("InvalidXml","XML declaration allowed only at the start of the document.",Zt(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}continue}return e}function zt(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}function Gt(t,e){let n="",i="",r=!1;for(;e<t.length;e++){if('"'===t[e]||"'"===t[e])""===i?i=t[e]:i!==t[e]||(i="");else if(">"===t[e]&&""===i){r=!0;break}n+=t[e]}return""===i&&{value:n,index:e,tagClosed:r}}function Wt(t,e){const n=function(t){const e=[],n=t.length;let i=0;for(;i<n;){const r=i;for(;i<n&&Bt(t[i]);)i++;if(i>=n)break;if("="===t[i]){i=r+1;continue}const s=t.slice(r,i),o=i;for(;i<n&&!Bt(t[i])&&"="!==t[i];)i++;const a=t.slice(o,i);let l,c,p,u=i;for(;u<n&&Bt(t[u]);)u++;u<n&&"="===t[u]&&(l=t.slice(i,u+1),i=u+1);let h=i;for(;h<n&&Bt(t[h]);)h++;if(h<n&&('"'===t[h]||"'"===t[h])){const e=h+1,n=t.indexOf(t[h],e);-1!==n&&(c=t[h],p=t.slice(e,n),i=n+1)}const d={startIndex:r};d[1]=s,d[2]=a,d[3]=l,d[4]=void 0!==c||void 0,d[5]=c,d[6]=p,e.push(d)}return e}(t),i={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return Yt("InvalidAttr","Attribute '"+n[t][2]+"' has no space in starting.",Qt(n[t]));if(void 0!==n[t][3]&&void 0===n[t][4])return Yt("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",Qt(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return Yt("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",Qt(n[t]));const r=n[t][2];if(!Ht(r))return Yt("InvalidAttr","Attribute '"+r+"' is an invalid name.",Qt(n[t]));if(Object.prototype.hasOwnProperty.call(i,r))return Yt("InvalidAttr","Attribute '"+r+"' is repeated.",Qt(n[t]));i[r]=1}return!0}function Kt(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function Yt(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function Ht(t){return s(t)}function Xt(t){return s(t)}function Zt(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function Qt(t){return t.startIndex+t[1].length}class Jt{constructor(t){this.externalEntities={},this.options=h(t)}parse(t,e){if("string"!=typeof t&&t.toString)t=t instanceof Uint8Array&&("undefined"==typeof Buffer||!Buffer.isBuffer(t))?new TextDecoder("utf-8",{ignoreBOM:!0}).decode(t):t.toString();else if("string"!=typeof t)throw new Error("XML data is accepted in String or Bytes[] form.");if(e){!0===e&&(e={});const n=function(t,e){e=Object.assign({},Vt,e);const n=[];let i=!1,r=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let s=0;s<t.length;s++)if("<"===t[s]&&"?"===t[s+1]){if(s+=2,s=Ut(t,s),s.err)return s}else{if("<"!==t[s]){if(Bt(t[s]))continue;return Yt("InvalidChar","char '"+t[s]+"' is not expected.",Zt(t,s))}{let o=s;if(s++,"!"===t[s]){s=zt(t,s);continue}{let a=!1;"/"===t[s]&&(a=!0,s++);let l="";for(;s<t.length&&">"!==t[s]&&" "!==t[s]&&"\t"!==t[s]&&"\n"!==t[s]&&"\r"!==t[s];s++)l+=t[s];if(l=l.trim(),"/"===l[l.length-1]&&(l=l.substring(0,l.length-1),s--),!Xt(l)){let e;return e=0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",Yt("InvalidTag",e,Zt(t,s))}const c=Gt(t,s);if(!1===c)return Yt("InvalidAttr","Attributes for '"+l+"' have open quote.",Zt(t,s));let p=c.value;if(s=c.index,"/"===p[p.length-1]){const n=s-p.length;p=p.substring(0,p.length-1);const r=Wt(p,e);if(!0!==r)return Yt(r.err.code,r.err.msg,Zt(t,n+r.err.line));i=!0}else if(a){if(!c.tagClosed)return Yt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Zt(t,s));if(p.trim().length>0)return Yt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Zt(t,o));if(0===n.length)return Yt("InvalidTag","Closing tag '"+l+"' has not been opened.",Zt(t,o));{const e=n.pop();if(l!==e.tagName){let n=Zt(t,e.tagStartPos);return Yt("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+l+"'.",Zt(t,o))}0==n.length&&(r=!0)}}else{const a=Wt(p,e);if(!0!==a)return Yt(a.err.code,a.err.msg,Zt(t,s-p.length+a.err.line));if(!0===r)return Yt("InvalidXml","Multiple possible root nodes found.",Zt(t,s));-1!==e.unpairedTags.indexOf(l)||n.push({tagName:l,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if("<"===t[s]){if("!"===t[s+1]){s++,s=zt(t,s);continue}if("?"!==t[s+1])break;if(s=Ut(t,++s),s.err)return s}else if("&"===t[s]){const e=Kt(t,s);if(-1==e)return Yt("InvalidChar","char '&' is not expected.",Zt(t,s));s=e}else if(!0===r&&!Bt(t[s]))return Yt("InvalidXml","Extra text at the end",Zt(t,s));"<"===t[s]&&s--}}}return i?1==n.length?Yt("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",Zt(t,n[0].tagStartPos)):!(n.length>0)||Yt("InvalidXml","Invalid '"+JSON.stringify(n.map(t=>t.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):Yt("InvalidXml","Start tag expected.",1)}(t,e);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new mt(this.options,this.externalEntities),i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:Dt(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}static getMetaDataSymbol(){return f.getMetaDataSymbol()}}},86940(t,e,n){function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}n.d(e,{F:()=>o});var r,s={exports:{}};r=s,function(){var t="input is invalid type",e="object"==typeof window,n=e?window:{};n.JS_MD5_NO_WINDOW&&(e=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(n=self);var i=!n.JS_MD5_NO_COMMON_JS&&r.exports,s=!n.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,o="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],l=[0,8,16,24],c=["hex","array","digest","arrayBuffer"];c.push("buffer"),c.push("base64");var p,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[];if(s){var d=new ArrayBuffer(68);p=new Uint8Array(d),h=new Uint32Array(d)}var f=Array.isArray;!n.JS_MD5_NO_NODE_JS&&f||(f=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var g=ArrayBuffer.isView;!s||!n.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&g||(g=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var m=function(e){var n=typeof e;if("string"===n)return[e,!0];if("object"!==n||null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!f(e)&&!g(e))throw new Error(t);return[e,!1]},y=function(t){return function(e){return new x(!0).update(e)[t]()}},b=function(t){return function(e,n){return new v(e,!0).update(n)[t]()}};function x(t){if(t)h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h,this.buffer8=p;else if(s){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function v(t,e){var n,i=m(t);if(t=i[0],i[1]){var r,s=[],o=t.length,a=0;for(n=0;n<o;++n)(r=t.charCodeAt(n))<128?s[a++]=r:r<2048?(s[a++]=192|r>>>6,s[a++]=128|63&r):r<55296||r>=57344?(s[a++]=224|r>>>12,s[a++]=128|r>>>6&63,s[a++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++n)),s[a++]=240|r>>>18,s[a++]=128|r>>>12&63,s[a++]=128|r>>>6&63,s[a++]=128|63&r);t=s}t.length>64&&(t=new x(!0).update(t).array());var l=[],c=[];for(n=0;n<64;++n){var p=t[n]||0;l[n]=92^p,c[n]=54^p}x.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}x.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=m(t);t=e[0];for(var n,i,r=e[1],o=0,a=t.length,c=this.blocks,p=this.buffer8;o<a;){if(this.hashed&&(this.hashed=!1,c[0]=c[16],c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),r)if(s)for(i=this.start;o<a&&i<64;++o)(n=t.charCodeAt(o))<128?p[i++]=n:n<2048?(p[i++]=192|n>>>6,p[i++]=128|63&n):n<55296||n>=57344?(p[i++]=224|n>>>12,p[i++]=128|n>>>6&63,p[i++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),p[i++]=240|n>>>18,p[i++]=128|n>>>12&63,p[i++]=128|n>>>6&63,p[i++]=128|63&n);else for(i=this.start;o<a&&i<64;++o)(n=t.charCodeAt(o))<128?c[i>>>2]|=n<<l[3&i++]:n<2048?(c[i>>>2]|=(192|n>>>6)<<l[3&i++],c[i>>>2]|=(128|63&n)<<l[3&i++]):n<55296||n>=57344?(c[i>>>2]|=(224|n>>>12)<<l[3&i++],c[i>>>2]|=(128|n>>>6&63)<<l[3&i++],c[i>>>2]|=(128|63&n)<<l[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),c[i>>>2]|=(240|n>>>18)<<l[3&i++],c[i>>>2]|=(128|n>>>12&63)<<l[3&i++],c[i>>>2]|=(128|n>>>6&63)<<l[3&i++],c[i>>>2]|=(128|63&n)<<l[3&i++]);else if(s)for(i=this.start;o<a&&i<64;++o)p[i++]=t[o];else for(i=this.start;o<a&&i<64;++o)c[i>>>2]|=t[o]<<l[3&i++];this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=a[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},x.prototype.hash=function(){var t,e,n,i,r,s,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(i=((i=(-1732584194^2004318071&t)+o[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+i|0)&(i^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,n=this.h2,e=((e+=((t=((t+=((i=this.h3)^e&(n^i))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(i=((i+=(n^t&(e^n))+o[1]-389564586)<<12|i>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+i|0)&(i^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(i^e&(n^i))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(i=((i+=(n^t&(e^n))+o[5]+1200080426)<<12|i>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+i|0)&(i^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(i^e&(n^i))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(i=((i+=(n^t&(e^n))+o[9]-1958414417)<<12|i>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+i|0)&(i^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(i^e&(n^i))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(i=((i+=(n^t&(e^n))+o[13]-40341101)<<12|i>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+i|0)&(i^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((i=((i+=(e^n&((t=((t+=(n^i&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|i>>>23)+t|0)^t&((n=((n+=(t^e&(i^t))+o[11]+643717713)<<14|n>>>18)+i|0)^i))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((i=((i+=(e^n&((t=((t+=(n^i&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|i>>>23)+t|0)^t&((n=((n+=(t^e&(i^t))+o[15]-660478335)<<14|n>>>18)+i|0)^i))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((i=((i+=(e^n&((t=((t+=(n^i&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|i>>>23)+t|0)^t&((n=((n+=(t^e&(i^t))+o[3]-187363961)<<14|n>>>18)+i|0)^i))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((i=((i+=(e^n&((t=((t+=(n^i&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|i>>>23)+t|0)^t&((n=((n+=(t^e&(i^t))+o[7]+1735328473)<<14|n>>>18)+i|0)^i))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((s=(i=((i+=((r=e^n)^(t=((t+=(r^i)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|i>>>21)+t|0)^t)^(n=((n+=(s^e)+o[11]+1839030562)<<16|n>>>16)+i|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((s=(i=((i+=((r=e^n)^(t=((t+=(r^i)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|i>>>21)+t|0)^t)^(n=((n+=(s^e)+o[7]-155497632)<<16|n>>>16)+i|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((s=(i=((i+=((r=e^n)^(t=((t+=(r^i)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|i>>>21)+t|0)^t)^(n=((n+=(s^e)+o[3]-722521979)<<16|n>>>16)+i|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((s=(i=((i+=((r=e^n)^(t=((t+=(r^i)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|i>>>21)+t|0)^t)^(n=((n+=(s^e)+o[15]+530742520)<<16|n>>>16)+i|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((i=((i+=(e^((t=((t+=(n^(e|~i))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|i>>>22)+t|0)^((n=((n+=(t^(i|~e))+o[14]-1416354905)<<15|n>>>17)+i|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((i=((i+=(e^((t=((t+=(n^(e|~i))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|i>>>22)+t|0)^((n=((n+=(t^(i|~e))+o[10]-1051523)<<15|n>>>17)+i|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((i=((i+=(e^((t=((t+=(n^(e|~i))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|i>>>22)+t|0)^((n=((n+=(t^(i|~e))+o[6]-1560198380)<<15|n>>>17)+i|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((i=((i+=(e^((t=((t+=(n^(e|~i))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|i>>>22)+t|0)^((n=((n+=(t^(i|~e))+o[2]+718787259)<<15|n>>>17)+i|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+i|0)},x.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3;return o[t>>>4&15]+o[15&t]+o[t>>>12&15]+o[t>>>8&15]+o[t>>>20&15]+o[t>>>16&15]+o[t>>>28&15]+o[t>>>24&15]+o[e>>>4&15]+o[15&e]+o[e>>>12&15]+o[e>>>8&15]+o[e>>>20&15]+o[e>>>16&15]+o[e>>>28&15]+o[e>>>24&15]+o[n>>>4&15]+o[15&n]+o[n>>>12&15]+o[n>>>8&15]+o[n>>>20&15]+o[n>>>16&15]+o[n>>>28&15]+o[n>>>24&15]+o[i>>>4&15]+o[15&i]+o[i>>>12&15]+o[i>>>8&15]+o[i>>>20&15]+o[i>>>16&15]+o[i>>>28&15]+o[i>>>24&15]},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255]},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.base64=function(){for(var t,e,n,i="",r=this.array(),s=0;s<15;)t=r[s++],e=r[s++],n=r[s++],i+=u[t>>>2]+u[63&(t<<4|e>>>4)]+u[63&(e<<2|n>>>6)]+u[63&n];return t=r[s],i+=u[t>>>2]+u[t<<4&63]+"=="},v.prototype=new x,v.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();x.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),x.prototype.finalize.call(this)}};var A=function(){var t=y("hex");t.create=function(){return new x},t.update=function(e){return t.create().update(e)};for(var e=0;e<c.length;++e){var n=c[e];t[n]=y(n)}return t}();A.md5=A,A.md5.hmac=function(){var t=b("hex");t.create=function(t){return new v(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;e<c.length;++e){var n=c[e];t[n]=b(n)}return t}(),i?r.exports=A:n.md5=A}();var o=i(s.exports)},20382(t,e,n){n.d(e,{Bh:()=>Qn,Hh:()=>Ye});var i=Symbol("NOT_RESOLVED");function r(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(t=>String(t)),representTagName:e.representTagName??(()=>t)}}function s(t,e){const n=void 0===e.finalize;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(t=>t),carrierIsResult:n,identify:e.identify,represent:e.represent??(t=>t),representTagName:e.representTagName??(()=>t)}}function o(t,e){const n=void 0===e.finalize;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(t=>t),carrierIsResult:n,identify:e.identify,represent:e.represent??(t=>t),representTagName:e.representTagName??(()=>t)}}var a=r("tag:yaml.org,2002:str",{resolve:t=>t,identify:t=>"string"==typeof t}),l=["","~","null","Null","NULL"],c=r("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:t=>-1!==l.indexOf(t)?null:i,identify:t=>null===t,represent:()=>"null"}),p=r("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(t,e)=>"null"===t||e&&""===t?null:i,identify:t=>null===t,represent:()=>"null"}),u=["","~","null","Null","NULL"],h=r("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:t=>-1!==u.indexOf(t)?null:i,identify:t=>null===t,represent:()=>"null"}),d=["true","True","TRUE"],f=["false","False","FALSE"],g=r("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:t=>-1!==d.indexOf(t)||-1===f.indexOf(t)&&i,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),m=["true"],y=["false"],b=r("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:t=>-1!==m.indexOf(t)||-1===y.indexOf(t)&&i,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),x=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],v=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],A=r("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:t=>-1!==x.indexOf(t)||-1===v.indexOf(t)&&i,identify:t=>"[object Boolean]"===Object.prototype.toString.call(t),represent:t=>t?"true":"false"}),N=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),w=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");var E=r("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(t,e){if(e){if(!w.test(t))return i}else if(!N.test(t))return i;const n=function(t){let e=t,n=1;return"-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b")?n*parseInt(e.slice(2),2):e.startsWith("0o")?n*parseInt(e.slice(2),8):e.startsWith("0x")?n*parseInt(e.slice(2),16):n*parseInt(e,10)}(t);return Number.isFinite(n)?n:i},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),S=new RegExp("^-?(?:0|[1-9][0-9]*)$"),C=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");var T=r("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(t,e){if(e){if(!C.test(t))return i}else if(!S.test(t))return i;const n=function(t){let e=t,n=1;return"-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b")?n*parseInt(e.slice(2),2):e.startsWith("0o")?n*parseInt(e.slice(2),8):e.startsWith("0x")?n*parseInt(e.slice(2),16):n*parseInt(e,10)}(t);return Number.isFinite(n)?n:i},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),k=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");var O=r("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:function(t){if(!k.test(t))return i;const e=function(t){let e=t.replace(/_/g,""),n=1;if("-"!==e[0]&&"+"!==e[0]||("-"===e[0]&&(n=-1),e=e.slice(1)),e.startsWith("0b"))return n*parseInt(e.slice(2),2);if(e.startsWith("0x"))return n*parseInt(e.slice(2),16);if(e.includes(":")){let t=0;for(const n of e.split(":"))t=60*t+Number(n);return n*t}return"0"!==e&&"0"===e[0]?n*parseInt(e,8):n*parseInt(e,10)}(t);return Number.isFinite(e)?e:i},identify:t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,represent:t=>t.toString(10)}),I=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),$=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var _=r("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(t){if(!I.test(t))return i;let e=t.toLowerCase();const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;const r=n*parseFloat(e);return Number.isFinite(r)||$.test(t)?r:i},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),j=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),P=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var F=r("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:function(t,e){if(e){if(!P.test(t))return i;let e=t.toLowerCase();const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;const r=n*parseFloat(e);return Number.isFinite(r)?r:i}if(!j.test(t))return i;const n=Number(t);return Number.isFinite(n)?n:i},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),D=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),M=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var L=r("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:function(t){if(!D.test(t))return i;let e=t.toLowerCase().replace(/_/g,"");const n="-"===e[0]?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),".inf"===e)return 1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===e)return NaN;let r=0;if(e.includes(":")){for(const t of e.split(":"))r=60*r+Number(t);r*=n}else r=n*parseFloat(e);return Number.isFinite(r)||M.test(t)?r:i},identify:t=>"number"==typeof t&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),represent:function(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";const e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}}),R=r("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(t,e)=>"<<"===t||e&&""===t?"<<":i,identify:()=>!1}),q=/^[A-Za-z0-9+/]*={0,2}$/;var V=r("tag:yaml.org,2002:binary",{resolve:function(t){const e=t.replace(/\s/g,"");if(e.length%4!=0||!q.test(e))return i;const n=atob(e),r=new Uint8Array(n.length);for(let t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},identify:t=>"[object Uint8Array]"===Object.prototype.toString.call(t),represent:function(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}}),B=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function z(t,e,n,i=0,r=0,s=0,o=0){const a=new Date(Date.UTC(t,e,n,i,r,s,o));return a.setUTCFullYear(t,e,n),a}var G=r("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:function(t){let e=B.exec(t);if(null===e&&(e=U.exec(t)),null===e)return i;const n=+e[1],r=+e[2]-1,s=+e[3];if(!e[4]){const t=z(n,r,s);return t.getUTCFullYear()!==n||t.getUTCMonth()!==r||t.getUTCDate()!==s?i:t}const o=+e[4],a=+e[5],l=+e[6];let c=0;if(o>23||a>59||l>59)return i;if(e[7]){let t=e[7].slice(0,3);for(;t.length<3;)t+="0";c=+t}const p=z(n,r,s,o,a,l,c);if(p.getUTCFullYear()!==n||p.getUTCMonth()!==r||p.getUTCDate()!==s)return i;if(e[9]){const t=+e[10],n=+(e[11]||0);if(t>23||n>59)return i;const r=6e4*(60*t+n);p.setTime(p.getTime()-("-"===e[9]?-r:r))}return p},identify:t=>t instanceof Date,represent:t=>t.toISOString()}),W=s("tag:yaml.org,2002:seq",{create:()=>[],addItem:(t,e)=>{t.push(e)},identify:Array.isArray});function K(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Y(t,e){const n={};for(const i of e)void 0!==t[i]&&(n[i]=t[i]);return n}var H=s("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(t,e)=>{let n;if(e instanceof Map){if(1!==e.size)return"cannot resolve an ordered map item";n=e.keys().next().value}else{if(!K(e))return"cannot resolve an ordered map item";{const t=Object.keys(e);if(1!==t.length)return"cannot resolve an ordered map item";n=t[0]}}return t.seen.has(n)?"duplicate key in ordered map":(t.seen.add(n),t.list.push(e),"")},finalize:t=>t.list,identify:()=>!1}),X=s("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(t,e)=>{if(e instanceof Map)return 1!==e.size?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if("[object Object]"!==Object.prototype.toString.call(e))return"cannot resolve a pairs item";const n=e,i=Object.keys(n);return 1!==i.length?"cannot resolve a pairs item":(t.push([i[0],n[i[0]]]),"")},identify:()=>!1}),Z=o("tag:yaml.org,2002:map",{create:()=>({}),identify:K,represent:t=>{const e=new Map;for(const n of Object.keys(t))e.set(n,t[n]);return e},addPair:(t,e,n)=>{if(null!==e&&"object"==typeof e)return"object-based map does not support complex keys";const i=String(e);return"__proto__"===i?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,""},has:(t,e)=>(null===e||"object"!=typeof e)&&Object.prototype.hasOwnProperty.call(t,String(e)),keys:t=>Object.keys(t),get:(t,e)=>{const n=String(e);return Object.prototype.hasOwnProperty.call(t,n)?t[n]:null}}),Q=o("tag:yaml.org,2002:set",{create:()=>new Set,identify:t=>t instanceof Set,represent:t=>{const e=new Map;for(const n of t)e.set(n,null);return e},addPair:(t,e,n)=>null!==n?"cannot resolve a set item":(t.add(e),""),has:(t,e)=>t.has(e),keys:t=>t.keys(),get:()=>null});var J=class t{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const e=function(t){const e=[];for(const n of t){let t=e.length;for(let i=0;i<e.length;i++){const r=e[i];if(r.nodeKind===n.nodeKind&&r.tagName===n.tagName&&r.matchByTagPrefix===n.matchByTagPrefix){t=i;break}}e[t]=n}return e}(t),n=[],i={scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)},r={scalar:[],sequence:[],mapping:[]};for(const t of e){if("scalar"===t.nodeKind&&t.implicit){if(t.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(t)}switch(t.nodeKind){case"scalar":t.matchByTagPrefix?r.scalar.push(t):i.scalar[t.tagName]=t;break;case"sequence":t.matchByTagPrefix?r.sequence.push(t):i.sequence[t.tagName]=t;break;case"mapping":t.matchByTagPrefix?r.mapping.push(t):i.mapping[t.tagName]=t}}const s=n.filter(t=>null===t.implicitFirstChars),o=new Set;for(const t of n)if(null!==t.implicitFirstChars)for(const e of t.implicitFirstChars)o.add(e);const a=new Map;for(const t of o)a.set(t,n.filter(e=>null===e.implicitFirstChars||-1!==e.implicitFirstChars.indexOf(t)));const l=i.scalar["tag:yaml.org,2002:str"];if(!l)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=e,this.implicitScalarTags=n,this.implicitScalarByFirstChar=a,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=l,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=r}lookupScalarTag(t){const e=this.exact.scalar[t];if(e)return e;for(const e of this.prefix.scalar)if(t.startsWith(e.tagName))return e}lookupSequenceTag(t){const e=this.exact.sequence[t];if(e)return e;for(const e of this.prefix.sequence)if(t.startsWith(e.tagName))return e}lookupMappingTag(t){const e=this.exact.mapping[t];if(e)return e;for(const e of this.prefix.mapping)if(t.startsWith(e.tagName))return e}resolveImplicitScalarTag(t){const e=this.implicitScalarByFirstChar.get(t.charAt(0))??this.implicitScalarAnyFirstChar;for(const n of e){const e=n.resolve(t,!1,n.tagName);if(e!==i)return{value:e,tag:n}}const n=this.defaultScalarTag;return{value:n.resolve(t,!1,n.tagName),tag:n}}withTags(...e){let n=[];for(const t of e)n=n.concat(t);return new t([...this.tags,...n])}},tt=new J([a,W,Z]),et=(new J([...tt.tags,p,b,T,F]),new J([...tt.tags,c,g,E,_])),nt=new J([...tt.tags,h,A,O,L,G,R,V,H,X,Q]).withTags({...O,resolve:(t,e,n)=>{const r=O.resolve(t,e,n);return r===i?E.resolve(t,e,n):r}},{...L,resolve:(t,e,n)=>{const r=L.resolve(t,e,n);return r===i?_.resolve(t,e,n):r}});o("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(t,e,n)=>(t.set(e,n),""),has:(t,e)=>t.has(e),keys:t=>t.keys(),get:(t,e)=>t.get(e),identify:t=>t instanceof Map||K(t),represent:t=>{if(t instanceof Map)return t;const e=new Map,n=t;for(const t of Object.keys(n))e.set(t,n[t]);return e}});function it(t){if(Array.isArray(t)){const e=Array.prototype.slice.call(t);for(let t=0;t<e.length;t++){if(Array.isArray(e[t]))return null;"object"==typeof e[t]&&"[object Object]"===Object.prototype.toString.call(e[t])&&(e[t]="[object Object]")}return String(e)}return"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)?"[object Object]":String(t)}o("tag:yaml.org,2002:map",{create:()=>({}),identify:K,represent:t=>{const e=new Map;for(const n of Object.keys(t))e.set(n,t[n]);return e},addPair:(t,e,n)=>{const i=it(e);return null===i?"nested arrays are not supported inside keys":("__proto__"===i?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,"")},has:(t,e)=>{const n=it(e);return null!==n&&Object.prototype.hasOwnProperty.call(t,n)},keys:t=>Object.keys(t),get:(t,e)=>{const n=String(e);return Object.prototype.hasOwnProperty.call(t,n)?t[n]:null}});var rt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function st(t,e,n,i,r){let s="",o="";const a=Math.floor(r/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),n-i>a&&(o=" ...",n=i+a-o.length),{str:s+t.slice(e,n).replace(/\t/g,"→")+o,pos:i-e+s.length}}function ot(t,e){return" ".repeat(Math.max(e-t.length,0))+t}function at(t,e){let n="";return t.mark?(t.mark.name&&(n+=`in "${t.mark.name}" `),n+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(n+=`\n\n${t.mark.snippet}`),`${t.reason} ${n}`):t.reason}var lt=class t extends Error{reason;mark;constructor(t,e){super(),this.name="YAMLException",this.reason=t,this.mark=e,this.message=at(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${at(this,t)}`}static throwAt(e,n,i,r=""){let s=0,o=0;for(let t=0;t<n;t++){const n=e.charCodeAt(t);10===n?(s++,o=t+1):13===n&&(s++,10===e.charCodeAt(t+1)&&t++,o=t+1)}const a={name:r,buffer:e,position:n,line:s,column:n-o};throw a.snippet=function(t,e){if(!t.buffer)return null;const n={...rt,...e},i=/\r?\n|\r|\0/g,r=[0],s=[];let o,a=-1;for(;o=i.exec(t.buffer);)s.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);let l="";const c=Math.min(t.line+n.linesAfter,s.length).toString().length,p=n.maxLength-(n.indent+c+3);for(let e=1;e<=n.linesBefore&&!(a-e<0);e++){const i=st(t.buffer,r[a-e],s[a-e],t.position-(r[a]-r[a-e]),p);l=`${" ".repeat(n.indent)}${ot((t.line-e+1).toString(),c)} | ${i.str}\n${l}`}const u=st(t.buffer,r[a],s[a],t.position,p);l+=`${" ".repeat(n.indent)}${ot((t.line+1).toString(),c)} | ${u.str}\n`,l+=`${"-".repeat(n.indent+c+3+u.pos)}^\n`;for(let e=1;e<=n.linesAfter&&!(a+e>=s.length);e++){const i=st(t.buffer,r[a+e],s[a+e],t.position-(r[a]-r[a+e]),p);l+=`${" ".repeat(n.indent)}${ot((t.line+e+1).toString(),c)} | ${i.str}\n`}return l.replace(/\n$/,"")}(a),new t(i,a)}},ct=1,pt=2,ut=3,ht=4,dt=5,ft=6,gt=1,mt=2,yt=3,bt=4,xt=5,vt=1,At=2,Nt=1,wt=2,Et=3;function St(t){switch(t){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Ct=new Array(256),Tt=new Array(256);for(let t=0;t<256;t++)Ct[t]=St(t)?1:0,Tt[t]=St(t);function kt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function Ot(t){return t>=48&&t<=57?t-48:(32|t)-97+10}function It(t){return 120===t?2:117===t?4:8}function $t(t,e,n){let i=0;for(;e<n;){const n=t.charCodeAt(e);if(10===n)i++,e++;else if(13===n)i++,e++,10===t.charCodeAt(e)&&e++;else{if(32!==n&&9!==n)break;e++}}return{position:e,breaks:i}}function _t(t){return 1===t?" ":"\n".repeat(t-1)}function jt(t,e,n,i,r,s){const o=i<0?0:i,a=t.slice(e,n).replace(/\r\n?/g,"\n"),l=""===a?[]:(a.endsWith("\n")?a.slice(0,-1):a).split("\n");let c="",p=!1,u=0,h=!1;for(const t of l){let e=0;for(;e<o&&32===t.charCodeAt(e);)e++;if(i<0||e>=t.length){u++;continue}const n=t.slice(o),r=n.charCodeAt(0);s?32===r||9===r?(h=!0,c+="\n".repeat(p?1+u:u)):h?(h=!1,c+="\n".repeat(u+1)):0===u?p&&(c+=" "):c+="\n".repeat(u):c+="\n".repeat(p?1+u:u),c+=n,p=!0,u=0}return r===Et?c+="\n".repeat(p?1+u:u):r!==wt&&p&&(c+="\n"),c}function Pt(t,e){if(-1===e.valueStart)return"";const{valueStart:n,valueEnd:i}=e;if(e.fast)return t.slice(n,i);switch(e.style){case mt:return function(t,e,n){let i="",r=e,s=e,o=e;for(;r<n;){const e=t.charCodeAt(r);if(39===e)i+=t.slice(s,r)+"'",r+=2,s=o=r;else if(10===e||13===e){i+=t.slice(s,o);const e=$t(t,r,n);i+=_t(e.breaks),r=s=o=e.position}else r++,32!==e&&9!==e&&(o=r)}return i+t.slice(s,n)}(t,n,i);case yt:return function(t,e,n){let i="",r=e,s=e,o=e;for(;r<n;){const e=t.charCodeAt(r);if(92===e){i+=t.slice(s,r),r++;const e=t.charCodeAt(r);if(10===e||13===e)r=$t(t,r,n).position;else if(e<256&&Ct[e])i+=Tt[e],r++;else{let n=It(e),s=0;for(;n>0;n--)r++,s=(s<<4)+Ot(t.charCodeAt(r));i+=kt(s),r++}s=o=r}else if(10===e||13===e){i+=t.slice(s,o);const e=$t(t,r,n);i+=_t(e.breaks),r=s=o=e.position}else r++,32!==e&&9!==e&&(o=r)}return i+t.slice(s,n)}(t,n,i);case bt:return jt(t,n,i,e.indent,e.chomping,!1);case xt:return jt(t,n,i,e.indent,e.chomping,!0);default:return function(t,e,n){let i="",r=e,s=e,o=e;for(;r<n;){const e=t.charCodeAt(r);if(10===e||13===e){i+=t.slice(s,o);const e=$t(t,r,n);i+=_t(e.breaks),r=s=o=e.position}else r++,32!==e&&9!==e&&(o=r)}return i+t.slice(s,o)}(t,n,i)}}var Ft=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function Dt(t){return encodeURI(t).replace(/!/g,"%21")}function Mt(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));const n=t.indexOf("!",1),i=-1===n?"!":t.slice(0,n+1),r=e?.[i]??Ft[i]??i;return decodeURIComponent(r)+decodeURIComponent(t.slice(i.length))}function Lt(t){let e=t;return 33===e.charCodeAt(0)?(e=e.slice(1),`!${Dt(e)}`):"tag:yaml.org,2002:"===e.slice(0,18)?`!!${Dt(e.slice(18))}`:`!<${Dt(e)}>`}var Rt=-1,qt={filename:"",schema:et,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Vt(t){return"tagStart"in t&&t.tagStart!==Rt?t.tagStart:"anchorStart"in t&&t.anchorStart!==Rt?t.anchorStart:"valueStart"in t&&t.valueStart!==Rt?t.valueStart:"start"in t?t.start:0}function Bt(t,e){lt.throwAt(t.source,t.position,e,t.filename)}function Ut(t,e,n,i){try{return n.finalize(i)}catch(n){if(n instanceof lt)throw n;lt.throwAt(t.source,e,n instanceof Error?n.message:String(n),t.filename)}}function zt(t,e){const n=Pt(t.source,e),r=e.tagStart===Rt?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(""!==r){if("!"===r)return{value:n,tag:s};const e=Mt(r,t.tagHandlers),o=t.schema.lookupScalarTag(e);if(o){const r=o.resolve(n,!0,e);return r===i&&Bt(t,`cannot resolve a node with !<${e}> explicit tag`),{value:r,tag:o}}const a=t.schema.lookupMappingTag(e)??t.schema.lookupSequenceTag(e);if(a){""!==n&&Bt(t,`cannot resolve a node with !<${e}> explicit tag`);const i=a.create(e);return{value:a.carrierIsResult?i:Ut(t,t.position,a,i),tag:a}}Bt(t,`unknown scalar tag !<${e}>`)}return e.style===gt?t.schema.resolveImplicitScalarTag(n):{value:s.resolve(n,!1,s.tagName),tag:s}}function Gt(t,e,n){const i=e.tagStart===Rt?"":t.source.slice(e.tagStart,e.tagEnd);return""===i||"!"===i?n:Mt(i,t.tagHandlers)}function Wt(t){return"mapping"===t.nodeKind}function Kt(t){t.totalMergeKeys++,-1!==t.maxTotalMergeKeys&&t.totalMergeKeys>t.maxTotalMergeKeys&&Bt(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}function Yt(t,e,n,i){Kt(t);for(const r of i.keys(n)){if(Kt(t),e.tag.has(e.value,r))continue;const s=e.tag.addPair(e.value,r,i.get(n,r));s&&Bt(t,s),e.overridable??=new Set,e.overridable.add(r)}}function Ht(t,e,n,i,r){if(t.position=e.keyPosition,e.keyIsMerge)return void function(t,e,n,i){if(t.position=e.keyPosition,Wt(i))Yt(t,e,n,i);else if("sequence"===i.nodeKind&&Array.isArray(n)){n.length>100&&Bt(t,"abnormal merge sequence size");for(const i of n){const n=t.nodeTags.get(i);n||Bt(t,"cannot merge mappings; the provided source object is unacceptable"),Yt(t,e,i,n)}}else Bt(t,"cannot merge mappings; the provided source object is unacceptable")}(t,e,i,r);t.json||!e.tag.has(e.value,n)||e.overridable?.has(n)||Bt(t,"duplicated mapping key");const s=e.tag.addPair(e.value,n,i);s&&Bt(t,s),e.overridable?.delete(n)}function Xt(t,e,n){const i=t.frames[t.frames.length-1];if("document"===i.kind)i.value=e,i.hasValue=!0;else if("sequence"===i.kind){Wt(n)&&t.nodeTags.set(e,n);const r=i.tag.addItem(i.value,e,i.index++);r&&Bt(t,r)}else if(i.hasKey){const r=i.key;i.key=void 0,i.hasKey=!1,Ht(t,i,r,e,n)}else i.key=e,i.keyPosition=t.position,i.hasKey=!0,i.keyIsMerge="tag:yaml.org,2002:merge"===n.tagName}function Zt(t,e,n,i,r){if(e.anchorStart!==Rt){const s={value:n,tag:i,isValueFinal:r};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),s),s}return null}var Qt=-1,Jt=Object.prototype.hasOwnProperty,te=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[,\[\]{}]/,ne=/^(?:!|!!|![0-9A-Za-z-]+!)$/,ie=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,re=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,se=new RegExp(`^(?:${ie})*$`),oe=new RegExp(`^(?:${re})+$`),ae=new RegExp(`^(?:!(?:${ie})*|${re}(?:${ie})*)$`),le={filename:"",maxDepth:100};function ce(t,e,n,i,r,s,o){t.events.push({type:pt,start:e,anchorStart:n,anchorEnd:i,tagStart:r,tagEnd:s,style:o})}function pe(t,e,n,i,r,s,o){t.events.push({type:ut,start:e,anchorStart:n,anchorEnd:i,tagStart:r,tagEnd:s,style:o})}function ue(t,e){t.events.splice(e.eventsLength,0,{type:ut,start:e.position,anchorStart:Qt,anchorEnd:Qt,tagStart:Qt,tagEnd:Qt,style:At})}function he(t,e,n,i,r,s,o,a,l=Nt,c=-1,p=!1){t.events.push({type:ht,valueStart:e,valueEnd:n,anchorStart:i,anchorEnd:r,tagStart:s,tagEnd:o,style:a,chomping:l,indent:c,fast:p})}function de(t){t.events.push({type:ft})}function fe(t){he(t,Qt,Qt,Qt,Qt,Qt,Qt,gt)}function ge(){return{anchorStart:Qt,anchorEnd:Qt,tagStart:Qt,tagEnd:Qt}}function me(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}function ye(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.events.length=e.eventsLength}function be(t,e){lt.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}function xe(t){return 10===t||13===t}function ve(t){return 9===t||32===t}function Ae(t){return ve(t)||xe(t)}function Ne(t){return 0===t||Ae(t)}function we(t){return 44===t||91===t||93===t||123===t||125===t}function Ee(t){return t>=48&&t<=57?t-48:-1}function Se(t){if(t>=48&&t<=57)return t-48;const e=32|t;return e>=97&&e<=102?e-97+10:-1}function Ce(t){return 120===t?2:117===t?4:85===t?8:0}function Te(t){return 48===t||97===t||98===t||116===t||9===t||110===t||118===t||102===t||114===t||101===t||32===t||34===t||47===t||92===t||78===t||95===t||76===t||80===t}function ke(t){10===t.input.charCodeAt(t.position)?t.position++:(t.position++,10===t.input.charCodeAt(t.position)&&t.position++),t.line++,t.lineStart=t.position,t.lineIndent=0,t.firstTabInLine=-1}function Oe(t,e){let n=0,i=t.input.charCodeAt(t.position),r=t.position===t.lineStart||Ae(t.input.charCodeAt(t.position-1));for(;0!==i;){for(;ve(i);)r=!0,9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&r&&35===i)do{i=t.input.charCodeAt(++t.position)}while(!xe(i)&&0!==i);if(!xe(i))break;for(ke(t),n++,r=!0,i=t.input.charCodeAt(t.position);32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return n}function Ie(t,e=t.position){const n=t.input.charCodeAt(e);if((45===n||46===n)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)){const n=t.input.charCodeAt(e+3);return 0===n||Ae(n)}return!1}function $e(t){t.position===t.lineStart&&65279===t.input.charCodeAt(t.position)&&(t.position++,t.lineStart=t.position)}function _e(t){if(t.position!==t.lineStart)return!1;if(Ie(t))return!0;if(65279!==t.input.charCodeAt(t.position))return!1;const e=me(t);$e(t),Oe(t,!0);const n=t.input.charCodeAt(t.position),i=t.position===t.lineStart&&(37===n||45===n&&Ie(t));return ye(t,e),i}function je(t){let e=t.input.charCodeAt(t.position);for(;0!==e&&!xe(e);)e=t.input.charCodeAt(++t.position)}function Pe(t,e,n){te.test(t.input.slice(e,n))&&be(t,"the stream contains non-printable characters")}function Fe(t,e,n){if(33!==t.input.charCodeAt(t.position))return!1;e.tagStart!==Qt&&be(t,"duplication of a tag property");const i=t.position;let r=!1,s=!1,o="!",a=t.input.charCodeAt(++t.position);60===a?(r=!0,a=t.input.charCodeAt(++t.position)):33===a&&(s=!0,o="!!",a=t.input.charCodeAt(++t.position));let l,c=t.position;if(r){for(;0!==a&&62!==a;)a=t.input.charCodeAt(++t.position);62!==a&&be(t,"unexpected end of the stream within a verbatim tag"),l=t.input.slice(c,t.position),t.position++}else{for(;!(0===a||Ae(a)||n&&we(a));)33===a&&(s?be(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(c-1,t.position+1),ne.test(o)||be(t,"named tag handle cannot contain such characters"),s=!0,c=t.position+1)),a=t.input.charCodeAt(++t.position);l=t.input.slice(c,t.position),ee.test(l)&&be(t,"tag suffix cannot contain flow indicator characters")}return l&&!(r?se.test(l):oe.test(l))&&be(t,`tag name cannot contain such characters: ${l}`),r||"!"===o||"!!"===o||Jt.call(t.tagHandlers,o)||be(t,`undeclared tag handle "${o}"`),e.tagStart=i,e.tagEnd=t.position,!0}function De(t,e){if(38!==t.input.charCodeAt(t.position))return!1;e.anchorStart!==Qt&&be(t,"duplication of an anchor property"),t.position++;const n=t.position;for(;0!==t.input.charCodeAt(t.position)&&!Ae(t.input.charCodeAt(t.position))&&!we(t.input.charCodeAt(t.position));)t.position++;return t.position===n&&be(t,"name of an anchor node must contain at least one character"),e.anchorStart=n,e.anchorEnd=t.position,!0}function Me(t,e){if(42!==t.input.charCodeAt(t.position))return!1;e.anchorStart===Qt&&e.tagStart===Qt||be(t,"alias node should not have any properties"),t.position++;const n=t.position;for(;0!==t.input.charCodeAt(t.position)&&!Ae(t.input.charCodeAt(t.position))&&!we(t.input.charCodeAt(t.position));)t.position++;return t.position===n&&be(t,"name of an alias node must contain at least one character"),function(t,e,n){t.events.push({type:dt,anchorStart:e,anchorEnd:n})}(t,n,t.position),!0}function Le(t,e){Oe(t,!1),t.lineIndent<e&&be(t,"deficient indentation")}function Re(t,e,n,i){if(!function(t,e){const n=t.input.charCodeAt(t.position),i=1===e;if(0===n||Ae(n)||35===n||38===n||42===n||33===n||124===n||62===n||39===n||34===n||37===n||64===n||96===n||i&&we(n))return!1;if(63===n||45===n){const e=t.input.charCodeAt(t.position+1);if(Ne(e)||i&&we(e))return!1}return!0}(t,n))return!1;const r=t.position;let s=t.position,o=t.input.charCodeAt(t.position);const a=1===n;let l=!1;for(;0!==o&&!_e(t);){if(58===o){const e=t.input.charCodeAt(t.position+1);if(Ne(e)||a&&we(e))break}else if(35===o){if(Ae(t.input.charCodeAt(t.position-1)))break}else{if(a&&we(o))break;if(xe(o)){const n=t.position,i=t.line,r=t.lineStart,s=t.lineIndent;if(Oe(t,!1),t.lineIndent>=e){l=!0,o=t.input.charCodeAt(t.position);continue}t.position=n,t.line=i,t.lineStart=r,t.lineIndent=s;break}}ve(o)||(s=t.position+1),o=t.input.charCodeAt(++t.position)}return s!==r&&(Pe(t,r,s),he(t,r,s,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,gt,Nt,-1,!l),!0)}function qe(t,e){const n=t.line;Oe(t,!0),(t.line>n&&t.lineIndent<e||-1!==t.firstTabInLine&&t.lineIndent<e)&&be(t,"deficient indentation")}function Ve(t,e,n){if(-1!==t.firstTabInLine||45!==t.input.charCodeAt(t.position)||!Ne(t.input.charCodeAt(t.position+1)))return!1;for(ce(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,vt);45===t.input.charCodeAt(t.position)&&Ne(t.input.charCodeAt(t.position+1));){-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,be(t,"tab characters must not be used in indentation"));const n=t.line;t.position++;const i=Oe(t,!0)>0;if(-1!==t.firstTabInLine&&45===t.input.charCodeAt(t.position)&&Ne(t.input.charCodeAt(t.position+1))&&be(t,"bad indentation of a sequence entry"),i&&t.lineIndent<=e?fe(t):Ue(t,e,3,!1,!0),Oe(t,!0),t.lineIndent<e||t.position>=t.length)break;t.lineIndent>e&&be(t,"bad indentation of a sequence entry"),t.line===n&&45===t.input.charCodeAt(t.position)&&Ne(t.input.charCodeAt(t.position+1))&&be(t,"bad indentation of a sequence entry")}return de(t),!0}function Be(t,e,n,i){let r=!1,s=!1,o=!1,a=!1;if(-1!==t.firstTabInLine)return!1;let l=t.input.charCodeAt(t.position);for(;0!==l;){r||-1===t.firstTabInLine||(t.position=t.firstTabInLine,be(t,"tab characters must not be used in indentation"));const c=t.input.charCodeAt(t.position+1),p=t.line;if(63!==l&&58!==l||!Ne(c)){r&&(fe(t),r=!1);const e=me(t);if(!Ue(t,n,2,!1,!0))break;if(t.line===p){for(l=t.input.charCodeAt(t.position);ve(l);)l=t.input.charCodeAt(++t.position);if(58===l){if(l=t.input.charCodeAt(++t.position),Ne(l)||be(t,"a whitespace character is expected after the key-value separator within a block mapping"),!o){for(ye(t,e),pe(t,e.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,vt),o=!0,Ue(t,n,2,!1,!0),l=t.input.charCodeAt(t.position);ve(l);)l=t.input.charCodeAt(++t.position);t.position++}s=!0,r=!1,a=!1}else{if(!s)return i.anchorStart===Qt&&i.tagStart===Qt||(ye(t,e),!1);be(t,"expected ':' after a mapping key")}}else{if(!s)return i.anchorStart===Qt&&i.tagStart===Qt||(ye(t,e),!1);be(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else o||(pe(t,t.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,vt),o=!0),63===l?(r&&fe(t),s=!0,r=!0):(r||(fe(t),s=!0),r=!1),t.position+=1,a=!0;if(Ue(t,e,4,!0,a)&&(a=!1),r||a&&(fe(t),a=!1),Oe(t,!0),l=t.input.charCodeAt(t.position),(t.line===p||t.lineIndent>e)&&0!==l)be(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return!!s&&(r&&fe(t),o&&de(t),!0)}function Ue(t,e,n,i,r,s=!0){t.depth>=t.maxDepth&&be(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let o=1,a=!1,l=!1,c=null;const p=ge();let u=4===n||3===n,h=u;const d=u;if(i&&Oe(t,!0)&&(a=!0,o=t.lineIndent>e?1:t.lineIndent===e?0:-1),1===o)for(;;){const i=t.input.charCodeAt(t.position),r=me(t);if(a&&1!==o&&(33===i||38===i))break;if(a&&d&&(p.tagStart!==Qt||p.anchorStart!==Qt)&&(33===i||38===i)){const n=me(t),i=e+1;if(Be(t,t.position-t.lineStart,i,p)&&t.events[n.eventsLength]?.type===ut)return t.depth--,!0;ye(t,n)}if(a&&(33===i&&p.tagStart!==Qt||38===i&&p.anchorStart!==Qt))break;if(!Fe(t,p,1===n)&&!De(t,p))break;null===c&&(c=r),Oe(t,!0)?(a=!0,h=d,o=t.lineIndent>e?1:t.lineIndent===e?0:-1):h=!1}if(h&&(h=a||r),1===o||4===n){const i=1===n||2===n?e:e+1,r=t.position-t.lineStart;if(1===o)if(h&&(Ve(t,r,p)||Be(t,r,i,p))||function(t,e,n){const i=t.input.charCodeAt(t.position),r=123===i,s=t.position;let o=!0;if(91!==i&&123!==i)return!1;const a=r?125:93;for(r?pe(t,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,At):ce(t,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,At),t.position++;0!==t.input.charCodeAt(t.position);){qe(t,e);let n=t.input.charCodeAt(t.position);if(n===a)return t.position++,de(t),!0;o?44===n&&be(t,"expected the node content, but found ','"):be(t,"missed comma between flow collection entries");let i=!1,s=!1;63===n&&Ae(t.input.charCodeAt(t.position+1))&&(i=s=!0,t.position+=1,qe(t,e));const l=t.line,c=me(t),p=Ue(t,e,1,!1,!0);qe(t,e),n=t.input.charCodeAt(t.position),(r||s||t.line===l)&&58===n?(i=!0,t.position++,qe(t,e),r||ue(t,c),p||fe(t),Ue(t,e,1,!1,!0)||fe(t),qe(t,e),r||de(t)):r&&i?(p||fe(t),fe(t)):r?fe(t):i&&(ue(t,c),p||fe(t),fe(t),de(t)),n=t.input.charCodeAt(t.position),44===n?(o=!0,t.position++):o=!1}be(t,"unexpected end of the stream within a flow collection")}(t,i,p))l=!0;else{const e=t.input.charCodeAt(t.position);if(null!==c&&s&&d&&!h&&124!==e&&62!==e){const e=me(t),n=c.position-c.lineStart;ye(t,c),Be(t,n,i,ge())&&t.events[e.eventsLength]?.type===ut?l=!0:ye(t,e)}!l&&(u&&function(t,e,n){const i=t.input.charCodeAt(t.position);let r=Nt,s=-1,o=!1;if(124!==i&&62!==i)return!1;const a=124===i?bt:xt;for(t.position++;0!==t.input.charCodeAt(t.position);){const n=t.input.charCodeAt(t.position),i=Ee(n);if(43===n||45===n)r!==Nt&&be(t,"repeat of a chomping mode identifier"),r=43===n?Et:wt,t.position++;else{if(!(i>=0))break;0===i&&be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),o&&be(t,"repeat of an indentation width identifier"),s=e+i-1,o=!0,t.position++}}let l=!1;for(;ve(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&35===t.input.charCodeAt(t.position)&&je(t),xe(t.input.charCodeAt(t.position))?ke(t):0!==t.input.charCodeAt(t.position)&&be(t,"a line break is expected");let c=o?s:-1,p=0;const u=t.position;let h=t.position;for(;0!==t.input.charCodeAt(t.position);){const n=t.position;let i=0;for(;32===t.input.charCodeAt(n+i);)i++;const r=t.input.charCodeAt(n+i);if(0===r){c>=0?i>c&&(h=n+i):i>0&&(h=n+i);break}if(_e(t))break;if(!o&&-1===c&&xe(r)&&(p=Math.max(p,i)),o||-1!==c||xe(r)||(9===r&&i<e&&(t.position=n+i,be(t,"tab characters must not be used in indentation")),i<p&&(t.position=n+i,be(t,"bad indentation of a mapping entry"))),-1===c&&0!==r&&!xe(r)&&i<e){t.lineIndent=i,t.position=n+i;break}o||0===r||xe(r)||-1!==c||(c=i);const s=-1===c?e+1:c;if(0!==r&&!xe(r)&&i<s){t.lineIndent=i,t.position=n+i;break}je(t),h=t.position,xe(t.input.charCodeAt(t.position))&&(ke(t),h=t.position)}return Pe(t,u,h),he(t,u,h,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,a,r,c),!0}(t,i,p)||function(t,e,n){if(39!==t.input.charCodeAt(t.position))return!1;t.position++;const i=t.position;let r=!0;for(;0!==t.input.charCodeAt(t.position);){const s=t.input.charCodeAt(t.position);if(39===s){if(39===t.input.charCodeAt(t.position+1)){r=!1,t.position+=2;continue}const e=t.position;return t.position++,he(t,i,e,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,mt,Nt,-1,r),!0}xe(s)?(r=!1,Le(t,e)):t.position===t.lineStart&&Ie(t)?be(t,"unexpected end of the document within a single quoted scalar"):9!==s&&s<32?be(t,"expected valid JSON character"):t.position++}be(t,"unexpected end of the stream within a single quoted scalar")}(t,i,p)||function(t,e,n){if(34!==t.input.charCodeAt(t.position))return!1;t.position++;const i=t.position;let r=!0;for(;0!==t.input.charCodeAt(t.position);){const s=t.input.charCodeAt(t.position);if(34===s){const e=t.position;return t.position++,he(t,i,e,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,yt,Nt,-1,r),!0}if(92===s){r=!1;const n=t.input.charCodeAt(++t.position);if(xe(n))Le(t,e);else if(Te(n))t.position++;else{let e=Ce(n);for(0===e&&be(t,"unknown escape sequence");e-- >0;)t.position++,Se(t.input.charCodeAt(t.position))<0&&be(t,"expected hexadecimal character");t.position++}}else xe(s)?(r=!1,Le(t,e)):t.position===t.lineStart&&Ie(t)?be(t,"unexpected end of the document within a double quoted scalar"):9!==s&&s<32?be(t,"expected valid JSON character"):t.position++}be(t,"unexpected end of the stream within a double quoted scalar")}(t,i,p)||Me(t,p)||Re(t,i,n,p))&&(l=!0)}else 0===o&&(l=h&&Ve(t,r,p))}return u=u&&!l,l||p.anchorStart===Qt&&p.tagStart===Qt&&!u||(he(t,Qt,Qt,p.anchorStart,p.anchorEnd,p.tagStart,p.tagEnd,gt),l=!0),t.depth--,l||p.anchorStart!==Qt||p.tagStart!==Qt}function ze(t){if(t.lineIndent>0||37!==t.input.charCodeAt(t.position))return!1;t.position++;const e=t.position;for(;0!==t.input.charCodeAt(t.position)&&!Ae(t.input.charCodeAt(t.position));)t.position++;const n=t.input.slice(e,t.position),i=[];for(0===n.length&&be(t,"directive name must not be less than one character in length");0!==t.input.charCodeAt(t.position)&&!xe(t.input.charCodeAt(t.position));){for(;ve(t.input.charCodeAt(t.position));)t.position++;if(35===t.input.charCodeAt(t.position)||xe(t.input.charCodeAt(t.position))||0===t.input.charCodeAt(t.position))break;const e=t.position;for(;0!==t.input.charCodeAt(t.position)&&!Ae(t.input.charCodeAt(t.position));)t.position++;i.push(t.input.slice(e,t.position))}if(xe(t.input.charCodeAt(t.position))&&ke(t),"YAML"===n){t.directives.some(t=>"yaml"===t.kind)&&be(t,"duplication of %YAML directive"),1!==i.length&&be(t,"YAML directive accepts exactly one argument");const e=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);null===e&&be(t,"ill-formed argument of the YAML directive"),1!==parseInt(e[1],10)&&be(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:i[0]})}else if("TAG"===n){2!==i.length&&be(t,"TAG directive accepts exactly two arguments");const[e,n]=i;ne.test(e)||be(t,"ill-formed tag handle (first argument) of the TAG directive"),Jt.call(t.tagHandlers,e)&&be(t,`there is a previously declared suffix for "${e}" tag handle`),ae.test(n)||be(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagHandlers[e]=n,t.directives.push({kind:"tag",handle:e,prefix:n})}return!0}function Ge(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(Oe(t,!0);ze(t);)e=!0,Oe(t,!0);let n=!1,i=!1,r=!0;if(0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)&&Ne(t.input.charCodeAt(t.position+3))){n=!0;const e=t.line;t.position+=3,Oe(t,!0),r=t.line>e}else e&&be(t,"directives end mark is expected");const s=t.events.length;if(!n&&t.position===t.lineStart&&46===t.input.charCodeAt(t.position)&&Ie(t))return t.position+=3,void Oe(t,!0);if(function(t,e,n){t.events.push({type:ct,explicitStart:e,explicitEnd:n,directives:t.directives})}(t,n,!1),Ue(t,t.lineIndent-1,4,!1,r,r)||fe(t),Oe(t,!0),t.position===t.lineStart&&Ie(t)&&(i=46===t.input.charCodeAt(t.position),i)){const e=t.line;t.position+=3,Oe(t,!0),t.line===e&&t.position<t.length&&be(t,"end of the stream or a document separator is expected")}const o=t.events[s];o?.type===ct&&(o.explicitEnd=i),de(t),!i&&t.position<t.length&&!_e(t)&&be(t,"end of the stream or a document separator is expected")}var We={...le,...qt};function Ke(t,e={}){const n={...We,...e},i=String(t),r=Object.keys(le),s=Object.keys(qt);return function(t,e){const n={...qt,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){const t=n.events[n.eventIndex++];switch(n.position=Vt(t),t.type){case ct:n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(const e of t.directives)"tag"===e.kind&&(n.tagHandlers[e.handle]=e.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case ht:{const{value:e,tag:i}=zt(n,t);Zt(n,t,e,i,!0),Xt(n,e,i);break}case pt:{const e=Gt(n,t,"tag:yaml.org,2002:seq"),i=n.schema.lookupSequenceTag(e);i||Bt(n,`unknown sequence tag !<${e}>`);const r=i.create(e),s=Zt(n,t,r,i,i.carrierIsResult);n.frames.push({kind:"sequence",position:n.position,value:r,tag:i,anchor:s,index:0});break}case ut:{const e=Gt(n,t,"tag:yaml.org,2002:map"),i=n.schema.lookupMappingTag(e);i||Bt(n,`unknown mapping tag !<${e}>`);const r=i.create(e),s=Zt(n,t,r,i,i.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:r,tag:i,anchor:s,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case dt:{-1!==n.maxAliases&&++n.aliasCount>n.maxAliases&&Bt(n,`aliases exceeded maxAliases (${n.maxAliases})`);const e=n.source.slice(t.anchorStart,t.anchorEnd),i=n.anchors.get(e);i||Bt(n,`unidentified alias "${e}"`),i.isValueFinal||Bt(n,`recursive alias "${e}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),Xt(n,i.value,i.tag);break}case ft:{const t=n.frames.pop();if("mapping"===t.kind&&t.hasKey&&(n.position=t.keyPosition,Bt(n,"incomplete mapping pair in event stream")),"document"===t.kind)n.documents.push(t.value);else{const e=t.tag.carrierIsResult?t.value:Ut(n,t.position,t.tag,t.value);t.anchor&&(t.anchor.value=e,t.anchor.isValueFinal=!0),Xt(n,e,t.tag)}break}}}return n.documents}(function(t,e){const n=t.length,i={...le,...e,input:`${t}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},r=t.indexOf("\0");for(-1!==r&<.throwAt(t,r,"null byte is not allowed in input",i.filename);i.position<i.length&&($e(i),Oe(i,!0),!(i.position>=i.length));){const t=i.position;Ge(i),i.position===t&&be(i,"can not read a document")}return i.events}(i,Y(n,r)),{...Y(n,s),source:i})}function Ye(t,e){const n=Ke(t,e);if(0===n.length)throw new lt("expected a document, but the input is empty");if(1===n.length)return n[0];throw new lt("expected a single document in the stream, but found more")}var He=Symbol("INVALID");function Xe(t){const e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(t=>void 0!==t)),n=t.implicitScalarTags,i=t.tags.filter(t=>!("scalar"===t.nodeKind&&t.implicit||e.has(t))),r=t.tags.filter(t=>e.has(t));return[...n.map(t=>({tag:t,implicitTag:!0})),...i.map(t=>({tag:t,implicitTag:!1})),...r.map(t=>({tag:t,implicitTag:!0}))]}function Ze(t,e){if(!t.noRefs&&null!==e&&"object"==typeof e){const n=t.refs.get(e);if(n)return void 0===n.anchor&&(n.anchor="ref_"+t.refCounter++),{kind:"alias",anchor:n.anchor}}const n=function(t,e){for(let n=0,i=t.representTypes.length;n<i;n+=1){const{tag:i,implicitTag:r}=t.representTypes[n];if(i.identify(e)){let t;return t=i.matchByTagPrefix?i.representTagName(e):i.tagName,{tag:i,tagName:t,implicitTag:r}}}return null}(t,e);if(!n){if(void 0===e)return He;if(t.skipInvalid)return He;throw new lt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}const{tag:i,tagName:r,implicitTag:s}=n,o=s?r:Lt(r);if("scalar"===i.nodeKind)return{kind:"scalar",tag:o,tagged:!s,style:gt,value:i.represent(e)};if("sequence"===i.nodeKind){const n=i.represent(e),r={kind:"sequence",tag:o,tagged:!s,style:vt,items:[]};t.noRefs||t.refs.set(e,r);for(let e=0,i=n.length;e<i;e+=1){let i=Ze(t,n[e]);i===He&&void 0===n[e]&&(i=Ze(t,null)),i!==He&&r.items.push(i)}return r}const a=i.represent(e),l={kind:"mapping",tag:o,tagged:!s,style:vt,items:[]};t.noRefs||t.refs.set(e,l);for(const[e,n]of a){const i=Ze(t,e);if(i===He)continue;const r=Ze(t,n);r!==He&&l.items.push({key:i,value:r})}return l}function Qe(t,e,n={}){const i=Ze({representTypes:Xe(e),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:i===He?null:i,directives:[]}]}var Je=Symbol("visit:break"),tn=Symbol("visit:skip");function en(t,e,n){const i=e(t,n);if(i===Je)return!0;if(i===tn)return!1;const r=n.depth+1;switch(t.kind){case"sequence":for(const n of t.items)if(en(n,e,{depth:r,parent:t,isKey:!1}))return!0;break;case"mapping":for(const{key:n,value:i}of t.items){if(en(n,e,{depth:r,parent:t,isKey:!0}))return!0;if(en(i,e,{depth:r,parent:t,isKey:!1}))return!0}}return!1}function nn(t,e){for(const n of t)if(n.contents&&en(n.contents,e,{depth:0,parent:null,isKey:!1}))return}function rn(t,e){return!!(t&1<<e)}var sn={applyQuoteFlowKeysOption:function(t){if(!t.presenterOptions.quoteFlowKeys)return;if(!t.isKey||!t.flowOnly||t.style!==gt)return;t.style=yt},doubleQuoteForInvisibles:function(t){t.style===gt&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=yt)},doubleQuoteWhitespaceOnly:function(t){t.style===gt&&/^\s+$/.test(t.node.value)&&(t.style=yt)},applyForceQuotesOption:function(t){if(!t.presenterOptions.forceQuotes)return;if(t.isKey||t.style!==gt)return;t.style=t.node.value.includes("\n")?yt:on(t)},tryLongOrMultilineAsBlock:function(t){if(t.style!==gt||t.isKey)return;const e=t.node.value,n=-1!==e.indexOf("\n");if(!rn(t.allowedStylesMask,bt))return void(n&&(t.style=yt));const i=t.presenterOptions.lineWidth;if(-1===i)return void(n&&(t.style=bt));const r=Math.max(Math.min(i,40),i-t.shiftOfContent);let s=0,o=!1;for(;s<=e.length;){let t=e.length;const n=e.indexOf("\n",s);-1!==n&&(t=n);const i=e.slice(s,t);if(i.length>r&&" "!==i[0]&&/ [^ \t]/.test(i)&&(o=!0),-1===n)break;s=n+1}o?t.style=xt:n&&(t.style=bt)},quoteInvalidPlain:function(t){t.style!==gt||rn(t.allowedStylesMask,gt)||(t.style=on(t))},fallbackToDoubleQuoted:function(t){rn(t.allowedStylesMask,t.style)||(t.style=yt)}};function on(t){return"single"===t.presenterOptions.quoteStyle&&rn(t.allowedStylesMask,mt)?mt:yt}function an(t,e){return t|1<<e}var ln="[ \\t]",cn="(?:(?!(?:[\\n\\r]|\\uFEFF))[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}])",pn=`(?:(?!${ln})${cn})`,un="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",hn="[-?:,\\[\\]{}#&*!|>'\"%@`]",dn=`(?:(?![,\\[\\]{}])${pn})`,fn=`(?:(?:(?![:#])${pn})|:(?=${pn}))#*`,gn=`(?:(?:(?![:#])${dn})|:(?=${dn}))#*`,mn=`(?:${ln}*${fn})*`,yn=`(?:${ln}*${gn})*`,bn=`${`(?:(?:(?!${hn})${pn})|[?:-](?=${pn}))`}#*${mn}`,xn=`${`(?:(?:(?!${hn})${pn})|[?:-](?=${dn}))`}#*${yn}`,vn=bn,An=xn,Nn=`${xn}(?:${`\\n+${gn}${yn}`})*`,wn=new RegExp(`^(?:${`${bn}(?:${`\\n+${fn}${mn}`})*`})$`,"u"),En=new RegExp(`^(?:${Nn})$`,"u"),Sn=new RegExp(`^(?:${vn})$`,"u"),Cn=new RegExp(`^(?:${An})$`,"u"),Tn=new RegExp(`^(?:${un})*$`,"u"),kn=new RegExp(`^(?:${un}|\\n)*$`,"u"),On=new RegExp(`^(?:${cn}|\\n)*$`,"u"),In=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,$n=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function _n(t){let e=an(0,yt);(function(t){const e=t.node.value;if(""!==e){if(!(t.isKey?t.flowOnly?Cn:Sn:t.flowOnly?En:wn).test(e))return!1;if(0===t.shiftOfFirstLine&&In.test(e))return!1;if(0===t.shiftOfContent){const t=e.indexOf("\n");if(-1!==t){const n=e.slice(t+1);if($n.test(n))return!1}}}const n=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&n!==t.node.tag||!t.node.tagged&&"="===e&&n===t.presenterOptions.schema.defaultScalarTag.tagName)})(t)&&(e=an(e,gt)),function(t){const e=t.node.value;if(!(t.isKey?Tn:kn).test(e))return!1;if(/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&0===t.shiftOfContent){const t=e.indexOf("\n");if(-1!==t&&$n.test(e.slice(t+1)))return!1}return!0}(t)&&(e=an(e,mt)),function(t){if(t.flowOnly||!On.test(t.node.value))return!1;const e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||0===t.shiftOfContent&&$n.test(t.node.value))}(t)&&(e=an(an(e,bt),xt)),t.allowedStylesMask=e}function jn(t){switch(t.style){case gt:return function(t){return Pn(t.node.value,t.shiftOfContent)}(t);case mt:return function(t){return`'${Pn(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}(t);case bt:return function(t){const e=t.node.value;return"|"+Dn(e,t.shiftOfParent,t.shiftOfContent)+Mn(Fn(e,t.shiftOfContent))}(t);case xt:return function(t){const e=t.node.value,n=t.presenterOptions.lineWidth;let i=1/0;-1!==n&&(i=Math.max(Math.min(n,40),n-t.shiftOfContent));return">"+Dn(e,t.shiftOfParent,t.shiftOfContent)+Mn(Fn(function(t,e){const n=/(\n+)([^\n]*)/g;let i=t.indexOf("\n");-1===i&&(i=t.length);n.lastIndex=i;let r,s,o=Rn(t.slice(0,i),e),a="\n"===t[0]||Ln(t[0]);for(;s=n.exec(t);){const t=s[1],n=s[2];r=""!==n&&Ln(n[0]),o+=t+(a||r||""===n?"":"\n")+Rn(n,e),a=r}return o}(e,i),t.shiftOfContent))}(t);case yt:return function(t){return`"${e=t.node.value,e.replace(qn,Vn)}"`;var e}(t)}}function Pn(t,e){let n=t.indexOf("\n");if(-1===n)return t;const i=" ".repeat(e);let r=t.slice(0,n);const s=/(\n+)([^\n]*)/g;let o;for(s.lastIndex=n;o=s.exec(t);){const t=o[1].length,e=o[2];r+="\n".repeat(t+1)+i+e}return r}function Fn(t,e){const n=" ".repeat(e);let i=0,r="";const s=t.length;for(;i<s;){let e;const o=t.indexOf("\n",i);-1===o?(e=t.slice(i),i=s):(e=t.slice(i,o+1),i=o+1),e.length&&"\n"!==e&&(r+=n),r+=e}return r}function Dn(t,e,n){const i=function(t){return/^\n* /.test(t)}(t)?String(n-e):"",r="\n"===t[t.length-1];return`${i}${!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+"}\n`}function Mn(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Ln(t){return" "===t||"\t"===t}function Rn(t,e){if(""===t||Ln(t[0]))return t;const n=/ [^ \t]/g;let i,r,s=0,o=0,a=0,l="";for(;i=n.exec(t);)a=i.index,a-s>e&&(r=o>s?o:a,l+=`\n${t.slice(s,r)}`,s=r+1),o=a;return l+="\n",t.length-s>e&&o>s?l+=`${t.slice(s,o)}\n${t.slice(o+1)}`:l+=t.slice(s),l.slice(1)}var qn=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Vn(t){switch(t){case"\0":return"\\0";case"":return"\\a";case"\b":return"\\b";case"\t":return"\\t";case"\n":return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"
":return"\\N";case" ":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}const e=t.charCodeAt(0),n=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-n.length)}${n}`:`\\u${"0".repeat(4-n.length)}${n}`}var Bn={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(sn).map(t=>Reflect.get(sn,t)),tagBeforeAnchor:!1};function Un(t,e){return`\n${" ".repeat(t.indent*e)}`}function zn(t,e,n,i){let r="";for(let s=0,o=n.items.length;s<o;s+=1){const o=Wn(t,e+1,n.items[s],n,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;i&&""===r||(r+=Un(t,e)),""===o||10===o.charCodeAt(0)?r+="-":r+="- ",r+=o}return r}function Gn(t,e,n){return"alias"===e.kind||(e.tagged||void 0!==e.anchor||t.indent<2&&n>0)}function Wn(t,e,n,i,r){if("alias"===n.kind)return t.openEnded=!1,{text:`*${n.anchor}`,noBody:!1};const{block:s=!1,iskey:o=!1,isblockseq:a=!1}=r;let l=r.compact??!1;const c=void 0!==n.anchor;let p;Gn(t,n,e)&&(l=!1);let u=n.tagged;const h=s&&("mapping"===n.kind||"sequence"===n.kind)&&n.style===vt&&0!==n.items.length;if("mapping"===n.kind)p=h?function(t,e,n,i){let r="";for(let s=0,o=n.items.length;s<o;s+=1){let o="";i&&""===r||(o+=Un(t,e));const{key:a,value:l}=n.items[s],c=("mapping"===a.kind||"sequence"===a.kind)&&a.style===vt&&0!==a.items.length||"scalar"===a.kind&&(a.style===bt||a.style===xt),p=Wn(t,e+1,a,n,c?{block:!0,compact:!0,isblockseq:!Gn(t,a,e+1)}:{block:!0,compact:!0,iskey:!0}),u=p.text,h="scalar"===a.kind&&-1!==a.value.indexOf("\n"),d=u.length>1024&&/^[\s\S]{1025}/u.test(u),f=c||h||d;f&&(u&&10===u.charCodeAt(0)?o+="?":o+="? "),o+=u,f&&(o+=Un(t,e));const g=Wn(t,e+1,l,n,{block:!0,compact:f,isblockseq:f&&!Gn(t,l,e+1)}).text,m="scalar"===a.kind&&p.noBody&&(a.tagged||void 0!==a.anchor),y=f||"alias"!==a.kind&&!m?"":" ";""===g||10===g.charCodeAt(0)?o+=`${y}:`:o+=`${y}: `,o+=g,r+=o}return r}(t,e,n,l):function(t,e,n){let i="";for(const{key:r,value:s}of n.items){let o="";""!==i&&(o+=","+(t.flowSkipCommaSpace?"":" "));const a=Wn(t,e,r,n,{iskey:!0}),l=a.text,c=Wn(t,e,s,n,{}).text,p=t.flowSkipColonSpace||""===c?"":" ",u="scalar"===r.kind&&a.noBody&&(r.tagged||void 0!==r.anchor);o+=`${l}${"alias"===r.kind||u?" ":""}:${p}${c}`,i+=o}const r=t.flowBracketPadding&&""!==i?" ":"";return`{${r}${i}${r}}`}(t,e,n);else if("sequence"===n.kind)p=h?t.seqNoIndent&&!a&&e>0?zn(t,e-1,n,l):zn(t,e,n,l):function(t,e,n){let i="";for(let r=0,s=n.items.length;r<s;r+=1){const s=Wn(t,e,n.items[r],n,{}).text;r>0&&(i+=","+(t.flowSkipCommaSpace?"":" ")),i+=s}const r=t.flowBracketPadding&&n.items.length>0?" ":"";return`[${r}${i}${r}]`}(t,e,n);else{const r=function(t,e,n,i,r,s){return{node:e,parent:n,level:i,isKey:r,flowOnly:s,shiftOfParent:0===i?-1:t.indent*(i-1),shiftOfContent:t.indent*Math.max(1,i),shiftOfFirstLine:0===i?0:t.indent*i,presenterOptions:t,allowedStylesMask:0,style:e.style}}(t,n,i,e,o,!s);_n(r);for(const e of t.scalarStyleRules)e(r);p=jn(r),t.openEnded=(r.style===bt||r.style===xt)&&("\n"===n.value||n.value.endsWith("\n\n")),u=n.tagged||""===p&&r.flowOnly&&"sequence"===i?.kind&&!c||r.style!==gt&&n.tag!==t.defaultScalarTagName}"mapping"!==n.kind&&"sequence"!==n.kind||h||(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(p=`${" ".repeat(t.indent-2)}${p}`);const d=""===p;let f=p;if(u||c){const e=[],i=u?function(t){return t.tagged?t.tag:Lt(t.tag)}(n):null,r=c?`&${n.anchor}`:null;t.tagBeforeAnchor?(null!==i&&e.push(i),null!==r&&e.push(r)):(null!==r&&e.push(r),null!==i&&e.push(i));const s=""===p||10===p.charCodeAt(0)?"":" ";f=`${e.join(" ")}${s}${p}`}return{text:f,noBody:d}}function Kn(t){return("sequence"===t.kind||"mapping"===t.kind)&&t.style===vt&&0!==t.items.length&&!t.tagged&&void 0===t.anchor}function Yn(t){let e="";for(const n of t.directives){if("yaml"===n.kind){e+=`%YAML ${n.version}\n`;continue}const{handle:t,prefix:i}=n;e+=`%TAG ${t} ${i}\n`}return e}function Hn(t,e){const n=function(t){const e={...Bn,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}(e);let i="",r=!1;for(let e=0;e<t.length;e+=1){const s=t[e];n.openEnded=!1;const o=Yn(s),a=""!==o,l=s.explicitStart||a||e>0&&!r;if(i+=o,null===s.contents)l&&(i+="---\n");else if(l){const t=Wn(n,0,s.contents,null,{block:!0,compact:!0}).text;i+=`---${""===t?"":a||Kn(s.contents)?"\n":" "}${t}\n`}else i+=Wn(n,0,s.contents,null,{block:!0,compact:!0}).text+"\n";r=s.explicitEnd||n.openEnded,r&&(i+="...\n")}return i}var Xn={...Bn,schema:nt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function Zn(t,e){const n=String(t),i=String(e);return n<i?-1:n>i?1:0}function Qn(t,e={}){const n={...Xn,...e},i=Qe(t,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});if(n.flowLevel>=0&&nn(i,(t,e)=>{if(!(e.depth<n.flowLevel))return"sequence"!==t.kind&&"mapping"!==t.kind||(t.style=At),tn}),n.sortKeys){const t=!0===n.sortKeys?Zn:n.sortKeys;nn(i,e=>{"mapping"===e.kind&&e.items.sort((e,n)=>t("scalar"===e.key.kind?e.key.value:"","scalar"===n.key.kind?n.key.value:""))})}return n.transform(i),Hn(i,{...Y(n,Object.keys(Bn)),schema:n.schema})}},87818(t,e,n){n.d(e,{A:()=>i});class i{constructor(t,e={},n){this.pattern=t,this.separator=e.separator||".",this.segments=this._parse(t),this.data=n,this._hasDeepWildcard=this.segments.some(t=>"deep-wildcard"===t.type),this._hasAttributeCondition=this.segments.some(t=>void 0!==t.attrName),this._hasPositionSelector=this.segments.some(t=>void 0!==t.position)}_parse(t){const e=[];let n=0,i="";for(;n<t.length;)t[n]===this.separator?n+1<t.length&&t[n+1]===this.separator?(i.trim()&&(e.push(this._parseSegment(i.trim())),i=""),e.push({type:"deep-wildcard"}),n+=2):(i.trim()&&e.push(this._parseSegment(i.trim())),i="",n++):(i+=t[n],n++);return i.trim()&&e.push(this._parseSegment(i.trim())),e}_parseSegment(t){const e={type:"tag"};let n=null,i=t;const r=t.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(r&&(i=r[1]+r[3],r[2])){const t=r[2].slice(1,-1);t&&(n=t)}let s,o,a=i;if(i.includes("::")){const e=i.indexOf("::");if(s=i.substring(0,e).trim(),a=i.substring(e+2).trim(),!s)throw new Error(`Invalid namespace in pattern: ${t}`)}let l=null;if(a.includes(":")){const t=a.lastIndexOf(":"),e=a.substring(0,t).trim(),n=a.substring(t+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(o=e,l=n):o=a}else o=a;if(!o)throw new Error(`Invalid segment pattern: ${t}`);if(e.tag=o,s&&(e.namespace=s),n)if(n.includes("=")){const t=n.indexOf("=");e.attrName=n.substring(0,t).trim(),e.attrValue=n.substring(t+1).trim()}else e.attrName=n.trim();if(l){const t=l.match(/^nth\((\d+)\)$/);t?(e.position="nth",e.positionValue=parseInt(t[1],10)):e.position=l}return e}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}},89596(t,e,n){n.d(e,{A:()=>r});class i{constructor(t){this._matcher=t}get separator(){return this._matcher.separator}getCurrentTag(){const t=this._matcher.path;return t.length>0?t[t.length-1].tag:void 0}getCurrentNamespace(){const t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){const e=this._matcher.path;if(0!==e.length)return e[e.length-1].values?.[t]}hasAttr(t){const e=this._matcher.path;if(0===e.length)return!1;const n=e[e.length-1];return void 0!==n.values&&t in n.values}getAnyParentAttr(t){return this._matcher.getAnyParentAttr(t)}hasAnyParentAttr(t){return this._matcher.hasAnyParentAttr(t)}getPosition(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].position??0}getCounter(){const t=this._matcher.path;return 0===t.length?-1:t[t.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t,e=!0){return this._matcher.toString(t,e)}toArray(){return this._matcher.path.map(t=>t.tag)}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}}class r{constructor(t={}){this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new i(this),this._keptAttrs=[]}push(t,e=null,n=null,i=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const r=this.path.length;let s=this.siblingStacks[r];s||(s={counts:new Map,total:0},this.siblingStacks[r]=s);const o=n?`${n}:${t}`:t,a=s.counts.get(o)||0,l=s.total;s.counts.set(o,a+1),s.total++;const c={tag:t,position:l,counter:a};null!=n&&(c.namespace=n),null!=e&&(c.values=e),this.path.push(c);const p=this.path.length,u=null!==i?i.keep:null;if(null!=u&&u.length>0&&e)for(let t=0;t<u.length;t++){const n=u[t];void 0!==e[n]&&this._keptAttrs.push({depth:p,name:n,value:e[n]})}}pop(){if(0===this.path.length)return;this._pathStringCache=null;const t=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);const e=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=e;)this._keptAttrs.pop();return t}updateCurrent(t){if(this.path.length>0){const e=this.path[this.path.length-1];null!=t&&(e.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){if(0!==this.path.length)return this.path[this.path.length-1].values?.[t]}hasAttr(t){if(0===this.path.length)return!1;const e=this.path[this.path.length-1];return void 0!==e.values&&t in e.values}getAnyParentAttr(t){const e=this._keptAttrs;for(let n=e.length-1;n>=0;n--)if(e[n].name===t)return e[n].value}hasAnyParentAttr(t){const e=this._keptAttrs;for(let n=e.length-1;n>=0;n--)if(e[n].name===t)return!0;return!1}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t,e=!0){const n=t||this.separator;if(n===this.separator&&!0===e){if(null!==this._pathStringCache)return this._pathStringCache;const t=this.path.map(t=>t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(n);return this._pathStringCache=t,t}return this.path.map(t=>e&&t.namespace?`${t.namespace}:${t.tag}`:t.tag).join(n)}toArray(){return this.path.map(t=>t.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(t){const e=t.segments;return 0!==e.length&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(e):this._matchSimple(e))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let e=0;e<t.length;e++)if(!this._matchSegment(t[e],this.path[e],e===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(t){let e=this.path.length-1,n=t.length-1;for(;n>=0&&e>=0;){const i=t[n];if("deep-wildcard"===i.type){if(n--,n<0)return!0;const i=t[n];let r=!1;for(let t=e;t>=0;t--)if(this._matchSegment(i,this.path[t],t===this.path.length-1)){e=t-1,n--,r=!0;break}if(!r)return!1}else{if(!this._matchSegment(i,this.path[e],e===this.path.length-1))return!1;e--,n--}}return n<0}_matchSegment(t,e,n){if("*"!==t.tag&&t.tag!==e.tag)return!1;if(void 0!==t.namespace&&"*"!==t.namespace&&t.namespace!==e.namespace)return!1;if(void 0!==t.attrName){if(!n)return!1;if(!e.values||!(t.attrName in e.values))return!1;if(void 0!==t.attrValue&&String(e.values[t.attrName])!==String(t.attrValue))return!1}if(void 0!==t.position){if(!n)return!1;const i=e.counter??0;if("first"===t.position&&0!==i)return!1;if("odd"===t.position&&i%2!=1)return!1;if("even"===t.position&&i%2!=0)return!1;if("nth"===t.position&&i!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map(t=>({...t})),siblingStacks:this.siblingStacks.map(t=>t?{counts:new Map(t.counts),total:t.total}:t),keptAttrs:this._keptAttrs.map(t=>({...t}))}}restore(t){this._pathStringCache=null,this.path=t.path.map(t=>({...t})),this.siblingStacks=t.siblingStacks.map(t=>t?{counts:new Map(t.counts),total:t.total}:t),this._keptAttrs=(t.keptAttrs||[]).map(t=>({...t}))}readOnly(){return this._view}}},63398(t,e,n){n.d(e,{qg:()=>x,As:()=>O});class i extends Error{line;column;codeblock;constructor(t,e){const[n,i]=function(t,e){let n=t.slice(0,e).split(/\r?\n/);return[n.length,n.pop().length+1]}(e.toml,e.ptr),r=function(t,e,n){let i=t.split(/\r?\n/),r="",s=1+(0|Math.log10(e+1));for(let t=e-1;t<=e+1;t++){let o=i[t-1];o&&(r+=t.toString().padEnd(s," "),r+=": ",r+=o,r+="\n",t===e&&(r+=" ".repeat(s+n+2),r+="^\n"))}return r}(e.toml,n,i);super(`Invalid TOML document: ${t}\n\n${r}`,e),this.line=n,this.column=i,this.codeblock=r}static x(t,e,n){throw new i(t,{toml:e.s,ptr:n??e.p})}}function r(t){let e=t.p,n=t.s.charCodeAt(t.p++),r=n,s=39===n,o=n===t.s.charCodeAt(t.p)&&n===t.s.charCodeAt(t.p+1);o&&(10===(n=t.s.charCodeAt(t.p+=2))?t.p++:13===n&&10===t.s.charCodeAt(t.p+1)&&(t.p+=2));let a="",l=t.p,c=0;for(;t.p<t.s.length;t.p++)if(n=t.s.charCodeAt(t.p),o&&(10===n||13===n&&10===t.s.charCodeAt(t.p+1)))c=c&&3;else if(n<32&&9!==n||127===n)i.x("control characters are not allowed in strings",t);else{if(!(c&&3!==c||n!==r||o&&(t.s.charCodeAt(t.p+1)!==r||t.s.charCodeAt(t.p+2)!==r))){if(o&&(t.s.charCodeAt(t.p+3)===r&&t.p++,t.s.charCodeAt(t.p+3)===r&&t.p++),!c){let e=t.s.slice(l,t.p);a=a?a+e:e}return t.p+=o?3:1,a}if(c)if(1===c)if(120===n||117===n||85===n){let e=t.p++-1,r=0,s=120===n?2:117===n?4:8;for(let e=0;e<s;e++,t.p++){let e=t.s.charCodeAt(t.p),n=e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:-1;n<0&&i.x("invalid non-hex character in unicode escape",t),r=r<<4|n}(r<0||r>1114111||r>=55296&&r<=57343)&&i.x("invalid unicode escape",t,e),a+=String.fromCodePoint(r),l=t.p--,c=0}else!o||32!==n&&9!==n?(98===n?a+="\b":116===n?a+="\t":110===n?a+="\n":102===n?a+="\f":114===n?a+="\r":101===n?a+="":34===n?a+='"':92===n?a+="\\":i.x("unrecognised escape sequence",t),l=t.p+1,c=0):c=2;else 32!==n&&9!==n&&(2===c&&i.x("invalid escape: only line-ending whitespace may be escaped",t,l),c=s||92!==n?0:1,l=t.p);else s||92!==n||(a+=t.s.slice(l,l=t.p),c=1)}i.x("unfinished string",t,e)}let s=/^(\d{4}-\d{2}-\d{2})?[Tt ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|z|[-+]\d{2}:\d{2})?$/i;class o extends Date{#t=!1;#e=!1;#n=null;constructor(t,e,n){let i,r=!0,o=!0,a="Z";if("string"==typeof t)if(e)t:{if(e<3){if(+t.slice(11,13)>23){t="";break t}2===e?(a=null,t+="Z"):90!==(i=t.charCodeAt(t.length-1))&&122!==i&&(a=t.slice(t.length-6)),n&&(t=t.slice(0,10)+"T"+t.slice(11))}else 4===e&&(t=+t.slice(0,2)>23?"":`0000-01-01T${t}Z`);r=4!==e,o=3!==e}else{let e=t.match(s);e?(e[1]||(r=!1,t=`0000-01-01T${t}`),o=!!e[2],o&&" "===t[10]&&(t=t.replace(" ","T")),e[2]&&+e[2]>23?t="":(a=e[3]||null,!a&&o&&(t+="Z"))):t=""}super(t),isNaN(this.getTime())||(this.#t=r,this.#e=o,this.#n=a)}isDateTime(){return this.#t&&this.#e}isLocal(){return!this.#t||!this.#e||!this.#n}isDate(){return this.#t&&!this.#e}isTime(){return this.#e&&!this.#t}isValid(){return this.#t||this.#e}toISOString(){let t=super.toISOString();if(this.isDate())return t.slice(0,10);if(this.isTime())return t.slice(11,23);if(null===this.#n)return t.slice(0,-1);if("Z"===this.#n||"z"===this.#n)return t;let e=60*+this.#n.slice(1,3)+ +this.#n.slice(4,6);return e="-"===this.#n[0]?e:-e,new Date(this.getTime()-6e4*e).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,e="Z"){let n=new o(t);return n.#n=e,n}static wrapAsLocalDateTime(t){let e=new o(t);return e.#n=null,e}static wrapAsLocalDate(t){let e=new o(t);return e.#e=!1,e.#n=null,e}static wrapAsLocalTime(t){let e=new o(t);return e.#t=!1,e.#n=null,e}}function a(t,e=10){return 16===e?t>47&&t<58||t>64&&t<71||t>96&&t<103:t>47&&t<48+e}function l(t,e){return 32===t||9===t||10===t||13===t||e&&(t===e||44===t)||35===t}function c(t,e){let n=t.p,s=t.s.charCodeAt(t.p);if(91===s||123===s){t.d--||i.x("document contains excessively nested structures. aborting.",t);let e=91===s?function(t){let e,n=t.p++,r=[];for(;t.p<t.s.length;){if(g(t),93===(e=t.s.charCodeAt(t.p)))return t.p++,r;if(r.push(c(t,93)),g(t),93===(e=t.s.charCodeAt(t.p++)))return r;44!==e&&i.x("expected comma or end of structure",t,t.p-1)}i.x("unfinished array",t,n)}(t):function(t){let e,n=t.p++,r=Object.create(null),s=new Set;for(;t.p<t.s.length;){if(g(t),125===(e=t.s.charCodeAt(t.p)))return t.p++,r;let n,o=r,a=!1,l=t.p,p=m(t);for(let e=0;e<p.length;e++){e&&(o=a?o[n]:o[n]=Object.create(null)),n=p[e],(a=Object.hasOwn(o,n))&&("object"!=typeof o[n]||s.has(o[n]))&&i.x("trying to redefine an already defined value",t,l);let r="__proto__"===n;if(t.uk&&(r||"constructor"===n)){o=1!==t.uk&&i.x("document contains an unsafe property",t,l);break}!a&&r&&Object.defineProperty(o,n,{enumerable:!0,configurable:!0,writable:!0})}a&&i.x("trying to redefine an already defined value",t,l),g(t,!0,!0);let u=c(t,125);if(o&&"object"==typeof(o[n]=u)&&s.add(u),g(t),125===(e=t.s.charCodeAt(t.p++)))return r;44!==e&&i.x("expected comma or end of structure",t,t.p-1)}i.x("unfinished table",t,n)}(t);return t.d++,e}return 34===s||39===s?r(t):116===s?(114===t.s.charCodeAt(++t.p)&&117===t.s.charCodeAt(++t.p)&&101===t.s.charCodeAt(++t.p)||i.x("invalid value",t,n),t.p++,!0):102===s?(97===t.s.charCodeAt(++t.p)&&108===t.s.charCodeAt(++t.p)&&115===t.s.charCodeAt(++t.p)&&101===t.s.charCodeAt(++t.p)||i.x("invalid value",t,n),t.p++,!1):43===s||45===s?p(t,t.p,t.s.charCodeAt(++t.p),44-s,e):45===t.s.charCodeAt(t.p+4)&&45===t.s.charCodeAt(t.p+7)?function(t,e,n){let r,s=t.p++;if(!(a(e)&&a(t.s.charCodeAt(t.p++))&&a(t.s.charCodeAt(t.p++))&&a(t.s.charCodeAt(t.p++))))return p(t,t.p=s,e,0,n);t.p+=5,a(t.s.charCodeAt(t.p++))||i.x("invalid date-time: date part is malformed",t,s);if(t.p>=t.s.length||(32!==(e=t.s.charCodeAt(t.p))||(r=!0,!a(t.s.charCodeAt(t.p+1))))&&84!==e&&116!==e){let e=t.s.slice(s,t.p);return d(t,e,3,!1,s)}58!==t.s.charCodeAt(t.p+=3)&&i.x("invalid date-time: time part is malformed",t,s);58===t.s.charCodeAt(t.p+=3)&&(t.p+=3);if(46===t.s.charCodeAt(t.p))for(;a(t.s.charCodeAt(++t.p)););if(e=t.s.charCodeAt(t.p)){if(90===e||122===e){let e=t.s.slice(s,++t.p);return d(t,e,1,r,s,"[+00:00]")}if(43===e||45===e){let e=t.s.slice(s,t.p+=6);return d(t,e,1,r,s,!t.ld&&"["+t.s.slice(t.p-6,t.p)+"]")}}let o=t.s.slice(s,t.p);return d(t,o,2,r,s)}(t,s,e):58===t.s.charCodeAt(t.p+2)?function(t,e,n){let i=t.p;if(!a(e)||!a(t.s.charCodeAt(++t.p)))return p(t,--t.p,e,0,n);58===t.s.charCodeAt(t.p+=4)&&(t.p+=3);if(46===t.s.charCodeAt(t.p))for(;a(t.s.charCodeAt(++t.p)););let r=t.s.slice(i,t.p);return d(t,r,4,!1,i)}(t,s,e):p(t,t.p,s,0,e)}function p(t,e,n,r,s){let o=n,c=0,p=!1;if(105===o)return 110===t.s.charCodeAt(++t.p)&&102===t.s.charCodeAt(++t.p)||i.x("invalid value",t,e),t.p++,(r||1)/0;if(110===o)return 97===t.s.charCodeAt(++t.p)&&110===t.s.charCodeAt(++t.p)||i.x("invalid value",t,e),t.p++,NaN;if(48===o){if(++t.p>=t.s.length||l(o=t.s.charCodeAt(t.p),s))return!0===t.bi?0n:0;if(!r){if(120===o)return u(t,e,16,s);if(98===o)return u(t,e,2,s);if(111===o)return u(t,e,8,s)}46===o?c=2:101===o||69===o?c=4:i.x("illegal leading zero",t,e)}else a(o)||i.x("invalid value",t,e);for(;++t.p<t.s.length&&(o=t.s.charCodeAt(t.p),!l(o,s));)c||(c=1),95===o?(1&c||i.x("illegal underscore",t),c+=11,p=!0):1===c&&46===o?c=2:1!==c&&3!==c||101!==o&&69!==o?4!==c||43!==o&&45!==o?a(o)?c>9?c-=11:1&c||c++:i.x("illegal character in numeric literal",t):c=6:c=4;if(!c){let e=(n-48)*(r||1);return!0===t.bi?BigInt(e):e}1&c||i.x("unfinished numeric value",t,e);let d=t.s.slice(e,t.p);return p&&(d=d.replaceAll("_","")),c>1?parseFloat(d):h(t,d,10,e)}function u(t,e,n,r){let s,o=1;for(;++t.p<t.s.length&&(s=t.s.charCodeAt(t.p),!l(s,r));)95===s?(1&o&&i.x("illegal underscore",t),o=3):a(s,n)?1&o&&o--:i.x("illegal character in numeric literal",t);1&o&&i.x("unfinished numeric value",t);let c=t.s.slice(e+2,t.p);return o&&(c=c.replaceAll("_","")),h(t,c,n,e)}function h(t,e,n,r){if(!0!==t.bi)t:{let s=parseInt(e,n);if(!Number.isSafeInteger(s)){if(t.bi)break t;i.x("integer value cannot be represented losslessly",t,r)}return s}return 10===n?BigInt(e):BigInt((2===n?"0b":8===n?"0o":"0x")+e)}function d(t,e,n,r,s,a){if(t.ld){let a=new o(e,n,r);return a.isValid()||i.x("invalid date",t,s),a}try{switch(a&&(e+=a),n){case 1:return Temporal.ZonedDateTime.from(e);case 2:return Temporal.PlainDateTime.from(e);case 3:return Temporal.PlainDate.from(e);case 4:return Temporal.PlainTime.from(e)}}catch(e){i.x(e instanceof Error?e.message:""+e,t,s)}}function f(t){for(;t.p<t.s.length;t.p++){let e=t.s.charCodeAt(t.p);if(10===e)break;if(13===e&&10===t.s.charCodeAt(t.p+1)){t.p++;break}(e<32&&9!==e||127===e)&&i.x("control characters are not allowed in comments",t)}}function g(t,e,n){let i;for(;t.p<t.s.length;){for(;t.p<t.s.length&&(32===(i=t.s.charCodeAt(t.p))||9===i||!e&&(10===i||13===i&&10===t.s.charCodeAt(t.p+1)));)t.p++;if(n||35!==i)break;f(t)}}function m(t,e=61){let n,s,o=0,a=[],l=t.s.charCodeAt(n=t.p);do{if(l===e)return o||i.x("unexpected end of key",t),1===o&&a.push(t.s.slice(s,t.p)),t.p++,a;46===l?(o||i.x("illegal empty bare key",t),1===o&&a.push(t.s.slice(s,t.p)),o=0):o||34!==l&&39!==l?32===l||9===l?1===o&&(a.push(t.s.slice(s,t.p)),o=2):2===o||l<48&&45!==l||l>57&&l<65||l>90&&l<97&&95!==l||l>122?i.x("illegal character in key",t):o||(o=1,s=t.p):(l===t.s.charCodeAt(t.p+1)&&l===t.s.charCodeAt(t.p+2)&&i.x("illegal quoted key: multiline strings are not allowed",t),a.push(r(t)),o=2,t.p--)}while(l=t.s.charCodeAt(++t.p));i.x("incomplete key-value: cannot find end of key",t,n)}function y(t,e,n,i,r){let s,o,a=n,l=i,c=!1;for(let n=0;n<e.length;n++){if(n){if(a=c?a[s]:a[s]=Object.create(null),l=(o=l[s]).c,0===r&&(1===o.t||2===o.t))return null;if(2===o.t){let t=a.length-1;a=a[t],l=l[t].c}}if(s=e[n],(c=Object.hasOwn(a,s))&&0===l[s]?.t&&l[s]?.d)return null;if(!c){let i="__proto__"===s;if(t.uk&&(i||"constructor"===s))return!1;i&&(Object.defineProperty(a,s,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(l,s,{enumerable:!0,configurable:!0,writable:!0})),l[s]={t:n<e.length-1&&2===r?3:r,d:!1,i:0,c:Object.create(null)}}}if(o=l[s],o.t!==r&&(1!==r||3!==o.t))return null;if(2===r&&(o.d||(o.d=!0,a[s]=[]),a[s].push(a=Object.create(null)),o.c[o.i++]=o={t:1,d:!1,i:0,c:Object.create(null)}),o.d)return null;if(o.d=!0,1===r)a=c?a[s]:a[s]=Object.create(null);else if(0===r&&c)return null;return[s,a,o.c]}function b(t,e,n){null!==e&&2!==t.uk||i.x(null===e?"trying to redefine an already defined table or value":"document contains an unsafe property",t,n)}function x(t,e={}){let n,r={s:t,p:0,d:e.maxDepth??1e3,bi:e.integersAsBigInt??!1,ld:e.useLegacyDate??!0,uk:"throw"===e.unsafeKeyBehaviour?2:"drop"===e.unsafeKeyBehaviour?1:0},s=Object.create(null),o=Object.create(null),a=!1,l=s,p=o;for(65279===t.charCodeAt(0)&&r.p++,g(r);r.p<t.length;){if(91===t.charCodeAt(r.p)){let e=91===t.charCodeAt(++r.p);n=r.p+=+e,a=!1;let c=m(r,93);e&&(93!==t.charCodeAt(r.p)&&i.x("expected end of table array declaration",r),r.p++);let u=y(r,c,s,o,e?2:1);u?(p=u[2],l=u[1]):(b(r,u,n),a=!0)}else{n=r.p;let t=y(r,m(r),l,p,0);t||a||b(r,t,n),g(r,!0,!0);let e=c(r,void 0);t&&!a&&(t[1][t[0]]=e)}g(r,!0),r.p<t.length&&10!==(n=t.charCodeAt(r.p))&&(13!==n||10!==t.charCodeAt(r.p+1))&&i.x("each key-value declaration must be followed by an end-of-line",r),g(r)}return s}let v=/^[a-z0-9-_]+$/i,A=!!"".isWellFormed;function N(t){let e=typeof t;if("object"===e){if(Array.isArray(t))return"array";if("function"==typeof t.getUTCDate&&t instanceof Date)return"date";if(globalThis.Temporal)if(t.until){if(t instanceof Temporal.ZonedDateTime)return"temporal/tz+uc";if(t instanceof Temporal.PlainDateTime||t instanceof Temporal.PlainDate)return"temporal/uc";if(t instanceof Temporal.PlainTime||t instanceof Temporal.Instant)return"temporal";if(t instanceof Temporal.PlainYearMonth)return"temporal/x"}else if(t.toPlainDate&&t instanceof Temporal.PlainMonthDay||t.negated&&t instanceof Temporal.Duration)return"temporal/x"}return e}function w(t){for(let e=0;e<t.length;e++)if("object"!==N(t[e]))return!1;return 0!=t.length}function E(t){return JSON.stringify(t).replaceAll("","\\u007f")}function S(t){if(v.test(t))return t;if(A&&!t.isWellFormed())throw new RangeError("key contains illegal lone surrogates");return E(t)}function C(t,e,n,i,r){if(0===n)throw new Error("Could not stringify the object: maximum object depth exceeded");switch(e){case"number":if(isNaN(t))return"nan";if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Number.isInteger(t)&&(i||!Number.isSafeInteger(t)))return t.toFixed(1);case"bigint":case"boolean":case"temporal":return t.toString();case"string":return s=t,E(A?s.toWellFormed():s);case"date":if(isNaN(t.getTime()))throw new TypeError("cannot serialize invalid date");return t.toISOString();case"object":return function(t,e,n,i){let r=Object.keys(t);if(0===r.length)return"{}";let s="{ ";for(let o=0;o<r.length;o++){let a=r[o];o&&(s+=", "),s+=S(a)+" = "+C(t[a],N(t[a]),e-1,n,i)}return s+" }"}(t,n,i,r);case"array":return function(t,e,n,i){if(0===t.length)return"[]";let r="[ ";for(let s=0;s<t.length;s++){if(s&&(r+=", "),null===t[s]||void 0===t[s])throw new TypeError("arrays cannot contain null or undefined values");r+=C(t[s],N(t[s]),e-1,n,i)}return r+" ]"}(t,n,i,r);case"temporal/tz+uc":if(r){let e=t.timeZoneId,n=e.charCodeAt(0);if(43!==n&&45!==n&&(85!==n&&71!==n&&90!==n&&69!==n||"UTC"!==e&&"UCT"!==e&&"Universal"!==e&&"Zulu"!==e&&!e.startsWith("GMT")&&"Greenwich"!==e&&!e.startsWith("Etc/")))throw new TypeError("Temporal objects with an IANA timezone are not allowed in Temporal strict mode")}case"temporal/uc":if(r&&"iso8601"!==t.calendarId)throw new TypeError("Temporal objects with a non-default calendar are not allowed in Temporal strict mode");return t.toString({calendarName:"never",timeZoneName:"never"});case"temporal/x":throw new TypeError("Unsupported "+t[Symbol.toStringTag])}var s}function T(t,e,n,i,r){if(0===n)throw new Error("Could not stringify the object: maximum object depth exceeded");let s="";for(let o=0;o<t.length;o++)s+=`${s&&"\n"}[[${e}]]\n`,s+=k(0,t[o],e,n,i,r);return s}function k(t,e,n,i,r,s){if(0===i)throw new Error("Could not stringify the object: maximum object depth exceeded");let o="",a="",l=Object.keys(e);for(let t=0;t<l.length;t++){let c=l[t];if(null!==e[c]&&void 0!==e[c]){let t=N(e[c]);if("symbol"===t||"function"===t)throw new TypeError(`cannot serialize values of type '${t}'`);let l=S(c);if("array"===t&&w(e[c]))a+=(a&&"\n")+T(e[c],n?`${n}.${l}`:l,i-1,r,s);else if("object"===t){let t=n?`${n}.${l}`:l;a+=(a&&"\n")+k(t,e[c],t,i-1,r,s)}else o+=l,o+=" = ",o+=C(e[c],t,i,r,s),o+="\n"}}return!t||!o&&a||(o=o?`[${t}]\n${o}`:`[${t}]`),o&&a?`${o}\n${a}`:o||a}function O(t,{maxDepth:e=1e3,numbersAsFloat:n=!1,strictTemporal:i=!1}={}){if("object"!==N(t))throw new TypeError("stringify can only be called with an object");let r=k(0,t,"",e,n,i);return"\n"!==r[r.length-1]?r+"\n":r}},84545(t,e,n){n.d(e,{fG:()=>h,fH:()=>f});const i=":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�",r=":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",s=r+"\\-\\.\\d·̀-ͯ҇‿-⁀",o=(t,e,n="")=>{const i=`[${t.replace(":","")}][${e.replace(":","")}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,n),ncName:new RegExp(`^${i}$`,n),qName:new RegExp(`^${i}(?::${i})?$`,n),nmToken:new RegExp(`^[${e}]+$`,n),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,n)}},a=o(i,i+"\\-\\.\\d·̀-ͯ‿-⁀"),l=o(r,s,"u"),c=":A-Za-z_",p=o(c,c+"\\-\\.\\d"),u=(t="1.0",e=!1)=>e?p:"1.1"===t?l:a,h=(t,{xmlVersion:e="1.0",asciiOnly:n=!1}={})=>u(e,n).qName.test(t),d=["name","ncName","qName","nmToken","nmTokens"],f=(t,{xmlVersion:e="1.0",asciiOnly:n=!1,maxCacheSize:i=2048}={})=>{if(!d.includes(t))throw new TypeError(`Unknown production "${t}". Must be one of: ${d.join(", ")}`);const r=u(e,n)[t];let s=new Map;const o=t=>{const e=s.get(t);if(void 0!==e)return e;const n=r.test(t);return s.size<i&&s.set(t,n),n};return o.reset=()=>{s=new Map},o}}}]);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
3
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
*
|
|
5
|
+
* Redistribution and use in source and binary forms, with or without
|
|
6
|
+
* modification, are permitted provided that the following conditions are met:
|
|
7
|
+
*
|
|
8
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
* list of conditions and the following disclaimer.
|
|
10
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer in the
|
|
12
|
+
* documentation and/or other materials provided with the distribution.
|
|
13
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
14
|
+
* may be used to endorse or promote products derived from this software without
|
|
15
|
+
* specific prior written permission.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
18
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
19
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/*! js-yaml 5.4.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
33
|
+
*
|
|
34
|
+
* @namespace md5
|
|
35
|
+
* @version 0.9.2
|
|
36
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
37
|
+
* @copyright Chen, Yi-Cyuan 2014-2026
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/
|