hot-updater 0.20.11 → 0.20.13
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/dist/config.cjs +1 -1
- package/dist/config.js +1 -1
- package/dist/{fingerprint-CvRtj7M7.js → fingerprint-DA-PV8fp.js} +414 -592
- package/dist/{fingerprint-DNKLuLyV.cjs → fingerprint-xeLO0LG3.cjs} +415 -593
- package/dist/index.cjs +3918 -4351
- package/dist/index.js +3934 -4367
- package/dist/plugins/babel.cjs +3 -3
- package/dist/plugins/babel.js +2 -2
- package/package.json +8 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __require, __toESM, require_picocolors } from "./picocolors-BnzanxXs.js";
|
|
2
|
-
import fs from "fs";
|
|
3
2
|
import * as p from "@clack/prompts";
|
|
4
3
|
import { getCwd, loadConfig } from "@hot-updater/plugin-core";
|
|
5
4
|
import path from "path";
|
|
5
|
+
import fs from "fs";
|
|
6
6
|
import { SourceSkips, createFingerprintAsync, diffFingerprintChangesAsync } from "@expo/fingerprint";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.2.3/node_modules/fast-xml-parser/src/util.js
|
|
@@ -703,11 +703,8 @@ function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode,
|
|
|
703
703
|
if (newval === null || newval === void 0) return val;
|
|
704
704
|
else if (typeof newval !== typeof val || newval !== val) return newval;
|
|
705
705
|
else if (this.options.trimValues) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
706
|
-
else
|
|
707
|
-
|
|
708
|
-
if (trimmedVal === val) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
709
|
-
else return val;
|
|
710
|
-
}
|
|
706
|
+
else if (val.trim() === val) return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);
|
|
707
|
+
else return val;
|
|
711
708
|
}
|
|
712
709
|
}
|
|
713
710
|
}
|
|
@@ -759,125 +756,122 @@ const parseXml = function(xmlData) {
|
|
|
759
756
|
let currentNode = xmlObj;
|
|
760
757
|
let textData = "";
|
|
761
758
|
let jPath = "";
|
|
762
|
-
for (let i$1 = 0; i$1 < xmlData.length; i$1++) {
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
if (
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const
|
|
797
|
-
if (this.options.commentPropName) {
|
|
798
|
-
const comment = xmlData.substring(i$1 + 4, endIndex - 2);
|
|
799
|
-
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
800
|
-
currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
|
|
801
|
-
}
|
|
802
|
-
i$1 = endIndex;
|
|
803
|
-
} else if (xmlData.substr(i$1 + 1, 2) === "!D") {
|
|
804
|
-
const result = readDocType(xmlData, i$1);
|
|
805
|
-
this.docTypeEntities = result.entities;
|
|
806
|
-
i$1 = result.i;
|
|
807
|
-
} else if (xmlData.substr(i$1 + 1, 2) === "![") {
|
|
808
|
-
const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "CDATA is not closed.") - 2;
|
|
809
|
-
const tagExp = xmlData.substring(i$1 + 9, closeIndex);
|
|
759
|
+
for (let i$1 = 0; i$1 < xmlData.length; i$1++) if (xmlData[i$1] === "<") if (xmlData[i$1 + 1] === "/") {
|
|
760
|
+
const closeIndex = findClosingIndex(xmlData, ">", i$1, "Closing Tag is not closed.");
|
|
761
|
+
let tagName = xmlData.substring(i$1 + 2, closeIndex).trim();
|
|
762
|
+
if (this.options.removeNSPrefix) {
|
|
763
|
+
const colonIndex = tagName.indexOf(":");
|
|
764
|
+
if (colonIndex !== -1) tagName = tagName.substr(colonIndex + 1);
|
|
765
|
+
}
|
|
766
|
+
if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
|
|
767
|
+
if (currentNode) textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
768
|
+
const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1);
|
|
769
|
+
if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
|
|
770
|
+
let propIndex = 0;
|
|
771
|
+
if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {
|
|
772
|
+
propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1);
|
|
773
|
+
this.tagsNodeStack.pop();
|
|
774
|
+
} else propIndex = jPath.lastIndexOf(".");
|
|
775
|
+
jPath = jPath.substring(0, propIndex);
|
|
776
|
+
currentNode = this.tagsNodeStack.pop();
|
|
777
|
+
textData = "";
|
|
778
|
+
i$1 = closeIndex;
|
|
779
|
+
} else if (xmlData[i$1 + 1] === "?") {
|
|
780
|
+
let tagData = readTagExp(xmlData, i$1, false, "?>");
|
|
781
|
+
if (!tagData) throw new Error("Pi Tag is not closed.");
|
|
782
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
783
|
+
if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) {} else {
|
|
784
|
+
const childNode = new XmlNode(tagData.tagName);
|
|
785
|
+
childNode.add(this.options.textNodeName, "");
|
|
786
|
+
if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
|
|
787
|
+
this.addChild(currentNode, childNode, jPath, i$1);
|
|
788
|
+
}
|
|
789
|
+
i$1 = tagData.closeIndex + 1;
|
|
790
|
+
} else if (xmlData.substr(i$1 + 1, 3) === "!--") {
|
|
791
|
+
const endIndex = findClosingIndex(xmlData, "-->", i$1 + 4, "Comment is not closed.");
|
|
792
|
+
if (this.options.commentPropName) {
|
|
793
|
+
const comment = xmlData.substring(i$1 + 4, endIndex - 2);
|
|
810
794
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
795
|
+
currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);
|
|
796
|
+
}
|
|
797
|
+
i$1 = endIndex;
|
|
798
|
+
} else if (xmlData.substr(i$1 + 1, 2) === "!D") {
|
|
799
|
+
const result = readDocType(xmlData, i$1);
|
|
800
|
+
this.docTypeEntities = result.entities;
|
|
801
|
+
i$1 = result.i;
|
|
802
|
+
} else if (xmlData.substr(i$1 + 1, 2) === "![") {
|
|
803
|
+
const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "CDATA is not closed.") - 2;
|
|
804
|
+
const tagExp = xmlData.substring(i$1 + 9, closeIndex);
|
|
805
|
+
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
|
806
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
|
807
|
+
if (val == void 0) val = "";
|
|
808
|
+
if (this.options.cdataPropName) currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);
|
|
809
|
+
else currentNode.add(this.options.textNodeName, val);
|
|
810
|
+
i$1 = closeIndex + 2;
|
|
811
|
+
} else {
|
|
812
|
+
let result = readTagExp(xmlData, i$1, this.options.removeNSPrefix);
|
|
813
|
+
let tagName = result.tagName;
|
|
814
|
+
const rawTagName = result.rawTagName;
|
|
815
|
+
let tagExp = result.tagExp;
|
|
816
|
+
let attrExpPresent = result.attrExpPresent;
|
|
817
|
+
let closeIndex = result.closeIndex;
|
|
818
|
+
if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
|
|
819
|
+
if (currentNode && textData) {
|
|
820
|
+
if (currentNode.tagname !== "!xml") textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
|
|
821
|
+
}
|
|
822
|
+
const lastTag = currentNode;
|
|
823
|
+
if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
|
|
824
|
+
currentNode = this.tagsNodeStack.pop();
|
|
825
|
+
jPath = jPath.substring(0, jPath.lastIndexOf("."));
|
|
826
|
+
}
|
|
827
|
+
if (tagName !== xmlObj.tagname) jPath += jPath ? "." + tagName : tagName;
|
|
828
|
+
const startIndex = i$1;
|
|
829
|
+
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
|
830
|
+
let tagContent = "";
|
|
831
|
+
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
832
|
+
if (tagName[tagName.length - 1] === "/") {
|
|
833
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
|
834
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
835
|
+
tagExp = tagName;
|
|
836
|
+
} else tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
837
|
+
i$1 = result.closeIndex;
|
|
838
|
+
} else if (this.options.unpairedTags.indexOf(tagName) !== -1) i$1 = result.closeIndex;
|
|
839
|
+
else {
|
|
840
|
+
const result$1 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
|
841
|
+
if (!result$1) throw new Error(`Unexpected end of ${rawTagName}`);
|
|
842
|
+
i$1 = result$1.i;
|
|
843
|
+
tagContent = result$1.tagContent;
|
|
844
|
+
}
|
|
845
|
+
const childNode = new XmlNode(tagName);
|
|
846
|
+
if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
847
|
+
if (tagContent) tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
|
|
848
|
+
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
849
|
+
childNode.add(this.options.textNodeName, tagContent);
|
|
850
|
+
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
816
851
|
} else {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
if (currentNode && textData) {
|
|
825
|
-
if (currentNode.tagname !== "!xml") textData = this.saveTextToParentTag(textData, currentNode, jPath, false);
|
|
826
|
-
}
|
|
827
|
-
const lastTag = currentNode;
|
|
828
|
-
if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {
|
|
829
|
-
currentNode = this.tagsNodeStack.pop();
|
|
830
|
-
jPath = jPath.substring(0, jPath.lastIndexOf("."));
|
|
831
|
-
}
|
|
832
|
-
if (tagName !== xmlObj.tagname) jPath += jPath ? "." + tagName : tagName;
|
|
833
|
-
const startIndex = i$1;
|
|
834
|
-
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
|
835
|
-
let tagContent = "";
|
|
836
|
-
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
837
|
-
if (tagName[tagName.length - 1] === "/") {
|
|
838
|
-
tagName = tagName.substr(0, tagName.length - 1);
|
|
839
|
-
jPath = jPath.substr(0, jPath.length - 1);
|
|
840
|
-
tagExp = tagName;
|
|
841
|
-
} else tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
842
|
-
i$1 = result.closeIndex;
|
|
843
|
-
} else if (this.options.unpairedTags.indexOf(tagName) !== -1) i$1 = result.closeIndex;
|
|
844
|
-
else {
|
|
845
|
-
const result$1 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
|
846
|
-
if (!result$1) throw new Error(`Unexpected end of ${rawTagName}`);
|
|
847
|
-
i$1 = result$1.i;
|
|
848
|
-
tagContent = result$1.tagContent;
|
|
849
|
-
}
|
|
852
|
+
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
853
|
+
if (tagName[tagName.length - 1] === "/") {
|
|
854
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
|
855
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
856
|
+
tagExp = tagName;
|
|
857
|
+
} else tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
858
|
+
if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
|
|
850
859
|
const childNode = new XmlNode(tagName);
|
|
851
860
|
if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
852
|
-
if (tagContent) tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
|
|
853
|
-
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
854
|
-
childNode.add(this.options.textNodeName, tagContent);
|
|
855
861
|
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
862
|
+
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
856
863
|
} else {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
} else tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
863
|
-
if (this.options.transformTagName) tagName = this.options.transformTagName(tagName);
|
|
864
|
-
const childNode = new XmlNode(tagName);
|
|
865
|
-
if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
866
|
-
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
867
|
-
jPath = jPath.substr(0, jPath.lastIndexOf("."));
|
|
868
|
-
} else {
|
|
869
|
-
const childNode = new XmlNode(tagName);
|
|
870
|
-
this.tagsNodeStack.push(currentNode);
|
|
871
|
-
if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
872
|
-
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
873
|
-
currentNode = childNode;
|
|
874
|
-
}
|
|
875
|
-
textData = "";
|
|
876
|
-
i$1 = closeIndex;
|
|
864
|
+
const childNode = new XmlNode(tagName);
|
|
865
|
+
this.tagsNodeStack.push(currentNode);
|
|
866
|
+
if (tagName !== tagExp && attrExpPresent) childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
|
|
867
|
+
this.addChild(currentNode, childNode, jPath, startIndex);
|
|
868
|
+
currentNode = childNode;
|
|
877
869
|
}
|
|
870
|
+
textData = "";
|
|
871
|
+
i$1 = closeIndex;
|
|
878
872
|
}
|
|
879
|
-
else textData += xmlData[i$1];
|
|
880
873
|
}
|
|
874
|
+
else textData += xmlData[i$1];
|
|
881
875
|
return xmlObj.child;
|
|
882
876
|
};
|
|
883
877
|
function addChild(currentNode, childNode, jPath, startIndex) {
|
|
@@ -1000,8 +994,7 @@ function readStopNodeData(xmlData, tagName, i$1) {
|
|
|
1000
994
|
let openTagCount = 1;
|
|
1001
995
|
for (; i$1 < xmlData.length; i$1++) if (xmlData[i$1] === "<") if (xmlData[i$1 + 1] === "/") {
|
|
1002
996
|
const closeIndex = findClosingIndex(xmlData, ">", i$1, `${tagName} is not closed`);
|
|
1003
|
-
|
|
1004
|
-
if (closeTagName === tagName) {
|
|
997
|
+
if (xmlData.substring(i$1 + 2, closeIndex).trim() === tagName) {
|
|
1005
998
|
openTagCount--;
|
|
1006
999
|
if (openTagCount === 0) return {
|
|
1007
1000
|
tagContent: xmlData.substring(startIndex, i$1),
|
|
@@ -1009,20 +1002,13 @@ function readStopNodeData(xmlData, tagName, i$1) {
|
|
|
1009
1002
|
};
|
|
1010
1003
|
}
|
|
1011
1004
|
i$1 = closeIndex;
|
|
1012
|
-
} else if (xmlData[i$1 + 1] === "?")
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
const closeIndex = findClosingIndex(xmlData, "-->", i$1 + 3, "StopNode is not closed.");
|
|
1017
|
-
i$1 = closeIndex;
|
|
1018
|
-
} else if (xmlData.substr(i$1 + 1, 2) === "![") {
|
|
1019
|
-
const closeIndex = findClosingIndex(xmlData, "]]>", i$1, "StopNode is not closed.") - 2;
|
|
1020
|
-
i$1 = closeIndex;
|
|
1021
|
-
} else {
|
|
1005
|
+
} else if (xmlData[i$1 + 1] === "?") i$1 = findClosingIndex(xmlData, "?>", i$1 + 1, "StopNode is not closed.");
|
|
1006
|
+
else if (xmlData.substr(i$1 + 1, 3) === "!--") i$1 = findClosingIndex(xmlData, "-->", i$1 + 3, "StopNode is not closed.");
|
|
1007
|
+
else if (xmlData.substr(i$1 + 1, 2) === "![") i$1 = findClosingIndex(xmlData, "]]>", i$1, "StopNode is not closed.") - 2;
|
|
1008
|
+
else {
|
|
1022
1009
|
const tagData = readTagExp(xmlData, i$1, ">");
|
|
1023
1010
|
if (tagData) {
|
|
1024
|
-
|
|
1025
|
-
if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") openTagCount++;
|
|
1011
|
+
if ((tagData && tagData.tagName) === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") openTagCount++;
|
|
1026
1012
|
i$1 = tagData.closeIndex;
|
|
1027
1013
|
}
|
|
1028
1014
|
}
|
|
@@ -1210,18 +1196,17 @@ function arrToStr(arr, options, jPath, indentation) {
|
|
|
1210
1196
|
isPreviousElementTag = true;
|
|
1211
1197
|
continue;
|
|
1212
1198
|
} else if (tagName[0] === "?") {
|
|
1213
|
-
const attStr
|
|
1199
|
+
const attStr = attr_to_str(tagObj[":@"], options);
|
|
1214
1200
|
const tempInd = tagName === "?xml" ? "" : indentation;
|
|
1215
1201
|
let piTextNodeName = tagObj[tagName][0][options.textNodeName];
|
|
1216
1202
|
piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : "";
|
|
1217
|
-
xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr
|
|
1203
|
+
xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;
|
|
1218
1204
|
isPreviousElementTag = true;
|
|
1219
1205
|
continue;
|
|
1220
1206
|
}
|
|
1221
1207
|
let newIdentation = indentation;
|
|
1222
1208
|
if (newIdentation !== "") newIdentation += options.indentBy;
|
|
1223
|
-
const
|
|
1224
|
-
const tagStart = indentation + `<${tagName}${attStr}`;
|
|
1209
|
+
const tagStart = indentation + `<${tagName}${attr_to_str(tagObj[":@"], options)}`;
|
|
1225
1210
|
const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);
|
|
1226
1211
|
if (options.unpairedTags.indexOf(tagName) !== -1) if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
|
|
1227
1212
|
else xmlStr += tagStart + "/>";
|
|
@@ -1505,8 +1490,7 @@ var AndroidConfigParser = class {
|
|
|
1505
1490
|
const content = await fs.promises.readFile(stringsXmlPath, "utf-8");
|
|
1506
1491
|
const result = this.parser.parse(content);
|
|
1507
1492
|
if (!result.resources.string) continue;
|
|
1508
|
-
const
|
|
1509
|
-
const stringElement = strings.find((str) => str["@_name"] === key && str["@_moduleConfig"] === "true");
|
|
1493
|
+
const stringElement = (Array.isArray(result.resources.string) ? result.resources.string : [result.resources.string]).find((str) => str["@_name"] === key && str["@_moduleConfig"] === "true");
|
|
1510
1494
|
if (stringElement?.["#text"]) return {
|
|
1511
1495
|
value: stringElement["#text"].trim(),
|
|
1512
1496
|
paths: searchedPaths
|
|
@@ -2029,8 +2013,7 @@ var require_dom = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
2029
2013
|
return null;
|
|
2030
2014
|
},
|
|
2031
2015
|
isDefaultNamespace: function(namespaceURI) {
|
|
2032
|
-
|
|
2033
|
-
return prefix == null;
|
|
2016
|
+
return this.lookupPrefix(namespaceURI) == null;
|
|
2034
2017
|
}
|
|
2035
2018
|
};
|
|
2036
2019
|
function _xmlEncoder(c) {
|
|
@@ -2053,13 +2036,11 @@ var require_dom = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
2053
2036
|
}
|
|
2054
2037
|
function _onAddAttribute(doc, el, newAttr) {
|
|
2055
2038
|
doc && doc._inc++;
|
|
2056
|
-
|
|
2057
|
-
if (ns === NAMESPACE$2.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
|
|
2039
|
+
if (newAttr.namespaceURI === NAMESPACE$2.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
|
|
2058
2040
|
}
|
|
2059
2041
|
function _onRemoveAttribute(doc, el, newAttr, remove) {
|
|
2060
2042
|
doc && doc._inc++;
|
|
2061
|
-
|
|
2062
|
-
if (ns === NAMESPACE$2.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
|
|
2043
|
+
if (newAttr.namespaceURI === NAMESPACE$2.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
|
|
2063
2044
|
}
|
|
2064
2045
|
/**
|
|
2065
2046
|
* Updates `el.childNodes`, updating the indexed items and it's `length`.
|
|
@@ -5204,8 +5185,7 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
5204
5185
|
}
|
|
5205
5186
|
var localNSMap = config.localNSMap;
|
|
5206
5187
|
var endMatch = config.tagName == tagName;
|
|
5207
|
-
|
|
5208
|
-
if (endIgnoreCaseMach) {
|
|
5188
|
+
if (endMatch || config.tagName && config.tagName.toLowerCase() == tagName.toLowerCase()) {
|
|
5209
5189
|
domBuilder.endElement(config.uri, config.localName, tagName);
|
|
5210
5190
|
if (localNSMap) {
|
|
5211
5191
|
for (var prefix in localNSMap) if (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) domBuilder.endPrefixMapping(prefix);
|
|
@@ -5488,8 +5468,7 @@ var require_sax = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@xmldom
|
|
|
5488
5468
|
for (var n in source) if (Object.prototype.hasOwnProperty.call(source, n)) target[n] = source[n];
|
|
5489
5469
|
}
|
|
5490
5470
|
function parseDCC(source, start, domBuilder, errorHandler) {
|
|
5491
|
-
|
|
5492
|
-
switch (next) {
|
|
5471
|
+
switch (source.charAt(start + 2)) {
|
|
5493
5472
|
case "-": if (source.charAt(start + 3) === "-") {
|
|
5494
5473
|
var end = source.indexOf("-->", start + 4);
|
|
5495
5474
|
if (end > start) {
|
|
@@ -6115,8 +6094,7 @@ var require_Utility = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
6115
6094
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js
|
|
6116
6095
|
var require_XMLDOMImplementation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js": ((exports, module) => {
|
|
6117
6096
|
(function() {
|
|
6118
|
-
|
|
6119
|
-
module.exports = XMLDOMImplementation = class XMLDOMImplementation$1 {
|
|
6097
|
+
module.exports = class XMLDOMImplementation {
|
|
6120
6098
|
hasFeature(feature, version) {
|
|
6121
6099
|
return true;
|
|
6122
6100
|
}
|
|
@@ -6140,8 +6118,7 @@ var require_XMLDOMImplementation = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
6140
6118
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js
|
|
6141
6119
|
var require_XMLDOMErrorHandler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js": ((exports, module) => {
|
|
6142
6120
|
(function() {
|
|
6143
|
-
|
|
6144
|
-
module.exports = XMLDOMErrorHandler = class XMLDOMErrorHandler$1 {
|
|
6121
|
+
module.exports = class XMLDOMErrorHandler {
|
|
6145
6122
|
constructor() {}
|
|
6146
6123
|
handleError(error) {
|
|
6147
6124
|
throw new Error(error);
|
|
@@ -6154,9 +6131,8 @@ var require_XMLDOMErrorHandler = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
|
6154
6131
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js
|
|
6155
6132
|
var require_XMLDOMStringList = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js": ((exports, module) => {
|
|
6156
6133
|
(function() {
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
class XMLDOMStringList$1 {
|
|
6134
|
+
module.exports = (function() {
|
|
6135
|
+
class XMLDOMStringList {
|
|
6160
6136
|
constructor(arr) {
|
|
6161
6137
|
this.arr = arr || [];
|
|
6162
6138
|
}
|
|
@@ -6167,10 +6143,10 @@ var require_XMLDOMStringList = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6167
6143
|
return this.arr.indexOf(str) !== -1;
|
|
6168
6144
|
}
|
|
6169
6145
|
}
|
|
6170
|
-
Object.defineProperty(XMLDOMStringList
|
|
6146
|
+
Object.defineProperty(XMLDOMStringList.prototype, "length", { get: function() {
|
|
6171
6147
|
return this.arr.length;
|
|
6172
6148
|
} });
|
|
6173
|
-
return XMLDOMStringList
|
|
6149
|
+
return XMLDOMStringList;
|
|
6174
6150
|
}).call(this);
|
|
6175
6151
|
}).call(exports);
|
|
6176
6152
|
}) });
|
|
@@ -6179,13 +6155,10 @@ var require_XMLDOMStringList = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6179
6155
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js
|
|
6180
6156
|
var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js": ((exports, module) => {
|
|
6181
6157
|
(function() {
|
|
6182
|
-
var
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
module.exports = XMLDOMConfiguration = (function() {
|
|
6186
|
-
class XMLDOMConfiguration$1 {
|
|
6158
|
+
var XMLDOMErrorHandler = require_XMLDOMErrorHandler(), XMLDOMStringList = require_XMLDOMStringList();
|
|
6159
|
+
module.exports = (function() {
|
|
6160
|
+
class XMLDOMConfiguration {
|
|
6187
6161
|
constructor() {
|
|
6188
|
-
var clonedSelf;
|
|
6189
6162
|
this.defaultParams = {
|
|
6190
6163
|
"canonical-form": false,
|
|
6191
6164
|
"cdata-sections": false,
|
|
@@ -6205,7 +6178,7 @@ var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJS({ "../../node_modul
|
|
|
6205
6178
|
"validate": false,
|
|
6206
6179
|
"well-formed": true
|
|
6207
6180
|
};
|
|
6208
|
-
this.params =
|
|
6181
|
+
this.params = Object.create(this.defaultParams);
|
|
6209
6182
|
}
|
|
6210
6183
|
getParameter(name) {
|
|
6211
6184
|
if (this.params.hasOwnProperty(name)) return this.params[name];
|
|
@@ -6219,10 +6192,10 @@ var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJS({ "../../node_modul
|
|
|
6219
6192
|
else return delete this.params[name];
|
|
6220
6193
|
}
|
|
6221
6194
|
}
|
|
6222
|
-
Object.defineProperty(XMLDOMConfiguration
|
|
6195
|
+
Object.defineProperty(XMLDOMConfiguration.prototype, "parameterNames", { get: function() {
|
|
6223
6196
|
return new XMLDOMStringList(Object.keys(this.defaultParams));
|
|
6224
6197
|
} });
|
|
6225
|
-
return XMLDOMConfiguration
|
|
6198
|
+
return XMLDOMConfiguration;
|
|
6226
6199
|
}).call(this);
|
|
6227
6200
|
}).call(exports);
|
|
6228
6201
|
}) });
|
|
@@ -6257,11 +6230,10 @@ var require_NodeType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xm
|
|
|
6257
6230
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLAttribute.js
|
|
6258
6231
|
var require_XMLAttribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLAttribute.js": ((exports, module) => {
|
|
6259
6232
|
(function() {
|
|
6260
|
-
var NodeType$1
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
class XMLAttribute$1 {
|
|
6233
|
+
var NodeType$1 = require_NodeType();
|
|
6234
|
+
require_XMLNode();
|
|
6235
|
+
module.exports = (function() {
|
|
6236
|
+
class XMLAttribute {
|
|
6265
6237
|
constructor(parent, name, value) {
|
|
6266
6238
|
this.parent = parent;
|
|
6267
6239
|
if (this.parent) {
|
|
@@ -6294,13 +6266,13 @@ var require_XMLAttribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
6294
6266
|
return true;
|
|
6295
6267
|
}
|
|
6296
6268
|
}
|
|
6297
|
-
Object.defineProperty(XMLAttribute
|
|
6269
|
+
Object.defineProperty(XMLAttribute.prototype, "nodeType", { get: function() {
|
|
6298
6270
|
return this.type;
|
|
6299
6271
|
} });
|
|
6300
|
-
Object.defineProperty(XMLAttribute
|
|
6272
|
+
Object.defineProperty(XMLAttribute.prototype, "ownerElement", { get: function() {
|
|
6301
6273
|
return this.parent;
|
|
6302
6274
|
} });
|
|
6303
|
-
Object.defineProperty(XMLAttribute
|
|
6275
|
+
Object.defineProperty(XMLAttribute.prototype, "textContent", {
|
|
6304
6276
|
get: function() {
|
|
6305
6277
|
return this.value;
|
|
6306
6278
|
},
|
|
@@ -6308,19 +6280,19 @@ var require_XMLAttribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
6308
6280
|
return this.value = value || "";
|
|
6309
6281
|
}
|
|
6310
6282
|
});
|
|
6311
|
-
Object.defineProperty(XMLAttribute
|
|
6283
|
+
Object.defineProperty(XMLAttribute.prototype, "namespaceURI", { get: function() {
|
|
6312
6284
|
return "";
|
|
6313
6285
|
} });
|
|
6314
|
-
Object.defineProperty(XMLAttribute
|
|
6286
|
+
Object.defineProperty(XMLAttribute.prototype, "prefix", { get: function() {
|
|
6315
6287
|
return "";
|
|
6316
6288
|
} });
|
|
6317
|
-
Object.defineProperty(XMLAttribute
|
|
6289
|
+
Object.defineProperty(XMLAttribute.prototype, "localName", { get: function() {
|
|
6318
6290
|
return this.name;
|
|
6319
6291
|
} });
|
|
6320
|
-
Object.defineProperty(XMLAttribute
|
|
6292
|
+
Object.defineProperty(XMLAttribute.prototype, "specified", { get: function() {
|
|
6321
6293
|
return true;
|
|
6322
6294
|
} });
|
|
6323
|
-
return XMLAttribute
|
|
6295
|
+
return XMLAttribute;
|
|
6324
6296
|
}).call(this);
|
|
6325
6297
|
}).call(exports);
|
|
6326
6298
|
}) });
|
|
@@ -6329,9 +6301,8 @@ var require_XMLAttribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
6329
6301
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js
|
|
6330
6302
|
var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js": ((exports, module) => {
|
|
6331
6303
|
(function() {
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
class XMLNamedNodeMap$1 {
|
|
6304
|
+
module.exports = (function() {
|
|
6305
|
+
class XMLNamedNodeMap {
|
|
6335
6306
|
constructor(nodes) {
|
|
6336
6307
|
this.nodes = nodes;
|
|
6337
6308
|
}
|
|
@@ -6342,14 +6313,12 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
6342
6313
|
return this.nodes[name];
|
|
6343
6314
|
}
|
|
6344
6315
|
setNamedItem(node) {
|
|
6345
|
-
var oldNode;
|
|
6346
|
-
oldNode = this.nodes[node.nodeName];
|
|
6316
|
+
var oldNode = this.nodes[node.nodeName];
|
|
6347
6317
|
this.nodes[node.nodeName] = node;
|
|
6348
6318
|
return oldNode || null;
|
|
6349
6319
|
}
|
|
6350
6320
|
removeNamedItem(name) {
|
|
6351
|
-
var oldNode;
|
|
6352
|
-
oldNode = this.nodes[name];
|
|
6321
|
+
var oldNode = this.nodes[name];
|
|
6353
6322
|
delete this.nodes[name];
|
|
6354
6323
|
return oldNode || null;
|
|
6355
6324
|
}
|
|
@@ -6366,10 +6335,10 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
6366
6335
|
throw new Error("This DOM method is not implemented.");
|
|
6367
6336
|
}
|
|
6368
6337
|
}
|
|
6369
|
-
Object.defineProperty(XMLNamedNodeMap
|
|
6338
|
+
Object.defineProperty(XMLNamedNodeMap.prototype, "length", { get: function() {
|
|
6370
6339
|
return Object.keys(this.nodes).length || 0;
|
|
6371
6340
|
} });
|
|
6372
|
-
return XMLNamedNodeMap
|
|
6341
|
+
return XMLNamedNodeMap;
|
|
6373
6342
|
}).call(this);
|
|
6374
6343
|
}).call(exports);
|
|
6375
6344
|
}) });
|
|
@@ -6378,14 +6347,14 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
6378
6347
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLElement.js
|
|
6379
6348
|
var require_XMLElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLElement.js": ((exports, module) => {
|
|
6380
6349
|
(function() {
|
|
6381
|
-
var NodeType$1, XMLAttribute,
|
|
6350
|
+
var NodeType$1, XMLAttribute, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject$2, hasProp = {}.hasOwnProperty;
|
|
6382
6351
|
({isObject: isObject$2, isFunction, getValue} = require_Utility());
|
|
6383
6352
|
XMLNode = require_XMLNode();
|
|
6384
6353
|
NodeType$1 = require_NodeType();
|
|
6385
6354
|
XMLAttribute = require_XMLAttribute();
|
|
6386
6355
|
XMLNamedNodeMap = require_XMLNamedNodeMap();
|
|
6387
|
-
module.exports =
|
|
6388
|
-
class XMLElement
|
|
6356
|
+
module.exports = (function() {
|
|
6357
|
+
class XMLElement extends XMLNode {
|
|
6389
6358
|
constructor(parent, name, attributes) {
|
|
6390
6359
|
var child, j, len$1, ref;
|
|
6391
6360
|
super(parent);
|
|
@@ -6412,8 +6381,7 @@ var require_XMLElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6412
6381
|
}
|
|
6413
6382
|
}
|
|
6414
6383
|
clone() {
|
|
6415
|
-
var att, attName, clonedSelf, ref;
|
|
6416
|
-
clonedSelf = Object.create(this);
|
|
6384
|
+
var att, attName, clonedSelf = Object.create(this), ref;
|
|
6417
6385
|
if (clonedSelf.isRoot) clonedSelf.documentObject = null;
|
|
6418
6386
|
clonedSelf.attribs = {};
|
|
6419
6387
|
ref = this.attribs;
|
|
@@ -6424,8 +6392,7 @@ var require_XMLElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6424
6392
|
}
|
|
6425
6393
|
clonedSelf.children = [];
|
|
6426
6394
|
this.children.forEach(function(child) {
|
|
6427
|
-
var clonedChild;
|
|
6428
|
-
clonedChild = child.clone();
|
|
6395
|
+
var clonedChild = child.clone();
|
|
6429
6396
|
clonedChild.parent = clonedSelf;
|
|
6430
6397
|
return clonedSelf.children.push(clonedChild);
|
|
6431
6398
|
});
|
|
@@ -6540,32 +6507,32 @@ var require_XMLElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6540
6507
|
return true;
|
|
6541
6508
|
}
|
|
6542
6509
|
}
|
|
6543
|
-
Object.defineProperty(XMLElement
|
|
6510
|
+
Object.defineProperty(XMLElement.prototype, "tagName", { get: function() {
|
|
6544
6511
|
return this.name;
|
|
6545
6512
|
} });
|
|
6546
|
-
Object.defineProperty(XMLElement
|
|
6513
|
+
Object.defineProperty(XMLElement.prototype, "namespaceURI", { get: function() {
|
|
6547
6514
|
return "";
|
|
6548
6515
|
} });
|
|
6549
|
-
Object.defineProperty(XMLElement
|
|
6516
|
+
Object.defineProperty(XMLElement.prototype, "prefix", { get: function() {
|
|
6550
6517
|
return "";
|
|
6551
6518
|
} });
|
|
6552
|
-
Object.defineProperty(XMLElement
|
|
6519
|
+
Object.defineProperty(XMLElement.prototype, "localName", { get: function() {
|
|
6553
6520
|
return this.name;
|
|
6554
6521
|
} });
|
|
6555
|
-
Object.defineProperty(XMLElement
|
|
6522
|
+
Object.defineProperty(XMLElement.prototype, "id", { get: function() {
|
|
6556
6523
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
6557
6524
|
} });
|
|
6558
|
-
Object.defineProperty(XMLElement
|
|
6525
|
+
Object.defineProperty(XMLElement.prototype, "className", { get: function() {
|
|
6559
6526
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
6560
6527
|
} });
|
|
6561
|
-
Object.defineProperty(XMLElement
|
|
6528
|
+
Object.defineProperty(XMLElement.prototype, "classList", { get: function() {
|
|
6562
6529
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
6563
6530
|
} });
|
|
6564
|
-
Object.defineProperty(XMLElement
|
|
6531
|
+
Object.defineProperty(XMLElement.prototype, "attributes", { get: function() {
|
|
6565
6532
|
if (!this.attributeMap || !this.attributeMap.nodes) this.attributeMap = new XMLNamedNodeMap(this.attribs);
|
|
6566
6533
|
return this.attributeMap;
|
|
6567
6534
|
} });
|
|
6568
|
-
return XMLElement
|
|
6535
|
+
return XMLElement;
|
|
6569
6536
|
}).call(this);
|
|
6570
6537
|
}).call(exports);
|
|
6571
6538
|
}) });
|
|
@@ -6574,10 +6541,9 @@ var require_XMLElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6574
6541
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCharacterData.js
|
|
6575
6542
|
var require_XMLCharacterData = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCharacterData.js": ((exports, module) => {
|
|
6576
6543
|
(function() {
|
|
6577
|
-
var
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
class XMLCharacterData$1 extends XMLNode {
|
|
6544
|
+
var XMLNode = require_XMLNode();
|
|
6545
|
+
module.exports = (function() {
|
|
6546
|
+
class XMLCharacterData extends XMLNode {
|
|
6581
6547
|
constructor(parent) {
|
|
6582
6548
|
super(parent);
|
|
6583
6549
|
this.value = "";
|
|
@@ -6606,7 +6572,7 @@ var require_XMLCharacterData = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6606
6572
|
return true;
|
|
6607
6573
|
}
|
|
6608
6574
|
}
|
|
6609
|
-
Object.defineProperty(XMLCharacterData
|
|
6575
|
+
Object.defineProperty(XMLCharacterData.prototype, "data", {
|
|
6610
6576
|
get: function() {
|
|
6611
6577
|
return this.value;
|
|
6612
6578
|
},
|
|
@@ -6614,10 +6580,10 @@ var require_XMLCharacterData = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6614
6580
|
return this.value = value || "";
|
|
6615
6581
|
}
|
|
6616
6582
|
});
|
|
6617
|
-
Object.defineProperty(XMLCharacterData
|
|
6583
|
+
Object.defineProperty(XMLCharacterData.prototype, "length", { get: function() {
|
|
6618
6584
|
return this.value.length;
|
|
6619
6585
|
} });
|
|
6620
|
-
Object.defineProperty(XMLCharacterData
|
|
6586
|
+
Object.defineProperty(XMLCharacterData.prototype, "textContent", {
|
|
6621
6587
|
get: function() {
|
|
6622
6588
|
return this.value;
|
|
6623
6589
|
},
|
|
@@ -6625,7 +6591,7 @@ var require_XMLCharacterData = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6625
6591
|
return this.value = value || "";
|
|
6626
6592
|
}
|
|
6627
6593
|
});
|
|
6628
|
-
return XMLCharacterData
|
|
6594
|
+
return XMLCharacterData;
|
|
6629
6595
|
}).call(this);
|
|
6630
6596
|
}).call(exports);
|
|
6631
6597
|
}) });
|
|
@@ -6634,10 +6600,8 @@ var require_XMLCharacterData = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
6634
6600
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCData.js
|
|
6635
6601
|
var require_XMLCData = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLCData.js": ((exports, module) => {
|
|
6636
6602
|
(function() {
|
|
6637
|
-
var NodeType$1
|
|
6638
|
-
|
|
6639
|
-
XMLCharacterData = require_XMLCharacterData();
|
|
6640
|
-
module.exports = XMLCData = class XMLCData$1 extends XMLCharacterData {
|
|
6603
|
+
var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
|
|
6604
|
+
module.exports = class XMLCData extends XMLCharacterData {
|
|
6641
6605
|
constructor(parent, text) {
|
|
6642
6606
|
super(parent);
|
|
6643
6607
|
if (text == null) throw new Error("Missing CDATA text. " + this.debugInfo());
|
|
@@ -6659,10 +6623,8 @@ var require_XMLCData = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xm
|
|
|
6659
6623
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLComment.js
|
|
6660
6624
|
var require_XMLComment = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLComment.js": ((exports, module) => {
|
|
6661
6625
|
(function() {
|
|
6662
|
-
var NodeType$1, XMLCharacterData
|
|
6663
|
-
|
|
6664
|
-
XMLCharacterData = require_XMLCharacterData();
|
|
6665
|
-
module.exports = XMLComment = class XMLComment$1 extends XMLCharacterData {
|
|
6626
|
+
var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
|
|
6627
|
+
module.exports = class XMLComment extends XMLCharacterData {
|
|
6666
6628
|
constructor(parent, text) {
|
|
6667
6629
|
super(parent);
|
|
6668
6630
|
if (text == null) throw new Error("Missing comment text. " + this.debugInfo());
|
|
@@ -6684,11 +6646,11 @@ var require_XMLComment = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6684
6646
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDeclaration.js
|
|
6685
6647
|
var require_XMLDeclaration = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDeclaration.js": ((exports, module) => {
|
|
6686
6648
|
(function() {
|
|
6687
|
-
var NodeType$1,
|
|
6649
|
+
var NodeType$1, XMLNode, isObject$2;
|
|
6688
6650
|
({isObject: isObject$2} = require_Utility());
|
|
6689
6651
|
XMLNode = require_XMLNode();
|
|
6690
6652
|
NodeType$1 = require_NodeType();
|
|
6691
|
-
module.exports =
|
|
6653
|
+
module.exports = class XMLDeclaration extends XMLNode {
|
|
6692
6654
|
constructor(parent, version, encoding, standalone) {
|
|
6693
6655
|
super(parent);
|
|
6694
6656
|
if (isObject$2(version)) ({version, encoding, standalone} = version);
|
|
@@ -6709,10 +6671,9 @@ var require_XMLDeclaration = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
6709
6671
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js
|
|
6710
6672
|
var require_XMLDTDAttList = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js": ((exports, module) => {
|
|
6711
6673
|
(function() {
|
|
6712
|
-
var NodeType$1,
|
|
6713
|
-
XMLNode = require_XMLNode();
|
|
6674
|
+
var NodeType$1, XMLNode = require_XMLNode();
|
|
6714
6675
|
NodeType$1 = require_NodeType();
|
|
6715
|
-
module.exports =
|
|
6676
|
+
module.exports = class XMLDTDAttList extends XMLNode {
|
|
6716
6677
|
constructor(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
|
|
6717
6678
|
super(parent);
|
|
6718
6679
|
if (elementName == null) throw new Error("Missing DTD element name. " + this.debugInfo());
|
|
@@ -6740,12 +6701,12 @@ var require_XMLDTDAttList = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
6740
6701
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js
|
|
6741
6702
|
var require_XMLDTDEntity = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js": ((exports, module) => {
|
|
6742
6703
|
(function() {
|
|
6743
|
-
var NodeType$1,
|
|
6704
|
+
var NodeType$1, XMLNode, isObject$2;
|
|
6744
6705
|
({isObject: isObject$2} = require_Utility());
|
|
6745
6706
|
XMLNode = require_XMLNode();
|
|
6746
6707
|
NodeType$1 = require_NodeType();
|
|
6747
|
-
module.exports =
|
|
6748
|
-
class XMLDTDEntity
|
|
6708
|
+
module.exports = (function() {
|
|
6709
|
+
class XMLDTDEntity extends XMLNode {
|
|
6749
6710
|
constructor(parent, pe, name, value) {
|
|
6750
6711
|
super(parent);
|
|
6751
6712
|
if (name == null) throw new Error("Missing DTD entity name. " + this.debugInfo(name));
|
|
@@ -6770,25 +6731,25 @@ var require_XMLDTDEntity = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
6770
6731
|
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));
|
|
6771
6732
|
}
|
|
6772
6733
|
}
|
|
6773
|
-
Object.defineProperty(XMLDTDEntity
|
|
6734
|
+
Object.defineProperty(XMLDTDEntity.prototype, "publicId", { get: function() {
|
|
6774
6735
|
return this.pubID;
|
|
6775
6736
|
} });
|
|
6776
|
-
Object.defineProperty(XMLDTDEntity
|
|
6737
|
+
Object.defineProperty(XMLDTDEntity.prototype, "systemId", { get: function() {
|
|
6777
6738
|
return this.sysID;
|
|
6778
6739
|
} });
|
|
6779
|
-
Object.defineProperty(XMLDTDEntity
|
|
6740
|
+
Object.defineProperty(XMLDTDEntity.prototype, "notationName", { get: function() {
|
|
6780
6741
|
return this.nData || null;
|
|
6781
6742
|
} });
|
|
6782
|
-
Object.defineProperty(XMLDTDEntity
|
|
6743
|
+
Object.defineProperty(XMLDTDEntity.prototype, "inputEncoding", { get: function() {
|
|
6783
6744
|
return null;
|
|
6784
6745
|
} });
|
|
6785
|
-
Object.defineProperty(XMLDTDEntity
|
|
6746
|
+
Object.defineProperty(XMLDTDEntity.prototype, "xmlEncoding", { get: function() {
|
|
6786
6747
|
return null;
|
|
6787
6748
|
} });
|
|
6788
|
-
Object.defineProperty(XMLDTDEntity
|
|
6749
|
+
Object.defineProperty(XMLDTDEntity.prototype, "xmlVersion", { get: function() {
|
|
6789
6750
|
return null;
|
|
6790
6751
|
} });
|
|
6791
|
-
return XMLDTDEntity
|
|
6752
|
+
return XMLDTDEntity;
|
|
6792
6753
|
}).call(this);
|
|
6793
6754
|
}).call(exports);
|
|
6794
6755
|
}) });
|
|
@@ -6797,10 +6758,9 @@ var require_XMLDTDEntity = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
6797
6758
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDElement.js
|
|
6798
6759
|
var require_XMLDTDElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDElement.js": ((exports, module) => {
|
|
6799
6760
|
(function() {
|
|
6800
|
-
var NodeType$1,
|
|
6801
|
-
XMLNode = require_XMLNode();
|
|
6761
|
+
var NodeType$1, XMLNode = require_XMLNode();
|
|
6802
6762
|
NodeType$1 = require_NodeType();
|
|
6803
|
-
module.exports =
|
|
6763
|
+
module.exports = class XMLDTDElement extends XMLNode {
|
|
6804
6764
|
constructor(parent, name, value) {
|
|
6805
6765
|
super(parent);
|
|
6806
6766
|
if (name == null) throw new Error("Missing DTD element name. " + this.debugInfo());
|
|
@@ -6821,11 +6781,10 @@ var require_XMLDTDElement = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
6821
6781
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js
|
|
6822
6782
|
var require_XMLDTDNotation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js": ((exports, module) => {
|
|
6823
6783
|
(function() {
|
|
6824
|
-
var NodeType$1,
|
|
6825
|
-
XMLNode = require_XMLNode();
|
|
6784
|
+
var NodeType$1, XMLNode = require_XMLNode();
|
|
6826
6785
|
NodeType$1 = require_NodeType();
|
|
6827
|
-
module.exports =
|
|
6828
|
-
class XMLDTDNotation
|
|
6786
|
+
module.exports = (function() {
|
|
6787
|
+
class XMLDTDNotation extends XMLNode {
|
|
6829
6788
|
constructor(parent, name, value) {
|
|
6830
6789
|
super(parent);
|
|
6831
6790
|
if (name == null) throw new Error("Missing DTD notation name. " + this.debugInfo(name));
|
|
@@ -6839,13 +6798,13 @@ var require_XMLDTDNotation = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
6839
6798
|
return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(options));
|
|
6840
6799
|
}
|
|
6841
6800
|
}
|
|
6842
|
-
Object.defineProperty(XMLDTDNotation
|
|
6801
|
+
Object.defineProperty(XMLDTDNotation.prototype, "publicId", { get: function() {
|
|
6843
6802
|
return this.pubID;
|
|
6844
6803
|
} });
|
|
6845
|
-
Object.defineProperty(XMLDTDNotation
|
|
6804
|
+
Object.defineProperty(XMLDTDNotation.prototype, "systemId", { get: function() {
|
|
6846
6805
|
return this.sysID;
|
|
6847
6806
|
} });
|
|
6848
|
-
return XMLDTDNotation
|
|
6807
|
+
return XMLDTDNotation;
|
|
6849
6808
|
}).call(this);
|
|
6850
6809
|
}).call(exports);
|
|
6851
6810
|
}) });
|
|
@@ -6854,7 +6813,7 @@ var require_XMLDTDNotation = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
6854
6813
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocType.js
|
|
6855
6814
|
var require_XMLDocType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocType.js": ((exports, module) => {
|
|
6856
6815
|
(function() {
|
|
6857
|
-
var NodeType$1, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation,
|
|
6816
|
+
var NodeType$1, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLNamedNodeMap, XMLNode, isObject$2;
|
|
6858
6817
|
({isObject: isObject$2} = require_Utility());
|
|
6859
6818
|
XMLNode = require_XMLNode();
|
|
6860
6819
|
NodeType$1 = require_NodeType();
|
|
@@ -6863,8 +6822,8 @@ var require_XMLDocType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6863
6822
|
XMLDTDElement = require_XMLDTDElement();
|
|
6864
6823
|
XMLDTDNotation = require_XMLDTDNotation();
|
|
6865
6824
|
XMLNamedNodeMap = require_XMLNamedNodeMap();
|
|
6866
|
-
module.exports =
|
|
6867
|
-
class XMLDocType
|
|
6825
|
+
module.exports = (function() {
|
|
6826
|
+
class XMLDocType extends XMLNode {
|
|
6868
6827
|
constructor(parent, pubID, sysID) {
|
|
6869
6828
|
var child, i$1, len$1, ref;
|
|
6870
6829
|
super(parent);
|
|
@@ -6886,32 +6845,27 @@ var require_XMLDocType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6886
6845
|
if (sysID != null) this.sysID = this.stringify.dtdSysID(sysID);
|
|
6887
6846
|
}
|
|
6888
6847
|
element(name, value) {
|
|
6889
|
-
var child;
|
|
6890
|
-
child = new XMLDTDElement(this, name, value);
|
|
6848
|
+
var child = new XMLDTDElement(this, name, value);
|
|
6891
6849
|
this.children.push(child);
|
|
6892
6850
|
return this;
|
|
6893
6851
|
}
|
|
6894
6852
|
attList(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
|
|
6895
|
-
var child;
|
|
6896
|
-
child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
|
|
6853
|
+
var child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
|
|
6897
6854
|
this.children.push(child);
|
|
6898
6855
|
return this;
|
|
6899
6856
|
}
|
|
6900
6857
|
entity(name, value) {
|
|
6901
|
-
var child;
|
|
6902
|
-
child = new XMLDTDEntity(this, false, name, value);
|
|
6858
|
+
var child = new XMLDTDEntity(this, false, name, value);
|
|
6903
6859
|
this.children.push(child);
|
|
6904
6860
|
return this;
|
|
6905
6861
|
}
|
|
6906
6862
|
pEntity(name, value) {
|
|
6907
|
-
var child;
|
|
6908
|
-
child = new XMLDTDEntity(this, true, name, value);
|
|
6863
|
+
var child = new XMLDTDEntity(this, true, name, value);
|
|
6909
6864
|
this.children.push(child);
|
|
6910
6865
|
return this;
|
|
6911
6866
|
}
|
|
6912
6867
|
notation(name, value) {
|
|
6913
|
-
var child;
|
|
6914
|
-
child = new XMLDTDNotation(this, name, value);
|
|
6868
|
+
var child = new XMLDTDNotation(this, name, value);
|
|
6915
6869
|
this.children.push(child);
|
|
6916
6870
|
return this;
|
|
6917
6871
|
}
|
|
@@ -6944,36 +6898,32 @@ var require_XMLDocType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6944
6898
|
return true;
|
|
6945
6899
|
}
|
|
6946
6900
|
}
|
|
6947
|
-
Object.defineProperty(XMLDocType
|
|
6948
|
-
var child, i$1, len$1, nodes, ref;
|
|
6949
|
-
nodes = {};
|
|
6950
|
-
ref = this.children;
|
|
6901
|
+
Object.defineProperty(XMLDocType.prototype, "entities", { get: function() {
|
|
6902
|
+
var child, i$1, len$1, nodes = {}, ref = this.children;
|
|
6951
6903
|
for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
|
|
6952
6904
|
child = ref[i$1];
|
|
6953
6905
|
if (child.type === NodeType$1.EntityDeclaration && !child.pe) nodes[child.name] = child;
|
|
6954
6906
|
}
|
|
6955
6907
|
return new XMLNamedNodeMap(nodes);
|
|
6956
6908
|
} });
|
|
6957
|
-
Object.defineProperty(XMLDocType
|
|
6958
|
-
var child, i$1, len$1, nodes, ref;
|
|
6959
|
-
nodes = {};
|
|
6960
|
-
ref = this.children;
|
|
6909
|
+
Object.defineProperty(XMLDocType.prototype, "notations", { get: function() {
|
|
6910
|
+
var child, i$1, len$1, nodes = {}, ref = this.children;
|
|
6961
6911
|
for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
|
|
6962
6912
|
child = ref[i$1];
|
|
6963
6913
|
if (child.type === NodeType$1.NotationDeclaration) nodes[child.name] = child;
|
|
6964
6914
|
}
|
|
6965
6915
|
return new XMLNamedNodeMap(nodes);
|
|
6966
6916
|
} });
|
|
6967
|
-
Object.defineProperty(XMLDocType
|
|
6917
|
+
Object.defineProperty(XMLDocType.prototype, "publicId", { get: function() {
|
|
6968
6918
|
return this.pubID;
|
|
6969
6919
|
} });
|
|
6970
|
-
Object.defineProperty(XMLDocType
|
|
6920
|
+
Object.defineProperty(XMLDocType.prototype, "systemId", { get: function() {
|
|
6971
6921
|
return this.sysID;
|
|
6972
6922
|
} });
|
|
6973
|
-
Object.defineProperty(XMLDocType
|
|
6923
|
+
Object.defineProperty(XMLDocType.prototype, "internalSubset", { get: function() {
|
|
6974
6924
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
6975
6925
|
} });
|
|
6976
|
-
return XMLDocType
|
|
6926
|
+
return XMLDocType;
|
|
6977
6927
|
}).call(this);
|
|
6978
6928
|
}).call(exports);
|
|
6979
6929
|
}) });
|
|
@@ -6982,10 +6932,8 @@ var require_XMLDocType = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
6982
6932
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLRaw.js
|
|
6983
6933
|
var require_XMLRaw = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLRaw.js": ((exports, module) => {
|
|
6984
6934
|
(function() {
|
|
6985
|
-
var NodeType$1, XMLNode
|
|
6986
|
-
|
|
6987
|
-
XMLNode = require_XMLNode();
|
|
6988
|
-
module.exports = XMLRaw = class XMLRaw$1 extends XMLNode {
|
|
6935
|
+
var NodeType$1 = require_NodeType(), XMLNode = require_XMLNode();
|
|
6936
|
+
module.exports = class XMLRaw extends XMLNode {
|
|
6989
6937
|
constructor(parent, text) {
|
|
6990
6938
|
super(parent);
|
|
6991
6939
|
if (text == null) throw new Error("Missing raw text. " + this.debugInfo());
|
|
@@ -7006,11 +6954,9 @@ var require_XMLRaw = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlb
|
|
|
7006
6954
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLText.js
|
|
7007
6955
|
var require_XMLText = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLText.js": ((exports, module) => {
|
|
7008
6956
|
(function() {
|
|
7009
|
-
var NodeType$1, XMLCharacterData
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
module.exports = XMLText = (function() {
|
|
7013
|
-
class XMLText$1 extends XMLCharacterData {
|
|
6957
|
+
var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
|
|
6958
|
+
module.exports = (function() {
|
|
6959
|
+
class XMLText extends XMLCharacterData {
|
|
7014
6960
|
constructor(parent, text) {
|
|
7015
6961
|
super(parent);
|
|
7016
6962
|
if (text == null) throw new Error("Missing element text. " + this.debugInfo());
|
|
@@ -7031,12 +6977,11 @@ var require_XMLText = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7031
6977
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
7032
6978
|
}
|
|
7033
6979
|
}
|
|
7034
|
-
Object.defineProperty(XMLText
|
|
6980
|
+
Object.defineProperty(XMLText.prototype, "isElementContentWhitespace", { get: function() {
|
|
7035
6981
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
7036
6982
|
} });
|
|
7037
|
-
Object.defineProperty(XMLText
|
|
7038
|
-
var next, prev, str;
|
|
7039
|
-
str = "";
|
|
6983
|
+
Object.defineProperty(XMLText.prototype, "wholeText", { get: function() {
|
|
6984
|
+
var next, prev, str = "";
|
|
7040
6985
|
prev = this.previousSibling;
|
|
7041
6986
|
while (prev) {
|
|
7042
6987
|
str = prev.data + str;
|
|
@@ -7050,7 +6995,7 @@ var require_XMLText = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7050
6995
|
}
|
|
7051
6996
|
return str;
|
|
7052
6997
|
} });
|
|
7053
|
-
return XMLText
|
|
6998
|
+
return XMLText;
|
|
7054
6999
|
}).call(this);
|
|
7055
7000
|
}).call(exports);
|
|
7056
7001
|
}) });
|
|
@@ -7059,10 +7004,8 @@ var require_XMLText = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7059
7004
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js
|
|
7060
7005
|
var require_XMLProcessingInstruction = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js": ((exports, module) => {
|
|
7061
7006
|
(function() {
|
|
7062
|
-
var NodeType$1, XMLCharacterData
|
|
7063
|
-
|
|
7064
|
-
XMLCharacterData = require_XMLCharacterData();
|
|
7065
|
-
module.exports = XMLProcessingInstruction = class XMLProcessingInstruction$1 extends XMLCharacterData {
|
|
7007
|
+
var NodeType$1 = require_NodeType(), XMLCharacterData = require_XMLCharacterData();
|
|
7008
|
+
module.exports = class XMLProcessingInstruction extends XMLCharacterData {
|
|
7066
7009
|
constructor(parent, target, value) {
|
|
7067
7010
|
super(parent);
|
|
7068
7011
|
if (target == null) throw new Error("Missing instruction target. " + this.debugInfo());
|
|
@@ -7090,10 +7033,9 @@ var require_XMLProcessingInstruction = /* @__PURE__ */ __commonJS({ "../../node_
|
|
|
7090
7033
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDummy.js
|
|
7091
7034
|
var require_XMLDummy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDummy.js": ((exports, module) => {
|
|
7092
7035
|
(function() {
|
|
7093
|
-
var NodeType$1,
|
|
7094
|
-
XMLNode = require_XMLNode();
|
|
7036
|
+
var NodeType$1, XMLNode = require_XMLNode();
|
|
7095
7037
|
NodeType$1 = require_NodeType();
|
|
7096
|
-
module.exports =
|
|
7038
|
+
module.exports = class XMLDummy extends XMLNode {
|
|
7097
7039
|
constructor(parent) {
|
|
7098
7040
|
super(parent);
|
|
7099
7041
|
this.type = NodeType$1.Dummy;
|
|
@@ -7112,9 +7054,8 @@ var require_XMLDummy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xm
|
|
|
7112
7054
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNodeList.js
|
|
7113
7055
|
var require_XMLNodeList = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNodeList.js": ((exports, module) => {
|
|
7114
7056
|
(function() {
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
class XMLNodeList$1 {
|
|
7057
|
+
module.exports = (function() {
|
|
7058
|
+
class XMLNodeList {
|
|
7118
7059
|
constructor(nodes) {
|
|
7119
7060
|
this.nodes = nodes;
|
|
7120
7061
|
}
|
|
@@ -7125,10 +7066,10 @@ var require_XMLNodeList = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
7125
7066
|
return this.nodes[index] || null;
|
|
7126
7067
|
}
|
|
7127
7068
|
}
|
|
7128
|
-
Object.defineProperty(XMLNodeList
|
|
7069
|
+
Object.defineProperty(XMLNodeList.prototype, "length", { get: function() {
|
|
7129
7070
|
return this.nodes.length || 0;
|
|
7130
7071
|
} });
|
|
7131
|
-
return XMLNodeList
|
|
7072
|
+
return XMLNodeList;
|
|
7132
7073
|
}).call(this);
|
|
7133
7074
|
}).call(exports);
|
|
7134
7075
|
}) });
|
|
@@ -7152,7 +7093,7 @@ var require_DocumentPosition = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
7152
7093
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNode.js
|
|
7153
7094
|
var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLNode.js": ((exports, module) => {
|
|
7154
7095
|
(function() {
|
|
7155
|
-
var DocumentPosition, NodeType$1, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement,
|
|
7096
|
+
var DocumentPosition, NodeType$1, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty$1, isFunction, isObject$2, hasProp = {}.hasOwnProperty, splice = [].splice;
|
|
7156
7097
|
({isObject: isObject$2, isFunction, isEmpty: isEmpty$1, getValue} = require_Utility());
|
|
7157
7098
|
XMLElement = null;
|
|
7158
7099
|
XMLCData = null;
|
|
@@ -7165,10 +7106,9 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7165
7106
|
XMLDummy = null;
|
|
7166
7107
|
NodeType$1 = null;
|
|
7167
7108
|
XMLNodeList = null;
|
|
7168
|
-
XMLNamedNodeMap = null;
|
|
7169
7109
|
DocumentPosition = null;
|
|
7170
|
-
module.exports =
|
|
7171
|
-
class XMLNode
|
|
7110
|
+
module.exports = (function() {
|
|
7111
|
+
class XMLNode {
|
|
7172
7112
|
constructor(parent1) {
|
|
7173
7113
|
this.parent = parent1;
|
|
7174
7114
|
if (this.parent) {
|
|
@@ -7190,7 +7130,7 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7190
7130
|
XMLDummy = require_XMLDummy();
|
|
7191
7131
|
NodeType$1 = require_NodeType();
|
|
7192
7132
|
XMLNodeList = require_XMLNodeList();
|
|
7193
|
-
|
|
7133
|
+
require_XMLNamedNodeMap();
|
|
7194
7134
|
DocumentPosition = require_DocumentPosition();
|
|
7195
7135
|
}
|
|
7196
7136
|
}
|
|
@@ -7210,8 +7150,7 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7210
7150
|
return results;
|
|
7211
7151
|
}
|
|
7212
7152
|
element(name, attributes, text) {
|
|
7213
|
-
var childNode, item, j, k, key, lastChild, len$1, len1, val;
|
|
7214
|
-
lastChild = null;
|
|
7153
|
+
var childNode, item, j, k, key, lastChild = null, len$1, len1, val;
|
|
7215
7154
|
if (attributes === null && text == null) [attributes, text] = [{}, null];
|
|
7216
7155
|
if (attributes == null) attributes = {};
|
|
7217
7156
|
attributes = getValue(attributes);
|
|
@@ -7285,10 +7224,10 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7285
7224
|
return child;
|
|
7286
7225
|
}
|
|
7287
7226
|
remove() {
|
|
7288
|
-
var i$1
|
|
7227
|
+
var i$1;
|
|
7289
7228
|
if (this.isRoot) throw new Error("Cannot remove the root element. " + this.debugInfo());
|
|
7290
7229
|
i$1 = this.parent.children.indexOf(this);
|
|
7291
|
-
splice.apply(this.parent.children, [i$1, i$1 - i$1 + 1].concat(
|
|
7230
|
+
splice.apply(this.parent.children, [i$1, i$1 - i$1 + 1].concat([]));
|
|
7292
7231
|
return this.parent;
|
|
7293
7232
|
}
|
|
7294
7233
|
node(name, attributes, text) {
|
|
@@ -7310,43 +7249,34 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7310
7249
|
return this;
|
|
7311
7250
|
}
|
|
7312
7251
|
cdata(value) {
|
|
7313
|
-
var child;
|
|
7314
|
-
child = new XMLCData(this, value);
|
|
7252
|
+
var child = new XMLCData(this, value);
|
|
7315
7253
|
this.children.push(child);
|
|
7316
7254
|
return this;
|
|
7317
7255
|
}
|
|
7318
7256
|
comment(value) {
|
|
7319
|
-
var child;
|
|
7320
|
-
child = new XMLComment(this, value);
|
|
7257
|
+
var child = new XMLComment(this, value);
|
|
7321
7258
|
this.children.push(child);
|
|
7322
7259
|
return this;
|
|
7323
7260
|
}
|
|
7324
7261
|
commentBefore(value) {
|
|
7325
|
-
var
|
|
7326
|
-
|
|
7327
|
-
removed = this.parent.children.splice(i$1);
|
|
7328
|
-
child = this.parent.comment(value);
|
|
7262
|
+
var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1);
|
|
7263
|
+
this.parent.comment(value);
|
|
7329
7264
|
Array.prototype.push.apply(this.parent.children, removed);
|
|
7330
7265
|
return this;
|
|
7331
7266
|
}
|
|
7332
7267
|
commentAfter(value) {
|
|
7333
|
-
var
|
|
7334
|
-
|
|
7335
|
-
removed = this.parent.children.splice(i$1 + 1);
|
|
7336
|
-
child = this.parent.comment(value);
|
|
7268
|
+
var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1 + 1);
|
|
7269
|
+
this.parent.comment(value);
|
|
7337
7270
|
Array.prototype.push.apply(this.parent.children, removed);
|
|
7338
7271
|
return this;
|
|
7339
7272
|
}
|
|
7340
7273
|
raw(value) {
|
|
7341
|
-
var child;
|
|
7342
|
-
child = new XMLRaw(this, value);
|
|
7274
|
+
var child = new XMLRaw(this, value);
|
|
7343
7275
|
this.children.push(child);
|
|
7344
7276
|
return this;
|
|
7345
7277
|
}
|
|
7346
7278
|
dummy() {
|
|
7347
|
-
|
|
7348
|
-
child = new XMLDummy(this);
|
|
7349
|
-
return child;
|
|
7279
|
+
return new XMLDummy(this);
|
|
7350
7280
|
}
|
|
7351
7281
|
instruction(target, value) {
|
|
7352
7282
|
var insTarget, insValue, instruction, j, len$1;
|
|
@@ -7369,35 +7299,26 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7369
7299
|
return this;
|
|
7370
7300
|
}
|
|
7371
7301
|
instructionBefore(target, value) {
|
|
7372
|
-
var
|
|
7373
|
-
|
|
7374
|
-
removed = this.parent.children.splice(i$1);
|
|
7375
|
-
child = this.parent.instruction(target, value);
|
|
7302
|
+
var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1);
|
|
7303
|
+
this.parent.instruction(target, value);
|
|
7376
7304
|
Array.prototype.push.apply(this.parent.children, removed);
|
|
7377
7305
|
return this;
|
|
7378
7306
|
}
|
|
7379
7307
|
instructionAfter(target, value) {
|
|
7380
|
-
var
|
|
7381
|
-
|
|
7382
|
-
removed = this.parent.children.splice(i$1 + 1);
|
|
7383
|
-
child = this.parent.instruction(target, value);
|
|
7308
|
+
var i$1 = this.parent.children.indexOf(this), removed = this.parent.children.splice(i$1 + 1);
|
|
7309
|
+
this.parent.instruction(target, value);
|
|
7384
7310
|
Array.prototype.push.apply(this.parent.children, removed);
|
|
7385
7311
|
return this;
|
|
7386
7312
|
}
|
|
7387
7313
|
declaration(version, encoding, standalone) {
|
|
7388
|
-
var doc, xmldec;
|
|
7389
|
-
doc = this.document();
|
|
7390
|
-
xmldec = new XMLDeclaration(doc, version, encoding, standalone);
|
|
7314
|
+
var doc = this.document(), xmldec = new XMLDeclaration(doc, version, encoding, standalone);
|
|
7391
7315
|
if (doc.children.length === 0) doc.children.unshift(xmldec);
|
|
7392
7316
|
else if (doc.children[0].type === NodeType$1.Declaration) doc.children[0] = xmldec;
|
|
7393
7317
|
else doc.children.unshift(xmldec);
|
|
7394
7318
|
return doc.root() || doc;
|
|
7395
7319
|
}
|
|
7396
7320
|
dtd(pubID, sysID) {
|
|
7397
|
-
var child, doc, doctype, i$1, j, k, len$1, len1, ref1, ref2;
|
|
7398
|
-
doc = this.document();
|
|
7399
|
-
doctype = new XMLDocType(doc, pubID, sysID);
|
|
7400
|
-
ref1 = doc.children;
|
|
7321
|
+
var child, doc = this.document(), doctype = new XMLDocType(doc, pubID, sysID), i$1, j, k, len$1, len1, ref1 = doc.children, ref2;
|
|
7401
7322
|
for (i$1 = j = 0, len$1 = ref1.length; j < len$1; i$1 = ++j) {
|
|
7402
7323
|
child = ref1[i$1];
|
|
7403
7324
|
if (child.type === NodeType$1.DocType) {
|
|
@@ -7421,15 +7342,13 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7421
7342
|
return this.parent;
|
|
7422
7343
|
}
|
|
7423
7344
|
root() {
|
|
7424
|
-
var node;
|
|
7425
|
-
node = this;
|
|
7345
|
+
var node = this;
|
|
7426
7346
|
while (node) if (node.type === NodeType$1.Document) return node.rootObject;
|
|
7427
7347
|
else if (node.isRoot) return node;
|
|
7428
7348
|
else node = node.parent;
|
|
7429
7349
|
}
|
|
7430
7350
|
document() {
|
|
7431
|
-
var node;
|
|
7432
|
-
node = this;
|
|
7351
|
+
var node = this;
|
|
7433
7352
|
while (node) if (node.type === NodeType$1.Document) return node;
|
|
7434
7353
|
else node = node.parent;
|
|
7435
7354
|
}
|
|
@@ -7437,20 +7356,17 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7437
7356
|
return this.document().end(options);
|
|
7438
7357
|
}
|
|
7439
7358
|
prev() {
|
|
7440
|
-
var i$1;
|
|
7441
|
-
i$1 = this.parent.children.indexOf(this);
|
|
7359
|
+
var i$1 = this.parent.children.indexOf(this);
|
|
7442
7360
|
if (i$1 < 1) throw new Error("Already at the first node. " + this.debugInfo());
|
|
7443
7361
|
return this.parent.children[i$1 - 1];
|
|
7444
7362
|
}
|
|
7445
7363
|
next() {
|
|
7446
|
-
var i$1;
|
|
7447
|
-
i$1 = this.parent.children.indexOf(this);
|
|
7364
|
+
var i$1 = this.parent.children.indexOf(this);
|
|
7448
7365
|
if (i$1 === -1 || i$1 === this.parent.children.length - 1) throw new Error("Already at the last node. " + this.debugInfo());
|
|
7449
7366
|
return this.parent.children[i$1 + 1];
|
|
7450
7367
|
}
|
|
7451
7368
|
importDocument(doc) {
|
|
7452
|
-
var child, clonedRoot, j, len$1, ref1;
|
|
7453
|
-
clonedRoot = doc.root().clone();
|
|
7369
|
+
var child, clonedRoot = doc.root().clone(), j, len$1, ref1;
|
|
7454
7370
|
clonedRoot.parent = this;
|
|
7455
7371
|
clonedRoot.isRoot = false;
|
|
7456
7372
|
this.children.push(clonedRoot);
|
|
@@ -7567,8 +7483,7 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7567
7483
|
return this.attribs.length !== 0;
|
|
7568
7484
|
}
|
|
7569
7485
|
compareDocumentPosition(other) {
|
|
7570
|
-
var ref, res;
|
|
7571
|
-
ref = this;
|
|
7486
|
+
var ref = this, res;
|
|
7572
7487
|
if (ref === other) return 0;
|
|
7573
7488
|
else if (this.document() !== other.document()) {
|
|
7574
7489
|
res = DocumentPosition.Disconnected | DocumentPosition.ImplementationSpecific;
|
|
@@ -7613,8 +7528,7 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7613
7528
|
return other === this || this.isDescendant(other);
|
|
7614
7529
|
}
|
|
7615
7530
|
isDescendant(node) {
|
|
7616
|
-
var child, isDescendantChild, j, len$1, ref1;
|
|
7617
|
-
ref1 = this.children;
|
|
7531
|
+
var child, isDescendantChild, j, len$1, ref1 = this.children;
|
|
7618
7532
|
for (j = 0, len$1 = ref1.length; j < len$1; j++) {
|
|
7619
7533
|
child = ref1[j];
|
|
7620
7534
|
if (node === child) return true;
|
|
@@ -7627,22 +7541,17 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7627
7541
|
return node.isDescendant(this);
|
|
7628
7542
|
}
|
|
7629
7543
|
isPreceding(node) {
|
|
7630
|
-
var nodePos, thisPos;
|
|
7631
|
-
nodePos = this.treePosition(node);
|
|
7632
|
-
thisPos = this.treePosition(this);
|
|
7544
|
+
var nodePos = this.treePosition(node), thisPos = this.treePosition(this);
|
|
7633
7545
|
if (nodePos === -1 || thisPos === -1) return false;
|
|
7634
7546
|
else return nodePos < thisPos;
|
|
7635
7547
|
}
|
|
7636
7548
|
isFollowing(node) {
|
|
7637
|
-
var nodePos, thisPos;
|
|
7638
|
-
nodePos = this.treePosition(node);
|
|
7639
|
-
thisPos = this.treePosition(this);
|
|
7549
|
+
var nodePos = this.treePosition(node), thisPos = this.treePosition(this);
|
|
7640
7550
|
if (nodePos === -1 || thisPos === -1) return false;
|
|
7641
7551
|
else return nodePos > thisPos;
|
|
7642
7552
|
}
|
|
7643
7553
|
treePosition(node) {
|
|
7644
|
-
var found, pos;
|
|
7645
|
-
pos = 0;
|
|
7554
|
+
var found, pos = 0;
|
|
7646
7555
|
found = false;
|
|
7647
7556
|
this.foreachTreeNode(this.document(), function(childNode) {
|
|
7648
7557
|
pos++;
|
|
@@ -7665,42 +7574,40 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7665
7574
|
}
|
|
7666
7575
|
}
|
|
7667
7576
|
}
|
|
7668
|
-
Object.defineProperty(XMLNode
|
|
7577
|
+
Object.defineProperty(XMLNode.prototype, "nodeName", { get: function() {
|
|
7669
7578
|
return this.name;
|
|
7670
7579
|
} });
|
|
7671
|
-
Object.defineProperty(XMLNode
|
|
7580
|
+
Object.defineProperty(XMLNode.prototype, "nodeType", { get: function() {
|
|
7672
7581
|
return this.type;
|
|
7673
7582
|
} });
|
|
7674
|
-
Object.defineProperty(XMLNode
|
|
7583
|
+
Object.defineProperty(XMLNode.prototype, "nodeValue", { get: function() {
|
|
7675
7584
|
return this.value;
|
|
7676
7585
|
} });
|
|
7677
|
-
Object.defineProperty(XMLNode
|
|
7586
|
+
Object.defineProperty(XMLNode.prototype, "parentNode", { get: function() {
|
|
7678
7587
|
return this.parent;
|
|
7679
7588
|
} });
|
|
7680
|
-
Object.defineProperty(XMLNode
|
|
7589
|
+
Object.defineProperty(XMLNode.prototype, "childNodes", { get: function() {
|
|
7681
7590
|
if (!this.childNodeList || !this.childNodeList.nodes) this.childNodeList = new XMLNodeList(this.children);
|
|
7682
7591
|
return this.childNodeList;
|
|
7683
7592
|
} });
|
|
7684
|
-
Object.defineProperty(XMLNode
|
|
7593
|
+
Object.defineProperty(XMLNode.prototype, "firstChild", { get: function() {
|
|
7685
7594
|
return this.children[0] || null;
|
|
7686
7595
|
} });
|
|
7687
|
-
Object.defineProperty(XMLNode
|
|
7596
|
+
Object.defineProperty(XMLNode.prototype, "lastChild", { get: function() {
|
|
7688
7597
|
return this.children[this.children.length - 1] || null;
|
|
7689
7598
|
} });
|
|
7690
|
-
Object.defineProperty(XMLNode
|
|
7691
|
-
var i$1;
|
|
7692
|
-
i$1 = this.parent.children.indexOf(this);
|
|
7599
|
+
Object.defineProperty(XMLNode.prototype, "previousSibling", { get: function() {
|
|
7600
|
+
var i$1 = this.parent.children.indexOf(this);
|
|
7693
7601
|
return this.parent.children[i$1 - 1] || null;
|
|
7694
7602
|
} });
|
|
7695
|
-
Object.defineProperty(XMLNode
|
|
7696
|
-
var i$1;
|
|
7697
|
-
i$1 = this.parent.children.indexOf(this);
|
|
7603
|
+
Object.defineProperty(XMLNode.prototype, "nextSibling", { get: function() {
|
|
7604
|
+
var i$1 = this.parent.children.indexOf(this);
|
|
7698
7605
|
return this.parent.children[i$1 + 1] || null;
|
|
7699
7606
|
} });
|
|
7700
|
-
Object.defineProperty(XMLNode
|
|
7607
|
+
Object.defineProperty(XMLNode.prototype, "ownerDocument", { get: function() {
|
|
7701
7608
|
return this.document() || null;
|
|
7702
7609
|
} });
|
|
7703
|
-
Object.defineProperty(XMLNode
|
|
7610
|
+
Object.defineProperty(XMLNode.prototype, "textContent", {
|
|
7704
7611
|
get: function() {
|
|
7705
7612
|
var child, j, len$1, ref1, str;
|
|
7706
7613
|
if (this.nodeType === NodeType$1.Element || this.nodeType === NodeType$1.DocumentFragment) {
|
|
@@ -7717,7 +7624,7 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7717
7624
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
7718
7625
|
}
|
|
7719
7626
|
});
|
|
7720
|
-
return XMLNode
|
|
7627
|
+
return XMLNode;
|
|
7721
7628
|
}).call(this);
|
|
7722
7629
|
}).call(exports);
|
|
7723
7630
|
}) });
|
|
@@ -7726,9 +7633,9 @@ var require_XMLNode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xml
|
|
|
7726
7633
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringifier.js
|
|
7727
7634
|
var require_XMLStringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringifier.js": ((exports, module) => {
|
|
7728
7635
|
(function() {
|
|
7729
|
-
var
|
|
7730
|
-
module.exports =
|
|
7731
|
-
class XMLStringifier
|
|
7636
|
+
var hasProp = {}.hasOwnProperty;
|
|
7637
|
+
module.exports = (function() {
|
|
7638
|
+
class XMLStringifier {
|
|
7732
7639
|
constructor(options) {
|
|
7733
7640
|
var key, ref, value;
|
|
7734
7641
|
this.assertLegalChar = this.assertLegalChar.bind(this);
|
|
@@ -7861,13 +7768,13 @@ var require_XMLStringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
7861
7768
|
return str.replace(ampregex, "&").replace(/</g, "<").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, "
").replace(/\r/g, "
");
|
|
7862
7769
|
}
|
|
7863
7770
|
}
|
|
7864
|
-
XMLStringifier
|
|
7865
|
-
XMLStringifier
|
|
7866
|
-
XMLStringifier
|
|
7867
|
-
XMLStringifier
|
|
7868
|
-
XMLStringifier
|
|
7869
|
-
XMLStringifier
|
|
7870
|
-
return XMLStringifier
|
|
7771
|
+
XMLStringifier.prototype.convertAttKey = "@";
|
|
7772
|
+
XMLStringifier.prototype.convertPIKey = "?";
|
|
7773
|
+
XMLStringifier.prototype.convertTextKey = "#text";
|
|
7774
|
+
XMLStringifier.prototype.convertCDataKey = "#cdata";
|
|
7775
|
+
XMLStringifier.prototype.convertCommentKey = "#comment";
|
|
7776
|
+
XMLStringifier.prototype.convertRawKey = "#raw";
|
|
7777
|
+
return XMLStringifier;
|
|
7871
7778
|
}).call(this);
|
|
7872
7779
|
}).call(exports);
|
|
7873
7780
|
}) });
|
|
@@ -7889,24 +7796,24 @@ var require_WriterState = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
7889
7796
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLWriterBase.js
|
|
7890
7797
|
var require_XMLWriterBase = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLWriterBase.js": ((exports, module) => {
|
|
7891
7798
|
(function() {
|
|
7892
|
-
var NodeType$1, WriterState,
|
|
7799
|
+
var NodeType$1, WriterState, assign$1, hasProp = {}.hasOwnProperty;
|
|
7893
7800
|
({assign: assign$1} = require_Utility());
|
|
7894
7801
|
NodeType$1 = require_NodeType();
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7802
|
+
require_XMLDeclaration();
|
|
7803
|
+
require_XMLDocType();
|
|
7804
|
+
require_XMLCData();
|
|
7805
|
+
require_XMLComment();
|
|
7806
|
+
require_XMLElement();
|
|
7807
|
+
require_XMLRaw();
|
|
7808
|
+
require_XMLText();
|
|
7809
|
+
require_XMLProcessingInstruction();
|
|
7810
|
+
require_XMLDummy();
|
|
7811
|
+
require_XMLDTDAttList();
|
|
7812
|
+
require_XMLDTDElement();
|
|
7813
|
+
require_XMLDTDEntity();
|
|
7814
|
+
require_XMLDTDNotation();
|
|
7908
7815
|
WriterState = require_WriterState();
|
|
7909
|
-
module.exports =
|
|
7816
|
+
module.exports = class XMLWriterBase {
|
|
7910
7817
|
constructor(options) {
|
|
7911
7818
|
var key, ref, value;
|
|
7912
7819
|
options || (options = {});
|
|
@@ -8247,9 +8154,8 @@ var require_XMLWriterBase = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
8247
8154
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringWriter.js
|
|
8248
8155
|
var require_XMLStringWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStringWriter.js": ((exports, module) => {
|
|
8249
8156
|
(function() {
|
|
8250
|
-
var
|
|
8251
|
-
|
|
8252
|
-
module.exports = XMLStringWriter = class XMLStringWriter$1 extends XMLWriterBase {
|
|
8157
|
+
var XMLWriterBase = require_XMLWriterBase();
|
|
8158
|
+
module.exports = class XMLStringWriter extends XMLWriterBase {
|
|
8253
8159
|
constructor(options) {
|
|
8254
8160
|
super(options);
|
|
8255
8161
|
}
|
|
@@ -8273,7 +8179,7 @@ var require_XMLStringWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
8273
8179
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocument.js
|
|
8274
8180
|
var require_XMLDocument = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocument.js": ((exports, module) => {
|
|
8275
8181
|
(function() {
|
|
8276
|
-
var NodeType$1, XMLDOMConfiguration, XMLDOMImplementation,
|
|
8182
|
+
var NodeType$1, XMLDOMConfiguration, XMLDOMImplementation, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject;
|
|
8277
8183
|
({isPlainObject} = require_Utility());
|
|
8278
8184
|
XMLDOMImplementation = require_XMLDOMImplementation();
|
|
8279
8185
|
XMLDOMConfiguration = require_XMLDOMConfiguration();
|
|
@@ -8281,8 +8187,8 @@ var require_XMLDocument = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
8281
8187
|
NodeType$1 = require_NodeType();
|
|
8282
8188
|
XMLStringifier = require_XMLStringifier();
|
|
8283
8189
|
XMLStringWriter = require_XMLStringWriter();
|
|
8284
|
-
module.exports =
|
|
8285
|
-
class XMLDocument
|
|
8190
|
+
module.exports = (function() {
|
|
8191
|
+
class XMLDocument extends XMLNode {
|
|
8286
8192
|
constructor(options) {
|
|
8287
8193
|
super(null);
|
|
8288
8194
|
this.name = "#document";
|
|
@@ -8295,8 +8201,7 @@ var require_XMLDocument = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
8295
8201
|
this.stringify = new XMLStringifier(options);
|
|
8296
8202
|
}
|
|
8297
8203
|
end(writer) {
|
|
8298
|
-
var writerOptions;
|
|
8299
|
-
writerOptions = {};
|
|
8204
|
+
var writerOptions = {};
|
|
8300
8205
|
if (!writer) writer = this.options.writer;
|
|
8301
8206
|
else if (isPlainObject(writer)) {
|
|
8302
8207
|
writerOptions = writer;
|
|
@@ -8374,53 +8279,52 @@ var require_XMLDocument = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
8374
8279
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
8375
8280
|
}
|
|
8376
8281
|
}
|
|
8377
|
-
Object.defineProperty(XMLDocument
|
|
8378
|
-
Object.defineProperty(XMLDocument
|
|
8379
|
-
var child, i$1, len$1, ref;
|
|
8380
|
-
ref = this.children;
|
|
8282
|
+
Object.defineProperty(XMLDocument.prototype, "implementation", { value: new XMLDOMImplementation() });
|
|
8283
|
+
Object.defineProperty(XMLDocument.prototype, "doctype", { get: function() {
|
|
8284
|
+
var child, i$1, len$1, ref = this.children;
|
|
8381
8285
|
for (i$1 = 0, len$1 = ref.length; i$1 < len$1; i$1++) {
|
|
8382
8286
|
child = ref[i$1];
|
|
8383
8287
|
if (child.type === NodeType$1.DocType) return child;
|
|
8384
8288
|
}
|
|
8385
8289
|
return null;
|
|
8386
8290
|
} });
|
|
8387
|
-
Object.defineProperty(XMLDocument
|
|
8291
|
+
Object.defineProperty(XMLDocument.prototype, "documentElement", { get: function() {
|
|
8388
8292
|
return this.rootObject || null;
|
|
8389
8293
|
} });
|
|
8390
|
-
Object.defineProperty(XMLDocument
|
|
8294
|
+
Object.defineProperty(XMLDocument.prototype, "inputEncoding", { get: function() {
|
|
8391
8295
|
return null;
|
|
8392
8296
|
} });
|
|
8393
|
-
Object.defineProperty(XMLDocument
|
|
8297
|
+
Object.defineProperty(XMLDocument.prototype, "strictErrorChecking", { get: function() {
|
|
8394
8298
|
return false;
|
|
8395
8299
|
} });
|
|
8396
|
-
Object.defineProperty(XMLDocument
|
|
8300
|
+
Object.defineProperty(XMLDocument.prototype, "xmlEncoding", { get: function() {
|
|
8397
8301
|
if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].encoding;
|
|
8398
8302
|
else return null;
|
|
8399
8303
|
} });
|
|
8400
|
-
Object.defineProperty(XMLDocument
|
|
8304
|
+
Object.defineProperty(XMLDocument.prototype, "xmlStandalone", { get: function() {
|
|
8401
8305
|
if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].standalone === "yes";
|
|
8402
8306
|
else return false;
|
|
8403
8307
|
} });
|
|
8404
|
-
Object.defineProperty(XMLDocument
|
|
8308
|
+
Object.defineProperty(XMLDocument.prototype, "xmlVersion", { get: function() {
|
|
8405
8309
|
if (this.children.length !== 0 && this.children[0].type === NodeType$1.Declaration) return this.children[0].version;
|
|
8406
8310
|
else return "1.0";
|
|
8407
8311
|
} });
|
|
8408
|
-
Object.defineProperty(XMLDocument
|
|
8312
|
+
Object.defineProperty(XMLDocument.prototype, "URL", { get: function() {
|
|
8409
8313
|
return this.documentURI;
|
|
8410
8314
|
} });
|
|
8411
|
-
Object.defineProperty(XMLDocument
|
|
8315
|
+
Object.defineProperty(XMLDocument.prototype, "origin", { get: function() {
|
|
8412
8316
|
return null;
|
|
8413
8317
|
} });
|
|
8414
|
-
Object.defineProperty(XMLDocument
|
|
8318
|
+
Object.defineProperty(XMLDocument.prototype, "compatMode", { get: function() {
|
|
8415
8319
|
return null;
|
|
8416
8320
|
} });
|
|
8417
|
-
Object.defineProperty(XMLDocument
|
|
8321
|
+
Object.defineProperty(XMLDocument.prototype, "characterSet", { get: function() {
|
|
8418
8322
|
return null;
|
|
8419
8323
|
} });
|
|
8420
|
-
Object.defineProperty(XMLDocument
|
|
8324
|
+
Object.defineProperty(XMLDocument.prototype, "contentType", { get: function() {
|
|
8421
8325
|
return null;
|
|
8422
8326
|
} });
|
|
8423
|
-
return XMLDocument
|
|
8327
|
+
return XMLDocument;
|
|
8424
8328
|
}).call(this);
|
|
8425
8329
|
}).call(exports);
|
|
8426
8330
|
}) });
|
|
@@ -8429,7 +8333,7 @@ var require_XMLDocument = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
8429
8333
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js
|
|
8430
8334
|
var require_XMLDocumentCB = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js": ((exports, module) => {
|
|
8431
8335
|
(function() {
|
|
8432
|
-
var NodeType$1, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument,
|
|
8336
|
+
var NodeType$1, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject$2, isPlainObject, hasProp = {}.hasOwnProperty;
|
|
8433
8337
|
({isObject: isObject$2, isFunction, isPlainObject, getValue} = require_Utility());
|
|
8434
8338
|
NodeType$1 = require_NodeType();
|
|
8435
8339
|
XMLDocument = require_XMLDocument();
|
|
@@ -8449,7 +8353,7 @@ var require_XMLDocumentCB = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
8449
8353
|
XMLStringifier = require_XMLStringifier();
|
|
8450
8354
|
XMLStringWriter = require_XMLStringWriter();
|
|
8451
8355
|
WriterState = require_WriterState();
|
|
8452
|
-
module.exports =
|
|
8356
|
+
module.exports = class XMLDocumentCB {
|
|
8453
8357
|
constructor(options, onData, onEnd) {
|
|
8454
8358
|
var writerOptions;
|
|
8455
8359
|
this.name = "?xml";
|
|
@@ -8819,11 +8723,11 @@ var require_XMLDocumentCB = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
|
|
8819
8723
|
//#region ../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js
|
|
8820
8724
|
var require_XMLStreamWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xmlbuilder@15.1.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js": ((exports, module) => {
|
|
8821
8725
|
(function() {
|
|
8822
|
-
var NodeType$1, WriterState,
|
|
8726
|
+
var NodeType$1, WriterState, XMLWriterBase, hasProp = {}.hasOwnProperty;
|
|
8823
8727
|
NodeType$1 = require_NodeType();
|
|
8824
8728
|
XMLWriterBase = require_XMLWriterBase();
|
|
8825
8729
|
WriterState = require_WriterState();
|
|
8826
|
-
module.exports =
|
|
8730
|
+
module.exports = class XMLStreamWriter extends XMLWriterBase {
|
|
8827
8731
|
constructor(stream$1, options) {
|
|
8828
8732
|
super(options);
|
|
8829
8733
|
this.stream = stream$1;
|
|
@@ -8833,8 +8737,7 @@ var require_XMLStreamWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
8833
8737
|
else return super.endline(node, options, level);
|
|
8834
8738
|
}
|
|
8835
8739
|
document(doc, options) {
|
|
8836
|
-
var child, i$1, j, k, len1, len2, ref, ref1, results;
|
|
8837
|
-
ref = doc.children;
|
|
8740
|
+
var child, i$1, j, k, len1, len2, ref = doc.children, ref1, results;
|
|
8838
8741
|
for (i$1 = j = 0, len1 = ref.length; j < len1; i$1 = ++j) {
|
|
8839
8742
|
child = ref[i$1];
|
|
8840
8743
|
child.isLastRootNode = i$1 === doc.children.length - 1;
|
|
@@ -8885,7 +8788,7 @@ var require_XMLStreamWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
8885
8788
|
return this.closeNode(node, options, level);
|
|
8886
8789
|
}
|
|
8887
8790
|
element(node, options, level) {
|
|
8888
|
-
var att, attLen, child, childNodeCount, firstChildNode, j, len$1, len1, name,
|
|
8791
|
+
var att, attLen, child, childNodeCount, firstChildNode, j, len$1, len1, name, r, ratt, ref, ref1, ref2, rline;
|
|
8889
8792
|
level || (level = 0);
|
|
8890
8793
|
this.openNode(node, options, level);
|
|
8891
8794
|
options.state = WriterState.OpenTag;
|
|
@@ -8933,10 +8836,8 @@ var require_XMLStreamWriter = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
8933
8836
|
this.stream.write(">");
|
|
8934
8837
|
options.state = WriterState.InsideTag;
|
|
8935
8838
|
options.suppressPrettyCount++;
|
|
8936
|
-
prettySuppressed = true;
|
|
8937
8839
|
this.writeChildNode(firstChildNode, options, level + 1);
|
|
8938
8840
|
options.suppressPrettyCount--;
|
|
8939
|
-
prettySuppressed = false;
|
|
8940
8841
|
options.state = WriterState.CloseTag;
|
|
8941
8842
|
this.stream.write("</" + node.name + ">");
|
|
8942
8843
|
} else {
|
|
@@ -9152,8 +9053,7 @@ var IosConfigParser = class {
|
|
|
9152
9053
|
return this.plistPaths.map((p$1) => path.isAbsolute(p$1) ? p$1 : path.join(getCwd(), p$1)).filter((p$1) => fs.existsSync(p$1));
|
|
9153
9054
|
}
|
|
9154
9055
|
async exists() {
|
|
9155
|
-
|
|
9156
|
-
return paths.length > 0;
|
|
9056
|
+
return this.getPlistPaths().length > 0;
|
|
9157
9057
|
}
|
|
9158
9058
|
async get(key) {
|
|
9159
9059
|
const plistPaths = this.getPlistPaths();
|
|
@@ -9170,9 +9070,8 @@ var IosConfigParser = class {
|
|
|
9170
9070
|
if (key in plistObject) {
|
|
9171
9071
|
const value = plistObject[key];
|
|
9172
9072
|
if (value === null || value === void 0) continue;
|
|
9173
|
-
const stringValue = typeof value === "string" ? value : String(value);
|
|
9174
9073
|
return {
|
|
9175
|
-
value:
|
|
9074
|
+
value: typeof value === "string" ? value : String(value),
|
|
9176
9075
|
paths: searchedPaths
|
|
9177
9076
|
};
|
|
9178
9077
|
}
|
|
@@ -9214,16 +9113,12 @@ var IosConfigParser = class {
|
|
|
9214
9113
|
//#endregion
|
|
9215
9114
|
//#region src/utils/setFingerprintHash.ts
|
|
9216
9115
|
const setAndroidFingerprintHash = async (hash) => {
|
|
9217
|
-
const
|
|
9218
|
-
|
|
9219
|
-
const androidParser = new AndroidConfigParser(customPaths);
|
|
9220
|
-
return await androidParser.set("hot_updater_fingerprint_hash", hash);
|
|
9116
|
+
const customPaths = (await loadConfig(null)).platform.android.stringResourcePaths;
|
|
9117
|
+
return await new AndroidConfigParser(customPaths).set("hot_updater_fingerprint_hash", hash);
|
|
9221
9118
|
};
|
|
9222
9119
|
const setIosFingerprintHash = async (hash) => {
|
|
9223
|
-
const
|
|
9224
|
-
|
|
9225
|
-
const iosParser = new IosConfigParser(customPaths);
|
|
9226
|
-
return await iosParser.set("HOT_UPDATER_FINGERPRINT_HASH", hash);
|
|
9120
|
+
const customPaths = (await loadConfig(null)).platform.ios.infoPlistPaths;
|
|
9121
|
+
return await new IosConfigParser(customPaths).set("HOT_UPDATER_FINGERPRINT_HASH", hash);
|
|
9227
9122
|
};
|
|
9228
9123
|
const setFingerprintHash = async (platform, hash) => {
|
|
9229
9124
|
switch (platform) {
|
|
@@ -9236,7 +9131,6 @@ const setFingerprintHash = async (platform, hash) => {
|
|
|
9236
9131
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
9237
9132
|
var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js": ((exports) => {
|
|
9238
9133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9239
|
-
exports.splitWhen = exports.flatten = void 0;
|
|
9240
9134
|
function flatten(items) {
|
|
9241
9135
|
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
9242
9136
|
}
|
|
@@ -9257,7 +9151,6 @@ var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
9257
9151
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
9258
9152
|
var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js": ((exports) => {
|
|
9259
9153
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9260
|
-
exports.isEnoentCodeError = void 0;
|
|
9261
9154
|
function isEnoentCodeError(error) {
|
|
9262
9155
|
return error.code === "ENOENT";
|
|
9263
9156
|
}
|
|
@@ -9268,7 +9161,6 @@ var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
9268
9161
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
9269
9162
|
var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js": ((exports) => {
|
|
9270
9163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9271
|
-
exports.createDirentFromStats = void 0;
|
|
9272
9164
|
var DirentFromStats$1 = class {
|
|
9273
9165
|
constructor(name, stats) {
|
|
9274
9166
|
this.name = name;
|
|
@@ -9291,7 +9183,6 @@ var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
9291
9183
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
9292
9184
|
var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js": ((exports) => {
|
|
9293
9185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9294
|
-
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
9295
9186
|
const os$1 = __require("os");
|
|
9296
9187
|
const path$10 = __require("path");
|
|
9297
9188
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
@@ -9489,8 +9380,7 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
9489
9380
|
* @returns {string}
|
|
9490
9381
|
*/
|
|
9491
9382
|
module.exports = function globParent$1(str, opts) {
|
|
9492
|
-
|
|
9493
|
-
if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
9383
|
+
if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
9494
9384
|
if (enclosure.test(str)) str += slash;
|
|
9495
9385
|
str += "a";
|
|
9496
9386
|
do
|
|
@@ -9668,8 +9558,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
9668
9558
|
state.maxLen = String(state.max).length;
|
|
9669
9559
|
}
|
|
9670
9560
|
if (a < 0) {
|
|
9671
|
-
|
|
9672
|
-
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
|
9561
|
+
negatives = splitToPatterns(b < 0 ? Math.abs(b) : 1, Math.abs(a), state, opts);
|
|
9673
9562
|
a = state.a = 0;
|
|
9674
9563
|
}
|
|
9675
9564
|
if (b >= 0) positives = splitToPatterns(a, b, state, opts);
|
|
@@ -9685,8 +9574,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
9685
9574
|
let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
|
|
9686
9575
|
let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
|
|
9687
9576
|
let intersected = filterPatterns(neg, pos, "-?", true, options) || [];
|
|
9688
|
-
|
|
9689
|
-
return subpatterns.join("|");
|
|
9577
|
+
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
|
9690
9578
|
}
|
|
9691
9579
|
function splitToRanges(min, max) {
|
|
9692
9580
|
let nines = 1;
|
|
@@ -9887,8 +9775,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
9887
9775
|
});
|
|
9888
9776
|
let start = String.fromCharCode(a);
|
|
9889
9777
|
if (a === b) return start;
|
|
9890
|
-
|
|
9891
|
-
return `[${start}-${stop}]`;
|
|
9778
|
+
return `[${start}-${String.fromCharCode(b)}]`;
|
|
9892
9779
|
};
|
|
9893
9780
|
const toRegex = (start, end, options) => {
|
|
9894
9781
|
if (Array.isArray(start)) {
|
|
@@ -10315,18 +10202,16 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
10315
10202
|
*/
|
|
10316
10203
|
if (value === CHAR_LEFT_CURLY_BRACE$1) {
|
|
10317
10204
|
depth$1++;
|
|
10318
|
-
|
|
10319
|
-
const brace = {
|
|
10205
|
+
block = push({
|
|
10320
10206
|
type: "brace",
|
|
10321
10207
|
open: true,
|
|
10322
10208
|
close: false,
|
|
10323
|
-
dollar,
|
|
10209
|
+
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
|
|
10324
10210
|
depth: depth$1,
|
|
10325
10211
|
commas: 0,
|
|
10326
10212
|
ranges: 0,
|
|
10327
10213
|
nodes: []
|
|
10328
|
-
};
|
|
10329
|
-
block = push(brace);
|
|
10214
|
+
});
|
|
10330
10215
|
stack.push(block);
|
|
10331
10216
|
push({
|
|
10332
10217
|
type: "open",
|
|
@@ -10362,8 +10247,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
10362
10247
|
if (value === CHAR_COMMA$1 && depth$1 > 0) {
|
|
10363
10248
|
if (block.ranges > 0) {
|
|
10364
10249
|
block.ranges = 0;
|
|
10365
|
-
|
|
10366
|
-
block.nodes = [open, {
|
|
10250
|
+
block.nodes = [block.nodes.shift(), {
|
|
10367
10251
|
type: "text",
|
|
10368
10252
|
value: stringify$1(block)
|
|
10369
10253
|
}];
|
|
@@ -10591,12 +10475,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
10591
10475
|
const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
|
|
10592
10476
|
const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
|
|
10593
10477
|
const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
|
|
10594
|
-
const NO_DOT = `(?!${DOT_LITERAL})`;
|
|
10595
|
-
const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
|
|
10596
|
-
const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
|
|
10597
|
-
const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
|
|
10598
|
-
const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
|
|
10599
|
-
const STAR = `${QMARK}*?`;
|
|
10600
10478
|
const POSIX_CHARS = {
|
|
10601
10479
|
DOT_LITERAL,
|
|
10602
10480
|
PLUS_LITERAL,
|
|
@@ -10606,12 +10484,12 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
10606
10484
|
QMARK,
|
|
10607
10485
|
END_ANCHOR,
|
|
10608
10486
|
DOTS_SLASH,
|
|
10609
|
-
NO_DOT
|
|
10610
|
-
NO_DOTS
|
|
10611
|
-
NO_DOT_SLASH,
|
|
10612
|
-
NO_DOTS_SLASH
|
|
10613
|
-
QMARK_NO_DOT
|
|
10614
|
-
STAR
|
|
10487
|
+
NO_DOT: `(?!${DOT_LITERAL})`,
|
|
10488
|
+
NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
|
|
10489
|
+
NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
|
|
10490
|
+
NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
|
|
10491
|
+
QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
|
|
10492
|
+
STAR: `${QMARK}*?`,
|
|
10615
10493
|
START_ANCHOR
|
|
10616
10494
|
};
|
|
10617
10495
|
/**
|
|
@@ -10783,9 +10661,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
10783
10661
|
return output;
|
|
10784
10662
|
};
|
|
10785
10663
|
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
10786
|
-
|
|
10787
|
-
const append$1 = options.contains ? "" : "$";
|
|
10788
|
-
let output = `${prepend}(?:${input})${append$1}`;
|
|
10664
|
+
let output = `${options.contains ? "" : "^"}(?:${input})${options.contains ? "" : "$"}`;
|
|
10789
10665
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
10790
10666
|
return output;
|
|
10791
10667
|
};
|
|
@@ -10918,8 +10794,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
10918
10794
|
continue;
|
|
10919
10795
|
}
|
|
10920
10796
|
if (opts.noext !== true) {
|
|
10921
|
-
|
|
10922
|
-
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
10797
|
+
if ((code$1 === CHAR_PLUS || code$1 === CHAR_AT || code$1 === CHAR_ASTERISK || code$1 === CHAR_QUESTION_MARK || code$1 === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
10923
10798
|
isGlob$1 = token.isGlob = true;
|
|
10924
10799
|
isExtglob$1 = token.isExtglob = true;
|
|
10925
10800
|
finished = true;
|
|
@@ -11132,13 +11007,13 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11132
11007
|
const win32$1 = utils$12.isWindows(options);
|
|
11133
11008
|
const PLATFORM_CHARS = constants$1.globChars(win32$1);
|
|
11134
11009
|
const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS);
|
|
11135
|
-
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT
|
|
11010
|
+
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK: QMARK$1, QMARK_NO_DOT, STAR, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
|
|
11136
11011
|
const globstar = (opts$1) => {
|
|
11137
11012
|
return `(${capture}(?:(?!${START_ANCHOR$1}${opts$1.dot ? DOTS_SLASH$1 : DOT_LITERAL$1}).)*?)`;
|
|
11138
11013
|
};
|
|
11139
|
-
const nodot = opts.dot ? "" : NO_DOT
|
|
11140
|
-
const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT
|
|
11141
|
-
let star = opts.bash === true ? globstar(opts) : STAR
|
|
11014
|
+
const nodot = opts.dot ? "" : NO_DOT;
|
|
11015
|
+
const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT;
|
|
11016
|
+
let star = opts.bash === true ? globstar(opts) : STAR;
|
|
11142
11017
|
if (opts.capture) star = `(${star})`;
|
|
11143
11018
|
if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
|
|
11144
11019
|
const state = {
|
|
@@ -11261,13 +11136,10 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11261
11136
|
let extglobStar = star;
|
|
11262
11137
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
11263
11138
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
11264
|
-
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
}).output;
|
|
11269
|
-
output = token.close = `)${expression})${extglobStar})`;
|
|
11270
|
-
}
|
|
11139
|
+
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse$1(rest, {
|
|
11140
|
+
...options,
|
|
11141
|
+
fastpaths: false
|
|
11142
|
+
}).output})${extglobStar})`;
|
|
11271
11143
|
if (token.prev.type === "bos") state.negatedExtglob = true;
|
|
11272
11144
|
}
|
|
11273
11145
|
push({
|
|
@@ -11361,8 +11233,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11361
11233
|
if (inner.includes(":")) {
|
|
11362
11234
|
const idx = prev.value.lastIndexOf("[");
|
|
11363
11235
|
const pre = prev.value.slice(0, idx);
|
|
11364
|
-
const
|
|
11365
|
-
const posix = POSIX_REGEX_SOURCE[rest$1];
|
|
11236
|
+
const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
|
|
11366
11237
|
if (posix) {
|
|
11367
11238
|
prev.value = pre + posix;
|
|
11368
11239
|
state.backtrack = true;
|
|
@@ -11610,8 +11481,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11610
11481
|
* Question marks
|
|
11611
11482
|
*/
|
|
11612
11483
|
if (value === "?") {
|
|
11613
|
-
|
|
11614
|
-
if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
|
|
11484
|
+
if (!(prev && prev.value === "(") && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
|
|
11615
11485
|
extglobOpen("qmark", value);
|
|
11616
11486
|
continue;
|
|
11617
11487
|
}
|
|
@@ -11631,7 +11501,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11631
11501
|
push({
|
|
11632
11502
|
type: "qmark",
|
|
11633
11503
|
value,
|
|
11634
|
-
output: QMARK_NO_DOT
|
|
11504
|
+
output: QMARK_NO_DOT
|
|
11635
11505
|
});
|
|
11636
11506
|
continue;
|
|
11637
11507
|
}
|
|
@@ -11850,11 +11720,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11850
11720
|
}
|
|
11851
11721
|
if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
|
|
11852
11722
|
if (prev.type === "dot") {
|
|
11853
|
-
state.output += NO_DOT_SLASH
|
|
11854
|
-
prev.output += NO_DOT_SLASH
|
|
11723
|
+
state.output += NO_DOT_SLASH;
|
|
11724
|
+
prev.output += NO_DOT_SLASH;
|
|
11855
11725
|
} else if (opts.dot === true) {
|
|
11856
|
-
state.output += NO_DOTS_SLASH
|
|
11857
|
-
prev.output += NO_DOTS_SLASH
|
|
11726
|
+
state.output += NO_DOTS_SLASH;
|
|
11727
|
+
prev.output += NO_DOTS_SLASH;
|
|
11858
11728
|
} else {
|
|
11859
11729
|
state.output += nodot;
|
|
11860
11730
|
prev.output += nodot;
|
|
@@ -11907,15 +11777,15 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11907
11777
|
if (len$1 > max) throw new SyntaxError(`Input length: ${len$1}, exceeds maximum allowed length: ${max}`);
|
|
11908
11778
|
input = REPLACEMENTS[input] || input;
|
|
11909
11779
|
const win32$1 = utils$12.isWindows(options);
|
|
11910
|
-
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT
|
|
11911
|
-
const nodot = opts.dot ? NO_DOTS
|
|
11912
|
-
const slashDot = opts.dot ? NO_DOTS_SLASH
|
|
11780
|
+
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
|
|
11781
|
+
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
11782
|
+
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
11913
11783
|
const capture = opts.capture ? "" : "?:";
|
|
11914
11784
|
const state = {
|
|
11915
11785
|
negated: false,
|
|
11916
11786
|
prefix: ""
|
|
11917
11787
|
};
|
|
11918
|
-
let star = opts.bash === true ? ".*?" : STAR
|
|
11788
|
+
let star = opts.bash === true ? ".*?" : STAR;
|
|
11919
11789
|
if (opts.capture) star = `(${star})`;
|
|
11920
11790
|
const globstar = (opts$1) => {
|
|
11921
11791
|
if (opts$1.noglobstar === true) return star;
|
|
@@ -11940,8 +11810,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
11940
11810
|
}
|
|
11941
11811
|
}
|
|
11942
11812
|
};
|
|
11943
|
-
|
|
11944
|
-
let source = create(output);
|
|
11813
|
+
let source = create(utils$12.removePrefix(input, state));
|
|
11945
11814
|
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
|
|
11946
11815
|
return source;
|
|
11947
11816
|
};
|
|
@@ -12090,8 +11959,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
12090
11959
|
* @api public
|
|
12091
11960
|
*/
|
|
12092
11961
|
picomatch$1.matchBase = (input, glob, options, posix = utils$11.isWindows(options)) => {
|
|
12093
|
-
|
|
12094
|
-
return regex.test(path$7.basename(input));
|
|
11962
|
+
return (glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options)).test(path$7.basename(input));
|
|
12095
11963
|
};
|
|
12096
11964
|
/**
|
|
12097
11965
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -12298,8 +12166,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
12298
12166
|
if (negated) negatives++;
|
|
12299
12167
|
for (let item of list) {
|
|
12300
12168
|
let matched = isMatch(item, true);
|
|
12301
|
-
|
|
12302
|
-
if (!match) continue;
|
|
12169
|
+
if (!(negated ? !matched.isMatch : matched.isMatch)) continue;
|
|
12303
12170
|
if (negated) omit.add(matched.output);
|
|
12304
12171
|
else {
|
|
12305
12172
|
omit.delete(matched.output);
|
|
@@ -12307,8 +12174,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
12307
12174
|
}
|
|
12308
12175
|
}
|
|
12309
12176
|
}
|
|
12310
|
-
let
|
|
12311
|
-
let matches = result.filter((item) => !omit.has(item));
|
|
12177
|
+
let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
|
|
12312
12178
|
if (options && matches.length === 0) {
|
|
12313
12179
|
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
12314
12180
|
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p$1) => p$1.replace(/\\/g, "")) : patterns;
|
|
@@ -12554,11 +12420,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
12554
12420
|
*/
|
|
12555
12421
|
micromatch$1.capture = (glob, input, options) => {
|
|
12556
12422
|
let posix = utils$10.isWindows(options);
|
|
12557
|
-
let
|
|
12423
|
+
let match = picomatch.makeRe(String(glob), {
|
|
12558
12424
|
...options,
|
|
12559
12425
|
capture: true
|
|
12560
|
-
});
|
|
12561
|
-
let match = regex.exec(posix ? utils$10.toPosixSlashes(input) : input);
|
|
12426
|
+
}).exec(posix ? utils$10.toPosixSlashes(input) : input);
|
|
12562
12427
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
12563
12428
|
};
|
|
12564
12429
|
/**
|
|
@@ -12651,7 +12516,6 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
12651
12516
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
12652
12517
|
var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js": ((exports) => {
|
|
12653
12518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12654
|
-
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
12655
12519
|
const path$6 = __require("path");
|
|
12656
12520
|
const globParent = require_glob_parent();
|
|
12657
12521
|
const micromatch = require_micromatch();
|
|
@@ -12842,8 +12706,7 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
12842
12706
|
//#endregion
|
|
12843
12707
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
12844
12708
|
var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js": ((exports, module) => {
|
|
12845
|
-
const
|
|
12846
|
-
const PassThrough = Stream.PassThrough;
|
|
12709
|
+
const PassThrough = __require("stream").PassThrough;
|
|
12847
12710
|
const slice = Array.prototype.slice;
|
|
12848
12711
|
module.exports = merge2$1;
|
|
12849
12712
|
function merge2$1() {
|
|
@@ -12925,7 +12788,6 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
12925
12788
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
12926
12789
|
var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js": ((exports) => {
|
|
12927
12790
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12928
|
-
exports.merge = void 0;
|
|
12929
12791
|
const merge2 = require_merge2();
|
|
12930
12792
|
function merge(streams) {
|
|
12931
12793
|
const mergedStream = merge2(streams);
|
|
@@ -12946,7 +12808,6 @@ var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
12946
12808
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
12947
12809
|
var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js": ((exports) => {
|
|
12948
12810
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12949
|
-
exports.isEmpty = exports.isString = void 0;
|
|
12950
12811
|
function isString(input) {
|
|
12951
12812
|
return typeof input === "string";
|
|
12952
12813
|
}
|
|
@@ -12961,7 +12822,6 @@ var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
12961
12822
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
12962
12823
|
var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js": ((exports) => {
|
|
12963
12824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12964
|
-
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
12965
12825
|
const array = require_array();
|
|
12966
12826
|
exports.array = array;
|
|
12967
12827
|
const errno = require_errno();
|
|
@@ -12982,7 +12842,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
12982
12842
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
12983
12843
|
var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js": ((exports) => {
|
|
12984
12844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12985
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
12986
12845
|
const utils$9 = require_utils$1();
|
|
12987
12846
|
function generate(input, settings) {
|
|
12988
12847
|
const patterns = processPatterns(input, settings);
|
|
@@ -13043,19 +12902,16 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
13043
12902
|
}
|
|
13044
12903
|
exports.getPositivePatterns = getPositivePatterns;
|
|
13045
12904
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
13046
|
-
|
|
13047
|
-
const positive = negative.map(utils$9.pattern.convertToPositivePattern);
|
|
13048
|
-
return positive;
|
|
12905
|
+
return utils$9.pattern.getNegativePatterns(patterns).concat(ignore).map(utils$9.pattern.convertToPositivePattern);
|
|
13049
12906
|
}
|
|
13050
12907
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
13051
12908
|
function groupPatternsByBaseDirectory(patterns) {
|
|
13052
|
-
const group = {};
|
|
13053
12909
|
return patterns.reduce((collection, pattern$1) => {
|
|
13054
12910
|
const base = utils$9.pattern.getBaseDirectory(pattern$1);
|
|
13055
12911
|
if (base in collection) collection[base].push(pattern$1);
|
|
13056
12912
|
else collection[base] = [pattern$1];
|
|
13057
12913
|
return collection;
|
|
13058
|
-
},
|
|
12914
|
+
}, {});
|
|
13059
12915
|
}
|
|
13060
12916
|
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
13061
12917
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
@@ -13080,7 +12936,6 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
13080
12936
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
13081
12937
|
var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js": ((exports) => {
|
|
13082
12938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13083
|
-
exports.read = void 0;
|
|
13084
12939
|
function read$3(path$11, settings, callback) {
|
|
13085
12940
|
settings.fs.lstat(path$11, (lstatError, lstat) => {
|
|
13086
12941
|
if (lstatError !== null) {
|
|
@@ -13118,7 +12973,6 @@ var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
13118
12973
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
13119
12974
|
var require_sync$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js": ((exports) => {
|
|
13120
12975
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13121
|
-
exports.read = void 0;
|
|
13122
12976
|
function read$2(path$11, settings) {
|
|
13123
12977
|
const lstat = settings.fs.lstatSync(path$11);
|
|
13124
12978
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
@@ -13177,7 +13031,6 @@ var require_settings$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
13177
13031
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
13178
13032
|
var require_out$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js": ((exports) => {
|
|
13179
13033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13180
|
-
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
13181
13034
|
const async$1 = require_async$5();
|
|
13182
13035
|
const sync$1 = require_sync$5();
|
|
13183
13036
|
const settings_1$3 = require_settings$3();
|
|
@@ -13259,7 +13112,6 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
13259
13112
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
13260
13113
|
var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js": ((exports) => {
|
|
13261
13114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13262
|
-
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
13263
13115
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
13264
13116
|
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
13265
13117
|
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
@@ -13278,7 +13130,6 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@
|
|
|
13278
13130
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
13279
13131
|
var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js": ((exports) => {
|
|
13280
13132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13281
|
-
exports.createDirentFromStats = void 0;
|
|
13282
13133
|
var DirentFromStats = class {
|
|
13283
13134
|
constructor(name, stats) {
|
|
13284
13135
|
this.name = name;
|
|
@@ -13301,7 +13152,6 @@ var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodel
|
|
|
13301
13152
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
13302
13153
|
var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js": ((exports) => {
|
|
13303
13154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13304
|
-
exports.fs = void 0;
|
|
13305
13155
|
const fs$4 = require_fs$1();
|
|
13306
13156
|
exports.fs = fs$4;
|
|
13307
13157
|
}) });
|
|
@@ -13310,7 +13160,6 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
|
|
|
13310
13160
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
13311
13161
|
var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js": ((exports) => {
|
|
13312
13162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13313
|
-
exports.joinPathSegments = void 0;
|
|
13314
13163
|
function joinPathSegments$1(a, b, separator) {
|
|
13315
13164
|
/**
|
|
13316
13165
|
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
|
@@ -13325,7 +13174,6 @@ var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
|
|
|
13325
13174
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
13326
13175
|
var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js": ((exports) => {
|
|
13327
13176
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13328
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
13329
13177
|
const fsStat$5 = require_out$3();
|
|
13330
13178
|
const rpl = require_run_parallel();
|
|
13331
13179
|
const constants_1$1 = require_constants();
|
|
@@ -13354,8 +13202,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
13354
13202
|
callSuccessCallback$1(callback, entries);
|
|
13355
13203
|
return;
|
|
13356
13204
|
}
|
|
13357
|
-
|
|
13358
|
-
rpl(tasks, (rplError, rplEntries) => {
|
|
13205
|
+
rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
|
|
13359
13206
|
if (rplError !== null) {
|
|
13360
13207
|
callFailureCallback$1(callback, rplError);
|
|
13361
13208
|
return;
|
|
@@ -13391,7 +13238,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
13391
13238
|
callFailureCallback$1(callback, readdirError);
|
|
13392
13239
|
return;
|
|
13393
13240
|
}
|
|
13394
|
-
|
|
13241
|
+
rpl(names.map((name) => {
|
|
13395
13242
|
const path$11 = common$4.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
13396
13243
|
return (done) => {
|
|
13397
13244
|
fsStat$5.stat(path$11, settings.fsStatSettings, (error, stats) => {
|
|
@@ -13408,8 +13255,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
13408
13255
|
done(null, entry);
|
|
13409
13256
|
});
|
|
13410
13257
|
};
|
|
13411
|
-
})
|
|
13412
|
-
rpl(tasks, (rplError, entries) => {
|
|
13258
|
+
}), (rplError, entries) => {
|
|
13413
13259
|
if (rplError !== null) {
|
|
13414
13260
|
callFailureCallback$1(callback, rplError);
|
|
13415
13261
|
return;
|
|
@@ -13431,7 +13277,6 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
13431
13277
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
13432
13278
|
var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js": ((exports) => {
|
|
13433
13279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13434
|
-
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
13435
13280
|
const fsStat$4 = require_out$3();
|
|
13436
13281
|
const constants_1 = require_constants();
|
|
13437
13282
|
const utils$7 = require_utils();
|
|
@@ -13442,8 +13287,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
13442
13287
|
}
|
|
13443
13288
|
exports.read = read;
|
|
13444
13289
|
function readdirWithFileTypes(directory, settings) {
|
|
13445
|
-
|
|
13446
|
-
return dirents.map((dirent) => {
|
|
13290
|
+
return settings.fs.readdirSync(directory, { withFileTypes: true }).map((dirent) => {
|
|
13447
13291
|
const entry = {
|
|
13448
13292
|
dirent,
|
|
13449
13293
|
name: dirent.name,
|
|
@@ -13460,8 +13304,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
13460
13304
|
}
|
|
13461
13305
|
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
13462
13306
|
function readdir(directory, settings) {
|
|
13463
|
-
|
|
13464
|
-
return names.map((name) => {
|
|
13307
|
+
return settings.fs.readdirSync(directory).map((name) => {
|
|
13465
13308
|
const entryPath = common$3.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
13466
13309
|
const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
|
|
13467
13310
|
const entry = {
|
|
@@ -13529,7 +13372,6 @@ var require_settings$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
13529
13372
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
13530
13373
|
var require_out$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js": ((exports) => {
|
|
13531
13374
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13532
|
-
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
13533
13375
|
const async = require_async$4();
|
|
13534
13376
|
const sync = require_sync$4();
|
|
13535
13377
|
const settings_1$2 = require_settings$2();
|
|
@@ -13803,13 +13645,12 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
13803
13645
|
resolve();
|
|
13804
13646
|
});
|
|
13805
13647
|
var previousDrain = queue.drain;
|
|
13806
|
-
|
|
13648
|
+
return new Promise(function(resolve) {
|
|
13807
13649
|
queue.drain = function() {
|
|
13808
13650
|
previousDrain();
|
|
13809
13651
|
resolve();
|
|
13810
13652
|
};
|
|
13811
13653
|
});
|
|
13812
|
-
return p$1;
|
|
13813
13654
|
}
|
|
13814
13655
|
}
|
|
13815
13656
|
module.exports = fastqueue;
|
|
@@ -13820,7 +13661,6 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
13820
13661
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
13821
13662
|
var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js": ((exports) => {
|
|
13822
13663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13823
|
-
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
13824
13664
|
function isFatalError(settings, error) {
|
|
13825
13665
|
if (settings.errorFilter === null) return true;
|
|
13826
13666
|
return !settings.errorFilter(error);
|
|
@@ -14121,7 +13961,6 @@ var require_settings$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
14121
13961
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
14122
13962
|
var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js": ((exports) => {
|
|
14123
13963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14124
|
-
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
14125
13964
|
const async_1$2 = require_async$2();
|
|
14126
13965
|
const stream_1$4 = require_stream$2();
|
|
14127
13966
|
const sync_1$2 = require_sync$2();
|
|
@@ -14137,14 +13976,12 @@ var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
|
|
|
14137
13976
|
exports.walk = walk;
|
|
14138
13977
|
function walkSync(directory, optionsOrSettings) {
|
|
14139
13978
|
const settings = getSettings(optionsOrSettings);
|
|
14140
|
-
|
|
14141
|
-
return provider.read();
|
|
13979
|
+
return new sync_1$2.default(directory, settings).read();
|
|
14142
13980
|
}
|
|
14143
13981
|
exports.walkSync = walkSync;
|
|
14144
13982
|
function walkStream(directory, optionsOrSettings) {
|
|
14145
13983
|
const settings = getSettings(optionsOrSettings);
|
|
14146
|
-
|
|
14147
|
-
return provider.read();
|
|
13984
|
+
return new stream_1$4.default(directory, settings).read();
|
|
14148
13985
|
}
|
|
14149
13986
|
exports.walkStream = walkStream;
|
|
14150
13987
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -14295,10 +14132,8 @@ var require_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
14295
14132
|
}
|
|
14296
14133
|
}
|
|
14297
14134
|
_getPatternSegments(pattern$1) {
|
|
14298
|
-
|
|
14299
|
-
|
|
14300
|
-
const dynamic = utils$5.pattern.isDynamicPattern(part, this._settings);
|
|
14301
|
-
if (!dynamic) return {
|
|
14135
|
+
return utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions).map((part) => {
|
|
14136
|
+
if (!utils$5.pattern.isDynamicPattern(part, this._settings)) return {
|
|
14302
14137
|
dynamic: false,
|
|
14303
14138
|
pattern: part
|
|
14304
14139
|
};
|
|
@@ -14336,13 +14171,12 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
14336
14171
|
* ^ true/false ^ always true
|
|
14337
14172
|
*/
|
|
14338
14173
|
if (!pattern$1.complete && levels > section.length) return true;
|
|
14339
|
-
|
|
14174
|
+
if (parts.every((part, index) => {
|
|
14340
14175
|
const segment = pattern$1.segments[index];
|
|
14341
14176
|
if (segment.dynamic && segment.patternRe.test(part)) return true;
|
|
14342
14177
|
if (!segment.dynamic && segment.pattern === part) return true;
|
|
14343
14178
|
return false;
|
|
14344
|
-
});
|
|
14345
|
-
if (match) return true;
|
|
14179
|
+
})) return true;
|
|
14346
14180
|
}
|
|
14347
14181
|
return false;
|
|
14348
14182
|
}
|
|
@@ -14390,8 +14224,7 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
14390
14224
|
_getEntryLevel(basePath, entryPath) {
|
|
14391
14225
|
const entryPathDepth = entryPath.split("/").length;
|
|
14392
14226
|
if (basePath === "") return entryPathDepth;
|
|
14393
|
-
|
|
14394
|
-
return entryPathDepth - basePathDepth;
|
|
14227
|
+
return entryPathDepth - basePath.split("/").length;
|
|
14395
14228
|
}
|
|
14396
14229
|
_isSkippedSymbolicLink(entry) {
|
|
14397
14230
|
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
@@ -14449,12 +14282,9 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
14449
14282
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
14450
14283
|
}
|
|
14451
14284
|
_isMatchToPatternsSet(filepath, patterns, isDirectory) {
|
|
14452
|
-
|
|
14453
|
-
if (
|
|
14454
|
-
|
|
14455
|
-
if (isMatchedByRelativeNegative) return false;
|
|
14456
|
-
const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
|
|
14457
|
-
if (isMatchedByAbsoluteNegative) return false;
|
|
14285
|
+
if (!this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory)) return false;
|
|
14286
|
+
if (this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory)) return false;
|
|
14287
|
+
if (this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory)) return false;
|
|
14458
14288
|
return true;
|
|
14459
14289
|
}
|
|
14460
14290
|
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
@@ -14583,8 +14413,7 @@ var require_async = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
14583
14413
|
async read(task) {
|
|
14584
14414
|
const root = this._getRootDirectory(task);
|
|
14585
14415
|
const options = this._getReaderOptions(task);
|
|
14586
|
-
|
|
14587
|
-
return entries.map((entry) => options.transform(entry));
|
|
14416
|
+
return (await this.api(root, task, options)).map((entry) => options.transform(entry));
|
|
14588
14417
|
}
|
|
14589
14418
|
api(root, task, options) {
|
|
14590
14419
|
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
@@ -14682,8 +14511,7 @@ var require_sync = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
14682
14511
|
read(task) {
|
|
14683
14512
|
const root = this._getRootDirectory(task);
|
|
14684
14513
|
const options = this._getReaderOptions(task);
|
|
14685
|
-
|
|
14686
|
-
return entries.map(options.transform);
|
|
14514
|
+
return this.api(root, task, options).map(options.transform);
|
|
14687
14515
|
}
|
|
14688
14516
|
api(root, task, options) {
|
|
14689
14517
|
if (task.dynamic) return this._reader.dynamic(root, options);
|
|
@@ -14844,9 +14672,7 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
14844
14672
|
return tasks.map(provider.read, provider);
|
|
14845
14673
|
}
|
|
14846
14674
|
function assertPatternsInput(input) {
|
|
14847
|
-
|
|
14848
|
-
const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
14849
|
-
if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
14675
|
+
if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item))) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
14850
14676
|
}
|
|
14851
14677
|
module.exports = FastGlob;
|
|
14852
14678
|
}) });
|
|
@@ -14869,20 +14695,17 @@ function processExtraSources(extraSources, cwd) {
|
|
|
14869
14695
|
absolute: true,
|
|
14870
14696
|
onlyFiles: false
|
|
14871
14697
|
});
|
|
14872
|
-
for (const absolutePath of matches) if (fs.existsSync(absolutePath)) {
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
reasons: ["custom-user-config"]
|
|
14884
|
-
});
|
|
14885
|
-
}
|
|
14698
|
+
for (const absolutePath of matches) if (fs.existsSync(absolutePath)) if (fs.statSync(absolutePath).isDirectory()) processedSources.push({
|
|
14699
|
+
type: "dir",
|
|
14700
|
+
filePath: absolutePath,
|
|
14701
|
+
reasons: ["custom-user-config"]
|
|
14702
|
+
});
|
|
14703
|
+
else processedSources.push({
|
|
14704
|
+
type: "contents",
|
|
14705
|
+
id: absolutePath,
|
|
14706
|
+
contents: fs.readFileSync(absolutePath, "utf-8"),
|
|
14707
|
+
reasons: ["custom-user-config"]
|
|
14708
|
+
});
|
|
14886
14709
|
} catch (error) {
|
|
14887
14710
|
console.warn(`Error processing extra source "${source}": ${error}`);
|
|
14888
14711
|
}
|
|
@@ -15038,12 +14861,11 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
|
15038
14861
|
const { paths: _iosPaths } = await setFingerprintHash("ios", newFingerprint.ios.hash);
|
|
15039
14862
|
iosPaths.push(..._iosPaths);
|
|
15040
14863
|
} else {
|
|
15041
|
-
|
|
14864
|
+
await createFingerprintJSON({
|
|
15042
14865
|
android: localFingerprint.android || newFingerprint.android,
|
|
15043
14866
|
ios: localFingerprint.ios || newFingerprint.ios,
|
|
15044
14867
|
[platform]: newFingerprint[platform]
|
|
15045
|
-
};
|
|
15046
|
-
await createFingerprintJSON(nextFingerprints);
|
|
14868
|
+
});
|
|
15047
14869
|
const { paths: _platformPaths } = await setFingerprintHash(platform, newFingerprint[platform].hash);
|
|
15048
14870
|
switch (platform) {
|
|
15049
14871
|
case "android":
|