fss-link 1.0.65 → 1.0.67
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/bundle/fss-link.js +1025 -446
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -2869,8 +2869,8 @@ var require_keyword = __commonJS({
|
|
|
2869
2869
|
var _a4;
|
|
2870
2870
|
const { gen, keyword, schema: schema2, parentSchema, $data, it } = cxt;
|
|
2871
2871
|
checkAsyncKeyword(it, def2);
|
|
2872
|
-
const
|
|
2873
|
-
const validateRef = useKeyword(gen, keyword,
|
|
2872
|
+
const validate2 = !$data && def2.compile ? def2.compile.call(it.self, schema2, parentSchema, it) : def2.validate;
|
|
2873
|
+
const validateRef = useKeyword(gen, keyword, validate2);
|
|
2874
2874
|
const valid = gen.let("valid");
|
|
2875
2875
|
cxt.block$data(valid, validateKeyword);
|
|
2876
2876
|
cxt.ok((_a4 = def2.valid) !== null && _a4 !== void 0 ? _a4 : valid);
|
|
@@ -3943,28 +3943,28 @@ var require_compile = __commonJS({
|
|
|
3943
3943
|
if (this.opts.code.process)
|
|
3944
3944
|
sourceCode = this.opts.code.process(sourceCode, sch);
|
|
3945
3945
|
const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);
|
|
3946
|
-
const
|
|
3947
|
-
this.scope.value(validateName, { ref:
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3946
|
+
const validate2 = makeValidate(this, this.scope.get());
|
|
3947
|
+
this.scope.value(validateName, { ref: validate2 });
|
|
3948
|
+
validate2.errors = null;
|
|
3949
|
+
validate2.schema = sch.schema;
|
|
3950
|
+
validate2.schemaEnv = sch;
|
|
3951
3951
|
if (sch.$async)
|
|
3952
|
-
|
|
3952
|
+
validate2.$async = true;
|
|
3953
3953
|
if (this.opts.code.source === true) {
|
|
3954
|
-
|
|
3954
|
+
validate2.source = { validateName, validateCode, scopeValues: gen._values };
|
|
3955
3955
|
}
|
|
3956
3956
|
if (this.opts.unevaluated) {
|
|
3957
3957
|
const { props, items } = schemaCxt;
|
|
3958
|
-
|
|
3958
|
+
validate2.evaluated = {
|
|
3959
3959
|
props: props instanceof codegen_1.Name ? void 0 : props,
|
|
3960
3960
|
items: items instanceof codegen_1.Name ? void 0 : items,
|
|
3961
3961
|
dynamicProps: props instanceof codegen_1.Name,
|
|
3962
3962
|
dynamicItems: items instanceof codegen_1.Name
|
|
3963
3963
|
};
|
|
3964
|
-
if (
|
|
3965
|
-
|
|
3964
|
+
if (validate2.source)
|
|
3965
|
+
validate2.source.evaluated = (0, codegen_1.stringify)(validate2.evaluated);
|
|
3966
3966
|
}
|
|
3967
|
-
sch.validate =
|
|
3967
|
+
sch.validate = validate2;
|
|
3968
3968
|
return sch;
|
|
3969
3969
|
} catch (e2) {
|
|
3970
3970
|
delete sch.validate;
|
|
@@ -5249,10 +5249,10 @@ var require_core = __commonJS({
|
|
|
5249
5249
|
}
|
|
5250
5250
|
return metaSchema;
|
|
5251
5251
|
}
|
|
5252
|
-
_removeAllSchemas(schemas,
|
|
5252
|
+
_removeAllSchemas(schemas, regex2) {
|
|
5253
5253
|
for (const keyRef in schemas) {
|
|
5254
5254
|
const sch = schemas[keyRef];
|
|
5255
|
-
if (!
|
|
5255
|
+
if (!regex2 || regex2.test(keyRef)) {
|
|
5256
5256
|
if (typeof sch == "string") {
|
|
5257
5257
|
delete schemas[keyRef];
|
|
5258
5258
|
} else if (sch && !sch.meta) {
|
|
@@ -7495,10 +7495,10 @@ var init_schemaValidator = __esm({
|
|
|
7495
7495
|
if (typeof data !== "object" || data === null) {
|
|
7496
7496
|
return "Value of params must be an object";
|
|
7497
7497
|
}
|
|
7498
|
-
const
|
|
7499
|
-
const valid =
|
|
7500
|
-
if (!valid &&
|
|
7501
|
-
return ajValidator.errorsText(
|
|
7498
|
+
const validate2 = ajValidator.compile(schema2);
|
|
7499
|
+
const valid = validate2(data);
|
|
7500
|
+
if (!valid && validate2.errors) {
|
|
7501
|
+
return ajValidator.errorsText(validate2.errors, { dataVar: "params" });
|
|
7502
7502
|
}
|
|
7503
7503
|
return null;
|
|
7504
7504
|
}
|
|
@@ -19712,6 +19712,465 @@ var init_safeJsonParse = __esm({
|
|
|
19712
19712
|
}
|
|
19713
19713
|
});
|
|
19714
19714
|
|
|
19715
|
+
// node_modules/tiktoken/tiktoken_bg.cjs
|
|
19716
|
+
var require_tiktoken_bg = __commonJS({
|
|
19717
|
+
"node_modules/tiktoken/tiktoken_bg.cjs"(exports, module) {
|
|
19718
|
+
var wasm2;
|
|
19719
|
+
module.exports.__wbg_set_wasm = function(val) {
|
|
19720
|
+
wasm2 = val;
|
|
19721
|
+
};
|
|
19722
|
+
var lTextDecoder = typeof TextDecoder === "undefined" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
|
19723
|
+
var cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
19724
|
+
cachedTextDecoder.decode();
|
|
19725
|
+
var cachedUint8ArrayMemory0 = null;
|
|
19726
|
+
function getUint8ArrayMemory0() {
|
|
19727
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
19728
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm2.memory.buffer);
|
|
19729
|
+
}
|
|
19730
|
+
return cachedUint8ArrayMemory0;
|
|
19731
|
+
}
|
|
19732
|
+
function getStringFromWasm0(ptr, len) {
|
|
19733
|
+
ptr = ptr >>> 0;
|
|
19734
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
19735
|
+
}
|
|
19736
|
+
var heap = new Array(128).fill(void 0);
|
|
19737
|
+
heap.push(void 0, null, true, false);
|
|
19738
|
+
var heap_next = heap.length;
|
|
19739
|
+
function addHeapObject(obj) {
|
|
19740
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
19741
|
+
const idx = heap_next;
|
|
19742
|
+
heap_next = heap[idx];
|
|
19743
|
+
heap[idx] = obj;
|
|
19744
|
+
return idx;
|
|
19745
|
+
}
|
|
19746
|
+
function handleError(f, args) {
|
|
19747
|
+
try {
|
|
19748
|
+
return f.apply(this, args);
|
|
19749
|
+
} catch (e2) {
|
|
19750
|
+
wasm2.__wbindgen_export_0(addHeapObject(e2));
|
|
19751
|
+
}
|
|
19752
|
+
}
|
|
19753
|
+
function getObject(idx) {
|
|
19754
|
+
return heap[idx];
|
|
19755
|
+
}
|
|
19756
|
+
function dropObject(idx) {
|
|
19757
|
+
if (idx < 132) return;
|
|
19758
|
+
heap[idx] = heap_next;
|
|
19759
|
+
heap_next = idx;
|
|
19760
|
+
}
|
|
19761
|
+
function takeObject(idx) {
|
|
19762
|
+
const ret = getObject(idx);
|
|
19763
|
+
dropObject(idx);
|
|
19764
|
+
return ret;
|
|
19765
|
+
}
|
|
19766
|
+
var WASM_VECTOR_LEN = 0;
|
|
19767
|
+
var lTextEncoder = typeof TextEncoder === "undefined" ? (0, module.require)("util").TextEncoder : TextEncoder;
|
|
19768
|
+
var cachedTextEncoder = new lTextEncoder("utf-8");
|
|
19769
|
+
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
19770
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
19771
|
+
} : function(arg, view) {
|
|
19772
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
19773
|
+
view.set(buf);
|
|
19774
|
+
return {
|
|
19775
|
+
read: arg.length,
|
|
19776
|
+
written: buf.length
|
|
19777
|
+
};
|
|
19778
|
+
};
|
|
19779
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
19780
|
+
if (realloc === void 0) {
|
|
19781
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
19782
|
+
const ptr2 = malloc(buf.length, 1) >>> 0;
|
|
19783
|
+
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
|
19784
|
+
WASM_VECTOR_LEN = buf.length;
|
|
19785
|
+
return ptr2;
|
|
19786
|
+
}
|
|
19787
|
+
let len = arg.length;
|
|
19788
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
19789
|
+
const mem = getUint8ArrayMemory0();
|
|
19790
|
+
let offset = 0;
|
|
19791
|
+
for (; offset < len; offset++) {
|
|
19792
|
+
const code = arg.charCodeAt(offset);
|
|
19793
|
+
if (code > 127) break;
|
|
19794
|
+
mem[ptr + offset] = code;
|
|
19795
|
+
}
|
|
19796
|
+
if (offset !== len) {
|
|
19797
|
+
if (offset !== 0) {
|
|
19798
|
+
arg = arg.slice(offset);
|
|
19799
|
+
}
|
|
19800
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
19801
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
19802
|
+
const ret = encodeString(arg, view);
|
|
19803
|
+
offset += ret.written;
|
|
19804
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
19805
|
+
}
|
|
19806
|
+
WASM_VECTOR_LEN = offset;
|
|
19807
|
+
return ptr;
|
|
19808
|
+
}
|
|
19809
|
+
function isLikeNone(x) {
|
|
19810
|
+
return x === void 0 || x === null;
|
|
19811
|
+
}
|
|
19812
|
+
var cachedDataViewMemory0 = null;
|
|
19813
|
+
function getDataViewMemory0() {
|
|
19814
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm2.memory.buffer) {
|
|
19815
|
+
cachedDataViewMemory0 = new DataView(wasm2.memory.buffer);
|
|
19816
|
+
}
|
|
19817
|
+
return cachedDataViewMemory0;
|
|
19818
|
+
}
|
|
19819
|
+
var cachedUint32ArrayMemory0 = null;
|
|
19820
|
+
function getUint32ArrayMemory0() {
|
|
19821
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
19822
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm2.memory.buffer);
|
|
19823
|
+
}
|
|
19824
|
+
return cachedUint32ArrayMemory0;
|
|
19825
|
+
}
|
|
19826
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
19827
|
+
ptr = ptr >>> 0;
|
|
19828
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
19829
|
+
}
|
|
19830
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
19831
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
19832
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
19833
|
+
WASM_VECTOR_LEN = arg.length;
|
|
19834
|
+
return ptr;
|
|
19835
|
+
}
|
|
19836
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
19837
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
19838
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
19839
|
+
WASM_VECTOR_LEN = arg.length;
|
|
19840
|
+
return ptr;
|
|
19841
|
+
}
|
|
19842
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
19843
|
+
ptr = ptr >>> 0;
|
|
19844
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
19845
|
+
}
|
|
19846
|
+
module.exports.get_encoding = function(encoding, extend_special_tokens) {
|
|
19847
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19848
|
+
try {
|
|
19849
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
19850
|
+
const ptr0 = passStringToWasm0(encoding, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19851
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19852
|
+
wasm2.get_encoding(retptr, ptr0, len0, addHeapObject(extend_special_tokens));
|
|
19853
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19854
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19855
|
+
var r22 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19856
|
+
if (r22) {
|
|
19857
|
+
throw takeObject(r1);
|
|
19858
|
+
}
|
|
19859
|
+
return Tiktoken.__wrap(r0);
|
|
19860
|
+
} finally {
|
|
19861
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
19862
|
+
}
|
|
19863
|
+
};
|
|
19864
|
+
module.exports.encoding_for_model = function(model, extend_special_tokens) {
|
|
19865
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19866
|
+
try {
|
|
19867
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
19868
|
+
const ptr0 = passStringToWasm0(model, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19869
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19870
|
+
wasm2.encoding_for_model(retptr, ptr0, len0, addHeapObject(extend_special_tokens));
|
|
19871
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19872
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19873
|
+
var r22 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19874
|
+
if (r22) {
|
|
19875
|
+
throw takeObject(r1);
|
|
19876
|
+
}
|
|
19877
|
+
return Tiktoken.__wrap(r0);
|
|
19878
|
+
} finally {
|
|
19879
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
19880
|
+
}
|
|
19881
|
+
};
|
|
19882
|
+
module.exports.get_encoding_name_for_model = function(model) {
|
|
19883
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19884
|
+
let deferred3_0;
|
|
19885
|
+
let deferred3_1;
|
|
19886
|
+
try {
|
|
19887
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
19888
|
+
const ptr0 = passStringToWasm0(model, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19889
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19890
|
+
wasm2.get_encoding_name_for_model(retptr, ptr0, len0);
|
|
19891
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19892
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19893
|
+
var r22 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19894
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
19895
|
+
var ptr2 = r0;
|
|
19896
|
+
var len2 = r1;
|
|
19897
|
+
if (r3) {
|
|
19898
|
+
ptr2 = 0;
|
|
19899
|
+
len2 = 0;
|
|
19900
|
+
throw takeObject(r22);
|
|
19901
|
+
}
|
|
19902
|
+
deferred3_0 = ptr2;
|
|
19903
|
+
deferred3_1 = len2;
|
|
19904
|
+
return getStringFromWasm0(ptr2, len2);
|
|
19905
|
+
} finally {
|
|
19906
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
19907
|
+
wasm2.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
|
|
19908
|
+
}
|
|
19909
|
+
};
|
|
19910
|
+
var TiktokenFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
19911
|
+
}, unregister: () => {
|
|
19912
|
+
} } : new FinalizationRegistry((ptr) => wasm2.__wbg_tiktoken_free(ptr >>> 0, 1));
|
|
19913
|
+
var Tiktoken = class _Tiktoken {
|
|
19914
|
+
/**
|
|
19915
|
+
* @param {string} tiktoken_bfe
|
|
19916
|
+
* @param {any} special_tokens
|
|
19917
|
+
* @param {string} pat_str
|
|
19918
|
+
*/
|
|
19919
|
+
constructor(tiktoken_bfe, special_tokens, pat_str) {
|
|
19920
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19921
|
+
const ptr0 = passStringToWasm0(tiktoken_bfe, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19922
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19923
|
+
const ptr1 = passStringToWasm0(pat_str, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19924
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19925
|
+
const ret = wasm2.tiktoken_new(ptr0, len0, addHeapObject(special_tokens), ptr1, len1);
|
|
19926
|
+
this.__wbg_ptr = ret >>> 0;
|
|
19927
|
+
TiktokenFinalization.register(this, this.__wbg_ptr, this);
|
|
19928
|
+
return this;
|
|
19929
|
+
}
|
|
19930
|
+
/** @returns {string | undefined} */
|
|
19931
|
+
get name() {
|
|
19932
|
+
try {
|
|
19933
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
19934
|
+
wasm2.tiktoken_name(retptr, this.__wbg_ptr);
|
|
19935
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19936
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19937
|
+
let v1;
|
|
19938
|
+
if (r0 !== 0) {
|
|
19939
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
19940
|
+
wasm2.__wbindgen_export_3(r0, r1 * 1, 1);
|
|
19941
|
+
}
|
|
19942
|
+
return v1;
|
|
19943
|
+
} finally {
|
|
19944
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
19945
|
+
}
|
|
19946
|
+
}
|
|
19947
|
+
static __wrap(ptr) {
|
|
19948
|
+
ptr = ptr >>> 0;
|
|
19949
|
+
const obj = Object.create(_Tiktoken.prototype);
|
|
19950
|
+
obj.__wbg_ptr = ptr;
|
|
19951
|
+
TiktokenFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
19952
|
+
return obj;
|
|
19953
|
+
}
|
|
19954
|
+
__destroy_into_raw() {
|
|
19955
|
+
const ptr = this.__wbg_ptr;
|
|
19956
|
+
this.__wbg_ptr = 0;
|
|
19957
|
+
TiktokenFinalization.unregister(this);
|
|
19958
|
+
return ptr;
|
|
19959
|
+
}
|
|
19960
|
+
free() {
|
|
19961
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19962
|
+
const ptr = this.__destroy_into_raw();
|
|
19963
|
+
wasm2.__wbg_tiktoken_free(ptr, 0);
|
|
19964
|
+
}
|
|
19965
|
+
/**
|
|
19966
|
+
* @param {string} text
|
|
19967
|
+
* @param {any} allowed_special
|
|
19968
|
+
* @param {any} disallowed_special
|
|
19969
|
+
* @returns {Uint32Array}
|
|
19970
|
+
*/
|
|
19971
|
+
encode(text, allowed_special, disallowed_special) {
|
|
19972
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19973
|
+
try {
|
|
19974
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
19975
|
+
const ptr0 = passStringToWasm0(text, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
19976
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19977
|
+
wasm2.tiktoken_encode(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(allowed_special), addHeapObject(disallowed_special));
|
|
19978
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19979
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19980
|
+
var r22 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19981
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
19982
|
+
if (r3) {
|
|
19983
|
+
throw takeObject(r22);
|
|
19984
|
+
}
|
|
19985
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
19986
|
+
wasm2.__wbindgen_export_3(r0, r1 * 4, 4);
|
|
19987
|
+
return v2;
|
|
19988
|
+
} finally {
|
|
19989
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
19990
|
+
}
|
|
19991
|
+
}
|
|
19992
|
+
/**
|
|
19993
|
+
* @param {string} text
|
|
19994
|
+
* @returns {Uint32Array}
|
|
19995
|
+
*/
|
|
19996
|
+
encode_ordinary(text) {
|
|
19997
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
19998
|
+
try {
|
|
19999
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
20000
|
+
const ptr0 = passStringToWasm0(text, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
20001
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20002
|
+
wasm2.tiktoken_encode_ordinary(retptr, this.__wbg_ptr, ptr0, len0);
|
|
20003
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20004
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20005
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
20006
|
+
wasm2.__wbindgen_export_3(r0, r1 * 4, 4);
|
|
20007
|
+
return v2;
|
|
20008
|
+
} finally {
|
|
20009
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
20010
|
+
}
|
|
20011
|
+
}
|
|
20012
|
+
/**
|
|
20013
|
+
* @param {string} text
|
|
20014
|
+
* @param {any} allowed_special
|
|
20015
|
+
* @param {any} disallowed_special
|
|
20016
|
+
* @returns {any}
|
|
20017
|
+
*/
|
|
20018
|
+
encode_with_unstable(text, allowed_special, disallowed_special) {
|
|
20019
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20020
|
+
try {
|
|
20021
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
20022
|
+
const ptr0 = passStringToWasm0(text, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
20023
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20024
|
+
wasm2.tiktoken_encode_with_unstable(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(allowed_special), addHeapObject(disallowed_special));
|
|
20025
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20026
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20027
|
+
var r22 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
20028
|
+
if (r22) {
|
|
20029
|
+
throw takeObject(r1);
|
|
20030
|
+
}
|
|
20031
|
+
return takeObject(r0);
|
|
20032
|
+
} finally {
|
|
20033
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
20034
|
+
}
|
|
20035
|
+
}
|
|
20036
|
+
/**
|
|
20037
|
+
* @param {Uint8Array} bytes
|
|
20038
|
+
* @returns {number}
|
|
20039
|
+
*/
|
|
20040
|
+
encode_single_token(bytes) {
|
|
20041
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20042
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm2.__wbindgen_export_1);
|
|
20043
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20044
|
+
const ret = wasm2.tiktoken_encode_single_token(this.__wbg_ptr, ptr0, len0);
|
|
20045
|
+
return ret >>> 0;
|
|
20046
|
+
}
|
|
20047
|
+
/**
|
|
20048
|
+
* @param {Uint32Array} tokens
|
|
20049
|
+
* @returns {Uint8Array}
|
|
20050
|
+
*/
|
|
20051
|
+
decode(tokens) {
|
|
20052
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20053
|
+
try {
|
|
20054
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
20055
|
+
const ptr0 = passArray32ToWasm0(tokens, wasm2.__wbindgen_export_1);
|
|
20056
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20057
|
+
wasm2.tiktoken_decode(retptr, this.__wbg_ptr, ptr0, len0);
|
|
20058
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20059
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20060
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
20061
|
+
wasm2.__wbindgen_export_3(r0, r1 * 1, 1);
|
|
20062
|
+
return v2;
|
|
20063
|
+
} finally {
|
|
20064
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
20065
|
+
}
|
|
20066
|
+
}
|
|
20067
|
+
/**
|
|
20068
|
+
* @param {number} token
|
|
20069
|
+
* @returns {Uint8Array}
|
|
20070
|
+
*/
|
|
20071
|
+
decode_single_token_bytes(token2) {
|
|
20072
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20073
|
+
try {
|
|
20074
|
+
const retptr = wasm2.__wbindgen_add_to_stack_pointer(-16);
|
|
20075
|
+
wasm2.tiktoken_decode_single_token_bytes(retptr, this.__wbg_ptr, token2);
|
|
20076
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20077
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20078
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
20079
|
+
wasm2.__wbindgen_export_3(r0, r1 * 1, 1);
|
|
20080
|
+
return v1;
|
|
20081
|
+
} finally {
|
|
20082
|
+
wasm2.__wbindgen_add_to_stack_pointer(16);
|
|
20083
|
+
}
|
|
20084
|
+
}
|
|
20085
|
+
/** @returns {any} */
|
|
20086
|
+
token_byte_values() {
|
|
20087
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20088
|
+
const ret = wasm2.tiktoken_token_byte_values(this.__wbg_ptr);
|
|
20089
|
+
return takeObject(ret);
|
|
20090
|
+
}
|
|
20091
|
+
};
|
|
20092
|
+
module.exports.Tiktoken = Tiktoken;
|
|
20093
|
+
module.exports.__wbg_parse_def2e24ef1252aff = function() {
|
|
20094
|
+
return handleError(function(arg0, arg1) {
|
|
20095
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
20096
|
+
return addHeapObject(ret);
|
|
20097
|
+
}, arguments);
|
|
20098
|
+
};
|
|
20099
|
+
module.exports.__wbg_stringify_f7ed6987935b4a24 = function() {
|
|
20100
|
+
return handleError(function(arg0) {
|
|
20101
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
20102
|
+
return addHeapObject(ret);
|
|
20103
|
+
}, arguments);
|
|
20104
|
+
};
|
|
20105
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
20106
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
20107
|
+
return addHeapObject(ret);
|
|
20108
|
+
};
|
|
20109
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
20110
|
+
const ret = getObject(arg0) === void 0;
|
|
20111
|
+
return ret;
|
|
20112
|
+
};
|
|
20113
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
20114
|
+
takeObject(arg0);
|
|
20115
|
+
};
|
|
20116
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
20117
|
+
if (wasm2 == null) throw new Error("tiktoken: WASM binary has not been propery initialized.");
|
|
20118
|
+
const obj = getObject(arg1);
|
|
20119
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
20120
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm2.__wbindgen_export_1, wasm2.__wbindgen_export_2);
|
|
20121
|
+
var len1 = WASM_VECTOR_LEN;
|
|
20122
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
20123
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
20124
|
+
};
|
|
20125
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
20126
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
20127
|
+
};
|
|
20128
|
+
}
|
|
20129
|
+
});
|
|
20130
|
+
|
|
20131
|
+
// node_modules/tiktoken/tiktoken.cjs
|
|
20132
|
+
var require_tiktoken = __commonJS({
|
|
20133
|
+
"node_modules/tiktoken/tiktoken.cjs"(exports) {
|
|
20134
|
+
var wasm2 = require_tiktoken_bg();
|
|
20135
|
+
var imports = {};
|
|
20136
|
+
imports["./tiktoken_bg.js"] = wasm2;
|
|
20137
|
+
var path81 = __require("path");
|
|
20138
|
+
var fs70 = __require("fs");
|
|
20139
|
+
var candidates = __dirname.split(path81.sep).reduce((memo, _, index, array) => {
|
|
20140
|
+
const prefix = array.slice(0, index + 1).join(path81.sep) + path81.sep;
|
|
20141
|
+
if (!prefix.includes("node_modules" + path81.sep)) {
|
|
20142
|
+
memo.unshift(
|
|
20143
|
+
path81.join(
|
|
20144
|
+
prefix,
|
|
20145
|
+
"node_modules",
|
|
20146
|
+
"tiktoken",
|
|
20147
|
+
"",
|
|
20148
|
+
"./tiktoken_bg.wasm"
|
|
20149
|
+
)
|
|
20150
|
+
);
|
|
20151
|
+
}
|
|
20152
|
+
return memo;
|
|
20153
|
+
}, []);
|
|
20154
|
+
candidates.unshift(path81.join(__dirname, "./tiktoken_bg.wasm"));
|
|
20155
|
+
var bytes = null;
|
|
20156
|
+
for (const candidate of candidates) {
|
|
20157
|
+
try {
|
|
20158
|
+
bytes = fs70.readFileSync(candidate);
|
|
20159
|
+
break;
|
|
20160
|
+
} catch {
|
|
20161
|
+
}
|
|
20162
|
+
}
|
|
20163
|
+
if (bytes == null) throw new Error("Missing tiktoken_bg.wasm");
|
|
20164
|
+
var wasmModule = new WebAssembly.Module(bytes);
|
|
20165
|
+
var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
20166
|
+
wasm2.__wbg_set_wasm(wasmInstance.exports);
|
|
20167
|
+
exports["get_encoding"] = wasm2["get_encoding"];
|
|
20168
|
+
exports["encoding_for_model"] = wasm2["encoding_for_model"];
|
|
20169
|
+
exports["get_encoding_name_for_model"] = wasm2["get_encoding_name_for_model"];
|
|
20170
|
+
exports["Tiktoken"] = wasm2["Tiktoken"];
|
|
20171
|
+
}
|
|
20172
|
+
});
|
|
20173
|
+
|
|
19715
20174
|
// packages/core/dist/src/core/openaiContentGenerator.js
|
|
19716
20175
|
var openaiContentGenerator_exports = {};
|
|
19717
20176
|
__export(openaiContentGenerator_exports, {
|
|
@@ -20126,7 +20585,7 @@ Streaming setup timeout troubleshooting:
|
|
|
20126
20585
|
const content = JSON.stringify(request2.contents);
|
|
20127
20586
|
let totalTokens = 0;
|
|
20128
20587
|
try {
|
|
20129
|
-
const { get_encoding } = await
|
|
20588
|
+
const { get_encoding } = await Promise.resolve().then(() => __toESM(require_tiktoken(), 1));
|
|
20130
20589
|
const encoding = get_encoding("cl100k_base");
|
|
20131
20590
|
totalTokens = encoding.encode(content).length;
|
|
20132
20591
|
encoding.free();
|
|
@@ -21920,7 +22379,7 @@ function createContentGeneratorConfig(config, authType) {
|
|
|
21920
22379
|
return contentGeneratorConfig;
|
|
21921
22380
|
}
|
|
21922
22381
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
21923
|
-
const version = "1.0.
|
|
22382
|
+
const version = "1.0.67";
|
|
21924
22383
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
21925
22384
|
const baseHeaders = {
|
|
21926
22385
|
"User-Agent": userAgent
|
|
@@ -24498,8 +24957,8 @@ var init_ls = __esm({
|
|
|
24498
24957
|
}
|
|
24499
24958
|
for (const pattern of patterns) {
|
|
24500
24959
|
const regexPattern = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
24501
|
-
const
|
|
24502
|
-
if (
|
|
24960
|
+
const regex2 = new RegExp(`^${regexPattern}$`);
|
|
24961
|
+
if (regex2.test(filename)) {
|
|
24503
24962
|
return true;
|
|
24504
24963
|
}
|
|
24505
24964
|
}
|
|
@@ -32175,7 +32634,7 @@ WARNING: Results truncated to prevent context overflow. To see more results:
|
|
|
32175
32634
|
nodir: true,
|
|
32176
32635
|
signal: options3.signal
|
|
32177
32636
|
});
|
|
32178
|
-
const
|
|
32637
|
+
const regex2 = new RegExp(pattern, "i");
|
|
32179
32638
|
const allMatches = [];
|
|
32180
32639
|
for await (const filePath of filesIterator) {
|
|
32181
32640
|
const fileAbsolutePath = filePath;
|
|
@@ -32183,7 +32642,7 @@ WARNING: Results truncated to prevent context overflow. To see more results:
|
|
|
32183
32642
|
const content = await fsPromises.readFile(fileAbsolutePath, "utf8");
|
|
32184
32643
|
const lines = content.split(/\r?\n/);
|
|
32185
32644
|
lines.forEach((line, index) => {
|
|
32186
|
-
if (
|
|
32645
|
+
if (regex2.test(line)) {
|
|
32187
32646
|
allMatches.push({
|
|
32188
32647
|
filePath: path15.relative(absolutePath, fileAbsolutePath) || path15.basename(fileAbsolutePath),
|
|
32189
32648
|
lineNumber: index + 1,
|
|
@@ -33238,8 +33697,8 @@ var init_lib = __esm({
|
|
|
33238
33697
|
};
|
|
33239
33698
|
wordWithSpaceDiff = new Diff();
|
|
33240
33699
|
wordWithSpaceDiff.tokenize = function(value) {
|
|
33241
|
-
var
|
|
33242
|
-
return value.match(
|
|
33700
|
+
var regex2 = new RegExp("(\\r?\\n)|[".concat(extendedWordChars, "]+|[^\\S\\n\\r]+|[^").concat(extendedWordChars, "]"), "ug");
|
|
33701
|
+
return value.match(regex2) || [];
|
|
33243
33702
|
};
|
|
33244
33703
|
lineDiff = new Diff();
|
|
33245
33704
|
lineDiff.tokenize = function(value, options3) {
|
|
@@ -33990,13 +34449,13 @@ function timeRegex(args) {
|
|
|
33990
34449
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
33991
34450
|
}
|
|
33992
34451
|
function datetimeRegex(args) {
|
|
33993
|
-
let
|
|
34452
|
+
let regex2 = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
33994
34453
|
const opts = [];
|
|
33995
34454
|
opts.push(args.local ? `Z?` : `Z`);
|
|
33996
34455
|
if (args.offset)
|
|
33997
34456
|
opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
33998
|
-
|
|
33999
|
-
return new RegExp(`^${
|
|
34457
|
+
regex2 = `${regex2}(${opts.join("|")})`;
|
|
34458
|
+
return new RegExp(`^${regex2}$`);
|
|
34000
34459
|
}
|
|
34001
34460
|
function isValidIP(ip, version) {
|
|
34002
34461
|
if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
|
|
@@ -34694,8 +35153,8 @@ var init_types3 = __esm({
|
|
|
34694
35153
|
status.dirty();
|
|
34695
35154
|
}
|
|
34696
35155
|
} else if (check.kind === "datetime") {
|
|
34697
|
-
const
|
|
34698
|
-
if (!
|
|
35156
|
+
const regex2 = datetimeRegex(check);
|
|
35157
|
+
if (!regex2.test(input.data)) {
|
|
34699
35158
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
34700
35159
|
addIssueToContext(ctx, {
|
|
34701
35160
|
code: ZodIssueCode.invalid_string,
|
|
@@ -34705,8 +35164,8 @@ var init_types3 = __esm({
|
|
|
34705
35164
|
status.dirty();
|
|
34706
35165
|
}
|
|
34707
35166
|
} else if (check.kind === "date") {
|
|
34708
|
-
const
|
|
34709
|
-
if (!
|
|
35167
|
+
const regex2 = dateRegex;
|
|
35168
|
+
if (!regex2.test(input.data)) {
|
|
34710
35169
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
34711
35170
|
addIssueToContext(ctx, {
|
|
34712
35171
|
code: ZodIssueCode.invalid_string,
|
|
@@ -34716,8 +35175,8 @@ var init_types3 = __esm({
|
|
|
34716
35175
|
status.dirty();
|
|
34717
35176
|
}
|
|
34718
35177
|
} else if (check.kind === "time") {
|
|
34719
|
-
const
|
|
34720
|
-
if (!
|
|
35178
|
+
const regex2 = timeRegex(check);
|
|
35179
|
+
if (!regex2.test(input.data)) {
|
|
34721
35180
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
34722
35181
|
addIssueToContext(ctx, {
|
|
34723
35182
|
code: ZodIssueCode.invalid_string,
|
|
@@ -34792,8 +35251,8 @@ var init_types3 = __esm({
|
|
|
34792
35251
|
}
|
|
34793
35252
|
return { status: status.value, value: input.data };
|
|
34794
35253
|
}
|
|
34795
|
-
_regex(
|
|
34796
|
-
return this.refinement((data) =>
|
|
35254
|
+
_regex(regex2, validation, message) {
|
|
35255
|
+
return this.refinement((data) => regex2.test(data), {
|
|
34797
35256
|
validation,
|
|
34798
35257
|
code: ZodIssueCode.invalid_string,
|
|
34799
35258
|
...errorUtil.errToObj(message)
|
|
@@ -34885,10 +35344,10 @@ var init_types3 = __esm({
|
|
|
34885
35344
|
duration(message) {
|
|
34886
35345
|
return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
|
|
34887
35346
|
}
|
|
34888
|
-
regex(
|
|
35347
|
+
regex(regex2, message) {
|
|
34889
35348
|
return this._addCheck({
|
|
34890
35349
|
kind: "regex",
|
|
34891
|
-
regex,
|
|
35350
|
+
regex: regex2,
|
|
34892
35351
|
...errorUtil.errToObj(message)
|
|
34893
35352
|
});
|
|
34894
35353
|
}
|
|
@@ -47769,11 +48228,38 @@ var require_xterm_headless = __commonJS({
|
|
|
47769
48228
|
}
|
|
47770
48229
|
});
|
|
47771
48230
|
|
|
48231
|
+
// node_modules/ansi-regex/index.js
|
|
48232
|
+
function ansiRegex({ onlyFirst = false } = {}) {
|
|
48233
|
+
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
48234
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
48235
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
48236
|
+
const pattern = `${osc}|${csi}`;
|
|
48237
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
48238
|
+
}
|
|
48239
|
+
var init_ansi_regex = __esm({
|
|
48240
|
+
"node_modules/ansi-regex/index.js"() {
|
|
48241
|
+
}
|
|
48242
|
+
});
|
|
48243
|
+
|
|
48244
|
+
// node_modules/strip-ansi/index.js
|
|
48245
|
+
function stripAnsi(string) {
|
|
48246
|
+
if (typeof string !== "string") {
|
|
48247
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
48248
|
+
}
|
|
48249
|
+
return string.replace(regex, "");
|
|
48250
|
+
}
|
|
48251
|
+
var regex;
|
|
48252
|
+
var init_strip_ansi = __esm({
|
|
48253
|
+
"node_modules/strip-ansi/index.js"() {
|
|
48254
|
+
init_ansi_regex();
|
|
48255
|
+
regex = ansiRegex();
|
|
48256
|
+
}
|
|
48257
|
+
});
|
|
48258
|
+
|
|
47772
48259
|
// packages/core/dist/src/services/shellExecutionService.js
|
|
47773
48260
|
import { spawn as cpSpawn } from "child_process";
|
|
47774
48261
|
import { TextDecoder as TextDecoder2 } from "util";
|
|
47775
48262
|
import os12 from "os";
|
|
47776
|
-
import stripAnsi from "strip-ansi";
|
|
47777
48263
|
var import_headless, Terminal, SIGKILL_TIMEOUT_MS, getFullText, ShellExecutionService;
|
|
47778
48264
|
var init_shellExecutionService = __esm({
|
|
47779
48265
|
"packages/core/dist/src/services/shellExecutionService.js"() {
|
|
@@ -47782,6 +48268,7 @@ var init_shellExecutionService = __esm({
|
|
|
47782
48268
|
init_systemEncoding();
|
|
47783
48269
|
init_textUtils();
|
|
47784
48270
|
import_headless = __toESM(require_xterm_headless(), 1);
|
|
48271
|
+
init_strip_ansi();
|
|
47785
48272
|
({ Terminal } = import_headless.default);
|
|
47786
48273
|
SIGKILL_TIMEOUT_MS = 200;
|
|
47787
48274
|
getFullText = (terminal) => {
|
|
@@ -52270,12 +52757,12 @@ function encodeXML(str3) {
|
|
|
52270
52757
|
}
|
|
52271
52758
|
return ret + str3.substr(lastIdx);
|
|
52272
52759
|
}
|
|
52273
|
-
function getEscaper(
|
|
52760
|
+
function getEscaper(regex2, map3) {
|
|
52274
52761
|
return function escape6(data) {
|
|
52275
52762
|
let match2;
|
|
52276
52763
|
let lastIdx = 0;
|
|
52277
52764
|
let result = "";
|
|
52278
|
-
while (match2 =
|
|
52765
|
+
while (match2 = regex2.exec(data)) {
|
|
52279
52766
|
if (lastIdx !== match2.index) {
|
|
52280
52767
|
result += data.substring(lastIdx, match2.index);
|
|
52281
52768
|
}
|
|
@@ -53011,13 +53498,13 @@ function makeReplacerFromDict(dict) {
|
|
|
53011
53498
|
return void 0;
|
|
53012
53499
|
}
|
|
53013
53500
|
const entries = Object.entries(dict).filter(([, v]) => v !== false);
|
|
53014
|
-
const
|
|
53501
|
+
const regex2 = new RegExp(
|
|
53015
53502
|
entries.map(([c3]) => `(${unicodeEscape([...c3][0])})`).join("|"),
|
|
53016
53503
|
"g"
|
|
53017
53504
|
);
|
|
53018
53505
|
const values = entries.map(([, v]) => v);
|
|
53019
53506
|
const replacer = (m, ...cgs) => values[cgs.findIndex((cg) => cg)];
|
|
53020
|
-
return (str3) => str3.replace(
|
|
53507
|
+
return (str3) => str3.replace(regex2, replacer);
|
|
53021
53508
|
}
|
|
53022
53509
|
function formatSkip(elem, walk, builder, formatOptions) {
|
|
53023
53510
|
}
|
|
@@ -103037,32 +103524,32 @@ var require_XMLStringifier = __commonJS({
|
|
|
103037
103524
|
XMLStringifier2.prototype.convertCommentKey = "#comment";
|
|
103038
103525
|
XMLStringifier2.prototype.convertRawKey = "#raw";
|
|
103039
103526
|
XMLStringifier2.prototype.assertLegalChar = function(str3) {
|
|
103040
|
-
var
|
|
103527
|
+
var regex2, res;
|
|
103041
103528
|
if (this.options.noValidation) {
|
|
103042
103529
|
return str3;
|
|
103043
103530
|
}
|
|
103044
|
-
|
|
103531
|
+
regex2 = "";
|
|
103045
103532
|
if (this.options.version === "1.0") {
|
|
103046
|
-
|
|
103047
|
-
if (res = str3.match(
|
|
103533
|
+
regex2 = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
103534
|
+
if (res = str3.match(regex2)) {
|
|
103048
103535
|
throw new Error("Invalid character in string: " + str3 + " at index " + res.index);
|
|
103049
103536
|
}
|
|
103050
103537
|
} else if (this.options.version === "1.1") {
|
|
103051
|
-
|
|
103052
|
-
if (res = str3.match(
|
|
103538
|
+
regex2 = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
103539
|
+
if (res = str3.match(regex2)) {
|
|
103053
103540
|
throw new Error("Invalid character in string: " + str3 + " at index " + res.index);
|
|
103054
103541
|
}
|
|
103055
103542
|
}
|
|
103056
103543
|
return str3;
|
|
103057
103544
|
};
|
|
103058
103545
|
XMLStringifier2.prototype.assertLegalName = function(str3) {
|
|
103059
|
-
var
|
|
103546
|
+
var regex2;
|
|
103060
103547
|
if (this.options.noValidation) {
|
|
103061
103548
|
return str3;
|
|
103062
103549
|
}
|
|
103063
103550
|
this.assertLegalChar(str3);
|
|
103064
|
-
|
|
103065
|
-
if (!str3.match(
|
|
103551
|
+
regex2 = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
|
|
103552
|
+
if (!str3.match(regex2)) {
|
|
103066
103553
|
throw new Error("Invalid character in name");
|
|
103067
103554
|
}
|
|
103068
103555
|
return str3;
|
|
@@ -104810,11 +105297,11 @@ var require_sax = __commonJS({
|
|
|
104810
105297
|
function isAttribEnd(c3) {
|
|
104811
105298
|
return c3 === ">" || isWhitespace6(c3);
|
|
104812
105299
|
}
|
|
104813
|
-
function isMatch(
|
|
104814
|
-
return
|
|
105300
|
+
function isMatch(regex2, c3) {
|
|
105301
|
+
return regex2.test(c3);
|
|
104815
105302
|
}
|
|
104816
|
-
function notMatch(
|
|
104817
|
-
return !isMatch(
|
|
105303
|
+
function notMatch(regex2, c3) {
|
|
105304
|
+
return !isMatch(regex2, c3);
|
|
104818
105305
|
}
|
|
104819
105306
|
var S = 0;
|
|
104820
105307
|
sax.STATE = {
|
|
@@ -118690,8 +119177,8 @@ var require_pdf_worker = __commonJS({
|
|
|
118690
119177
|
}
|
|
118691
119178
|
if (js) {
|
|
118692
119179
|
var URL_OPEN_METHODS = ["app.launchURL", "window.open"];
|
|
118693
|
-
var
|
|
118694
|
-
var jsUrl =
|
|
119180
|
+
var regex2 = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + `)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`, "i");
|
|
119181
|
+
var jsUrl = regex2.exec((0, _util.stringToPDFString)(js));
|
|
118695
119182
|
if (jsUrl && jsUrl[2]) {
|
|
118696
119183
|
url2 = jsUrl[2];
|
|
118697
119184
|
if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") {
|
|
@@ -133329,7 +133816,7 @@ var require_pdf_worker = __commonJS({
|
|
|
133329
133816
|
if (offset < 0 || offset % BYTES) throw RangeError2("Wrong offset!");
|
|
133330
133817
|
return offset;
|
|
133331
133818
|
};
|
|
133332
|
-
var
|
|
133819
|
+
var validate2 = function validate3(it) {
|
|
133333
133820
|
if (isObject2(it) && TYPED_ARRAY in it) return it;
|
|
133334
133821
|
throw TypeError2(it + " is not a typed array!");
|
|
133335
133822
|
};
|
|
@@ -133390,54 +133877,54 @@ var require_pdf_worker = __commonJS({
|
|
|
133390
133877
|
arrayToLocaleString.call(new Uint8Array2(1));
|
|
133391
133878
|
});
|
|
133392
133879
|
var $toLocaleString = function toLocaleString() {
|
|
133393
|
-
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(
|
|
133880
|
+
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate2(this)) : validate2(this), arguments);
|
|
133394
133881
|
};
|
|
133395
133882
|
var proto = {
|
|
133396
133883
|
copyWithin: function copyWithin(target, start) {
|
|
133397
|
-
return arrayCopyWithin.call(
|
|
133884
|
+
return arrayCopyWithin.call(validate2(this), target, start, arguments.length > 2 ? arguments[2] : void 0);
|
|
133398
133885
|
},
|
|
133399
133886
|
every: function every(callbackfn) {
|
|
133400
|
-
return arrayEvery(
|
|
133887
|
+
return arrayEvery(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
133401
133888
|
},
|
|
133402
133889
|
fill: function fill(value) {
|
|
133403
|
-
return arrayFill.apply(
|
|
133890
|
+
return arrayFill.apply(validate2(this), arguments);
|
|
133404
133891
|
},
|
|
133405
133892
|
filter: function filter4(callbackfn) {
|
|
133406
|
-
return speciesFromList(this, arrayFilter(
|
|
133893
|
+
return speciesFromList(this, arrayFilter(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0));
|
|
133407
133894
|
},
|
|
133408
133895
|
find: function find(predicate) {
|
|
133409
|
-
return arrayFind(
|
|
133896
|
+
return arrayFind(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
133410
133897
|
},
|
|
133411
133898
|
findIndex: function findIndex(predicate) {
|
|
133412
|
-
return arrayFindIndex(
|
|
133899
|
+
return arrayFindIndex(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
133413
133900
|
},
|
|
133414
133901
|
forEach: function forEach(callbackfn) {
|
|
133415
|
-
arrayForEach(
|
|
133902
|
+
arrayForEach(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
133416
133903
|
},
|
|
133417
133904
|
indexOf: function indexOf(searchElement) {
|
|
133418
|
-
return arrayIndexOf(
|
|
133905
|
+
return arrayIndexOf(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
133419
133906
|
},
|
|
133420
133907
|
includes: function includes(searchElement) {
|
|
133421
|
-
return arrayIncludes(
|
|
133908
|
+
return arrayIncludes(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
133422
133909
|
},
|
|
133423
133910
|
join: function join34(separator) {
|
|
133424
|
-
return arrayJoin.apply(
|
|
133911
|
+
return arrayJoin.apply(validate2(this), arguments);
|
|
133425
133912
|
},
|
|
133426
133913
|
lastIndexOf: function lastIndexOf(searchElement) {
|
|
133427
|
-
return arrayLastIndexOf.apply(
|
|
133914
|
+
return arrayLastIndexOf.apply(validate2(this), arguments);
|
|
133428
133915
|
},
|
|
133429
133916
|
map: function map3(mapfn) {
|
|
133430
|
-
return $map(
|
|
133917
|
+
return $map(validate2(this), mapfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
133431
133918
|
},
|
|
133432
133919
|
reduce: function reduce(callbackfn) {
|
|
133433
|
-
return arrayReduce.apply(
|
|
133920
|
+
return arrayReduce.apply(validate2(this), arguments);
|
|
133434
133921
|
},
|
|
133435
133922
|
reduceRight: function reduceRight(callbackfn) {
|
|
133436
|
-
return arrayReduceRight.apply(
|
|
133923
|
+
return arrayReduceRight.apply(validate2(this), arguments);
|
|
133437
133924
|
},
|
|
133438
133925
|
reverse: function reverse() {
|
|
133439
133926
|
var that = this;
|
|
133440
|
-
var length =
|
|
133927
|
+
var length = validate2(that).length;
|
|
133441
133928
|
var middle2 = Math.floor(length / 2);
|
|
133442
133929
|
var index = 0;
|
|
133443
133930
|
var value;
|
|
@@ -133449,23 +133936,23 @@ var require_pdf_worker = __commonJS({
|
|
|
133449
133936
|
return that;
|
|
133450
133937
|
},
|
|
133451
133938
|
some: function some(callbackfn) {
|
|
133452
|
-
return arraySome(
|
|
133939
|
+
return arraySome(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
133453
133940
|
},
|
|
133454
133941
|
sort: function sort(comparefn) {
|
|
133455
|
-
return arraySort.call(
|
|
133942
|
+
return arraySort.call(validate2(this), comparefn);
|
|
133456
133943
|
},
|
|
133457
133944
|
subarray: function subarray(begin, end) {
|
|
133458
|
-
var O =
|
|
133945
|
+
var O = validate2(this);
|
|
133459
133946
|
var length = O.length;
|
|
133460
133947
|
var $begin = toAbsoluteIndex(begin, length);
|
|
133461
133948
|
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - $begin));
|
|
133462
133949
|
}
|
|
133463
133950
|
};
|
|
133464
133951
|
var $slice = function slice(start, end) {
|
|
133465
|
-
return speciesFromList(this, arraySlice.call(
|
|
133952
|
+
return speciesFromList(this, arraySlice.call(validate2(this), start, end));
|
|
133466
133953
|
};
|
|
133467
133954
|
var $set = function set2(arrayLike) {
|
|
133468
|
-
|
|
133955
|
+
validate2(this);
|
|
133469
133956
|
var offset = toOffset(arguments[1], 1);
|
|
133470
133957
|
var length = this.length;
|
|
133471
133958
|
var src = toObject(arrayLike);
|
|
@@ -133478,13 +133965,13 @@ var require_pdf_worker = __commonJS({
|
|
|
133478
133965
|
};
|
|
133479
133966
|
var $iterators = {
|
|
133480
133967
|
entries: function entries() {
|
|
133481
|
-
return arrayEntries.call(
|
|
133968
|
+
return arrayEntries.call(validate2(this));
|
|
133482
133969
|
},
|
|
133483
133970
|
keys: function keys() {
|
|
133484
|
-
return arrayKeys.call(
|
|
133971
|
+
return arrayKeys.call(validate2(this));
|
|
133485
133972
|
},
|
|
133486
133973
|
values: function values() {
|
|
133487
|
-
return arrayValues.call(
|
|
133974
|
+
return arrayValues.call(validate2(this));
|
|
133488
133975
|
}
|
|
133489
133976
|
};
|
|
133490
133977
|
var isTAIndex = function isTAIndex2(target, key) {
|
|
@@ -134625,7 +135112,7 @@ var require_pdf_worker = __commonJS({
|
|
|
134625
135112
|
var weak = __w_pdfjs_require__(117);
|
|
134626
135113
|
var isObject2 = __w_pdfjs_require__(3);
|
|
134627
135114
|
var fails = __w_pdfjs_require__(11);
|
|
134628
|
-
var
|
|
135115
|
+
var validate2 = __w_pdfjs_require__(71);
|
|
134629
135116
|
var WEAK_MAP = "WeakMap";
|
|
134630
135117
|
var getWeak = meta.getWeak;
|
|
134631
135118
|
var isExtensible = Object.isExtensible;
|
|
@@ -134641,12 +135128,12 @@ var require_pdf_worker = __commonJS({
|
|
|
134641
135128
|
get: function get2(key) {
|
|
134642
135129
|
if (isObject2(key)) {
|
|
134643
135130
|
var data = getWeak(key);
|
|
134644
|
-
if (data === true) return uncaughtFrozenStore(
|
|
135131
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
134645
135132
|
return data ? data[this._i] : void 0;
|
|
134646
135133
|
}
|
|
134647
135134
|
},
|
|
134648
135135
|
set: function set2(key, value) {
|
|
134649
|
-
return weak.def(
|
|
135136
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
134650
135137
|
}
|
|
134651
135138
|
};
|
|
134652
135139
|
var $WeakMap = module2.exports = __w_pdfjs_require__(118)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -134727,7 +135214,7 @@ var require_pdf_worker = __commonJS({
|
|
|
134727
135214
|
var forOf = __w_pdfjs_require__(33);
|
|
134728
135215
|
var createArrayMethod = __w_pdfjs_require__(42);
|
|
134729
135216
|
var $has = __w_pdfjs_require__(12);
|
|
134730
|
-
var
|
|
135217
|
+
var validate2 = __w_pdfjs_require__(71);
|
|
134731
135218
|
var arrayFind = createArrayMethod(5);
|
|
134732
135219
|
var arrayFindIndex = createArrayMethod(6);
|
|
134733
135220
|
var id = 0;
|
|
@@ -134776,13 +135263,13 @@ var require_pdf_worker = __commonJS({
|
|
|
134776
135263
|
"delete": function _delete(key) {
|
|
134777
135264
|
if (!isObject2(key)) return false;
|
|
134778
135265
|
var data = getWeak(key);
|
|
134779
|
-
if (data === true) return uncaughtFrozenStore(
|
|
135266
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
134780
135267
|
return data && $has(data, this._i) && delete data[this._i];
|
|
134781
135268
|
},
|
|
134782
135269
|
has: function has2(key) {
|
|
134783
135270
|
if (!isObject2(key)) return false;
|
|
134784
135271
|
var data = getWeak(key);
|
|
134785
|
-
if (data === true) return uncaughtFrozenStore(
|
|
135272
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
134786
135273
|
return data && $has(data, this._i);
|
|
134787
135274
|
}
|
|
134788
135275
|
});
|
|
@@ -160372,7 +160859,7 @@ var require_pdf = __commonJS({
|
|
|
160372
160859
|
if (offset < 0 || offset % BYTES) throw RangeError2("Wrong offset!");
|
|
160373
160860
|
return offset;
|
|
160374
160861
|
};
|
|
160375
|
-
var
|
|
160862
|
+
var validate2 = function validate3(it) {
|
|
160376
160863
|
if (isObject2(it) && TYPED_ARRAY in it) return it;
|
|
160377
160864
|
throw TypeError2(it + " is not a typed array!");
|
|
160378
160865
|
};
|
|
@@ -160433,54 +160920,54 @@ var require_pdf = __commonJS({
|
|
|
160433
160920
|
arrayToLocaleString.call(new Uint8Array2(1));
|
|
160434
160921
|
});
|
|
160435
160922
|
var $toLocaleString = function toLocaleString() {
|
|
160436
|
-
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(
|
|
160923
|
+
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate2(this)) : validate2(this), arguments);
|
|
160437
160924
|
};
|
|
160438
160925
|
var proto = {
|
|
160439
160926
|
copyWithin: function copyWithin(target, start) {
|
|
160440
|
-
return arrayCopyWithin.call(
|
|
160927
|
+
return arrayCopyWithin.call(validate2(this), target, start, arguments.length > 2 ? arguments[2] : void 0);
|
|
160441
160928
|
},
|
|
160442
160929
|
every: function every(callbackfn) {
|
|
160443
|
-
return arrayEvery(
|
|
160930
|
+
return arrayEvery(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
160444
160931
|
},
|
|
160445
160932
|
fill: function fill(value) {
|
|
160446
|
-
return arrayFill.apply(
|
|
160933
|
+
return arrayFill.apply(validate2(this), arguments);
|
|
160447
160934
|
},
|
|
160448
160935
|
filter: function filter4(callbackfn) {
|
|
160449
|
-
return speciesFromList(this, arrayFilter(
|
|
160936
|
+
return speciesFromList(this, arrayFilter(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0));
|
|
160450
160937
|
},
|
|
160451
160938
|
find: function find(predicate) {
|
|
160452
|
-
return arrayFind(
|
|
160939
|
+
return arrayFind(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
160453
160940
|
},
|
|
160454
160941
|
findIndex: function findIndex(predicate) {
|
|
160455
|
-
return arrayFindIndex(
|
|
160942
|
+
return arrayFindIndex(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
160456
160943
|
},
|
|
160457
160944
|
forEach: function forEach(callbackfn) {
|
|
160458
|
-
arrayForEach(
|
|
160945
|
+
arrayForEach(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
160459
160946
|
},
|
|
160460
160947
|
indexOf: function indexOf(searchElement) {
|
|
160461
|
-
return arrayIndexOf(
|
|
160948
|
+
return arrayIndexOf(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
160462
160949
|
},
|
|
160463
160950
|
includes: function includes(searchElement) {
|
|
160464
|
-
return arrayIncludes(
|
|
160951
|
+
return arrayIncludes(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
160465
160952
|
},
|
|
160466
160953
|
join: function join34(separator) {
|
|
160467
|
-
return arrayJoin.apply(
|
|
160954
|
+
return arrayJoin.apply(validate2(this), arguments);
|
|
160468
160955
|
},
|
|
160469
160956
|
lastIndexOf: function lastIndexOf(searchElement) {
|
|
160470
|
-
return arrayLastIndexOf.apply(
|
|
160957
|
+
return arrayLastIndexOf.apply(validate2(this), arguments);
|
|
160471
160958
|
},
|
|
160472
160959
|
map: function map3(mapfn) {
|
|
160473
|
-
return $map(
|
|
160960
|
+
return $map(validate2(this), mapfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
160474
160961
|
},
|
|
160475
160962
|
reduce: function reduce(callbackfn) {
|
|
160476
|
-
return arrayReduce.apply(
|
|
160963
|
+
return arrayReduce.apply(validate2(this), arguments);
|
|
160477
160964
|
},
|
|
160478
160965
|
reduceRight: function reduceRight(callbackfn) {
|
|
160479
|
-
return arrayReduceRight.apply(
|
|
160966
|
+
return arrayReduceRight.apply(validate2(this), arguments);
|
|
160480
160967
|
},
|
|
160481
160968
|
reverse: function reverse() {
|
|
160482
160969
|
var that = this;
|
|
160483
|
-
var length =
|
|
160970
|
+
var length = validate2(that).length;
|
|
160484
160971
|
var middle2 = Math.floor(length / 2);
|
|
160485
160972
|
var index = 0;
|
|
160486
160973
|
var value;
|
|
@@ -160492,23 +160979,23 @@ var require_pdf = __commonJS({
|
|
|
160492
160979
|
return that;
|
|
160493
160980
|
},
|
|
160494
160981
|
some: function some(callbackfn) {
|
|
160495
|
-
return arraySome(
|
|
160982
|
+
return arraySome(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
160496
160983
|
},
|
|
160497
160984
|
sort: function sort(comparefn) {
|
|
160498
|
-
return arraySort.call(
|
|
160985
|
+
return arraySort.call(validate2(this), comparefn);
|
|
160499
160986
|
},
|
|
160500
160987
|
subarray: function subarray(begin, end) {
|
|
160501
|
-
var O =
|
|
160988
|
+
var O = validate2(this);
|
|
160502
160989
|
var length = O.length;
|
|
160503
160990
|
var $begin = toAbsoluteIndex(begin, length);
|
|
160504
160991
|
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - $begin));
|
|
160505
160992
|
}
|
|
160506
160993
|
};
|
|
160507
160994
|
var $slice = function slice(start, end) {
|
|
160508
|
-
return speciesFromList(this, arraySlice.call(
|
|
160995
|
+
return speciesFromList(this, arraySlice.call(validate2(this), start, end));
|
|
160509
160996
|
};
|
|
160510
160997
|
var $set = function set2(arrayLike) {
|
|
160511
|
-
|
|
160998
|
+
validate2(this);
|
|
160512
160999
|
var offset = toOffset(arguments[1], 1);
|
|
160513
161000
|
var length = this.length;
|
|
160514
161001
|
var src = toObject(arrayLike);
|
|
@@ -160521,13 +161008,13 @@ var require_pdf = __commonJS({
|
|
|
160521
161008
|
};
|
|
160522
161009
|
var $iterators = {
|
|
160523
161010
|
entries: function entries() {
|
|
160524
|
-
return arrayEntries.call(
|
|
161011
|
+
return arrayEntries.call(validate2(this));
|
|
160525
161012
|
},
|
|
160526
161013
|
keys: function keys() {
|
|
160527
|
-
return arrayKeys.call(
|
|
161014
|
+
return arrayKeys.call(validate2(this));
|
|
160528
161015
|
},
|
|
160529
161016
|
values: function values() {
|
|
160530
|
-
return arrayValues.call(
|
|
161017
|
+
return arrayValues.call(validate2(this));
|
|
160531
161018
|
}
|
|
160532
161019
|
};
|
|
160533
161020
|
var isTAIndex = function isTAIndex2(target, key) {
|
|
@@ -161668,7 +162155,7 @@ var require_pdf = __commonJS({
|
|
|
161668
162155
|
var weak = __w_pdfjs_require__(108);
|
|
161669
162156
|
var isObject2 = __w_pdfjs_require__(2);
|
|
161670
162157
|
var fails = __w_pdfjs_require__(9);
|
|
161671
|
-
var
|
|
162158
|
+
var validate2 = __w_pdfjs_require__(68);
|
|
161672
162159
|
var WEAK_MAP = "WeakMap";
|
|
161673
162160
|
var getWeak = meta.getWeak;
|
|
161674
162161
|
var isExtensible = Object.isExtensible;
|
|
@@ -161684,12 +162171,12 @@ var require_pdf = __commonJS({
|
|
|
161684
162171
|
get: function get2(key) {
|
|
161685
162172
|
if (isObject2(key)) {
|
|
161686
162173
|
var data = getWeak(key);
|
|
161687
|
-
if (data === true) return uncaughtFrozenStore(
|
|
162174
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
161688
162175
|
return data ? data[this._i] : void 0;
|
|
161689
162176
|
}
|
|
161690
162177
|
},
|
|
161691
162178
|
set: function set2(key, value) {
|
|
161692
|
-
return weak.def(
|
|
162179
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
161693
162180
|
}
|
|
161694
162181
|
};
|
|
161695
162182
|
var $WeakMap = module2.exports = __w_pdfjs_require__(109)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -161770,7 +162257,7 @@ var require_pdf = __commonJS({
|
|
|
161770
162257
|
var forOf = __w_pdfjs_require__(31);
|
|
161771
162258
|
var createArrayMethod = __w_pdfjs_require__(39);
|
|
161772
162259
|
var $has = __w_pdfjs_require__(10);
|
|
161773
|
-
var
|
|
162260
|
+
var validate2 = __w_pdfjs_require__(68);
|
|
161774
162261
|
var arrayFind = createArrayMethod(5);
|
|
161775
162262
|
var arrayFindIndex = createArrayMethod(6);
|
|
161776
162263
|
var id = 0;
|
|
@@ -161819,13 +162306,13 @@ var require_pdf = __commonJS({
|
|
|
161819
162306
|
"delete": function _delete(key) {
|
|
161820
162307
|
if (!isObject2(key)) return false;
|
|
161821
162308
|
var data = getWeak(key);
|
|
161822
|
-
if (data === true) return uncaughtFrozenStore(
|
|
162309
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
161823
162310
|
return data && $has(data, this._i) && delete data[this._i];
|
|
161824
162311
|
},
|
|
161825
162312
|
has: function has2(key) {
|
|
161826
162313
|
if (!isObject2(key)) return false;
|
|
161827
162314
|
var data = getWeak(key);
|
|
161828
|
-
if (data === true) return uncaughtFrozenStore(
|
|
162315
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
161829
162316
|
return data && $has(data, this._i);
|
|
161830
162317
|
}
|
|
161831
162318
|
});
|
|
@@ -180894,8 +181381,8 @@ var require_pdf_worker2 = __commonJS({
|
|
|
180894
181381
|
}
|
|
180895
181382
|
if (js) {
|
|
180896
181383
|
var URL_OPEN_METHODS = ["app.launchURL", "window.open"];
|
|
180897
|
-
var
|
|
180898
|
-
var jsUrl =
|
|
181384
|
+
var regex2 = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + `)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`, "i");
|
|
181385
|
+
var jsUrl = regex2.exec((0, _util.stringToPDFString)(js));
|
|
180899
181386
|
if (jsUrl && jsUrl[2]) {
|
|
180900
181387
|
url2 = jsUrl[2];
|
|
180901
181388
|
if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") {
|
|
@@ -195544,7 +196031,7 @@ var require_pdf_worker2 = __commonJS({
|
|
|
195544
196031
|
if (offset < 0 || offset % BYTES) throw RangeError2("Wrong offset!");
|
|
195545
196032
|
return offset;
|
|
195546
196033
|
};
|
|
195547
|
-
var
|
|
196034
|
+
var validate2 = function validate3(it) {
|
|
195548
196035
|
if (isObject2(it) && TYPED_ARRAY in it) return it;
|
|
195549
196036
|
throw TypeError2(it + " is not a typed array!");
|
|
195550
196037
|
};
|
|
@@ -195605,54 +196092,54 @@ var require_pdf_worker2 = __commonJS({
|
|
|
195605
196092
|
arrayToLocaleString.call(new Uint8Array2(1));
|
|
195606
196093
|
});
|
|
195607
196094
|
var $toLocaleString = function toLocaleString() {
|
|
195608
|
-
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(
|
|
196095
|
+
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate2(this)) : validate2(this), arguments);
|
|
195609
196096
|
};
|
|
195610
196097
|
var proto = {
|
|
195611
196098
|
copyWithin: function copyWithin(target, start) {
|
|
195612
|
-
return arrayCopyWithin.call(
|
|
196099
|
+
return arrayCopyWithin.call(validate2(this), target, start, arguments.length > 2 ? arguments[2] : void 0);
|
|
195613
196100
|
},
|
|
195614
196101
|
every: function every(callbackfn) {
|
|
195615
|
-
return arrayEvery(
|
|
196102
|
+
return arrayEvery(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
195616
196103
|
},
|
|
195617
196104
|
fill: function fill(value) {
|
|
195618
|
-
return arrayFill.apply(
|
|
196105
|
+
return arrayFill.apply(validate2(this), arguments);
|
|
195619
196106
|
},
|
|
195620
196107
|
filter: function filter4(callbackfn) {
|
|
195621
|
-
return speciesFromList(this, arrayFilter(
|
|
196108
|
+
return speciesFromList(this, arrayFilter(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0));
|
|
195622
196109
|
},
|
|
195623
196110
|
find: function find(predicate) {
|
|
195624
|
-
return arrayFind(
|
|
196111
|
+
return arrayFind(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
195625
196112
|
},
|
|
195626
196113
|
findIndex: function findIndex(predicate) {
|
|
195627
|
-
return arrayFindIndex(
|
|
196114
|
+
return arrayFindIndex(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
195628
196115
|
},
|
|
195629
196116
|
forEach: function forEach(callbackfn) {
|
|
195630
|
-
arrayForEach(
|
|
196117
|
+
arrayForEach(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
195631
196118
|
},
|
|
195632
196119
|
indexOf: function indexOf(searchElement) {
|
|
195633
|
-
return arrayIndexOf(
|
|
196120
|
+
return arrayIndexOf(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
195634
196121
|
},
|
|
195635
196122
|
includes: function includes(searchElement) {
|
|
195636
|
-
return arrayIncludes(
|
|
196123
|
+
return arrayIncludes(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
195637
196124
|
},
|
|
195638
196125
|
join: function join34(separator) {
|
|
195639
|
-
return arrayJoin.apply(
|
|
196126
|
+
return arrayJoin.apply(validate2(this), arguments);
|
|
195640
196127
|
},
|
|
195641
196128
|
lastIndexOf: function lastIndexOf(searchElement) {
|
|
195642
|
-
return arrayLastIndexOf.apply(
|
|
196129
|
+
return arrayLastIndexOf.apply(validate2(this), arguments);
|
|
195643
196130
|
},
|
|
195644
196131
|
map: function map3(mapfn) {
|
|
195645
|
-
return $map(
|
|
196132
|
+
return $map(validate2(this), mapfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
195646
196133
|
},
|
|
195647
196134
|
reduce: function reduce(callbackfn) {
|
|
195648
|
-
return arrayReduce.apply(
|
|
196135
|
+
return arrayReduce.apply(validate2(this), arguments);
|
|
195649
196136
|
},
|
|
195650
196137
|
reduceRight: function reduceRight(callbackfn) {
|
|
195651
|
-
return arrayReduceRight.apply(
|
|
196138
|
+
return arrayReduceRight.apply(validate2(this), arguments);
|
|
195652
196139
|
},
|
|
195653
196140
|
reverse: function reverse() {
|
|
195654
196141
|
var that = this;
|
|
195655
|
-
var length =
|
|
196142
|
+
var length = validate2(that).length;
|
|
195656
196143
|
var middle2 = Math.floor(length / 2);
|
|
195657
196144
|
var index = 0;
|
|
195658
196145
|
var value;
|
|
@@ -195664,23 +196151,23 @@ var require_pdf_worker2 = __commonJS({
|
|
|
195664
196151
|
return that;
|
|
195665
196152
|
},
|
|
195666
196153
|
some: function some(callbackfn) {
|
|
195667
|
-
return arraySome(
|
|
196154
|
+
return arraySome(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
195668
196155
|
},
|
|
195669
196156
|
sort: function sort(comparefn) {
|
|
195670
|
-
return arraySort.call(
|
|
196157
|
+
return arraySort.call(validate2(this), comparefn);
|
|
195671
196158
|
},
|
|
195672
196159
|
subarray: function subarray(begin, end) {
|
|
195673
|
-
var O =
|
|
196160
|
+
var O = validate2(this);
|
|
195674
196161
|
var length = O.length;
|
|
195675
196162
|
var $begin = toAbsoluteIndex(begin, length);
|
|
195676
196163
|
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - $begin));
|
|
195677
196164
|
}
|
|
195678
196165
|
};
|
|
195679
196166
|
var $slice = function slice(start, end) {
|
|
195680
|
-
return speciesFromList(this, arraySlice.call(
|
|
196167
|
+
return speciesFromList(this, arraySlice.call(validate2(this), start, end));
|
|
195681
196168
|
};
|
|
195682
196169
|
var $set = function set2(arrayLike) {
|
|
195683
|
-
|
|
196170
|
+
validate2(this);
|
|
195684
196171
|
var offset = toOffset(arguments[1], 1);
|
|
195685
196172
|
var length = this.length;
|
|
195686
196173
|
var src = toObject(arrayLike);
|
|
@@ -195693,13 +196180,13 @@ var require_pdf_worker2 = __commonJS({
|
|
|
195693
196180
|
};
|
|
195694
196181
|
var $iterators = {
|
|
195695
196182
|
entries: function entries() {
|
|
195696
|
-
return arrayEntries.call(
|
|
196183
|
+
return arrayEntries.call(validate2(this));
|
|
195697
196184
|
},
|
|
195698
196185
|
keys: function keys() {
|
|
195699
|
-
return arrayKeys.call(
|
|
196186
|
+
return arrayKeys.call(validate2(this));
|
|
195700
196187
|
},
|
|
195701
196188
|
values: function values() {
|
|
195702
|
-
return arrayValues.call(
|
|
196189
|
+
return arrayValues.call(validate2(this));
|
|
195703
196190
|
}
|
|
195704
196191
|
};
|
|
195705
196192
|
var isTAIndex = function isTAIndex2(target, key) {
|
|
@@ -196833,7 +197320,7 @@ var require_pdf_worker2 = __commonJS({
|
|
|
196833
197320
|
var weak = __w_pdfjs_require__(116);
|
|
196834
197321
|
var isObject2 = __w_pdfjs_require__(3);
|
|
196835
197322
|
var fails = __w_pdfjs_require__(12);
|
|
196836
|
-
var
|
|
197323
|
+
var validate2 = __w_pdfjs_require__(71);
|
|
196837
197324
|
var WEAK_MAP = "WeakMap";
|
|
196838
197325
|
var getWeak = meta.getWeak;
|
|
196839
197326
|
var isExtensible = Object.isExtensible;
|
|
@@ -196849,12 +197336,12 @@ var require_pdf_worker2 = __commonJS({
|
|
|
196849
197336
|
get: function get2(key) {
|
|
196850
197337
|
if (isObject2(key)) {
|
|
196851
197338
|
var data = getWeak(key);
|
|
196852
|
-
if (data === true) return uncaughtFrozenStore(
|
|
197339
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
196853
197340
|
return data ? data[this._i] : void 0;
|
|
196854
197341
|
}
|
|
196855
197342
|
},
|
|
196856
197343
|
set: function set2(key, value) {
|
|
196857
|
-
return weak.def(
|
|
197344
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
196858
197345
|
}
|
|
196859
197346
|
};
|
|
196860
197347
|
var $WeakMap = module2.exports = __w_pdfjs_require__(117)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -196935,7 +197422,7 @@ var require_pdf_worker2 = __commonJS({
|
|
|
196935
197422
|
var forOf = __w_pdfjs_require__(33);
|
|
196936
197423
|
var createArrayMethod = __w_pdfjs_require__(42);
|
|
196937
197424
|
var $has = __w_pdfjs_require__(10);
|
|
196938
|
-
var
|
|
197425
|
+
var validate2 = __w_pdfjs_require__(71);
|
|
196939
197426
|
var arrayFind = createArrayMethod(5);
|
|
196940
197427
|
var arrayFindIndex = createArrayMethod(6);
|
|
196941
197428
|
var id = 0;
|
|
@@ -196984,13 +197471,13 @@ var require_pdf_worker2 = __commonJS({
|
|
|
196984
197471
|
"delete": function _delete(key) {
|
|
196985
197472
|
if (!isObject2(key)) return false;
|
|
196986
197473
|
var data = getWeak(key);
|
|
196987
|
-
if (data === true) return uncaughtFrozenStore(
|
|
197474
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
196988
197475
|
return data && $has(data, this._i) && delete data[this._i];
|
|
196989
197476
|
},
|
|
196990
197477
|
has: function has2(key) {
|
|
196991
197478
|
if (!isObject2(key)) return false;
|
|
196992
197479
|
var data = getWeak(key);
|
|
196993
|
-
if (data === true) return uncaughtFrozenStore(
|
|
197480
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
196994
197481
|
return data && $has(data, this._i);
|
|
196995
197482
|
}
|
|
196996
197483
|
});
|
|
@@ -215535,11 +216022,11 @@ var require_pdf2 = __commonJS({
|
|
|
215535
216022
|
nodes.push(node);
|
|
215536
216023
|
return length + ",";
|
|
215537
216024
|
});
|
|
215538
|
-
var
|
|
216025
|
+
var regex2 = /<([\w\:]+)((?:[\s\w:=]|'[^']*'|"[^"]*")*)(?:\/>|>([\d,]*)<\/[^>]+>)/g;
|
|
215539
216026
|
var lastLength = void 0;
|
|
215540
216027
|
do {
|
|
215541
216028
|
lastLength = nodes.length;
|
|
215542
|
-
data = data.replace(
|
|
216029
|
+
data = data.replace(regex2, function(all2, name2, attrs, data2) {
|
|
215543
216030
|
var length = nodes.length;
|
|
215544
216031
|
var node = new SimpleDOMNode(name2);
|
|
215545
216032
|
var children2 = [];
|
|
@@ -222691,7 +223178,7 @@ var require_pdf2 = __commonJS({
|
|
|
222691
223178
|
if (offset < 0 || offset % BYTES) throw RangeError2("Wrong offset!");
|
|
222692
223179
|
return offset;
|
|
222693
223180
|
};
|
|
222694
|
-
var
|
|
223181
|
+
var validate2 = function validate3(it) {
|
|
222695
223182
|
if (isObject2(it) && TYPED_ARRAY in it) return it;
|
|
222696
223183
|
throw TypeError2(it + " is not a typed array!");
|
|
222697
223184
|
};
|
|
@@ -222752,54 +223239,54 @@ var require_pdf2 = __commonJS({
|
|
|
222752
223239
|
arrayToLocaleString.call(new Uint8Array2(1));
|
|
222753
223240
|
});
|
|
222754
223241
|
var $toLocaleString = function toLocaleString() {
|
|
222755
|
-
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(
|
|
223242
|
+
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate2(this)) : validate2(this), arguments);
|
|
222756
223243
|
};
|
|
222757
223244
|
var proto = {
|
|
222758
223245
|
copyWithin: function copyWithin(target, start) {
|
|
222759
|
-
return arrayCopyWithin.call(
|
|
223246
|
+
return arrayCopyWithin.call(validate2(this), target, start, arguments.length > 2 ? arguments[2] : void 0);
|
|
222760
223247
|
},
|
|
222761
223248
|
every: function every(callbackfn) {
|
|
222762
|
-
return arrayEvery(
|
|
223249
|
+
return arrayEvery(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
222763
223250
|
},
|
|
222764
223251
|
fill: function fill(value) {
|
|
222765
|
-
return arrayFill.apply(
|
|
223252
|
+
return arrayFill.apply(validate2(this), arguments);
|
|
222766
223253
|
},
|
|
222767
223254
|
filter: function filter4(callbackfn) {
|
|
222768
|
-
return speciesFromList(this, arrayFilter(
|
|
223255
|
+
return speciesFromList(this, arrayFilter(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0));
|
|
222769
223256
|
},
|
|
222770
223257
|
find: function find(predicate) {
|
|
222771
|
-
return arrayFind(
|
|
223258
|
+
return arrayFind(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
222772
223259
|
},
|
|
222773
223260
|
findIndex: function findIndex(predicate) {
|
|
222774
|
-
return arrayFindIndex(
|
|
223261
|
+
return arrayFindIndex(validate2(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
|
|
222775
223262
|
},
|
|
222776
223263
|
forEach: function forEach(callbackfn) {
|
|
222777
|
-
arrayForEach(
|
|
223264
|
+
arrayForEach(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
222778
223265
|
},
|
|
222779
223266
|
indexOf: function indexOf(searchElement) {
|
|
222780
|
-
return arrayIndexOf(
|
|
223267
|
+
return arrayIndexOf(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
222781
223268
|
},
|
|
222782
223269
|
includes: function includes(searchElement) {
|
|
222783
|
-
return arrayIncludes(
|
|
223270
|
+
return arrayIncludes(validate2(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
|
|
222784
223271
|
},
|
|
222785
223272
|
join: function join34(separator) {
|
|
222786
|
-
return arrayJoin.apply(
|
|
223273
|
+
return arrayJoin.apply(validate2(this), arguments);
|
|
222787
223274
|
},
|
|
222788
223275
|
lastIndexOf: function lastIndexOf(searchElement) {
|
|
222789
|
-
return arrayLastIndexOf.apply(
|
|
223276
|
+
return arrayLastIndexOf.apply(validate2(this), arguments);
|
|
222790
223277
|
},
|
|
222791
223278
|
map: function map3(mapfn) {
|
|
222792
|
-
return $map(
|
|
223279
|
+
return $map(validate2(this), mapfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
222793
223280
|
},
|
|
222794
223281
|
reduce: function reduce(callbackfn) {
|
|
222795
|
-
return arrayReduce.apply(
|
|
223282
|
+
return arrayReduce.apply(validate2(this), arguments);
|
|
222796
223283
|
},
|
|
222797
223284
|
reduceRight: function reduceRight(callbackfn) {
|
|
222798
|
-
return arrayReduceRight.apply(
|
|
223285
|
+
return arrayReduceRight.apply(validate2(this), arguments);
|
|
222799
223286
|
},
|
|
222800
223287
|
reverse: function reverse() {
|
|
222801
223288
|
var that = this;
|
|
222802
|
-
var length =
|
|
223289
|
+
var length = validate2(that).length;
|
|
222803
223290
|
var middle2 = Math.floor(length / 2);
|
|
222804
223291
|
var index = 0;
|
|
222805
223292
|
var value;
|
|
@@ -222811,23 +223298,23 @@ var require_pdf2 = __commonJS({
|
|
|
222811
223298
|
return that;
|
|
222812
223299
|
},
|
|
222813
223300
|
some: function some(callbackfn) {
|
|
222814
|
-
return arraySome(
|
|
223301
|
+
return arraySome(validate2(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
|
|
222815
223302
|
},
|
|
222816
223303
|
sort: function sort(comparefn) {
|
|
222817
|
-
return arraySort.call(
|
|
223304
|
+
return arraySort.call(validate2(this), comparefn);
|
|
222818
223305
|
},
|
|
222819
223306
|
subarray: function subarray(begin, end) {
|
|
222820
|
-
var O =
|
|
223307
|
+
var O = validate2(this);
|
|
222821
223308
|
var length = O.length;
|
|
222822
223309
|
var $begin = toAbsoluteIndex(begin, length);
|
|
222823
223310
|
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - $begin));
|
|
222824
223311
|
}
|
|
222825
223312
|
};
|
|
222826
223313
|
var $slice = function slice(start, end) {
|
|
222827
|
-
return speciesFromList(this, arraySlice.call(
|
|
223314
|
+
return speciesFromList(this, arraySlice.call(validate2(this), start, end));
|
|
222828
223315
|
};
|
|
222829
223316
|
var $set = function set2(arrayLike) {
|
|
222830
|
-
|
|
223317
|
+
validate2(this);
|
|
222831
223318
|
var offset = toOffset(arguments[1], 1);
|
|
222832
223319
|
var length = this.length;
|
|
222833
223320
|
var src = toObject(arrayLike);
|
|
@@ -222840,13 +223327,13 @@ var require_pdf2 = __commonJS({
|
|
|
222840
223327
|
};
|
|
222841
223328
|
var $iterators = {
|
|
222842
223329
|
entries: function entries() {
|
|
222843
|
-
return arrayEntries.call(
|
|
223330
|
+
return arrayEntries.call(validate2(this));
|
|
222844
223331
|
},
|
|
222845
223332
|
keys: function keys() {
|
|
222846
|
-
return arrayKeys.call(
|
|
223333
|
+
return arrayKeys.call(validate2(this));
|
|
222847
223334
|
},
|
|
222848
223335
|
values: function values() {
|
|
222849
|
-
return arrayValues.call(
|
|
223336
|
+
return arrayValues.call(validate2(this));
|
|
222850
223337
|
}
|
|
222851
223338
|
};
|
|
222852
223339
|
var isTAIndex = function isTAIndex2(target, key) {
|
|
@@ -223980,7 +224467,7 @@ var require_pdf2 = __commonJS({
|
|
|
223980
224467
|
var weak = __w_pdfjs_require__(107);
|
|
223981
224468
|
var isObject2 = __w_pdfjs_require__(2);
|
|
223982
224469
|
var fails = __w_pdfjs_require__(10);
|
|
223983
|
-
var
|
|
224470
|
+
var validate2 = __w_pdfjs_require__(68);
|
|
223984
224471
|
var WEAK_MAP = "WeakMap";
|
|
223985
224472
|
var getWeak = meta.getWeak;
|
|
223986
224473
|
var isExtensible = Object.isExtensible;
|
|
@@ -223996,12 +224483,12 @@ var require_pdf2 = __commonJS({
|
|
|
223996
224483
|
get: function get2(key) {
|
|
223997
224484
|
if (isObject2(key)) {
|
|
223998
224485
|
var data = getWeak(key);
|
|
223999
|
-
if (data === true) return uncaughtFrozenStore(
|
|
224486
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
224000
224487
|
return data ? data[this._i] : void 0;
|
|
224001
224488
|
}
|
|
224002
224489
|
},
|
|
224003
224490
|
set: function set2(key, value) {
|
|
224004
|
-
return weak.def(
|
|
224491
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
224005
224492
|
}
|
|
224006
224493
|
};
|
|
224007
224494
|
var $WeakMap = module2.exports = __w_pdfjs_require__(108)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -224082,7 +224569,7 @@ var require_pdf2 = __commonJS({
|
|
|
224082
224569
|
var forOf = __w_pdfjs_require__(31);
|
|
224083
224570
|
var createArrayMethod = __w_pdfjs_require__(39);
|
|
224084
224571
|
var $has = __w_pdfjs_require__(8);
|
|
224085
|
-
var
|
|
224572
|
+
var validate2 = __w_pdfjs_require__(68);
|
|
224086
224573
|
var arrayFind = createArrayMethod(5);
|
|
224087
224574
|
var arrayFindIndex = createArrayMethod(6);
|
|
224088
224575
|
var id = 0;
|
|
@@ -224131,13 +224618,13 @@ var require_pdf2 = __commonJS({
|
|
|
224131
224618
|
"delete": function _delete(key) {
|
|
224132
224619
|
if (!isObject2(key)) return false;
|
|
224133
224620
|
var data = getWeak(key);
|
|
224134
|
-
if (data === true) return uncaughtFrozenStore(
|
|
224621
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
224135
224622
|
return data && $has(data, this._i) && delete data[this._i];
|
|
224136
224623
|
},
|
|
224137
224624
|
has: function has2(key) {
|
|
224138
224625
|
if (!isObject2(key)) return false;
|
|
224139
224626
|
var data = getWeak(key);
|
|
224140
|
-
if (data === true) return uncaughtFrozenStore(
|
|
224627
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
224141
224628
|
return data && $has(data, this._i);
|
|
224142
224629
|
}
|
|
224143
224630
|
});
|
|
@@ -253112,8 +253599,8 @@ var require_pdf_worker3 = __commonJS({
|
|
|
253112
253599
|
}
|
|
253113
253600
|
if (js) {
|
|
253114
253601
|
var URL_OPEN_METHODS = ["app.launchURL", "window.open"];
|
|
253115
|
-
var
|
|
253116
|
-
var jsUrl =
|
|
253602
|
+
var regex2 = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + `)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`, "i");
|
|
253603
|
+
var jsUrl = regex2.exec((0, _util.stringToPDFString)(js));
|
|
253117
253604
|
if (jsUrl && jsUrl[2]) {
|
|
253118
253605
|
url2 = jsUrl[2];
|
|
253119
253606
|
if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") {
|
|
@@ -289606,7 +290093,7 @@ var require_pdf_worker4 = __commonJS({
|
|
|
289606
290093
|
var weak = __w_pdfjs_require__(100);
|
|
289607
290094
|
var isObject2 = __w_pdfjs_require__(14);
|
|
289608
290095
|
var fails = __w_pdfjs_require__(17);
|
|
289609
|
-
var
|
|
290096
|
+
var validate2 = __w_pdfjs_require__(101);
|
|
289610
290097
|
var WEAK_MAP = "WeakMap";
|
|
289611
290098
|
var getWeak = meta.getWeak;
|
|
289612
290099
|
var isExtensible = Object.isExtensible;
|
|
@@ -289622,12 +290109,12 @@ var require_pdf_worker4 = __commonJS({
|
|
|
289622
290109
|
get: function get2(key) {
|
|
289623
290110
|
if (isObject2(key)) {
|
|
289624
290111
|
var data = getWeak(key);
|
|
289625
|
-
if (data === true) return uncaughtFrozenStore(
|
|
290112
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
289626
290113
|
return data ? data[this._i] : void 0;
|
|
289627
290114
|
}
|
|
289628
290115
|
},
|
|
289629
290116
|
set: function set2(key, value) {
|
|
289630
|
-
return weak.def(
|
|
290117
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
289631
290118
|
}
|
|
289632
290119
|
};
|
|
289633
290120
|
var $WeakMap = module2.exports = __w_pdfjs_require__(102)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -289858,7 +290345,7 @@ var require_pdf_worker4 = __commonJS({
|
|
|
289858
290345
|
var forOf = __w_pdfjs_require__(73);
|
|
289859
290346
|
var createArrayMethod = __w_pdfjs_require__(92);
|
|
289860
290347
|
var $has = __w_pdfjs_require__(22);
|
|
289861
|
-
var
|
|
290348
|
+
var validate2 = __w_pdfjs_require__(101);
|
|
289862
290349
|
var arrayFind = createArrayMethod(5);
|
|
289863
290350
|
var arrayFindIndex = createArrayMethod(6);
|
|
289864
290351
|
var id = 0;
|
|
@@ -289907,13 +290394,13 @@ var require_pdf_worker4 = __commonJS({
|
|
|
289907
290394
|
"delete": function _delete(key) {
|
|
289908
290395
|
if (!isObject2(key)) return false;
|
|
289909
290396
|
var data = getWeak(key);
|
|
289910
|
-
if (data === true) return uncaughtFrozenStore(
|
|
290397
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
289911
290398
|
return data && $has(data, this._i) && delete data[this._i];
|
|
289912
290399
|
},
|
|
289913
290400
|
has: function has2(key) {
|
|
289914
290401
|
if (!isObject2(key)) return false;
|
|
289915
290402
|
var data = getWeak(key);
|
|
289916
|
-
if (data === true) return uncaughtFrozenStore(
|
|
290403
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
289917
290404
|
return data && $has(data, this._i);
|
|
289918
290405
|
}
|
|
289919
290406
|
});
|
|
@@ -295024,8 +295511,8 @@ var require_pdf_worker4 = __commonJS({
|
|
|
295024
295511
|
}
|
|
295025
295512
|
if (js) {
|
|
295026
295513
|
var URL_OPEN_METHODS = ["app.launchURL", "window.open"];
|
|
295027
|
-
var
|
|
295028
|
-
var jsUrl =
|
|
295514
|
+
var regex2 = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + `)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`, "i");
|
|
295515
|
+
var jsUrl = regex2.exec((0, _util.stringToPDFString)(js));
|
|
295029
295516
|
if (jsUrl && jsUrl[2]) {
|
|
295030
295517
|
url2 = jsUrl[2];
|
|
295031
295518
|
if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") {
|
|
@@ -332988,7 +333475,7 @@ var require_pdf4 = __commonJS({
|
|
|
332988
333475
|
var weak = __w_pdfjs_require__(99);
|
|
332989
333476
|
var isObject2 = __w_pdfjs_require__(13);
|
|
332990
333477
|
var fails = __w_pdfjs_require__(16);
|
|
332991
|
-
var
|
|
333478
|
+
var validate2 = __w_pdfjs_require__(100);
|
|
332992
333479
|
var WEAK_MAP = "WeakMap";
|
|
332993
333480
|
var getWeak = meta.getWeak;
|
|
332994
333481
|
var isExtensible = Object.isExtensible;
|
|
@@ -333004,12 +333491,12 @@ var require_pdf4 = __commonJS({
|
|
|
333004
333491
|
get: function get2(key) {
|
|
333005
333492
|
if (isObject2(key)) {
|
|
333006
333493
|
var data = getWeak(key);
|
|
333007
|
-
if (data === true) return uncaughtFrozenStore(
|
|
333494
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, WEAK_MAP)).get(key);
|
|
333008
333495
|
return data ? data[this._i] : void 0;
|
|
333009
333496
|
}
|
|
333010
333497
|
},
|
|
333011
333498
|
set: function set2(key, value) {
|
|
333012
|
-
return weak.def(
|
|
333499
|
+
return weak.def(validate2(this, WEAK_MAP), key, value);
|
|
333013
333500
|
}
|
|
333014
333501
|
};
|
|
333015
333502
|
var $WeakMap = module2.exports = __w_pdfjs_require__(101)(WEAK_MAP, wrapper, methods, weak, true, true);
|
|
@@ -333240,7 +333727,7 @@ var require_pdf4 = __commonJS({
|
|
|
333240
333727
|
var forOf = __w_pdfjs_require__(72);
|
|
333241
333728
|
var createArrayMethod = __w_pdfjs_require__(91);
|
|
333242
333729
|
var $has = __w_pdfjs_require__(21);
|
|
333243
|
-
var
|
|
333730
|
+
var validate2 = __w_pdfjs_require__(100);
|
|
333244
333731
|
var arrayFind = createArrayMethod(5);
|
|
333245
333732
|
var arrayFindIndex = createArrayMethod(6);
|
|
333246
333733
|
var id = 0;
|
|
@@ -333289,13 +333776,13 @@ var require_pdf4 = __commonJS({
|
|
|
333289
333776
|
"delete": function _delete(key) {
|
|
333290
333777
|
if (!isObject2(key)) return false;
|
|
333291
333778
|
var data = getWeak(key);
|
|
333292
|
-
if (data === true) return uncaughtFrozenStore(
|
|
333779
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME))["delete"](key);
|
|
333293
333780
|
return data && $has(data, this._i) && delete data[this._i];
|
|
333294
333781
|
},
|
|
333295
333782
|
has: function has2(key) {
|
|
333296
333783
|
if (!isObject2(key)) return false;
|
|
333297
333784
|
var data = getWeak(key);
|
|
333298
|
-
if (data === true) return uncaughtFrozenStore(
|
|
333785
|
+
if (data === true) return uncaughtFrozenStore(validate2(this, NAME)).has(key);
|
|
333299
333786
|
return data && $has(data, this._i);
|
|
333300
333787
|
}
|
|
333301
333788
|
});
|
|
@@ -349629,8 +350116,8 @@ var require_ignore = __commonJS({
|
|
|
349629
350116
|
// It does not need to bind pattern
|
|
349630
350117
|
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
349631
350118
|
);
|
|
349632
|
-
const
|
|
349633
|
-
return define2(this, key,
|
|
350119
|
+
const regex2 = this.ignoreCase ? new RegExp(str3, "i") : new RegExp(str3);
|
|
350120
|
+
return define2(this, key, regex2);
|
|
349634
350121
|
}
|
|
349635
350122
|
};
|
|
349636
350123
|
var createRule = ({
|
|
@@ -352678,8 +353165,8 @@ function _getDefaults() {
|
|
|
352678
353165
|
function changeDefaults(newDefaults) {
|
|
352679
353166
|
_defaults = newDefaults;
|
|
352680
353167
|
}
|
|
352681
|
-
function edit(
|
|
352682
|
-
let source2 = typeof
|
|
353168
|
+
function edit(regex2, opt = "") {
|
|
353169
|
+
let source2 = typeof regex2 === "string" ? regex2 : regex2.source;
|
|
352683
353170
|
const obj = {
|
|
352684
353171
|
replace: (name2, val) => {
|
|
352685
353172
|
let valSource = typeof val === "string" ? val : val.source;
|
|
@@ -356627,17 +357114,17 @@ var require_picomatch = __commonJS({
|
|
|
356627
357114
|
}
|
|
356628
357115
|
const opts = options3 || {};
|
|
356629
357116
|
const posix2 = opts.windows;
|
|
356630
|
-
const
|
|
356631
|
-
const state =
|
|
356632
|
-
delete
|
|
357117
|
+
const regex2 = isState ? picomatch3.compileRe(glob2, options3) : picomatch3.makeRe(glob2, options3, false, true);
|
|
357118
|
+
const state = regex2.state;
|
|
357119
|
+
delete regex2.state;
|
|
356633
357120
|
let isIgnored = () => false;
|
|
356634
357121
|
if (opts.ignore) {
|
|
356635
357122
|
const ignoreOpts = { ...options3, ignore: null, onMatch: null, onResult: null };
|
|
356636
357123
|
isIgnored = picomatch3(opts.ignore, ignoreOpts, returnState);
|
|
356637
357124
|
}
|
|
356638
357125
|
const matcher = (input, returnObject = false) => {
|
|
356639
|
-
const { isMatch, match: match2, output } = picomatch3.test(input,
|
|
356640
|
-
const result = { glob: glob2, state, regex, posix: posix2, input, output, match: match2, isMatch };
|
|
357126
|
+
const { isMatch, match: match2, output } = picomatch3.test(input, regex2, options3, { glob: glob2, posix: posix2 });
|
|
357127
|
+
const result = { glob: glob2, state, regex: regex2, posix: posix2, input, output, match: match2, isMatch };
|
|
356641
357128
|
if (typeof opts.onResult === "function") {
|
|
356642
357129
|
opts.onResult(result);
|
|
356643
357130
|
}
|
|
@@ -356662,7 +357149,7 @@ var require_picomatch = __commonJS({
|
|
|
356662
357149
|
}
|
|
356663
357150
|
return matcher;
|
|
356664
357151
|
};
|
|
356665
|
-
picomatch3.test = (input,
|
|
357152
|
+
picomatch3.test = (input, regex2, options3, { glob: glob2, posix: posix2 } = {}) => {
|
|
356666
357153
|
if (typeof input !== "string") {
|
|
356667
357154
|
throw new TypeError("Expected input to be a string");
|
|
356668
357155
|
}
|
|
@@ -356679,16 +357166,16 @@ var require_picomatch = __commonJS({
|
|
|
356679
357166
|
}
|
|
356680
357167
|
if (match2 === false || opts.capture === true) {
|
|
356681
357168
|
if (opts.matchBase === true || opts.basename === true) {
|
|
356682
|
-
match2 = picomatch3.matchBase(input,
|
|
357169
|
+
match2 = picomatch3.matchBase(input, regex2, options3, posix2);
|
|
356683
357170
|
} else {
|
|
356684
|
-
match2 =
|
|
357171
|
+
match2 = regex2.exec(output);
|
|
356685
357172
|
}
|
|
356686
357173
|
}
|
|
356687
357174
|
return { isMatch: Boolean(match2), match: match2, output };
|
|
356688
357175
|
};
|
|
356689
357176
|
picomatch3.matchBase = (input, glob2, options3) => {
|
|
356690
|
-
const
|
|
356691
|
-
return
|
|
357177
|
+
const regex2 = glob2 instanceof RegExp ? glob2 : picomatch3.makeRe(glob2, options3);
|
|
357178
|
+
return regex2.test(utils.basename(input));
|
|
356692
357179
|
};
|
|
356693
357180
|
picomatch3.isMatch = (str3, patterns, options3) => picomatch3(patterns, options3)(str3);
|
|
356694
357181
|
picomatch3.parse = (pattern, options3) => {
|
|
@@ -356707,11 +357194,11 @@ var require_picomatch = __commonJS({
|
|
|
356707
357194
|
if (state && state.negated === true) {
|
|
356708
357195
|
source2 = `^(?!${source2}).*$`;
|
|
356709
357196
|
}
|
|
356710
|
-
const
|
|
357197
|
+
const regex2 = picomatch3.toRegex(source2, options3);
|
|
356711
357198
|
if (returnState === true) {
|
|
356712
|
-
|
|
357199
|
+
regex2.state = state;
|
|
356713
357200
|
}
|
|
356714
|
-
return
|
|
357201
|
+
return regex2;
|
|
356715
357202
|
};
|
|
356716
357203
|
picomatch3.makeRe = (input, options3 = {}, returnOutput = false, returnState = false) => {
|
|
356717
357204
|
if (!input || typeof input !== "string") {
|
|
@@ -359535,6 +360022,15 @@ var require_strip_json_comments = __commonJS({
|
|
|
359535
360022
|
}
|
|
359536
360023
|
});
|
|
359537
360024
|
|
|
360025
|
+
// node_modules/emoji-regex/index.js
|
|
360026
|
+
var require_emoji_regex = __commonJS({
|
|
360027
|
+
"node_modules/emoji-regex/index.js"(exports, module) {
|
|
360028
|
+
module.exports = () => {
|
|
360029
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
360030
|
+
};
|
|
360031
|
+
}
|
|
360032
|
+
});
|
|
360033
|
+
|
|
359538
360034
|
// node_modules/highlight.js/lib/core.js
|
|
359539
360035
|
var require_core3 = __commonJS({
|
|
359540
360036
|
"node_modules/highlight.js/lib/core.js"(exports, module) {
|
|
@@ -359818,10 +360314,10 @@ var require_core3 = __commonJS({
|
|
|
359818
360314
|
var BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
359819
360315
|
function _rewriteBackreferences(regexps, { joinWith }) {
|
|
359820
360316
|
let numCaptures = 0;
|
|
359821
|
-
return regexps.map((
|
|
360317
|
+
return regexps.map((regex2) => {
|
|
359822
360318
|
numCaptures += 1;
|
|
359823
360319
|
const offset = numCaptures;
|
|
359824
|
-
let re = source2(
|
|
360320
|
+
let re = source2(regex2);
|
|
359825
360321
|
let out = "";
|
|
359826
360322
|
while (re.length > 0) {
|
|
359827
360323
|
const match2 = BACKREF_RE.exec(re);
|
|
@@ -370876,7 +371372,6 @@ var FSSLinkDatabase = class {
|
|
|
370876
371372
|
await this.pool.initialize();
|
|
370877
371373
|
debugLog("Database connection pool initialized successfully");
|
|
370878
371374
|
await this.pool.withConnection(async (db) => {
|
|
370879
|
-
this.db = db;
|
|
370880
371375
|
debugLog("Database connection acquired, checking migration status...");
|
|
370881
371376
|
const needsMigration = this.migrationManager.needsMigration(db);
|
|
370882
371377
|
debugLog(`Migration needed: ${needsMigration}`);
|
|
@@ -370902,7 +371397,7 @@ var FSSLinkDatabase = class {
|
|
|
370902
371397
|
}
|
|
370903
371398
|
debugLog("Database schema validation passed");
|
|
370904
371399
|
debugLog("Running legacy schema initialization...");
|
|
370905
|
-
await this.initializeSchema();
|
|
371400
|
+
await this.initializeSchema(db);
|
|
370906
371401
|
debugLog("Legacy schema initialization completed");
|
|
370907
371402
|
debugLog("Performing final table existence check...");
|
|
370908
371403
|
const criticalTables = ["model_configs", "provider_usage_stats", "user_preferences"];
|
|
@@ -370984,9 +371479,10 @@ var FSSLinkDatabase = class {
|
|
|
370984
371479
|
/**
|
|
370985
371480
|
* Initialize database schema
|
|
370986
371481
|
*/
|
|
370987
|
-
async initializeSchema() {
|
|
370988
|
-
|
|
370989
|
-
|
|
371482
|
+
async initializeSchema(db) {
|
|
371483
|
+
const database = db || this.db;
|
|
371484
|
+
if (!database) return;
|
|
371485
|
+
database.exec(`
|
|
370990
371486
|
CREATE TABLE IF NOT EXISTS model_configs (
|
|
370991
371487
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
370992
371488
|
auth_type TEXT NOT NULL,
|
|
@@ -371002,19 +371498,19 @@ var FSSLinkDatabase = class {
|
|
|
371002
371498
|
UNIQUE(auth_type, model_name, endpoint_url)
|
|
371003
371499
|
)
|
|
371004
371500
|
`);
|
|
371005
|
-
|
|
371501
|
+
database.exec(`
|
|
371006
371502
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_model_configs_active_unique
|
|
371007
371503
|
ON model_configs(auth_type)
|
|
371008
371504
|
WHERE is_active = 1
|
|
371009
371505
|
`);
|
|
371010
|
-
|
|
371506
|
+
database.exec(`
|
|
371011
371507
|
CREATE TABLE IF NOT EXISTS user_preferences (
|
|
371012
371508
|
key TEXT PRIMARY KEY,
|
|
371013
371509
|
value TEXT NOT NULL,
|
|
371014
371510
|
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
371015
371511
|
)
|
|
371016
371512
|
`);
|
|
371017
|
-
|
|
371513
|
+
database.exec(`
|
|
371018
371514
|
CREATE TABLE IF NOT EXISTS custom_endpoints (
|
|
371019
371515
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
371020
371516
|
provider_id INTEGER NOT NULL,
|
|
@@ -371026,7 +371522,7 @@ var FSSLinkDatabase = class {
|
|
|
371026
371522
|
FOREIGN KEY (provider_id) REFERENCES model_configs (id)
|
|
371027
371523
|
)
|
|
371028
371524
|
`);
|
|
371029
|
-
|
|
371525
|
+
database.exec(`
|
|
371030
371526
|
CREATE TABLE IF NOT EXISTS provider_usage (
|
|
371031
371527
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
371032
371528
|
provider_id INTEGER NOT NULL,
|
|
@@ -371038,7 +371534,7 @@ var FSSLinkDatabase = class {
|
|
|
371038
371534
|
UNIQUE(provider_id, session_date)
|
|
371039
371535
|
)
|
|
371040
371536
|
`);
|
|
371041
|
-
|
|
371537
|
+
database.exec(`
|
|
371042
371538
|
CREATE TABLE IF NOT EXISTS provider_settings (
|
|
371043
371539
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
371044
371540
|
provider_id INTEGER NOT NULL,
|
|
@@ -371050,7 +371546,7 @@ var FSSLinkDatabase = class {
|
|
|
371050
371546
|
)
|
|
371051
371547
|
`);
|
|
371052
371548
|
debugLog("Creating provider_usage_stats table (legacy schema fallback)...");
|
|
371053
|
-
|
|
371549
|
+
database.exec(`
|
|
371054
371550
|
CREATE TABLE IF NOT EXISTS provider_usage_stats (
|
|
371055
371551
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
371056
371552
|
provider_id INTEGER NOT NULL,
|
|
@@ -371060,7 +371556,7 @@ var FSSLinkDatabase = class {
|
|
|
371060
371556
|
)
|
|
371061
371557
|
`);
|
|
371062
371558
|
debugLog("provider_usage_stats table exists (legacy schema)");
|
|
371063
|
-
|
|
371559
|
+
database.exec(`
|
|
371064
371560
|
CREATE INDEX IF NOT EXISTS idx_model_configs_active ON model_configs(is_active);
|
|
371065
371561
|
CREATE INDEX IF NOT EXISTS idx_model_configs_favorite ON model_configs(is_favorite);
|
|
371066
371562
|
CREATE INDEX IF NOT EXISTS idx_model_configs_last_used ON model_configs(last_used DESC);
|
|
@@ -371069,16 +371565,17 @@ var FSSLinkDatabase = class {
|
|
|
371069
371565
|
CREATE INDEX IF NOT EXISTS idx_provider_usage_stats_aggregation ON provider_usage_stats(provider_id, created_at DESC);
|
|
371070
371566
|
CREATE INDEX IF NOT EXISTS idx_provider_settings_key ON provider_settings(provider_id, setting_key);
|
|
371071
371567
|
`);
|
|
371072
|
-
await this.ensureDefaultConfigurations();
|
|
371568
|
+
await this.ensureDefaultConfigurations(database);
|
|
371073
371569
|
this.save();
|
|
371074
371570
|
}
|
|
371075
371571
|
/**
|
|
371076
371572
|
* Ensure default model configurations exist for new installations
|
|
371077
371573
|
*/
|
|
371078
|
-
async ensureDefaultConfigurations() {
|
|
371079
|
-
|
|
371574
|
+
async ensureDefaultConfigurations(db) {
|
|
371575
|
+
const database = db || this.db;
|
|
371576
|
+
if (!database) return;
|
|
371080
371577
|
const countResult = safeQueryFirst(
|
|
371081
|
-
|
|
371578
|
+
database,
|
|
371082
371579
|
"SELECT COUNT(*) as count FROM model_configs"
|
|
371083
371580
|
);
|
|
371084
371581
|
if ((countResult?.count || 0) === 0) {
|
|
@@ -371095,7 +371592,7 @@ var FSSLinkDatabase = class {
|
|
|
371095
371592
|
last_used: null,
|
|
371096
371593
|
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
371097
371594
|
};
|
|
371098
|
-
safeExec(
|
|
371595
|
+
safeExec(database, `
|
|
371099
371596
|
INSERT INTO model_configs (
|
|
371100
371597
|
auth_type, model_name, endpoint_url, api_key, display_name,
|
|
371101
371598
|
is_favorite, is_active, last_used, created_at
|
|
@@ -371111,7 +371608,7 @@ var FSSLinkDatabase = class {
|
|
|
371111
371608
|
defaultOllamaConfig.last_used,
|
|
371112
371609
|
defaultOllamaConfig.created_at
|
|
371113
371610
|
]);
|
|
371114
|
-
const ollamaId = getLastInsertId(
|
|
371611
|
+
const ollamaId = getLastInsertId(database);
|
|
371115
371612
|
const defaultGeminiConfig = {
|
|
371116
371613
|
auth_type: "gemini-api-key",
|
|
371117
371614
|
model_name: "gemini-2.5-flash-thinking",
|
|
@@ -371124,7 +371621,7 @@ var FSSLinkDatabase = class {
|
|
|
371124
371621
|
last_used: null,
|
|
371125
371622
|
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
371126
371623
|
};
|
|
371127
|
-
safeExec(
|
|
371624
|
+
safeExec(database, `
|
|
371128
371625
|
INSERT INTO model_configs (
|
|
371129
371626
|
auth_type, model_name, endpoint_url, api_key, display_name,
|
|
371130
371627
|
is_favorite, is_active, last_used, created_at
|
|
@@ -371153,7 +371650,7 @@ var FSSLinkDatabase = class {
|
|
|
371153
371650
|
last_used: null,
|
|
371154
371651
|
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
371155
371652
|
};
|
|
371156
|
-
safeExec(
|
|
371653
|
+
safeExec(database, `
|
|
371157
371654
|
INSERT INTO model_configs (
|
|
371158
371655
|
auth_type, model_name, endpoint_url, api_key, display_name,
|
|
371159
371656
|
is_favorite, is_active, last_used, created_at
|
|
@@ -371182,7 +371679,7 @@ var FSSLinkDatabase = class {
|
|
|
371182
371679
|
last_used: null,
|
|
371183
371680
|
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
371184
371681
|
};
|
|
371185
|
-
safeExec(
|
|
371682
|
+
safeExec(database, `
|
|
371186
371683
|
INSERT INTO model_configs (
|
|
371187
371684
|
auth_type, model_name, endpoint_url, api_key, display_name,
|
|
371188
371685
|
is_favorite, is_active, last_used, created_at
|
|
@@ -371198,31 +371695,31 @@ var FSSLinkDatabase = class {
|
|
|
371198
371695
|
defaultOpenAIConfig.last_used,
|
|
371199
371696
|
defaultOpenAIConfig.created_at
|
|
371200
371697
|
]);
|
|
371201
|
-
const lmStudioId = getLastInsertId(
|
|
371698
|
+
const lmStudioId = getLastInsertId(database);
|
|
371202
371699
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
371203
|
-
safeExec(
|
|
371700
|
+
safeExec(database, `
|
|
371204
371701
|
INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at)
|
|
371205
371702
|
VALUES (?, ?, ?, ?)
|
|
371206
371703
|
`, [ollamaId, "num_ctx", "32768", now]);
|
|
371207
|
-
safeExec(
|
|
371704
|
+
safeExec(database, `
|
|
371208
371705
|
INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at)
|
|
371209
371706
|
VALUES (?, ?, ?, ?)
|
|
371210
371707
|
`, [ollamaId, "temperature", "0.0", now]);
|
|
371211
|
-
safeExec(
|
|
371708
|
+
safeExec(database, `
|
|
371212
371709
|
INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at)
|
|
371213
371710
|
VALUES (?, ?, ?, ?)
|
|
371214
371711
|
`, [lmStudioId, "num_ctx", "32768", now]);
|
|
371215
|
-
safeExec(
|
|
371712
|
+
safeExec(database, `
|
|
371216
371713
|
INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at)
|
|
371217
371714
|
VALUES (?, ?, ?, ?)
|
|
371218
371715
|
`, [lmStudioId, "temperature", "0.0", now]);
|
|
371219
371716
|
}
|
|
371220
371717
|
const activeResult = safeQueryFirst(
|
|
371221
|
-
|
|
371718
|
+
database,
|
|
371222
371719
|
"SELECT COUNT(*) as count FROM model_configs WHERE is_active = 1"
|
|
371223
371720
|
);
|
|
371224
371721
|
if ((activeResult?.count || 0) === 0) {
|
|
371225
|
-
const bestModel = safeQueryFirst(
|
|
371722
|
+
const bestModel = safeQueryFirst(database, `
|
|
371226
371723
|
SELECT id FROM model_configs
|
|
371227
371724
|
WHERE auth_type IN ('ollama', 'lm-studio', 'gemini-api-key', 'openai-api-key')
|
|
371228
371725
|
ORDER BY
|
|
@@ -371237,21 +371734,21 @@ var FSSLinkDatabase = class {
|
|
|
371237
371734
|
LIMIT 1
|
|
371238
371735
|
`);
|
|
371239
371736
|
if (bestModel) {
|
|
371240
|
-
safeExec(
|
|
371737
|
+
safeExec(database, "UPDATE model_configs SET is_active = 1 WHERE id = ?", [bestModel.id]);
|
|
371241
371738
|
const settingsCheck = safeQueryFirst(
|
|
371242
|
-
|
|
371739
|
+
database,
|
|
371243
371740
|
"SELECT COUNT(*) as count FROM provider_settings WHERE provider_id = ?",
|
|
371244
371741
|
[bestModel.id]
|
|
371245
371742
|
);
|
|
371246
371743
|
if ((settingsCheck?.count || 0) === 0) {
|
|
371247
371744
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
371248
371745
|
safeExec(
|
|
371249
|
-
|
|
371746
|
+
database,
|
|
371250
371747
|
"INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at) VALUES (?, ?, ?, ?)",
|
|
371251
371748
|
[bestModel.id, "num_ctx", "32768", now]
|
|
371252
371749
|
);
|
|
371253
371750
|
safeExec(
|
|
371254
|
-
|
|
371751
|
+
database,
|
|
371255
371752
|
"INSERT INTO provider_settings (provider_id, setting_key, setting_value, updated_at) VALUES (?, ?, ?, ?)",
|
|
371256
371753
|
[bestModel.id, "temperature", "0.0", now]
|
|
371257
371754
|
);
|
|
@@ -371311,13 +371808,16 @@ var FSSLinkDatabase = class {
|
|
|
371311
371808
|
*/
|
|
371312
371809
|
async setActiveModel(id) {
|
|
371313
371810
|
await this.ensureInitialized();
|
|
371314
|
-
|
|
371315
|
-
|
|
371316
|
-
|
|
371317
|
-
|
|
371318
|
-
|
|
371319
|
-
|
|
371320
|
-
|
|
371811
|
+
await this.pool.withConnection(async (db) => {
|
|
371812
|
+
safeTransaction(db, () => {
|
|
371813
|
+
safeExec(db, "UPDATE model_configs SET is_active = 0");
|
|
371814
|
+
safeExec(db, `
|
|
371815
|
+
UPDATE model_configs
|
|
371816
|
+
SET is_active = 1, last_used = CURRENT_TIMESTAMP
|
|
371817
|
+
WHERE id = ?
|
|
371818
|
+
`, [id]);
|
|
371819
|
+
});
|
|
371820
|
+
});
|
|
371321
371821
|
this.save();
|
|
371322
371822
|
}
|
|
371323
371823
|
/**
|
|
@@ -371326,24 +371826,25 @@ var FSSLinkDatabase = class {
|
|
|
371326
371826
|
*/
|
|
371327
371827
|
async upsertModelConfig(config) {
|
|
371328
371828
|
await this.ensureInitialized();
|
|
371329
|
-
if (!this.db) return -1;
|
|
371330
371829
|
const encryptedApiKey = config.apiKey ? this.encryptApiKey(config.apiKey) : null;
|
|
371331
|
-
|
|
371332
|
-
|
|
371333
|
-
|
|
371334
|
-
|
|
371335
|
-
|
|
371336
|
-
|
|
371337
|
-
|
|
371338
|
-
|
|
371339
|
-
|
|
371340
|
-
|
|
371341
|
-
|
|
371342
|
-
|
|
371343
|
-
|
|
371344
|
-
|
|
371345
|
-
|
|
371346
|
-
|
|
371830
|
+
return await this.pool.withConnection(async (db) => {
|
|
371831
|
+
safeExec(db, `
|
|
371832
|
+
INSERT OR REPLACE INTO model_configs
|
|
371833
|
+
(auth_type, model_name, endpoint_url, api_key, display_name, is_favorite, is_active, last_used, source)
|
|
371834
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, ?)
|
|
371835
|
+
`, [
|
|
371836
|
+
config.authType,
|
|
371837
|
+
config.modelName,
|
|
371838
|
+
config.endpointUrl || null,
|
|
371839
|
+
encryptedApiKey,
|
|
371840
|
+
config.displayName || null,
|
|
371841
|
+
config.isFavorite ? 1 : 0,
|
|
371842
|
+
config.isActive ? 1 : 0,
|
|
371843
|
+
config.source || "db"
|
|
371844
|
+
]);
|
|
371845
|
+
this.save();
|
|
371846
|
+
return getLastInsertId(db);
|
|
371847
|
+
});
|
|
371347
371848
|
}
|
|
371348
371849
|
/**
|
|
371349
371850
|
* Get all model configurations
|
|
@@ -371400,12 +371901,13 @@ var FSSLinkDatabase = class {
|
|
|
371400
371901
|
*/
|
|
371401
371902
|
async toggleModelFavorite(id) {
|
|
371402
371903
|
await this.ensureInitialized();
|
|
371403
|
-
|
|
371404
|
-
|
|
371405
|
-
|
|
371406
|
-
|
|
371407
|
-
|
|
371408
|
-
|
|
371904
|
+
await this.pool.withConnection(async (db) => {
|
|
371905
|
+
safeExec(db, `
|
|
371906
|
+
UPDATE model_configs
|
|
371907
|
+
SET is_favorite = CASE WHEN is_favorite = 1 THEN 0 ELSE 1 END
|
|
371908
|
+
WHERE id = ?
|
|
371909
|
+
`, [id]);
|
|
371910
|
+
});
|
|
371409
371911
|
this.save();
|
|
371410
371912
|
}
|
|
371411
371913
|
/**
|
|
@@ -371413,8 +371915,9 @@ var FSSLinkDatabase = class {
|
|
|
371413
371915
|
*/
|
|
371414
371916
|
async deleteModel(id) {
|
|
371415
371917
|
await this.ensureInitialized();
|
|
371416
|
-
|
|
371417
|
-
|
|
371918
|
+
await this.pool.withConnection(async (db) => {
|
|
371919
|
+
safeExec(db, "DELETE FROM model_configs WHERE id = ?", [id]);
|
|
371920
|
+
});
|
|
371418
371921
|
this.save();
|
|
371419
371922
|
}
|
|
371420
371923
|
/**
|
|
@@ -371422,11 +371925,12 @@ var FSSLinkDatabase = class {
|
|
|
371422
371925
|
*/
|
|
371423
371926
|
async setUserPreference(key, value) {
|
|
371424
371927
|
await this.ensureInitialized();
|
|
371425
|
-
|
|
371426
|
-
|
|
371427
|
-
|
|
371428
|
-
|
|
371429
|
-
|
|
371928
|
+
await this.pool.withConnection(async (db) => {
|
|
371929
|
+
safeExec(db, `
|
|
371930
|
+
INSERT OR REPLACE INTO user_preferences (key, value, updated_at)
|
|
371931
|
+
VALUES (?, ?, CURRENT_TIMESTAMP)
|
|
371932
|
+
`, [key, value]);
|
|
371933
|
+
});
|
|
371430
371934
|
this.save();
|
|
371431
371935
|
}
|
|
371432
371936
|
/**
|
|
@@ -371657,21 +372161,21 @@ var FSSLinkDatabase = class {
|
|
|
371657
372161
|
*/
|
|
371658
372162
|
async saveCustomEndpoint(providerId, name2, url2, description, isDefault = false) {
|
|
371659
372163
|
await this.ensureInitialized();
|
|
371660
|
-
|
|
371661
|
-
|
|
371662
|
-
|
|
371663
|
-
|
|
371664
|
-
|
|
371665
|
-
|
|
371666
|
-
|
|
371667
|
-
|
|
371668
|
-
|
|
371669
|
-
|
|
371670
|
-
|
|
371671
|
-
|
|
371672
|
-
|
|
371673
|
-
|
|
371674
|
-
|
|
372164
|
+
return await this.pool.withConnection(async (db) => {
|
|
372165
|
+
if (isDefault) {
|
|
372166
|
+
safeExec(db, `
|
|
372167
|
+
UPDATE custom_endpoints
|
|
372168
|
+
SET is_default = 0
|
|
372169
|
+
WHERE provider_id = ?
|
|
372170
|
+
`, [providerId]);
|
|
372171
|
+
}
|
|
372172
|
+
safeExec(db, `
|
|
372173
|
+
INSERT OR REPLACE INTO custom_endpoints (provider_id, name, url, description, is_default)
|
|
372174
|
+
VALUES (?, ?, ?, ?, ?)
|
|
372175
|
+
`, [providerId, name2, url2, description || null, isDefault ? 1 : 0]);
|
|
372176
|
+
this.save();
|
|
372177
|
+
return getLastInsertId(db);
|
|
372178
|
+
});
|
|
371675
372179
|
}
|
|
371676
372180
|
/**
|
|
371677
372181
|
* Get custom endpoints for a provider
|
|
@@ -373004,13 +373508,13 @@ import {
|
|
|
373004
373508
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
373005
373509
|
import path59 from "path";
|
|
373006
373510
|
var __filename = fileURLToPath3(import.meta.url);
|
|
373007
|
-
var
|
|
373511
|
+
var __dirname2 = path59.dirname(__filename);
|
|
373008
373512
|
var packageJson;
|
|
373009
373513
|
async function getPackageJson() {
|
|
373010
373514
|
if (packageJson) {
|
|
373011
373515
|
return packageJson;
|
|
373012
373516
|
}
|
|
373013
|
-
const result = await readPackageUp({ cwd:
|
|
373517
|
+
const result = await readPackageUp({ cwd: __dirname2 });
|
|
373014
373518
|
if (!result) {
|
|
373015
373519
|
return;
|
|
373016
373520
|
}
|
|
@@ -373021,7 +373525,7 @@ async function getPackageJson() {
|
|
|
373021
373525
|
// packages/cli/src/utils/version.ts
|
|
373022
373526
|
async function getCliVersion() {
|
|
373023
373527
|
const pkgJson = await getPackageJson();
|
|
373024
|
-
return "1.0.
|
|
373528
|
+
return "1.0.67";
|
|
373025
373529
|
}
|
|
373026
373530
|
|
|
373027
373531
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -373073,7 +373577,7 @@ import open4 from "open";
|
|
|
373073
373577
|
import process11 from "node:process";
|
|
373074
373578
|
|
|
373075
373579
|
// packages/cli/src/generated/git-commit.ts
|
|
373076
|
-
var GIT_COMMIT_INFO = "
|
|
373580
|
+
var GIT_COMMIT_INFO = "1379e712";
|
|
373077
373581
|
|
|
373078
373582
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
373079
373583
|
init_dist2();
|
|
@@ -377705,15 +378209,93 @@ function useInputHistory({
|
|
|
377705
378209
|
}
|
|
377706
378210
|
|
|
377707
378211
|
// packages/cli/src/ui/components/shared/text-buffer.ts
|
|
377708
|
-
|
|
377709
|
-
import stripAnsi2 from "strip-ansi";
|
|
378212
|
+
init_strip_ansi();
|
|
377710
378213
|
import { stripVTControlCharacters } from "util";
|
|
377711
378214
|
import { spawnSync } from "child_process";
|
|
377712
378215
|
import fs58 from "fs";
|
|
377713
378216
|
import os25 from "os";
|
|
377714
378217
|
import pathMod from "path";
|
|
377715
378218
|
import { useState as useState20, useCallback as useCallback14, useEffect as useEffect20, useMemo as useMemo5, useReducer as useReducer2 } from "react";
|
|
377716
|
-
|
|
378219
|
+
|
|
378220
|
+
// node_modules/string-width/index.js
|
|
378221
|
+
init_strip_ansi();
|
|
378222
|
+
|
|
378223
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
378224
|
+
function isAmbiguous(x) {
|
|
378225
|
+
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
378226
|
+
}
|
|
378227
|
+
function isFullWidth(x) {
|
|
378228
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
378229
|
+
}
|
|
378230
|
+
function isWide(x) {
|
|
378231
|
+
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
378232
|
+
}
|
|
378233
|
+
|
|
378234
|
+
// node_modules/get-east-asian-width/index.js
|
|
378235
|
+
function validate(codePoint) {
|
|
378236
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
378237
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
378238
|
+
}
|
|
378239
|
+
}
|
|
378240
|
+
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
378241
|
+
validate(codePoint);
|
|
378242
|
+
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
378243
|
+
return 2;
|
|
378244
|
+
}
|
|
378245
|
+
return 1;
|
|
378246
|
+
}
|
|
378247
|
+
|
|
378248
|
+
// node_modules/string-width/index.js
|
|
378249
|
+
var import_emoji_regex = __toESM(require_emoji_regex(), 1);
|
|
378250
|
+
var segmenter = new Intl.Segmenter();
|
|
378251
|
+
var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
378252
|
+
function stringWidth(string, options3 = {}) {
|
|
378253
|
+
if (typeof string !== "string" || string.length === 0) {
|
|
378254
|
+
return 0;
|
|
378255
|
+
}
|
|
378256
|
+
const {
|
|
378257
|
+
ambiguousIsNarrow = true,
|
|
378258
|
+
countAnsiEscapeCodes = false
|
|
378259
|
+
} = options3;
|
|
378260
|
+
if (!countAnsiEscapeCodes) {
|
|
378261
|
+
string = stripAnsi(string);
|
|
378262
|
+
}
|
|
378263
|
+
if (string.length === 0) {
|
|
378264
|
+
return 0;
|
|
378265
|
+
}
|
|
378266
|
+
let width = 0;
|
|
378267
|
+
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
378268
|
+
for (const { segment: character } of segmenter.segment(string)) {
|
|
378269
|
+
const codePoint = character.codePointAt(0);
|
|
378270
|
+
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
378271
|
+
continue;
|
|
378272
|
+
}
|
|
378273
|
+
if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
|
|
378274
|
+
continue;
|
|
378275
|
+
}
|
|
378276
|
+
if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
|
|
378277
|
+
continue;
|
|
378278
|
+
}
|
|
378279
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
378280
|
+
continue;
|
|
378281
|
+
}
|
|
378282
|
+
if (codePoint >= 65024 && codePoint <= 65039) {
|
|
378283
|
+
continue;
|
|
378284
|
+
}
|
|
378285
|
+
if (defaultIgnorableCodePointRegex.test(character)) {
|
|
378286
|
+
continue;
|
|
378287
|
+
}
|
|
378288
|
+
if ((0, import_emoji_regex.default)().test(character)) {
|
|
378289
|
+
width += 2;
|
|
378290
|
+
continue;
|
|
378291
|
+
}
|
|
378292
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
378293
|
+
}
|
|
378294
|
+
return width;
|
|
378295
|
+
}
|
|
378296
|
+
|
|
378297
|
+
// packages/cli/src/ui/components/shared/text-buffer.ts
|
|
378298
|
+
init_dist2();
|
|
377717
378299
|
|
|
377718
378300
|
// packages/cli/src/utils/checks.ts
|
|
377719
378301
|
function assumeExhaustive(_value) {
|
|
@@ -378614,7 +379196,7 @@ var replaceRangeInternal = (state, startRow, startCol, endRow, endCol, text) =>
|
|
|
378614
379196
|
};
|
|
378615
379197
|
};
|
|
378616
379198
|
function stripUnsafeCharacters(str3) {
|
|
378617
|
-
const strippedAnsi =
|
|
379199
|
+
const strippedAnsi = stripAnsi(str3);
|
|
378618
379200
|
const strippedVT = stripVTControlCharacters(strippedAnsi);
|
|
378619
379201
|
return toCodePoints(strippedVT).filter((char) => {
|
|
378620
379202
|
const code = char.codePointAt(0);
|
|
@@ -379658,7 +380240,6 @@ function useTextBuffer({
|
|
|
379658
380240
|
|
|
379659
380241
|
// packages/cli/src/ui/components/InputPrompt.tsx
|
|
379660
380242
|
import chalk from "chalk";
|
|
379661
|
-
import stringWidth2 from "string-width";
|
|
379662
380243
|
|
|
379663
380244
|
// packages/cli/src/ui/hooks/useShellHistory.ts
|
|
379664
380245
|
init_dist2();
|
|
@@ -381038,7 +381619,7 @@ var InputPrompt = ({
|
|
|
381038
381619
|
] }) : /* @__PURE__ */ jsx12(Text13, { color: theme.text.secondary, children: placeholder }) : linesToRender.map((lineText, visualIdxInRenderedSet) => {
|
|
381039
381620
|
const cursorVisualRow = cursorVisualRowAbsolute - scrollVisualRow;
|
|
381040
381621
|
let display = cpSlice(lineText, 0, inputWidth);
|
|
381041
|
-
const currentVisualWidth =
|
|
381622
|
+
const currentVisualWidth = stringWidth(display);
|
|
381042
381623
|
if (currentVisualWidth < inputWidth) {
|
|
381043
381624
|
display = display + " ".repeat(inputWidth - currentVisualWidth);
|
|
381044
381625
|
}
|
|
@@ -381373,12 +381954,12 @@ import { Text as Text20, Box as Box13 } from "ink";
|
|
|
381373
381954
|
|
|
381374
381955
|
// node_modules/highlight.js/es/languages/arduino.js
|
|
381375
381956
|
function cPlusPlus(hljs) {
|
|
381376
|
-
const
|
|
381957
|
+
const regex2 = hljs.regex;
|
|
381377
381958
|
const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] });
|
|
381378
381959
|
const DECLTYPE_AUTO_RE = "decltype\\(auto\\)";
|
|
381379
381960
|
const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
|
|
381380
381961
|
const TEMPLATE_ARGUMENT_RE = "<[^<>]+>";
|
|
381381
|
-
const FUNCTION_TYPE_RE = "(?!struct)(" + DECLTYPE_AUTO_RE + "|" +
|
|
381962
|
+
const FUNCTION_TYPE_RE = "(?!struct)(" + DECLTYPE_AUTO_RE + "|" + regex2.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex2.optional(TEMPLATE_ARGUMENT_RE) + ")";
|
|
381382
381963
|
const CPP_PRIMITIVE_TYPES = {
|
|
381383
381964
|
className: "type",
|
|
381384
381965
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -381441,10 +382022,10 @@ function cPlusPlus(hljs) {
|
|
|
381441
382022
|
};
|
|
381442
382023
|
const TITLE_MODE = {
|
|
381443
382024
|
className: "title",
|
|
381444
|
-
begin:
|
|
382025
|
+
begin: regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
381445
382026
|
relevance: 0
|
|
381446
382027
|
};
|
|
381447
|
-
const FUNCTION_TITLE =
|
|
382028
|
+
const FUNCTION_TITLE = regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
381448
382029
|
const RESERVED_KEYWORDS = [
|
|
381449
382030
|
"alignas",
|
|
381450
382031
|
"alignof",
|
|
@@ -381735,7 +382316,7 @@ function cPlusPlus(hljs) {
|
|
|
381735
382316
|
// Only for relevance, not highlighting.
|
|
381736
382317
|
_hint: FUNCTION_HINTS
|
|
381737
382318
|
},
|
|
381738
|
-
begin:
|
|
382319
|
+
begin: regex2.concat(
|
|
381739
382320
|
/\b/,
|
|
381740
382321
|
/(?!decltype)/,
|
|
381741
382322
|
/(?!if)/,
|
|
@@ -381743,7 +382324,7 @@ function cPlusPlus(hljs) {
|
|
|
381743
382324
|
/(?!switch)/,
|
|
381744
382325
|
/(?!while)/,
|
|
381745
382326
|
hljs.IDENT_RE,
|
|
381746
|
-
|
|
382327
|
+
regex2.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
381747
382328
|
)
|
|
381748
382329
|
};
|
|
381749
382330
|
const EXPRESSION_CONTAINS = [
|
|
@@ -382306,7 +382887,7 @@ function arduino(hljs) {
|
|
|
382306
382887
|
|
|
382307
382888
|
// node_modules/highlight.js/es/languages/bash.js
|
|
382308
382889
|
function bash(hljs) {
|
|
382309
|
-
const
|
|
382890
|
+
const regex2 = hljs.regex;
|
|
382310
382891
|
const VAR = {};
|
|
382311
382892
|
const BRACED_VAR = {
|
|
382312
382893
|
begin: /\$\{/,
|
|
@@ -382323,7 +382904,7 @@ function bash(hljs) {
|
|
|
382323
382904
|
Object.assign(VAR, {
|
|
382324
382905
|
className: "variable",
|
|
382325
382906
|
variants: [
|
|
382326
|
-
{ begin:
|
|
382907
|
+
{ begin: regex2.concat(
|
|
382327
382908
|
/\$[\w\d#@][\w\d_]*/,
|
|
382328
382909
|
// negative look-ahead tries to avoid matching patterns that are not
|
|
382329
382910
|
// Perl at all like $ident$, @ident@, etc.
|
|
@@ -382700,12 +383281,12 @@ function bash(hljs) {
|
|
|
382700
383281
|
|
|
382701
383282
|
// node_modules/highlight.js/es/languages/c.js
|
|
382702
383283
|
function c2(hljs) {
|
|
382703
|
-
const
|
|
383284
|
+
const regex2 = hljs.regex;
|
|
382704
383285
|
const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] });
|
|
382705
383286
|
const DECLTYPE_AUTO_RE = "decltype\\(auto\\)";
|
|
382706
383287
|
const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
|
|
382707
383288
|
const TEMPLATE_ARGUMENT_RE = "<[^<>]+>";
|
|
382708
|
-
const FUNCTION_TYPE_RE = "(" + DECLTYPE_AUTO_RE + "|" +
|
|
383289
|
+
const FUNCTION_TYPE_RE = "(" + DECLTYPE_AUTO_RE + "|" + regex2.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex2.optional(TEMPLATE_ARGUMENT_RE) + ")";
|
|
382709
383290
|
const TYPES3 = {
|
|
382710
383291
|
className: "type",
|
|
382711
383292
|
variants: [
|
|
@@ -382765,10 +383346,10 @@ function c2(hljs) {
|
|
|
382765
383346
|
};
|
|
382766
383347
|
const TITLE_MODE = {
|
|
382767
383348
|
className: "title",
|
|
382768
|
-
begin:
|
|
383349
|
+
begin: regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
382769
383350
|
relevance: 0
|
|
382770
383351
|
};
|
|
382771
|
-
const FUNCTION_TITLE =
|
|
383352
|
+
const FUNCTION_TITLE = regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
382772
383353
|
const C_KEYWORDS = [
|
|
382773
383354
|
"asm",
|
|
382774
383355
|
"auto",
|
|
@@ -382994,12 +383575,12 @@ function c2(hljs) {
|
|
|
382994
383575
|
|
|
382995
383576
|
// node_modules/highlight.js/es/languages/cpp.js
|
|
382996
383577
|
function cpp(hljs) {
|
|
382997
|
-
const
|
|
383578
|
+
const regex2 = hljs.regex;
|
|
382998
383579
|
const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] });
|
|
382999
383580
|
const DECLTYPE_AUTO_RE = "decltype\\(auto\\)";
|
|
383000
383581
|
const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
|
|
383001
383582
|
const TEMPLATE_ARGUMENT_RE = "<[^<>]+>";
|
|
383002
|
-
const FUNCTION_TYPE_RE = "(?!struct)(" + DECLTYPE_AUTO_RE + "|" +
|
|
383583
|
+
const FUNCTION_TYPE_RE = "(?!struct)(" + DECLTYPE_AUTO_RE + "|" + regex2.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex2.optional(TEMPLATE_ARGUMENT_RE) + ")";
|
|
383003
383584
|
const CPP_PRIMITIVE_TYPES = {
|
|
383004
383585
|
className: "type",
|
|
383005
383586
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -383062,10 +383643,10 @@ function cpp(hljs) {
|
|
|
383062
383643
|
};
|
|
383063
383644
|
const TITLE_MODE = {
|
|
383064
383645
|
className: "title",
|
|
383065
|
-
begin:
|
|
383646
|
+
begin: regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE,
|
|
383066
383647
|
relevance: 0
|
|
383067
383648
|
};
|
|
383068
|
-
const FUNCTION_TITLE =
|
|
383649
|
+
const FUNCTION_TITLE = regex2.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
|
|
383069
383650
|
const RESERVED_KEYWORDS = [
|
|
383070
383651
|
"alignas",
|
|
383071
383652
|
"alignof",
|
|
@@ -383356,7 +383937,7 @@ function cpp(hljs) {
|
|
|
383356
383937
|
// Only for relevance, not highlighting.
|
|
383357
383938
|
_hint: FUNCTION_HINTS
|
|
383358
383939
|
},
|
|
383359
|
-
begin:
|
|
383940
|
+
begin: regex2.concat(
|
|
383360
383941
|
/\b/,
|
|
383361
383942
|
/(?!decltype)/,
|
|
383362
383943
|
/(?!if)/,
|
|
@@ -383364,7 +383945,7 @@ function cpp(hljs) {
|
|
|
383364
383945
|
/(?!switch)/,
|
|
383365
383946
|
/(?!while)/,
|
|
383366
383947
|
hljs.IDENT_RE,
|
|
383367
|
-
|
|
383948
|
+
regex2.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
383368
383949
|
)
|
|
383369
383950
|
};
|
|
383370
383951
|
const EXPRESSION_CONTAINS = [
|
|
@@ -384743,7 +385324,7 @@ var ATTRIBUTES = [
|
|
|
384743
385324
|
"zoom"
|
|
384744
385325
|
].sort().reverse();
|
|
384745
385326
|
function css(hljs) {
|
|
384746
|
-
const
|
|
385327
|
+
const regex2 = hljs.regex;
|
|
384747
385328
|
const modes = MODES(hljs);
|
|
384748
385329
|
const VENDOR_PREFIX = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ };
|
|
384749
385330
|
const AT_MODIFIERS = "and or not only";
|
|
@@ -384833,7 +385414,7 @@ function css(hljs) {
|
|
|
384833
385414
|
]
|
|
384834
385415
|
},
|
|
384835
385416
|
{
|
|
384836
|
-
begin:
|
|
385417
|
+
begin: regex2.lookahead(/@/),
|
|
384837
385418
|
end: "[{;]",
|
|
384838
385419
|
relevance: 0,
|
|
384839
385420
|
illegal: /:/,
|
|
@@ -384874,7 +385455,7 @@ function css(hljs) {
|
|
|
384874
385455
|
|
|
384875
385456
|
// node_modules/highlight.js/es/languages/diff.js
|
|
384876
385457
|
function diff2(hljs) {
|
|
384877
|
-
const
|
|
385458
|
+
const regex2 = hljs.regex;
|
|
384878
385459
|
return {
|
|
384879
385460
|
name: "Diff",
|
|
384880
385461
|
aliases: ["patch"],
|
|
@@ -384882,7 +385463,7 @@ function diff2(hljs) {
|
|
|
384882
385463
|
{
|
|
384883
385464
|
className: "meta",
|
|
384884
385465
|
relevance: 10,
|
|
384885
|
-
match:
|
|
385466
|
+
match: regex2.either(
|
|
384886
385467
|
/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,
|
|
384887
385468
|
/^\*\*\* +\d+,\d+ +\*\*\*\*$/,
|
|
384888
385469
|
/^--- +\d+,\d+ +----$/
|
|
@@ -384892,7 +385473,7 @@ function diff2(hljs) {
|
|
|
384892
385473
|
className: "comment",
|
|
384893
385474
|
variants: [
|
|
384894
385475
|
{
|
|
384895
|
-
begin:
|
|
385476
|
+
begin: regex2.either(
|
|
384896
385477
|
/Index: /,
|
|
384897
385478
|
/^index/,
|
|
384898
385479
|
/={3,}/,
|
|
@@ -385081,7 +385662,7 @@ function go(hljs) {
|
|
|
385081
385662
|
|
|
385082
385663
|
// node_modules/highlight.js/es/languages/graphql.js
|
|
385083
385664
|
function graphql(hljs) {
|
|
385084
|
-
const
|
|
385665
|
+
const regex2 = hljs.regex;
|
|
385085
385666
|
const GQL_NAME = /[_A-Za-z][_0-9A-Za-z]*/;
|
|
385086
385667
|
return {
|
|
385087
385668
|
name: "GraphQL",
|
|
@@ -385138,7 +385719,7 @@ function graphql(hljs) {
|
|
|
385138
385719
|
},
|
|
385139
385720
|
{
|
|
385140
385721
|
scope: "symbol",
|
|
385141
|
-
begin:
|
|
385722
|
+
begin: regex2.concat(GQL_NAME, regex2.lookahead(/\s*:/)),
|
|
385142
385723
|
relevance: 0
|
|
385143
385724
|
}
|
|
385144
385725
|
],
|
|
@@ -385151,7 +385732,7 @@ function graphql(hljs) {
|
|
|
385151
385732
|
|
|
385152
385733
|
// node_modules/highlight.js/es/languages/ini.js
|
|
385153
385734
|
function ini(hljs) {
|
|
385154
|
-
const
|
|
385735
|
+
const regex2 = hljs.regex;
|
|
385155
385736
|
const NUMBERS = {
|
|
385156
385737
|
className: "number",
|
|
385157
385738
|
relevance: 0,
|
|
@@ -385222,17 +385803,17 @@ function ini(hljs) {
|
|
|
385222
385803
|
const BARE_KEY = /[A-Za-z0-9_-]+/;
|
|
385223
385804
|
const QUOTED_KEY_DOUBLE_QUOTE = /"(\\"|[^"])*"/;
|
|
385224
385805
|
const QUOTED_KEY_SINGLE_QUOTE = /'[^']*'/;
|
|
385225
|
-
const ANY_KEY =
|
|
385806
|
+
const ANY_KEY = regex2.either(
|
|
385226
385807
|
BARE_KEY,
|
|
385227
385808
|
QUOTED_KEY_DOUBLE_QUOTE,
|
|
385228
385809
|
QUOTED_KEY_SINGLE_QUOTE
|
|
385229
385810
|
);
|
|
385230
|
-
const DOTTED_KEY =
|
|
385811
|
+
const DOTTED_KEY = regex2.concat(
|
|
385231
385812
|
ANY_KEY,
|
|
385232
385813
|
"(\\s*\\.\\s*",
|
|
385233
385814
|
ANY_KEY,
|
|
385234
385815
|
")*",
|
|
385235
|
-
|
|
385816
|
+
regex2.lookahead(/\s*=\s*[^#\s]/)
|
|
385236
385817
|
);
|
|
385237
385818
|
return {
|
|
385238
385819
|
name: "TOML, also INI",
|
|
@@ -385299,7 +385880,7 @@ function recurRegex(re, substitution, depth) {
|
|
|
385299
385880
|
});
|
|
385300
385881
|
}
|
|
385301
385882
|
function java(hljs) {
|
|
385302
|
-
const
|
|
385883
|
+
const regex2 = hljs.regex;
|
|
385303
385884
|
const JAVA_IDENT_RE = "[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*";
|
|
385304
385885
|
const GENERIC_IDENT_RE = JAVA_IDENT_RE + recurRegex("(?:<" + JAVA_IDENT_RE + "~~~(?:\\s*,\\s*" + JAVA_IDENT_RE + "~~~)*>)?", /~~~/g, 2);
|
|
385305
385886
|
const MAIN_KEYWORDS = [
|
|
@@ -385452,7 +386033,7 @@ function java(hljs) {
|
|
|
385452
386033
|
},
|
|
385453
386034
|
{
|
|
385454
386035
|
begin: [
|
|
385455
|
-
|
|
386036
|
+
regex2.concat(/(?!else)/, JAVA_IDENT_RE),
|
|
385456
386037
|
/\s+/,
|
|
385457
386038
|
JAVA_IDENT_RE,
|
|
385458
386039
|
/\s+/,
|
|
@@ -385674,7 +386255,7 @@ var BUILT_INS = [].concat(
|
|
|
385674
386255
|
ERROR_TYPES
|
|
385675
386256
|
);
|
|
385676
386257
|
function javascript(hljs) {
|
|
385677
|
-
const
|
|
386258
|
+
const regex2 = hljs.regex;
|
|
385678
386259
|
const hasClosingTag = (match2, { after }) => {
|
|
385679
386260
|
const tag2 = "</" + match2[0].slice(1);
|
|
385680
386261
|
const pos = match2.input.indexOf(tag2, after);
|
|
@@ -385913,7 +386494,7 @@ function javascript(hljs) {
|
|
|
385913
386494
|
/\s+/,
|
|
385914
386495
|
/extends/,
|
|
385915
386496
|
/\s+/,
|
|
385916
|
-
|
|
386497
|
+
regex2.concat(IDENT_RE$1, "(", regex2.concat(/\./, IDENT_RE$1), ")*")
|
|
385917
386498
|
],
|
|
385918
386499
|
scope: {
|
|
385919
386500
|
1: "keyword",
|
|
@@ -385938,7 +386519,7 @@ function javascript(hljs) {
|
|
|
385938
386519
|
};
|
|
385939
386520
|
const CLASS_REFERENCE = {
|
|
385940
386521
|
relevance: 0,
|
|
385941
|
-
match:
|
|
386522
|
+
match: regex2.either(
|
|
385942
386523
|
// Hard coded exceptions
|
|
385943
386524
|
/\bJSON/,
|
|
385944
386525
|
// Float32Array, OutT
|
|
@@ -385999,10 +386580,10 @@ function javascript(hljs) {
|
|
|
385999
386580
|
className: "variable.constant"
|
|
386000
386581
|
};
|
|
386001
386582
|
function noneOf(list2) {
|
|
386002
|
-
return
|
|
386583
|
+
return regex2.concat("(?!", list2.join("|"), ")");
|
|
386003
386584
|
}
|
|
386004
386585
|
const FUNCTION_CALL = {
|
|
386005
|
-
match:
|
|
386586
|
+
match: regex2.concat(
|
|
386006
386587
|
/\b/,
|
|
386007
386588
|
noneOf([
|
|
386008
386589
|
...BUILT_IN_GLOBALS,
|
|
@@ -386010,14 +386591,14 @@ function javascript(hljs) {
|
|
|
386010
386591
|
"import"
|
|
386011
386592
|
].map((x) => `${x}\\s*\\(`)),
|
|
386012
386593
|
IDENT_RE$1,
|
|
386013
|
-
|
|
386594
|
+
regex2.lookahead(/\s*\(/)
|
|
386014
386595
|
),
|
|
386015
386596
|
className: "title.function",
|
|
386016
386597
|
relevance: 0
|
|
386017
386598
|
};
|
|
386018
386599
|
const PROPERTY_ACCESS = {
|
|
386019
|
-
begin:
|
|
386020
|
-
|
|
386600
|
+
begin: regex2.concat(/\./, regex2.lookahead(
|
|
386601
|
+
regex2.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)
|
|
386021
386602
|
)),
|
|
386022
386603
|
end: IDENT_RE$1,
|
|
386023
386604
|
excludeBegin: true,
|
|
@@ -386054,7 +386635,7 @@ function javascript(hljs) {
|
|
|
386054
386635
|
/=\s*/,
|
|
386055
386636
|
/(async\s*)?/,
|
|
386056
386637
|
// async is optional
|
|
386057
|
-
|
|
386638
|
+
regex2.lookahead(FUNC_LEAD_IN_RE)
|
|
386058
386639
|
],
|
|
386059
386640
|
keywords: "async",
|
|
386060
386641
|
className: {
|
|
@@ -386092,7 +386673,7 @@ function javascript(hljs) {
|
|
|
386092
386673
|
CLASS_REFERENCE,
|
|
386093
386674
|
{
|
|
386094
386675
|
scope: "attr",
|
|
386095
|
-
match: IDENT_RE$1 +
|
|
386676
|
+
match: IDENT_RE$1 + regex2.lookahead(":"),
|
|
386096
386677
|
relevance: 0
|
|
386097
386678
|
},
|
|
386098
386679
|
FUNCTION_VARIABLE,
|
|
@@ -387667,7 +388248,7 @@ function makefile(hljs) {
|
|
|
387667
388248
|
|
|
387668
388249
|
// node_modules/highlight.js/es/languages/markdown.js
|
|
387669
388250
|
function markdown(hljs) {
|
|
387670
|
-
const
|
|
388251
|
+
const regex2 = hljs.regex;
|
|
387671
388252
|
const INLINE_HTML = {
|
|
387672
388253
|
begin: /<\/?[A-Za-z_]/,
|
|
387673
388254
|
end: ">",
|
|
@@ -387748,7 +388329,7 @@ function markdown(hljs) {
|
|
|
387748
388329
|
relevance: 2
|
|
387749
388330
|
},
|
|
387750
388331
|
{
|
|
387751
|
-
begin:
|
|
388332
|
+
begin: regex2.concat(/\[.+?\]\(/, URL_SCHEME, /:\/\/.*?\)/),
|
|
387752
388333
|
relevance: 2
|
|
387753
388334
|
},
|
|
387754
388335
|
// relative urls
|
|
@@ -388142,7 +388723,7 @@ function objectivec(hljs) {
|
|
|
388142
388723
|
|
|
388143
388724
|
// node_modules/highlight.js/es/languages/perl.js
|
|
388144
388725
|
function perl(hljs) {
|
|
388145
|
-
const
|
|
388726
|
+
const regex2 = hljs.regex;
|
|
388146
388727
|
const KEYWORDS3 = [
|
|
388147
388728
|
"abs",
|
|
388148
388729
|
"accept",
|
|
@@ -388403,7 +388984,7 @@ function perl(hljs) {
|
|
|
388403
388984
|
variants: [
|
|
388404
388985
|
{ begin: /\$\d/ },
|
|
388405
388986
|
{
|
|
388406
|
-
begin:
|
|
388987
|
+
begin: regex2.concat(
|
|
388407
388988
|
/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,
|
|
388408
388989
|
// negative look-ahead tries to avoid matching patterns that are not
|
|
388409
388990
|
// Perl at all like $ident$, @ident@, etc.
|
|
@@ -388451,9 +389032,9 @@ function perl(hljs) {
|
|
|
388451
389032
|
// valid but infrequent and weird
|
|
388452
389033
|
];
|
|
388453
389034
|
const PAIRED_DOUBLE_RE = (prefix, open6, close = "\\1") => {
|
|
388454
|
-
const middle2 = close === "\\1" ? close :
|
|
388455
|
-
return
|
|
388456
|
-
|
|
389035
|
+
const middle2 = close === "\\1" ? close : regex2.concat(close, open6);
|
|
389036
|
+
return regex2.concat(
|
|
389037
|
+
regex2.concat("(?:", prefix, ")"),
|
|
388457
389038
|
open6,
|
|
388458
389039
|
/(?:\\.|[^\\\/])*?/,
|
|
388459
389040
|
middle2,
|
|
@@ -388463,8 +389044,8 @@ function perl(hljs) {
|
|
|
388463
389044
|
);
|
|
388464
389045
|
};
|
|
388465
389046
|
const PAIRED_RE = (prefix, open6, close) => {
|
|
388466
|
-
return
|
|
388467
|
-
|
|
389047
|
+
return regex2.concat(
|
|
389048
|
+
regex2.concat("(?:", prefix, ")"),
|
|
388468
389049
|
open6,
|
|
388469
389050
|
/(?:\\.|[^\\\/])*?/,
|
|
388470
389051
|
close,
|
|
@@ -388550,7 +389131,7 @@ function perl(hljs) {
|
|
|
388550
389131
|
className: "regexp",
|
|
388551
389132
|
variants: [
|
|
388552
389133
|
// allow matching common delimiters
|
|
388553
|
-
{ begin: PAIRED_DOUBLE_RE("s|tr|y",
|
|
389134
|
+
{ begin: PAIRED_DOUBLE_RE("s|tr|y", regex2.either(...REGEX_DELIMS, { capture: true })) },
|
|
388554
389135
|
// and then paired delmis
|
|
388555
389136
|
{ begin: PAIRED_DOUBLE_RE("s|tr|y", "\\(", "\\)") },
|
|
388556
389137
|
{ begin: PAIRED_DOUBLE_RE("s|tr|y", "\\[", "\\]") },
|
|
@@ -388570,7 +389151,7 @@ function perl(hljs) {
|
|
|
388570
389151
|
// prefix is optional with /regex/
|
|
388571
389152
|
{ begin: PAIRED_RE("(?:m|qr)?", /\//, /\//) },
|
|
388572
389153
|
// allow matching common delimiters
|
|
388573
|
-
{ begin: PAIRED_RE("m|qr",
|
|
389154
|
+
{ begin: PAIRED_RE("m|qr", regex2.either(...REGEX_DELIMS, { capture: true }), /\1/) },
|
|
388574
389155
|
// allow common paired delmins
|
|
388575
389156
|
{ begin: PAIRED_RE("m|qr", /\(/, /\)/) },
|
|
388576
389157
|
{ begin: PAIRED_RE("m|qr", /\[/, /\]/) },
|
|
@@ -388627,17 +389208,17 @@ function perl(hljs) {
|
|
|
388627
389208
|
|
|
388628
389209
|
// node_modules/highlight.js/es/languages/php.js
|
|
388629
389210
|
function php(hljs) {
|
|
388630
|
-
const
|
|
389211
|
+
const regex2 = hljs.regex;
|
|
388631
389212
|
const NOT_PERL_ETC = /(?![A-Za-z0-9])(?![$])/;
|
|
388632
|
-
const IDENT_RE3 =
|
|
389213
|
+
const IDENT_RE3 = regex2.concat(
|
|
388633
389214
|
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
|
388634
389215
|
NOT_PERL_ETC
|
|
388635
389216
|
);
|
|
388636
|
-
const PASCAL_CASE_CLASS_NAME_RE =
|
|
389217
|
+
const PASCAL_CASE_CLASS_NAME_RE = regex2.concat(
|
|
388637
389218
|
/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
|
|
388638
389219
|
NOT_PERL_ETC
|
|
388639
389220
|
);
|
|
388640
|
-
const UPCASE_NAME_RE =
|
|
389221
|
+
const UPCASE_NAME_RE = regex2.concat(
|
|
388641
389222
|
/[A-Z]+/,
|
|
388642
389223
|
NOT_PERL_ETC
|
|
388643
389224
|
);
|
|
@@ -388939,9 +389520,9 @@ function php(hljs) {
|
|
|
388939
389520
|
{
|
|
388940
389521
|
match: [
|
|
388941
389522
|
/new/,
|
|
388942
|
-
|
|
389523
|
+
regex2.concat(WHITESPACE, "+"),
|
|
388943
389524
|
// to prevent built ins from being confused as the class constructor call
|
|
388944
|
-
|
|
389525
|
+
regex2.concat("(?!", normalizeKeywords(BUILT_INS3).join("\\b|"), "\\b)"),
|
|
388945
389526
|
PASCAL_CASE_CLASS_NAME_RE
|
|
388946
389527
|
],
|
|
388947
389528
|
scope: {
|
|
@@ -388950,13 +389531,13 @@ function php(hljs) {
|
|
|
388950
389531
|
}
|
|
388951
389532
|
}
|
|
388952
389533
|
] };
|
|
388953
|
-
const CONSTANT_REFERENCE =
|
|
389534
|
+
const CONSTANT_REFERENCE = regex2.concat(IDENT_RE3, "\\b(?!\\()");
|
|
388954
389535
|
const LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON = { variants: [
|
|
388955
389536
|
{
|
|
388956
389537
|
match: [
|
|
388957
|
-
|
|
389538
|
+
regex2.concat(
|
|
388958
389539
|
/::/,
|
|
388959
|
-
|
|
389540
|
+
regex2.lookahead(/(?!class\b)/)
|
|
388960
389541
|
),
|
|
388961
389542
|
CONSTANT_REFERENCE
|
|
388962
389543
|
],
|
|
@@ -388972,9 +389553,9 @@ function php(hljs) {
|
|
|
388972
389553
|
{
|
|
388973
389554
|
match: [
|
|
388974
389555
|
PASCAL_CASE_CLASS_NAME_RE,
|
|
388975
|
-
|
|
389556
|
+
regex2.concat(
|
|
388976
389557
|
/::/,
|
|
388977
|
-
|
|
389558
|
+
regex2.lookahead(/(?!class\b)/)
|
|
388978
389559
|
),
|
|
388979
389560
|
CONSTANT_REFERENCE
|
|
388980
389561
|
],
|
|
@@ -388986,9 +389567,9 @@ function php(hljs) {
|
|
|
388986
389567
|
{
|
|
388987
389568
|
match: [
|
|
388988
389569
|
PASCAL_CASE_CLASS_NAME_RE,
|
|
388989
|
-
|
|
389570
|
+
regex2.concat(
|
|
388990
389571
|
"::",
|
|
388991
|
-
|
|
389572
|
+
regex2.lookahead(/(?!class\b)/)
|
|
388992
389573
|
)
|
|
388993
389574
|
],
|
|
388994
389575
|
scope: { 1: "title.class" }
|
|
@@ -389007,7 +389588,7 @@ function php(hljs) {
|
|
|
389007
389588
|
] };
|
|
389008
389589
|
const NAMED_ARGUMENT = {
|
|
389009
389590
|
scope: "attr",
|
|
389010
|
-
match:
|
|
389591
|
+
match: regex2.concat(IDENT_RE3, regex2.lookahead(":"), regex2.lookahead(/(?!::)/))
|
|
389011
389592
|
};
|
|
389012
389593
|
const PARAMS_MODE = {
|
|
389013
389594
|
relevance: 0,
|
|
@@ -389029,10 +389610,10 @@ function php(hljs) {
|
|
|
389029
389610
|
match: [
|
|
389030
389611
|
/\b/,
|
|
389031
389612
|
// to prevent keywords from being confused as the function title
|
|
389032
|
-
|
|
389613
|
+
regex2.concat("(?!fn\\b|function\\b|", normalizeKeywords(KWS).join("\\b|"), "|", normalizeKeywords(BUILT_INS3).join("\\b|"), "\\b)"),
|
|
389033
389614
|
IDENT_RE3,
|
|
389034
|
-
|
|
389035
|
-
|
|
389615
|
+
regex2.concat(WHITESPACE, "*"),
|
|
389616
|
+
regex2.lookahead(/(?=\()/)
|
|
389036
389617
|
],
|
|
389037
389618
|
scope: { 3: "title.function.invoke" },
|
|
389038
389619
|
contains: [PARAMS_MODE]
|
|
@@ -389047,9 +389628,9 @@ function php(hljs) {
|
|
|
389047
389628
|
CONSTRUCTOR_CALL
|
|
389048
389629
|
];
|
|
389049
389630
|
const ATTRIBUTES4 = {
|
|
389050
|
-
begin:
|
|
389631
|
+
begin: regex2.concat(
|
|
389051
389632
|
/#\[\s*\\?/,
|
|
389052
|
-
|
|
389633
|
+
regex2.either(
|
|
389053
389634
|
PASCAL_CASE_CLASS_NAME_RE,
|
|
389054
389635
|
UPCASE_NAME_RE
|
|
389055
389636
|
)
|
|
@@ -389286,7 +389867,7 @@ function plaintext(hljs) {
|
|
|
389286
389867
|
|
|
389287
389868
|
// node_modules/highlight.js/es/languages/python.js
|
|
389288
389869
|
function python(hljs) {
|
|
389289
|
-
const
|
|
389870
|
+
const regex2 = hljs.regex;
|
|
389290
389871
|
const IDENT_RE3 = /[\p{XID_Start}_]\p{XID_Continue}*/u;
|
|
389291
389872
|
const RESERVED_WORDS = [
|
|
389292
389873
|
"and",
|
|
@@ -389572,7 +390153,7 @@ function python(hljs) {
|
|
|
389572
390153
|
};
|
|
389573
390154
|
const COMMENT_TYPE = {
|
|
389574
390155
|
className: "comment",
|
|
389575
|
-
begin:
|
|
390156
|
+
begin: regex2.lookahead(/# type:/),
|
|
389576
390157
|
end: /$/,
|
|
389577
390158
|
keywords: KEYWORDS3,
|
|
389578
390159
|
contains: [
|
|
@@ -389726,9 +390307,9 @@ function pythonRepl(hljs) {
|
|
|
389726
390307
|
|
|
389727
390308
|
// node_modules/highlight.js/es/languages/r.js
|
|
389728
390309
|
function r2(hljs) {
|
|
389729
|
-
const
|
|
390310
|
+
const regex2 = hljs.regex;
|
|
389730
390311
|
const IDENT_RE3 = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;
|
|
389731
|
-
const NUMBER_TYPES_RE =
|
|
390312
|
+
const NUMBER_TYPES_RE = regex2.either(
|
|
389732
390313
|
// Special case: only hexadecimal binary powers can contain fractions
|
|
389733
390314
|
/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,
|
|
389734
390315
|
// Hexadecimal numbers without fraction and optional binary power
|
|
@@ -389737,7 +390318,7 @@ function r2(hljs) {
|
|
|
389737
390318
|
/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/
|
|
389738
390319
|
);
|
|
389739
390320
|
const OPERATORS_RE = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/;
|
|
389740
|
-
const PUNCTUATION_RE =
|
|
390321
|
+
const PUNCTUATION_RE = regex2.either(
|
|
389741
390322
|
/[()]/,
|
|
389742
390323
|
/[{}]/,
|
|
389743
390324
|
/\[\[/,
|
|
@@ -389771,7 +390352,7 @@ function r2(hljs) {
|
|
|
389771
390352
|
scope: "doctag",
|
|
389772
390353
|
match: /@examples/,
|
|
389773
390354
|
starts: {
|
|
389774
|
-
end:
|
|
390355
|
+
end: regex2.lookahead(regex2.either(
|
|
389775
390356
|
// end if another doc comment
|
|
389776
390357
|
/\n^#'\s*(?=@[a-zA-Z]+)/,
|
|
389777
390358
|
// or a line with no comment
|
|
@@ -389936,14 +390517,14 @@ function r2(hljs) {
|
|
|
389936
390517
|
|
|
389937
390518
|
// node_modules/highlight.js/es/languages/ruby.js
|
|
389938
390519
|
function ruby(hljs) {
|
|
389939
|
-
const
|
|
390520
|
+
const regex2 = hljs.regex;
|
|
389940
390521
|
const RUBY_METHOD_RE = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)";
|
|
389941
|
-
const CLASS_NAME_RE =
|
|
390522
|
+
const CLASS_NAME_RE = regex2.either(
|
|
389942
390523
|
/\b([A-Z]+[a-z0-9]+)+/,
|
|
389943
390524
|
// ends in caps
|
|
389944
390525
|
/\b([A-Z]+[a-z0-9]+)+[A-Z]+/
|
|
389945
390526
|
);
|
|
389946
|
-
const CLASS_NAME_WITH_NAMESPACE_RE =
|
|
390527
|
+
const CLASS_NAME_WITH_NAMESPACE_RE = regex2.concat(CLASS_NAME_RE, /(::\w+)*/);
|
|
389947
390528
|
const PSEUDO_KWS = [
|
|
389948
390529
|
"include",
|
|
389949
390530
|
"extend",
|
|
@@ -390109,9 +390690,9 @@ function ruby(hljs) {
|
|
|
390109
390690
|
{
|
|
390110
390691
|
// this guard makes sure that we have an entire heredoc and not a false
|
|
390111
390692
|
// positive (auto-detect, etc.)
|
|
390112
|
-
begin:
|
|
390693
|
+
begin: regex2.concat(
|
|
390113
390694
|
/<<[-~]?'?/,
|
|
390114
|
-
|
|
390695
|
+
regex2.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)
|
|
390115
390696
|
),
|
|
390116
390697
|
contains: [
|
|
390117
390698
|
hljs.END_SAME_AS_BEGIN({
|
|
@@ -390349,18 +390930,18 @@ function ruby(hljs) {
|
|
|
390349
390930
|
|
|
390350
390931
|
// node_modules/highlight.js/es/languages/rust.js
|
|
390351
390932
|
function rust(hljs) {
|
|
390352
|
-
const
|
|
390933
|
+
const regex2 = hljs.regex;
|
|
390353
390934
|
const RAW_IDENTIFIER = /(r#)?/;
|
|
390354
|
-
const UNDERSCORE_IDENT_RE =
|
|
390355
|
-
const IDENT_RE3 =
|
|
390935
|
+
const UNDERSCORE_IDENT_RE = regex2.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE);
|
|
390936
|
+
const IDENT_RE3 = regex2.concat(RAW_IDENTIFIER, hljs.IDENT_RE);
|
|
390356
390937
|
const FUNCTION_INVOKE = {
|
|
390357
390938
|
className: "title.function.invoke",
|
|
390358
390939
|
relevance: 0,
|
|
390359
|
-
begin:
|
|
390940
|
+
begin: regex2.concat(
|
|
390360
390941
|
/\b/,
|
|
390361
390942
|
/(?!let|for|while|if|else|match\b)/,
|
|
390362
390943
|
IDENT_RE3,
|
|
390363
|
-
|
|
390944
|
+
regex2.lookahead(/\s*\(/)
|
|
390364
390945
|
)
|
|
390365
390946
|
};
|
|
390366
390947
|
const NUMBER_SUFFIX = "([ui](8|16|32|64|128|size)|f(32|64))?";
|
|
@@ -391608,7 +392189,7 @@ function shell(hljs) {
|
|
|
391608
392189
|
|
|
391609
392190
|
// node_modules/highlight.js/es/languages/sql.js
|
|
391610
392191
|
function sql(hljs) {
|
|
391611
|
-
const
|
|
392192
|
+
const regex2 = hljs.regex;
|
|
391612
392193
|
const COMMENT_MODE = hljs.COMMENT("--", "$");
|
|
391613
392194
|
const STRING = {
|
|
391614
392195
|
scope: "string",
|
|
@@ -392185,14 +392766,14 @@ function sql(hljs) {
|
|
|
392185
392766
|
relevance: 0
|
|
392186
392767
|
};
|
|
392187
392768
|
const FUNCTION_CALL = {
|
|
392188
|
-
match:
|
|
392769
|
+
match: regex2.concat(/\b/, regex2.either(...FUNCTIONS), /\s*\(/),
|
|
392189
392770
|
relevance: 0,
|
|
392190
392771
|
keywords: { built_in: FUNCTIONS }
|
|
392191
392772
|
};
|
|
392192
392773
|
function kws_to_regex(list2) {
|
|
392193
|
-
return
|
|
392774
|
+
return regex2.concat(
|
|
392194
392775
|
/\b/,
|
|
392195
|
-
|
|
392776
|
+
regex2.either(...list2.map((kw) => {
|
|
392196
392777
|
return kw.replace(/\s+/, "\\s+");
|
|
392197
392778
|
})),
|
|
392198
392779
|
/\b/
|
|
@@ -393279,7 +393860,7 @@ var BUILT_INS2 = [].concat(
|
|
|
393279
393860
|
ERROR_TYPES2
|
|
393280
393861
|
);
|
|
393281
393862
|
function javascript2(hljs) {
|
|
393282
|
-
const
|
|
393863
|
+
const regex2 = hljs.regex;
|
|
393283
393864
|
const hasClosingTag = (match2, { after }) => {
|
|
393284
393865
|
const tag2 = "</" + match2[0].slice(1);
|
|
393285
393866
|
const pos = match2.input.indexOf(tag2, after);
|
|
@@ -393518,7 +394099,7 @@ function javascript2(hljs) {
|
|
|
393518
394099
|
/\s+/,
|
|
393519
394100
|
/extends/,
|
|
393520
394101
|
/\s+/,
|
|
393521
|
-
|
|
394102
|
+
regex2.concat(IDENT_RE$1, "(", regex2.concat(/\./, IDENT_RE$1), ")*")
|
|
393522
394103
|
],
|
|
393523
394104
|
scope: {
|
|
393524
394105
|
1: "keyword",
|
|
@@ -393543,7 +394124,7 @@ function javascript2(hljs) {
|
|
|
393543
394124
|
};
|
|
393544
394125
|
const CLASS_REFERENCE = {
|
|
393545
394126
|
relevance: 0,
|
|
393546
|
-
match:
|
|
394127
|
+
match: regex2.either(
|
|
393547
394128
|
// Hard coded exceptions
|
|
393548
394129
|
/\bJSON/,
|
|
393549
394130
|
// Float32Array, OutT
|
|
@@ -393604,10 +394185,10 @@ function javascript2(hljs) {
|
|
|
393604
394185
|
className: "variable.constant"
|
|
393605
394186
|
};
|
|
393606
394187
|
function noneOf(list2) {
|
|
393607
|
-
return
|
|
394188
|
+
return regex2.concat("(?!", list2.join("|"), ")");
|
|
393608
394189
|
}
|
|
393609
394190
|
const FUNCTION_CALL = {
|
|
393610
|
-
match:
|
|
394191
|
+
match: regex2.concat(
|
|
393611
394192
|
/\b/,
|
|
393612
394193
|
noneOf([
|
|
393613
394194
|
...BUILT_IN_GLOBALS2,
|
|
@@ -393615,14 +394196,14 @@ function javascript2(hljs) {
|
|
|
393615
394196
|
"import"
|
|
393616
394197
|
].map((x) => `${x}\\s*\\(`)),
|
|
393617
394198
|
IDENT_RE$1,
|
|
393618
|
-
|
|
394199
|
+
regex2.lookahead(/\s*\(/)
|
|
393619
394200
|
),
|
|
393620
394201
|
className: "title.function",
|
|
393621
394202
|
relevance: 0
|
|
393622
394203
|
};
|
|
393623
394204
|
const PROPERTY_ACCESS = {
|
|
393624
|
-
begin:
|
|
393625
|
-
|
|
394205
|
+
begin: regex2.concat(/\./, regex2.lookahead(
|
|
394206
|
+
regex2.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)
|
|
393626
394207
|
)),
|
|
393627
394208
|
end: IDENT_RE$1,
|
|
393628
394209
|
excludeBegin: true,
|
|
@@ -393659,7 +394240,7 @@ function javascript2(hljs) {
|
|
|
393659
394240
|
/=\s*/,
|
|
393660
394241
|
/(async\s*)?/,
|
|
393661
394242
|
// async is optional
|
|
393662
|
-
|
|
394243
|
+
regex2.lookahead(FUNC_LEAD_IN_RE)
|
|
393663
394244
|
],
|
|
393664
394245
|
keywords: "async",
|
|
393665
394246
|
className: {
|
|
@@ -393697,7 +394278,7 @@ function javascript2(hljs) {
|
|
|
393697
394278
|
CLASS_REFERENCE,
|
|
393698
394279
|
{
|
|
393699
394280
|
scope: "attr",
|
|
393700
|
-
match: IDENT_RE$1 +
|
|
394281
|
+
match: IDENT_RE$1 + regex2.lookahead(":"),
|
|
393701
394282
|
relevance: 0
|
|
393702
394283
|
},
|
|
393703
394284
|
FUNCTION_VARIABLE,
|
|
@@ -393825,7 +394406,7 @@ function javascript2(hljs) {
|
|
|
393825
394406
|
};
|
|
393826
394407
|
}
|
|
393827
394408
|
function typescript(hljs) {
|
|
393828
|
-
const
|
|
394409
|
+
const regex2 = hljs.regex;
|
|
393829
394410
|
const tsLanguage = javascript2(hljs);
|
|
393830
394411
|
const IDENT_RE$1 = IDENT_RE2;
|
|
393831
394412
|
const TYPES3 = [
|
|
@@ -393905,7 +394486,7 @@ function typescript(hljs) {
|
|
|
393905
394486
|
const OPTIONAL_KEY_OR_ARGUMENT = Object.assign(
|
|
393906
394487
|
{},
|
|
393907
394488
|
ATTRIBUTE_HIGHLIGHT,
|
|
393908
|
-
{ match:
|
|
394489
|
+
{ match: regex2.concat(IDENT_RE$1, regex2.lookahead(/\s*\?:/)) }
|
|
393909
394490
|
);
|
|
393910
394491
|
tsLanguage.exports.PARAMS_CONTAINS.push([
|
|
393911
394492
|
tsLanguage.exports.CLASS_REFERENCE,
|
|
@@ -393940,7 +394521,7 @@ function typescript(hljs) {
|
|
|
393940
394521
|
|
|
393941
394522
|
// node_modules/highlight.js/es/languages/vbnet.js
|
|
393942
394523
|
function vbnet(hljs) {
|
|
393943
|
-
const
|
|
394524
|
+
const regex2 = hljs.regex;
|
|
393944
394525
|
const CHARACTER = {
|
|
393945
394526
|
className: "string",
|
|
393946
394527
|
begin: /"(""|[^/n])"C\b/
|
|
@@ -393966,23 +394547,23 @@ function vbnet(hljs) {
|
|
|
393966
394547
|
variants: [
|
|
393967
394548
|
{
|
|
393968
394549
|
// #YYYY-MM-DD# (ISO-Date) or #M/D/YYYY# (US-Date)
|
|
393969
|
-
begin:
|
|
394550
|
+
begin: regex2.concat(/# */, regex2.either(YYYY_MM_DD, MM_DD_YYYY), / *#/)
|
|
393970
394551
|
},
|
|
393971
394552
|
{
|
|
393972
394553
|
// #H:mm[:ss]# (24h Time)
|
|
393973
|
-
begin:
|
|
394554
|
+
begin: regex2.concat(/# */, TIME_24H, / *#/)
|
|
393974
394555
|
},
|
|
393975
394556
|
{
|
|
393976
394557
|
// #h[:mm[:ss]] A# (12h Time)
|
|
393977
|
-
begin:
|
|
394558
|
+
begin: regex2.concat(/# */, TIME_12H, / *#/)
|
|
393978
394559
|
},
|
|
393979
394560
|
{
|
|
393980
394561
|
// date plus time
|
|
393981
|
-
begin:
|
|
394562
|
+
begin: regex2.concat(
|
|
393982
394563
|
/# */,
|
|
393983
|
-
|
|
394564
|
+
regex2.either(YYYY_MM_DD, MM_DD_YYYY),
|
|
393984
394565
|
/ +/,
|
|
393985
|
-
|
|
394566
|
+
regex2.either(TIME_12H, TIME_24H),
|
|
393986
394567
|
/ *#/
|
|
393987
394568
|
)
|
|
393988
394569
|
}
|
|
@@ -394194,8 +394775,8 @@ function wasm(hljs) {
|
|
|
394194
394775
|
|
|
394195
394776
|
// node_modules/highlight.js/es/languages/xml.js
|
|
394196
394777
|
function xml(hljs) {
|
|
394197
|
-
const
|
|
394198
|
-
const TAG_NAME_RE =
|
|
394778
|
+
const regex2 = hljs.regex;
|
|
394779
|
+
const TAG_NAME_RE = regex2.concat(/[\p{L}_]/u, regex2.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);
|
|
394199
394780
|
const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;
|
|
394200
394781
|
const XML_ENTITIES = {
|
|
394201
394782
|
className: "symbol",
|
|
@@ -394371,14 +394952,14 @@ function xml(hljs) {
|
|
|
394371
394952
|
// open tag
|
|
394372
394953
|
{
|
|
394373
394954
|
className: "tag",
|
|
394374
|
-
begin:
|
|
394955
|
+
begin: regex2.concat(
|
|
394375
394956
|
/</,
|
|
394376
|
-
|
|
394957
|
+
regex2.lookahead(regex2.concat(
|
|
394377
394958
|
TAG_NAME_RE,
|
|
394378
394959
|
// <tag/>
|
|
394379
394960
|
// <tag>
|
|
394380
394961
|
// <tag ...
|
|
394381
|
-
|
|
394962
|
+
regex2.either(/\/>/, />/, /\s/)
|
|
394382
394963
|
))
|
|
394383
394964
|
),
|
|
394384
394965
|
end: /\/?>/,
|
|
@@ -394394,9 +394975,9 @@ function xml(hljs) {
|
|
|
394394
394975
|
// close tag
|
|
394395
394976
|
{
|
|
394396
394977
|
className: "tag",
|
|
394397
|
-
begin:
|
|
394978
|
+
begin: regex2.concat(
|
|
394398
394979
|
/<\//,
|
|
394399
|
-
|
|
394980
|
+
regex2.lookahead(regex2.concat(
|
|
394400
394981
|
TAG_NAME_RE,
|
|
394401
394982
|
/>/
|
|
394402
394983
|
))
|
|
@@ -394896,7 +395477,6 @@ var HastEmitter = class {
|
|
|
394896
395477
|
// packages/cli/src/ui/components/shared/MaxSizedBox.tsx
|
|
394897
395478
|
import React11, { Fragment as Fragment2, useEffect as useEffect29, useId } from "react";
|
|
394898
395479
|
import { Box as Box12, Text as Text19 } from "ink";
|
|
394899
|
-
import stringWidth3 from "string-width";
|
|
394900
395480
|
|
|
394901
395481
|
// packages/cli/src/ui/contexts/OverflowContext.tsx
|
|
394902
395482
|
import {
|
|
@@ -395155,7 +395735,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395155
395735
|
let noWrappingWidth = 0;
|
|
395156
395736
|
row.noWrapSegments.forEach((segment) => {
|
|
395157
395737
|
nonWrappingContent.push(segment);
|
|
395158
|
-
noWrappingWidth +=
|
|
395738
|
+
noWrappingWidth += stringWidth(segment.text);
|
|
395159
395739
|
});
|
|
395160
395740
|
if (row.segments.length === 0) {
|
|
395161
395741
|
const lines2 = [];
|
|
@@ -395194,12 +395774,12 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395194
395774
|
currentLineWidth = 0;
|
|
395195
395775
|
}
|
|
395196
395776
|
if (text) {
|
|
395197
|
-
const textWidth =
|
|
395777
|
+
const textWidth = stringWidth(text);
|
|
395198
395778
|
if (index > 0 && textWidth > 0) {
|
|
395199
395779
|
currentLine.push({ text: "\u2026", props: {} });
|
|
395200
|
-
currentLineWidth =
|
|
395780
|
+
currentLineWidth = stringWidth("\u2026");
|
|
395201
395781
|
} else {
|
|
395202
|
-
const maxContentWidth = Math.max(0, maxWidth -
|
|
395782
|
+
const maxContentWidth = Math.max(0, maxWidth - stringWidth("\u2026"));
|
|
395203
395783
|
if (textWidth <= maxContentWidth && currentLineWidth === 0) {
|
|
395204
395784
|
currentLine.push({ text, props: segment.props });
|
|
395205
395785
|
currentLineWidth += textWidth;
|
|
@@ -395208,7 +395788,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395208
395788
|
let truncatedWidth = currentLineWidth;
|
|
395209
395789
|
let sliceEndIndex = 0;
|
|
395210
395790
|
for (const char of codePoints) {
|
|
395211
|
-
const charWidth =
|
|
395791
|
+
const charWidth = stringWidth(char);
|
|
395212
395792
|
if (truncatedWidth + charWidth > maxContentWidth) {
|
|
395213
395793
|
break;
|
|
395214
395794
|
}
|
|
@@ -395220,7 +395800,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395220
395800
|
currentLine.push({ text: slice, props: segment.props });
|
|
395221
395801
|
}
|
|
395222
395802
|
currentLine.push({ text: "\u2026", props: {} });
|
|
395223
|
-
currentLineWidth = truncatedWidth +
|
|
395803
|
+
currentLineWidth = truncatedWidth + stringWidth("\u2026");
|
|
395224
395804
|
}
|
|
395225
395805
|
}
|
|
395226
395806
|
}
|
|
@@ -395271,7 +395851,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395271
395851
|
const words = lineText.split(/(\s+)/);
|
|
395272
395852
|
words.forEach((word) => {
|
|
395273
395853
|
if (!word) return;
|
|
395274
|
-
const wordWidth =
|
|
395854
|
+
const wordWidth = stringWidth(word);
|
|
395275
395855
|
if (wrappingPartWidth + wordWidth > availableWidth && wrappingPartWidth > 0) {
|
|
395276
395856
|
addWrappingPartToLines();
|
|
395277
395857
|
if (/^\s+$/.test(word)) {
|
|
@@ -395285,7 +395865,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395285
395865
|
let splitIndex = 0;
|
|
395286
395866
|
let currentSplitWidth = 0;
|
|
395287
395867
|
for (const char of remainingWordAsCodePoints) {
|
|
395288
|
-
const charWidth =
|
|
395868
|
+
const charWidth = stringWidth(char);
|
|
395289
395869
|
if (wrappingPartWidth + currentSplitWidth + charWidth > availableWidth) {
|
|
395290
395870
|
break;
|
|
395291
395871
|
}
|
|
@@ -395295,7 +395875,7 @@ function layoutInkElementAsStyledText(element, maxWidth, output) {
|
|
|
395295
395875
|
if (splitIndex > 0) {
|
|
395296
395876
|
const part = remainingWordAsCodePoints.slice(0, splitIndex).join("");
|
|
395297
395877
|
addToWrappingPart(part, segment.props);
|
|
395298
|
-
wrappingPartWidth +=
|
|
395878
|
+
wrappingPartWidth += stringWidth(part);
|
|
395299
395879
|
remainingWordAsCodePoints = remainingWordAsCodePoints.slice(splitIndex);
|
|
395300
395880
|
}
|
|
395301
395881
|
if (remainingWordAsCodePoints.length > 0) {
|
|
@@ -398062,7 +398642,6 @@ import { Box as Box24, Text as Text32 } from "ink";
|
|
|
398062
398642
|
// packages/cli/src/ui/utils/InlineMarkdownRenderer.tsx
|
|
398063
398643
|
import React21 from "react";
|
|
398064
398644
|
import { Text as Text31 } from "ink";
|
|
398065
|
-
import stringWidth4 from "string-width";
|
|
398066
398645
|
import { Fragment as Fragment5, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
398067
398646
|
var BOLD_MARKER_LENGTH = 2;
|
|
398068
398647
|
var ITALIC_MARKER_LENGTH = 1;
|
|
@@ -398143,7 +398722,7 @@ var RenderInlineInternal = ({ text }) => {
|
|
|
398143
398722
|
var RenderInline = React21.memo(RenderInlineInternal);
|
|
398144
398723
|
var getPlainTextLength = (text) => {
|
|
398145
398724
|
const cleanText = text.replace(/\*\*(.*?)\*\*/g, "$1").replace(/\*(.*?)\*/g, "$1").replace(/_(.*?)_/g, "$1").replace(/~~(.*?)~~/g, "$1").replace(/`(.*?)`/g, "$1").replace(/<u>(.*?)<\/u>/g, "$1").replace(/\[(.*?)\]\(.*?\)/g, "$1");
|
|
398146
|
-
return
|
|
398725
|
+
return stringWidth(cleanText);
|
|
398147
398726
|
};
|
|
398148
398727
|
|
|
398149
398728
|
// packages/cli/src/ui/components/ShellConfirmationDialog.tsx
|