@wirecat/drive-cli 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +150 -71
- package/contracts/wirecat.json +77 -8
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-23OB2NZP.js +46 -0
- package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-GXGDVNQJ.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-H5C4GQHC.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-EQ3UK4C7.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DTJVSRY3.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-JIFY7MAE.js} +9 -9
- package/dist/bundle/chunk-2Q325BBD.js +353 -0
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/{chunk-RWDKMU74.js → chunk-3FRQ6V4T.js} +3 -3
- package/dist/bundle/chunk-47L262VI.js +340 -0
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-4HPXWYTE.js} +1 -1
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-4IUNYYYL.js} +4385 -2684
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-4JS32SRX.js} +20 -5
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-55FH6IEL.js} +5 -5
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-5BNMWSU2.js} +483 -176
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-5H747A76.js} +5532 -3265
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5KWCO56H.js} +2 -2
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-5U3NCE5R.js} +35 -12
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-6CCO3JCM.js} +30 -21
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-6ZW2ZJYC.js} +2 -2
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-75DAHQOV.js} +3 -3
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-77OBW43F.js} +6 -6
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-7EFM6AW3.js} +4 -4
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-A3S7QM5L.js} +3 -3
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-AA4LKC6W.js} +244 -565
- package/dist/bundle/chunk-ASTKHB6B.js +3233 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-BM6V7456.js} +8 -227
- package/dist/bundle/chunk-BO6EDBYJ.js +50 -0
- package/dist/bundle/{chunk-YPFWNVHV.js → chunk-BPA3R4KN.js} +2 -100
- package/dist/bundle/chunk-CIFE4KPX.js +2159 -0
- package/dist/bundle/chunk-CKB4XZZJ.js +730 -0
- package/dist/bundle/{chunk-RJOQH5YY.js → chunk-COJTCEZP.js} +111 -859
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-CWPYDT73.js} +6 -6
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-D4JNCXS7.js} +9 -9
- package/dist/bundle/chunk-DCPWZIOV.js +696 -0
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-DHMNCOQI.js} +313 -257
- package/dist/bundle/chunk-DOQMH4DC.js +280 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-DWRUOLBF.js} +4 -4
- package/dist/bundle/{chunk-6W763DZN.js → chunk-E3VWZC3K.js} +14 -13
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-EVG3AA5M.js} +2 -2
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-FBEZSA76.js} +5 -5
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-FBQJN74J.js} +1 -1
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-FIZOPJYY.js} +1 -1
- package/dist/bundle/chunk-FNAYSZWK.js +783 -0
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-FRCJHGZM.js} +2 -2
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-FTG5QBSD.js} +41 -33
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-FUDUXIVG.js} +1 -1
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GIEZYBRC.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/chunk-GU6ICH53.js +108 -0
- package/dist/bundle/{chunk-ACUAV6VX.js → chunk-GUMKKRE6.js} +107 -71
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-GWCDOYSC.js} +1 -1
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-GXGSC622.js} +69 -7
- package/dist/bundle/chunk-HAGXTGJC.js +188 -0
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-IMAWQC5K.js} +6 -6
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-IVGVVSPW.js} +4 -4
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-J4NUHSM7.js} +1 -1
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-K652FYCO.js} +6 -6
- package/dist/bundle/chunk-K6ZWNTXY.js +561 -0
- package/dist/bundle/{chunk-COOOO5B3.js → chunk-KF3ZBQJV.js} +4 -4
- package/dist/bundle/chunk-KFZCHJRT.js +80 -0
- package/dist/bundle/chunk-KLPFDFLI.js +221 -0
- package/dist/bundle/{chunk-EOEU3AZN.js → chunk-KP2XMCNT.js} +13 -13
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-KWDZ3KVH.js} +4 -4
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KX4C32WD.js} +2 -2
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-M2ZWYVWO.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-ML2QIWX2.js} +4 -4
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-MUFF2YTH.js} +2 -2
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-N24YSLED.js} +9150 -9869
- package/dist/bundle/chunk-N4GTCPML.js +7 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-NBMGDRP4.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-NNGA4QDR.js} +13 -26
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/chunk-O7CZZ36M.js +80 -0
- package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-OAONP6KI.js} +13 -9
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-OESP4PHB.js} +17 -17
- package/dist/bundle/chunk-OHR6IZNH.js +116 -0
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-OLCU7Q2B.js} +1 -1
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-OLDQLEPA.js} +6 -6
- package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-OPIPG6AP.js} +16 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/chunk-PRYMT3OG.js +30 -0
- package/dist/bundle/chunk-QDUIVMEW.js +36 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-QKBPCX7Y.js} +1 -1
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-QSLOACDT.js} +201 -423
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-QUZFDU4K.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-R32DHS6J.js} +187 -379
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-R57QUYBG.js} +6 -28
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-R64OSDOD.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-RSPBVKOC.js} +8 -8
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-SPNPJ3FZ.js} +3 -4
- package/dist/bundle/chunk-SQHDSIFL.js +388 -0
- package/dist/bundle/{chunk-YPNWIB6H.js → chunk-ST35FIUG.js} +3 -3
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-TTPWKTVR.js} +1 -1
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-U7VEJ3CW.js} +45 -27
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-UIQ35CA5.js} +1 -1
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-UJY26HW4.js} +1 -1
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-UWG3PRY7.js} +9 -60
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-VAR3MJU6.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-VPQSI5IU.js} +4 -4
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-VQPT3Y7W.js} +12 -12
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-WMG3H2VK.js} +2 -2
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-X5BGAZC5.js} +6 -6
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-XC6TRWLZ.js} +3 -3
- package/dist/bundle/{chunk-OF422U5D.js → chunk-XQZEMRCU.js} +402 -402
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-XZ7MO6EU.js} +7 -7
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-YAIOEPKU.js} +337 -390
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-YWOLQEDV.js} +16 -3
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-ZFDSJ5YJ.js} +38 -8
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-ZFUZEFU6.js} +3 -3
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-ZJKXSMXK.js} +72 -59
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-ZKWT6HXT.js} +1 -1
- package/dist/bundle/chunk-ZPUY3COZ.js +250 -0
- package/dist/bundle/{cli-556DERZL.js → cli-2P5FW2RL.js} +201 -98
- package/dist/bundle/command-contract-BMQT2G5X.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-KP2UDGLA.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-K2JZ5D6V.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-KOQZA74A.js} +10 -10
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-URO3QGCG.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-JLIPWTNN.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-LUTDO3HS.js} +15 -15
- package/dist/bundle/entry-AVF6LMG7.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.js → failure-GJMQLM7O.js} +4 -4
- package/dist/bundle/first-run-VYTIEUDA.js +31 -0
- package/dist/bundle/first-screen-QVZPF7KL.js +45 -0
- package/dist/bundle/google-VX7IPACN.js +46 -0
- package/dist/bundle/{google-api-VCDBSNOW.js → google-api-RFXKRLL4.js} +88 -73
- package/dist/bundle/grants-4XWJFVD6.js +133 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
- package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
- package/dist/bundle/{identity-LOWMVGZY.js → identity-FXPB5EMT.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-IROIUVZI.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-WIY5VQU7.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-NJIOKW3E.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
- package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
- package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
- package/dist/bundle/meeting-combined-JUNV35GM.js +28 -0
- package/dist/bundle/meeting-model-XY4UNWWK.js +29 -0
- package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-62QNQMOM.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
- package/dist/bundle/{node-MPEQSFI3.js → node-IACCI2CW.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-WYIRC7C7.js} +10 -10
- package/dist/bundle/notes-search-DEDUJKSN.js +70 -0
- package/dist/bundle/oauth-HXBXF4VI.js +22 -0
- package/dist/bundle/{open-OXTE672W.js → open-H32B6BCT.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-VHMPJJUG.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-RNHPF5OK.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-GYMJ3DDH.js} +275 -1148
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-TOG2CRCE.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-TLFQ45YX.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-GYGY45EY.js} +7 -7
- package/dist/bundle/remote-6XN2QLI5.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-HJO3O4TW.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-XPCNLHCR.js} +19 -19
- package/dist/bundle/server-UBJZ66XE.js +97 -0
- package/dist/bundle/{server-YMAK4LHC.js → server-WPT3NC5B.js} +89 -70
- package/dist/bundle/{services-ZILSFJ6E.js → services-253KKKVU.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-EZASGJXW.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-UHI35JFL.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-KJTSPFGK.js} +9 -9
- package/dist/bundle/{store-UODRT6X4.js → store-62J2H2A3.js} +36 -25
- package/dist/bundle/{store-CL4ZJZRI.js → store-G5B7T7M7.js} +38 -23
- package/dist/bundle/store-maintenance-command-C6T4YLVF.js +85 -0
- package/dist/bundle/surface-3OT64BHS.js +83 -0
- package/dist/bundle/tokens-EHYO6D2X.js +133 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +8 -22
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +14 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +2 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/generated/manifest.d.ts +2 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +782 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +262 -58
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +5 -5
- package/dist/google.js.map +1 -1
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/policy-keys.js +1 -1
- package/dist/policy-keys.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -4
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +6 -1
- package/dist/state.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -7
- package/dist/store.js.map +1 -1
- package/dist/supported.d.ts +2 -2
- package/dist/supported.d.ts.map +1 -1
- package/dist/supported.js +2 -3
- package/dist/supported.js.map +1 -1
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -2
- package/dist/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/find-decision.md +1 -1
- package/skills/drive-cli/SKILL.md +4 -2
- package/dist/bundle/chunk-J5Q5FS2N.js +0 -593
- package/dist/bundle/chunk-L46C6HQ7.js +0 -729
- package/dist/bundle/chunk-UDMNY63V.js +0 -899
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
- package/dist/bundle/entry-MVXQETWS.js +0 -25
- package/dist/bundle/first-run-4UVLW2WR.js +0 -31
- package/dist/bundle/first-screen-JAKAIINI.js +0 -41
- package/dist/bundle/google-22NXXJX5.js +0 -45
- package/dist/bundle/grants-MQMTVCRQ.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
- package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
- package/dist/bundle/oauth-SGH2I2BY.js +0 -22
- package/dist/bundle/remote-D5EYYIAU.js +0 -35
- package/dist/bundle/server-DUVJWP3Q.js +0 -80
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
- package/dist/bundle/tokens-AF7QOFOF.js +0 -118
|
@@ -1,74 +1,49 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
checkedOptions,
|
|
7
|
-
messagesFor,
|
|
8
|
-
range,
|
|
9
|
-
systemFor,
|
|
10
|
-
validateImages
|
|
11
|
-
} from "./chunk-3EBBLKIT.js";
|
|
4
|
+
withRecovery
|
|
5
|
+
} from "./chunk-ZPUY3COZ.js";
|
|
12
6
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
7
|
+
MAX_MODEL_IMAGE_BYTES
|
|
8
|
+
} from "./chunk-ML2QIWX2.js";
|
|
15
9
|
import {
|
|
16
10
|
Unzip,
|
|
17
11
|
UnzipInflate
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
envName
|
|
21
|
-
} from "./chunk-MNLL5YLM.js";
|
|
22
|
-
import {
|
|
23
|
-
PLAIN_HTTP_REFUSED,
|
|
24
|
-
endpoint,
|
|
25
|
-
endpointFetch,
|
|
26
|
-
modelAddressAllowed,
|
|
27
|
-
onThisComputer
|
|
28
|
-
} from "./chunk-YMJ6IDGT.js";
|
|
12
|
+
} from "./chunk-NTZWY5R3.js";
|
|
29
13
|
import {
|
|
30
14
|
MAX_FILE_BYTES,
|
|
31
15
|
MAX_TEXT_CHARS,
|
|
32
16
|
attachmentMaxBytes
|
|
33
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VAR3MJU6.js";
|
|
34
18
|
import {
|
|
35
19
|
isCliFailure
|
|
36
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6ZW2ZJYC.js";
|
|
37
21
|
import {
|
|
38
22
|
readSharedSection,
|
|
39
23
|
sharedConfigPath,
|
|
40
24
|
writeSharedSection
|
|
41
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RSPBVKOC.js";
|
|
42
26
|
import {
|
|
43
27
|
storePath
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
Credentials,
|
|
47
|
-
pathsAreOverridden,
|
|
48
|
-
resolvePaths
|
|
49
|
-
} from "./chunk-CJLVYIOP.js";
|
|
28
|
+
} from "./chunk-WMG3H2VK.js";
|
|
50
29
|
import {
|
|
51
|
-
importFrom,
|
|
52
|
-
resolveFrom
|
|
53
|
-
} from "./chunk-Y5E2WNWB.js";
|
|
54
|
-
import {
|
|
55
|
-
array,
|
|
56
|
-
integer,
|
|
57
30
|
isoTimestamp,
|
|
58
|
-
number,
|
|
59
31
|
optional,
|
|
60
32
|
picklist,
|
|
61
33
|
pipe,
|
|
62
34
|
regex,
|
|
63
35
|
safeParse,
|
|
64
36
|
strictObject,
|
|
65
|
-
string
|
|
66
|
-
|
|
67
|
-
} from "./chunk-OJSBWP3F.js";
|
|
37
|
+
string
|
|
38
|
+
} from "./chunk-GXGSC622.js";
|
|
68
39
|
import {
|
|
69
40
|
CliError,
|
|
70
41
|
isCliError
|
|
71
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
43
|
+
import {
|
|
44
|
+
importFrom,
|
|
45
|
+
resolveFrom
|
|
46
|
+
} from "./chunk-Y5E2WNWB.js";
|
|
72
47
|
import {
|
|
73
48
|
__commonJS,
|
|
74
49
|
__name,
|
|
@@ -389,7 +364,7 @@ var require_errors = __commonJS({
|
|
|
389
364
|
return typeof value === "string" && value.substring(value.length - DOMExceptionName.Error.length) === DOMExceptionName.Error;
|
|
390
365
|
}
|
|
391
366
|
__name(endsWithError, "endsWithError");
|
|
392
|
-
function
|
|
367
|
+
function DOMException(messageOrCode, nameOrMessage) {
|
|
393
368
|
if (isValidDomExceptionCode(messageOrCode)) {
|
|
394
369
|
this.name = DOMExceptionNames[messageOrCode];
|
|
395
370
|
this.message = nameOrMessage || "";
|
|
@@ -397,11 +372,11 @@ var require_errors = __commonJS({
|
|
|
397
372
|
this.message = messageOrCode;
|
|
398
373
|
this.name = endsWithError(nameOrMessage) ? nameOrMessage : DOMExceptionName.Error;
|
|
399
374
|
}
|
|
400
|
-
if (Error.captureStackTrace) Error.captureStackTrace(this,
|
|
375
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
|
|
401
376
|
}
|
|
402
|
-
__name(
|
|
403
|
-
extendError(
|
|
404
|
-
Object.defineProperties(
|
|
377
|
+
__name(DOMException, "DOMException");
|
|
378
|
+
extendError(DOMException, true);
|
|
379
|
+
Object.defineProperties(DOMException.prototype, {
|
|
405
380
|
code: {
|
|
406
381
|
enumerable: true,
|
|
407
382
|
get: /* @__PURE__ */ __name(function() {
|
|
@@ -441,7 +416,7 @@ var require_errors = __commonJS({
|
|
|
441
416
|
var entries = Object.entries(ExceptionCode);
|
|
442
417
|
for (i = 0; i < entries.length; i++) {
|
|
443
418
|
key = entries[i][0];
|
|
444
|
-
|
|
419
|
+
DOMException[key] = entries[i][1];
|
|
445
420
|
}
|
|
446
421
|
var key;
|
|
447
422
|
var i;
|
|
@@ -453,7 +428,7 @@ var require_errors = __commonJS({
|
|
|
453
428
|
}
|
|
454
429
|
__name(ParseError, "ParseError");
|
|
455
430
|
extendError(ParseError);
|
|
456
|
-
exports.DOMException =
|
|
431
|
+
exports.DOMException = DOMException;
|
|
457
432
|
exports.DOMExceptionName = DOMExceptionName;
|
|
458
433
|
exports.ExceptionCode = ExceptionCode;
|
|
459
434
|
exports.ParseError = ParseError;
|
|
@@ -687,7 +662,7 @@ var require_dom = __commonJS({
|
|
|
687
662
|
var NAMESPACE = conventions.NAMESPACE;
|
|
688
663
|
var PDC = /* @__PURE__ */ Symbol();
|
|
689
664
|
var errors = require_errors();
|
|
690
|
-
var
|
|
665
|
+
var DOMException = errors.DOMException;
|
|
691
666
|
var DOMExceptionName = errors.DOMExceptionName;
|
|
692
667
|
var g = require_grammar();
|
|
693
668
|
function checkSymbol(symbol) {
|
|
@@ -725,7 +700,7 @@ var require_dom = __commonJS({
|
|
|
725
700
|
__name(arrayIncludes, "arrayIncludes");
|
|
726
701
|
function validateQualifiedName(qualifiedName) {
|
|
727
702
|
if (!g.QName_exact.test(qualifiedName)) {
|
|
728
|
-
throw new
|
|
703
|
+
throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in qualified name "' + qualifiedName + '"');
|
|
729
704
|
}
|
|
730
705
|
}
|
|
731
706
|
__name(validateQualifiedName, "validateQualifiedName");
|
|
@@ -740,20 +715,20 @@ var require_dom = __commonJS({
|
|
|
740
715
|
localName = splitResult[1];
|
|
741
716
|
}
|
|
742
717
|
if (prefix !== null && namespace === null) {
|
|
743
|
-
throw new
|
|
718
|
+
throw new DOMException(DOMException.NAMESPACE_ERR, "prefix is non-null and namespace is null");
|
|
744
719
|
}
|
|
745
720
|
if (prefix === "xml" && namespace !== conventions.NAMESPACE.XML) {
|
|
746
|
-
throw new
|
|
721
|
+
throw new DOMException(DOMException.NAMESPACE_ERR, 'prefix is "xml" and namespace is not the XML namespace');
|
|
747
722
|
}
|
|
748
723
|
if ((prefix === "xmlns" || qualifiedName === "xmlns") && namespace !== conventions.NAMESPACE.XMLNS) {
|
|
749
|
-
throw new
|
|
750
|
-
|
|
724
|
+
throw new DOMException(
|
|
725
|
+
DOMException.NAMESPACE_ERR,
|
|
751
726
|
'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace'
|
|
752
727
|
);
|
|
753
728
|
}
|
|
754
729
|
if (namespace === conventions.NAMESPACE.XMLNS && prefix !== "xmlns" && qualifiedName !== "xmlns") {
|
|
755
|
-
throw new
|
|
756
|
-
|
|
730
|
+
throw new DOMException(
|
|
731
|
+
DOMException.NAMESPACE_ERR,
|
|
757
732
|
'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"'
|
|
758
733
|
);
|
|
759
734
|
}
|
|
@@ -860,15 +835,15 @@ var require_dom = __commonJS({
|
|
|
860
835
|
* @param {function} [options.nodeFilter]
|
|
861
836
|
* @returns {string}
|
|
862
837
|
*/
|
|
863
|
-
toString: /* @__PURE__ */ __name(function(
|
|
838
|
+
toString: /* @__PURE__ */ __name(function(options) {
|
|
864
839
|
var opts;
|
|
865
|
-
if (typeof
|
|
866
|
-
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter:
|
|
867
|
-
} else if (!!
|
|
840
|
+
if (typeof options === "function") {
|
|
841
|
+
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: options };
|
|
842
|
+
} else if (!!options) {
|
|
868
843
|
opts = {
|
|
869
|
-
requireWellFormed: !!
|
|
870
|
-
splitCDATASections:
|
|
871
|
-
nodeFilter:
|
|
844
|
+
requireWellFormed: !!options.requireWellFormed,
|
|
845
|
+
splitCDATASections: options.splitCDATASections !== false,
|
|
846
|
+
nodeFilter: options.nodeFilter || null
|
|
872
847
|
};
|
|
873
848
|
} else {
|
|
874
849
|
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: null };
|
|
@@ -1079,7 +1054,7 @@ var require_dom = __commonJS({
|
|
|
1079
1054
|
setNamedItem: /* @__PURE__ */ __name(function(attr) {
|
|
1080
1055
|
var el = attr.ownerElement;
|
|
1081
1056
|
if (el && el !== this._ownerElement) {
|
|
1082
|
-
throw new
|
|
1057
|
+
throw new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);
|
|
1083
1058
|
}
|
|
1084
1059
|
var oldAttr = _nnmIndexFind(this, attr.namespaceURI, attr.localName);
|
|
1085
1060
|
if (oldAttr === attr) {
|
|
@@ -1121,7 +1096,7 @@ var require_dom = __commonJS({
|
|
|
1121
1096
|
removeNamedItem: /* @__PURE__ */ __name(function(localName) {
|
|
1122
1097
|
var attr = this.getNamedItem(localName);
|
|
1123
1098
|
if (!attr) {
|
|
1124
|
-
throw new
|
|
1099
|
+
throw new DOMException(DOMException.NOT_FOUND_ERR, localName);
|
|
1125
1100
|
}
|
|
1126
1101
|
_removeNamedNode(this._ownerElement, this, attr);
|
|
1127
1102
|
return attr;
|
|
@@ -1145,7 +1120,7 @@ var require_dom = __commonJS({
|
|
|
1145
1120
|
removeNamedItemNS: /* @__PURE__ */ __name(function(namespaceURI, localName) {
|
|
1146
1121
|
var attr = this.getNamedItemNS(namespaceURI, localName);
|
|
1147
1122
|
if (!attr) {
|
|
1148
|
-
throw new
|
|
1123
|
+
throw new DOMException(DOMException.NOT_FOUND_ERR, namespaceURI ? namespaceURI + " : " + localName : localName);
|
|
1149
1124
|
}
|
|
1150
1125
|
_removeNamedNode(this._ownerElement, this, attr);
|
|
1151
1126
|
return attr;
|
|
@@ -1544,7 +1519,7 @@ var require_dom = __commonJS({
|
|
|
1544
1519
|
* @see https://dom.spec.whatwg.org/#dom-node-getrootnode
|
|
1545
1520
|
* @see https://dom.spec.whatwg.org/#concept-shadow-including-root
|
|
1546
1521
|
*/
|
|
1547
|
-
getRootNode: /* @__PURE__ */ __name(function(
|
|
1522
|
+
getRootNode: /* @__PURE__ */ __name(function(options) {
|
|
1548
1523
|
var parent = this;
|
|
1549
1524
|
do {
|
|
1550
1525
|
if (!parent.parentNode) {
|
|
@@ -2003,9 +1978,9 @@ var require_dom = __commonJS({
|
|
|
2003
1978
|
walkDOM.STOP = /* @__PURE__ */ Symbol("walkDOM.STOP");
|
|
2004
1979
|
walkDOM.ENTER = 0;
|
|
2005
1980
|
walkDOM.EXIT = 1;
|
|
2006
|
-
function Document(symbol,
|
|
1981
|
+
function Document(symbol, options) {
|
|
2007
1982
|
checkSymbol(symbol);
|
|
2008
|
-
var opt =
|
|
1983
|
+
var opt = options || {};
|
|
2009
1984
|
this.ownerDocument = this;
|
|
2010
1985
|
this.contentType = opt.contentType || MIME_TYPE.XML_APPLICATION;
|
|
2011
1986
|
this.type = isHTMLMimeType(this.contentType) ? "html" : "xml";
|
|
@@ -2048,7 +2023,7 @@ var require_dom = __commonJS({
|
|
|
2048
2023
|
__name(_onUpdateChild, "_onUpdateChild");
|
|
2049
2024
|
function _removeChild(parentNode, child) {
|
|
2050
2025
|
if (parentNode !== child.parentNode) {
|
|
2051
|
-
throw new
|
|
2026
|
+
throw new DOMException(DOMException.NOT_FOUND_ERR, "child's parent is not parent");
|
|
2052
2027
|
}
|
|
2053
2028
|
var oldPreviousSibling = child.previousSibling;
|
|
2054
2029
|
var oldNextSibling = child.nextSibling;
|
|
@@ -2113,10 +2088,10 @@ var require_dom = __commonJS({
|
|
|
2113
2088
|
__name(isElementReplacementPossible, "isElementReplacementPossible");
|
|
2114
2089
|
function assertPreInsertionValidity1to5(parent, node, child) {
|
|
2115
2090
|
if (!hasValidParentNodeType(parent)) {
|
|
2116
|
-
throw new
|
|
2091
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
|
|
2117
2092
|
}
|
|
2118
2093
|
if (child && child.parentNode !== parent) {
|
|
2119
|
-
throw new
|
|
2094
|
+
throw new DOMException(DOMException.NOT_FOUND_ERR, "child not in parent");
|
|
2120
2095
|
}
|
|
2121
2096
|
if (
|
|
2122
2097
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
@@ -2126,8 +2101,8 @@ var require_dom = __commonJS({
|
|
|
2126
2101
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
2127
2102
|
isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE
|
|
2128
2103
|
) {
|
|
2129
|
-
throw new
|
|
2130
|
-
|
|
2104
|
+
throw new DOMException(
|
|
2105
|
+
DOMException.HIERARCHY_REQUEST_ERR,
|
|
2131
2106
|
"Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType
|
|
2132
2107
|
);
|
|
2133
2108
|
}
|
|
@@ -2139,27 +2114,27 @@ var require_dom = __commonJS({
|
|
|
2139
2114
|
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
2140
2115
|
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
2141
2116
|
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
2142
|
-
throw new
|
|
2117
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
2143
2118
|
}
|
|
2144
2119
|
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {
|
|
2145
|
-
throw new
|
|
2120
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
2146
2121
|
}
|
|
2147
2122
|
}
|
|
2148
2123
|
if (isElementNode(node)) {
|
|
2149
2124
|
if (!isElementInsertionPossible(parent, child)) {
|
|
2150
|
-
throw new
|
|
2125
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
2151
2126
|
}
|
|
2152
2127
|
}
|
|
2153
2128
|
if (isDocTypeNode(node)) {
|
|
2154
2129
|
if (find(parentChildNodes, isDocTypeNode)) {
|
|
2155
|
-
throw new
|
|
2130
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
2156
2131
|
}
|
|
2157
2132
|
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
2158
2133
|
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
2159
|
-
throw new
|
|
2134
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
2160
2135
|
}
|
|
2161
2136
|
if (!child && parentElementChild) {
|
|
2162
|
-
throw new
|
|
2137
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
2163
2138
|
}
|
|
2164
2139
|
}
|
|
2165
2140
|
}
|
|
@@ -2170,15 +2145,15 @@ var require_dom = __commonJS({
|
|
|
2170
2145
|
if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
2171
2146
|
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
2172
2147
|
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
2173
|
-
throw new
|
|
2148
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
2174
2149
|
}
|
|
2175
2150
|
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {
|
|
2176
|
-
throw new
|
|
2151
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
2177
2152
|
}
|
|
2178
2153
|
}
|
|
2179
2154
|
if (isElementNode(node)) {
|
|
2180
2155
|
if (!isElementReplacementPossible(parent, child)) {
|
|
2181
|
-
throw new
|
|
2156
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
2182
2157
|
}
|
|
2183
2158
|
}
|
|
2184
2159
|
if (isDocTypeNode(node)) {
|
|
@@ -2187,11 +2162,11 @@ var require_dom = __commonJS({
|
|
|
2187
2162
|
};
|
|
2188
2163
|
__name(hasDoctypeChildThatIsNotChild, "hasDoctypeChildThatIsNotChild");
|
|
2189
2164
|
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {
|
|
2190
|
-
throw new
|
|
2165
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
2191
2166
|
}
|
|
2192
2167
|
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
2193
2168
|
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
2194
|
-
throw new
|
|
2169
|
+
throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
2195
2170
|
}
|
|
2196
2171
|
}
|
|
2197
2172
|
}
|
|
@@ -2410,7 +2385,7 @@ var require_dom = __commonJS({
|
|
|
2410
2385
|
*/
|
|
2411
2386
|
createCDATASection: /* @__PURE__ */ __name(function(data) {
|
|
2412
2387
|
if (data.indexOf("]]>") !== -1) {
|
|
2413
|
-
throw new
|
|
2388
|
+
throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'data contains "]]>"');
|
|
2414
2389
|
}
|
|
2415
2390
|
var node = new CDATASection(PDC);
|
|
2416
2391
|
node.ownerDocument = this;
|
|
@@ -2462,7 +2437,7 @@ var require_dom = __commonJS({
|
|
|
2462
2437
|
*/
|
|
2463
2438
|
createAttribute: /* @__PURE__ */ __name(function(name) {
|
|
2464
2439
|
if (!g.QName_exact.test(name)) {
|
|
2465
|
-
throw new
|
|
2440
|
+
throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in name "' + name + '"');
|
|
2466
2441
|
}
|
|
2467
2442
|
if (this.type === "html") {
|
|
2468
2443
|
name = name.toLowerCase();
|
|
@@ -2507,10 +2482,10 @@ var require_dom = __commonJS({
|
|
|
2507
2482
|
*/
|
|
2508
2483
|
createEntityReference: /* @__PURE__ */ __name(function(name) {
|
|
2509
2484
|
if (!g.Name_exact.test(name)) {
|
|
2510
|
-
throw new
|
|
2485
|
+
throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'not a valid xml name "' + name + '"');
|
|
2511
2486
|
}
|
|
2512
2487
|
if (this.type === "html") {
|
|
2513
|
-
throw new
|
|
2488
|
+
throw new DOMException("document is an html document", DOMExceptionName.NotSupportedError);
|
|
2514
2489
|
}
|
|
2515
2490
|
var node = new EntityReference(PDC);
|
|
2516
2491
|
node.ownerDocument = this;
|
|
@@ -2906,19 +2881,19 @@ var require_dom = __commonJS({
|
|
|
2906
2881
|
function XMLSerializer() {
|
|
2907
2882
|
}
|
|
2908
2883
|
__name(XMLSerializer, "XMLSerializer");
|
|
2909
|
-
XMLSerializer.prototype.serializeToString = function(node,
|
|
2910
|
-
return nodeSerializeToString.call(node,
|
|
2884
|
+
XMLSerializer.prototype.serializeToString = function(node, options) {
|
|
2885
|
+
return nodeSerializeToString.call(node, options);
|
|
2911
2886
|
};
|
|
2912
2887
|
Node.prototype.toString = nodeSerializeToString;
|
|
2913
|
-
function nodeSerializeToString(
|
|
2888
|
+
function nodeSerializeToString(options) {
|
|
2914
2889
|
var opts;
|
|
2915
|
-
if (typeof
|
|
2916
|
-
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter:
|
|
2917
|
-
} else if (
|
|
2890
|
+
if (typeof options === "function") {
|
|
2891
|
+
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: options };
|
|
2892
|
+
} else if (options != null) {
|
|
2918
2893
|
opts = {
|
|
2919
|
-
requireWellFormed: !!
|
|
2920
|
-
splitCDATASections:
|
|
2921
|
-
nodeFilter:
|
|
2894
|
+
requireWellFormed: !!options.requireWellFormed,
|
|
2895
|
+
splitCDATASections: options.splitCDATASections !== false,
|
|
2896
|
+
nodeFilter: options.nodeFilter || null
|
|
2922
2897
|
};
|
|
2923
2898
|
} else {
|
|
2924
2899
|
opts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: null };
|
|
@@ -2961,7 +2936,7 @@ var require_dom = __commonJS({
|
|
|
2961
2936
|
__name(needNamespaceDefine, "needNamespaceDefine");
|
|
2962
2937
|
function addSerializedAttribute(buf, qualifiedName, value, requireWellFormed) {
|
|
2963
2938
|
if (requireWellFormed && !g.QName_exact.test(qualifiedName)) {
|
|
2964
|
-
throw new
|
|
2939
|
+
throw new DOMException(
|
|
2965
2940
|
'The attribute name "' + qualifiedName + '" is not a valid XML QName',
|
|
2966
2941
|
DOMExceptionName.InvalidStateError
|
|
2967
2942
|
);
|
|
@@ -3031,7 +3006,7 @@ var require_dom = __commonJS({
|
|
|
3031
3006
|
}
|
|
3032
3007
|
}
|
|
3033
3008
|
if (requireWellFormed && !g.QName_exact.test(prefixedNodeName)) {
|
|
3034
|
-
throw new
|
|
3009
|
+
throw new DOMException(
|
|
3035
3010
|
'The element name "' + prefixedNodeName + '" is not a valid XML QName',
|
|
3036
3011
|
DOMExceptionName.InvalidStateError
|
|
3037
3012
|
);
|
|
@@ -3098,7 +3073,7 @@ var require_dom = __commonJS({
|
|
|
3098
3073
|
case DOCUMENT_NODE:
|
|
3099
3074
|
case DOCUMENT_FRAGMENT_NODE:
|
|
3100
3075
|
if (requireWellFormed && n.nodeType === DOCUMENT_NODE && n.documentElement == null) {
|
|
3101
|
-
throw new
|
|
3076
|
+
throw new DOMException("The Document has no documentElement", DOMExceptionName.InvalidStateError);
|
|
3102
3077
|
}
|
|
3103
3078
|
return { ns: namespaces };
|
|
3104
3079
|
case ATTRIBUTE_NODE:
|
|
@@ -3106,7 +3081,7 @@ var require_dom = __commonJS({
|
|
|
3106
3081
|
return null;
|
|
3107
3082
|
case TEXT_NODE:
|
|
3108
3083
|
if (requireWellFormed && g.InvalidChar.test(n.data)) {
|
|
3109
|
-
throw new
|
|
3084
|
+
throw new DOMException(
|
|
3110
3085
|
"The Text node data contains characters outside the XML Char production",
|
|
3111
3086
|
DOMExceptionName.InvalidStateError
|
|
3112
3087
|
);
|
|
@@ -3115,7 +3090,7 @@ var require_dom = __commonJS({
|
|
|
3115
3090
|
return null;
|
|
3116
3091
|
case CDATA_SECTION_NODE:
|
|
3117
3092
|
if (requireWellFormed && n.data.indexOf("]]>") !== -1) {
|
|
3118
|
-
throw new
|
|
3093
|
+
throw new DOMException('The CDATASection data contains "]]>"', DOMExceptionName.InvalidStateError);
|
|
3119
3094
|
}
|
|
3120
3095
|
if (splitCDATASections) {
|
|
3121
3096
|
buf.push(g.CDATA_START, n.data.replace(/]]>/g, "]]]]><![CDATA[>"), g.CDATA_END);
|
|
@@ -3126,13 +3101,13 @@ var require_dom = __commonJS({
|
|
|
3126
3101
|
case COMMENT_NODE:
|
|
3127
3102
|
if (requireWellFormed) {
|
|
3128
3103
|
if (g.InvalidChar.test(n.data)) {
|
|
3129
|
-
throw new
|
|
3104
|
+
throw new DOMException(
|
|
3130
3105
|
"The comment node data contains characters outside the XML Char production",
|
|
3131
3106
|
DOMExceptionName.InvalidStateError
|
|
3132
3107
|
);
|
|
3133
3108
|
}
|
|
3134
3109
|
if (n.data.indexOf("--") !== -1 || n.data[n.data.length - 1] === "-") {
|
|
3135
|
-
throw new
|
|
3110
|
+
throw new DOMException(
|
|
3136
3111
|
'The comment node data contains "--" or ends with "-"',
|
|
3137
3112
|
DOMExceptionName.InvalidStateError
|
|
3138
3113
|
);
|
|
@@ -3145,19 +3120,19 @@ var require_dom = __commonJS({
|
|
|
3145
3120
|
var sysid = n.systemId;
|
|
3146
3121
|
if (requireWellFormed) {
|
|
3147
3122
|
if (!g.Name_exact.test(n.name)) {
|
|
3148
|
-
throw new
|
|
3123
|
+
throw new DOMException(
|
|
3149
3124
|
'The doctype name "' + n.name + '" is not a valid XML Name',
|
|
3150
3125
|
DOMExceptionName.InvalidStateError
|
|
3151
3126
|
);
|
|
3152
3127
|
}
|
|
3153
3128
|
if (pubid && !g.PubidLiteral_match.test(pubid)) {
|
|
3154
|
-
throw new
|
|
3129
|
+
throw new DOMException("DocumentType publicId is not a valid PubidLiteral", DOMExceptionName.InvalidStateError);
|
|
3155
3130
|
}
|
|
3156
3131
|
if (sysid && sysid !== "." && !g.SystemLiteral_match.test(sysid)) {
|
|
3157
|
-
throw new
|
|
3132
|
+
throw new DOMException("DocumentType systemId is not a valid SystemLiteral", DOMExceptionName.InvalidStateError);
|
|
3158
3133
|
}
|
|
3159
3134
|
if (n.internalSubset && n.internalSubset.indexOf("]>") !== -1) {
|
|
3160
|
-
throw new
|
|
3135
|
+
throw new DOMException('DocumentType internalSubset contains "]>"', DOMExceptionName.InvalidStateError);
|
|
3161
3136
|
}
|
|
3162
3137
|
}
|
|
3163
3138
|
buf.push(g.DOCTYPE_DECL_START, " ", n.name);
|
|
@@ -3177,26 +3152,26 @@ var require_dom = __commonJS({
|
|
|
3177
3152
|
case PROCESSING_INSTRUCTION_NODE:
|
|
3178
3153
|
if (requireWellFormed) {
|
|
3179
3154
|
if (!g.NCName_exact.test(n.target) || n.target.toLowerCase() === "xml") {
|
|
3180
|
-
throw new
|
|
3155
|
+
throw new DOMException(
|
|
3181
3156
|
'The processing instruction target "' + n.target + '" is not a valid XML NCName or is reserved',
|
|
3182
3157
|
DOMExceptionName.InvalidStateError
|
|
3183
3158
|
);
|
|
3184
3159
|
}
|
|
3185
3160
|
if (g.InvalidChar.test(n.data)) {
|
|
3186
|
-
throw new
|
|
3161
|
+
throw new DOMException(
|
|
3187
3162
|
"The ProcessingInstruction data contains characters outside the XML Char production",
|
|
3188
3163
|
DOMExceptionName.InvalidStateError
|
|
3189
3164
|
);
|
|
3190
3165
|
}
|
|
3191
3166
|
if (n.data.indexOf("?>") !== -1) {
|
|
3192
|
-
throw new
|
|
3167
|
+
throw new DOMException('The ProcessingInstruction data contains "?>"', DOMExceptionName.InvalidStateError);
|
|
3193
3168
|
}
|
|
3194
3169
|
}
|
|
3195
3170
|
buf.push("<?", n.target, " ", n.data, "?>");
|
|
3196
3171
|
return null;
|
|
3197
3172
|
case ENTITY_REFERENCE_NODE:
|
|
3198
3173
|
if (requireWellFormed && !g.Name_exact.test(n.nodeName)) {
|
|
3199
|
-
throw new
|
|
3174
|
+
throw new DOMException(
|
|
3200
3175
|
'The entity reference name "' + n.nodeName + '" is not a valid XML Name',
|
|
3201
3176
|
DOMExceptionName.InvalidStateError
|
|
3202
3177
|
);
|
|
@@ -5563,7 +5538,7 @@ var require_sax = __commonJS({
|
|
|
5563
5538
|
var hasOwn = conventions.hasOwn;
|
|
5564
5539
|
var NAMESPACE = conventions.NAMESPACE;
|
|
5565
5540
|
var ParseError = errors.ParseError;
|
|
5566
|
-
var
|
|
5541
|
+
var DOMException = errors.DOMException;
|
|
5567
5542
|
var S_TAG = 0;
|
|
5568
5543
|
var S_ATTR = 1;
|
|
5569
5544
|
var S_ATTR_SPACE = 2;
|
|
@@ -5772,7 +5747,7 @@ var require_sax = __commonJS({
|
|
|
5772
5747
|
} catch (e) {
|
|
5773
5748
|
if (e instanceof ParseError) {
|
|
5774
5749
|
throw e;
|
|
5775
|
-
} else if (e instanceof
|
|
5750
|
+
} else if (e instanceof DOMException) {
|
|
5776
5751
|
return errorHandler.fatalError("Error constructing the DOM: " + e.name + ": " + e.message, e);
|
|
5777
5752
|
}
|
|
5778
5753
|
errorHandler.error("element parse error: " + e);
|
|
@@ -6378,22 +6353,22 @@ var require_dom_parser = __commonJS({
|
|
|
6378
6353
|
return input.replace(/\r[\n\u0085]/g, "\n").replace(/[\r\u0085\u2028\u2029]/g, "\n");
|
|
6379
6354
|
}
|
|
6380
6355
|
__name(normalizeLineEndings, "normalizeLineEndings");
|
|
6381
|
-
function DOMParser2(
|
|
6382
|
-
|
|
6383
|
-
if (
|
|
6384
|
-
|
|
6385
|
-
}
|
|
6386
|
-
this.assign =
|
|
6387
|
-
this.domHandler =
|
|
6388
|
-
this.onError =
|
|
6389
|
-
if (
|
|
6356
|
+
function DOMParser2(options) {
|
|
6357
|
+
options = options || {};
|
|
6358
|
+
if (options.locator === void 0) {
|
|
6359
|
+
options.locator = true;
|
|
6360
|
+
}
|
|
6361
|
+
this.assign = options.assign || conventions.assign;
|
|
6362
|
+
this.domHandler = options.domHandler || DOMHandler;
|
|
6363
|
+
this.onError = options.onError || options.errorHandler;
|
|
6364
|
+
if (options.errorHandler && typeof options.errorHandler !== "function") {
|
|
6390
6365
|
throw new TypeError("errorHandler object is no longer supported, switch to onError!");
|
|
6391
|
-
} else if (
|
|
6392
|
-
|
|
6366
|
+
} else if (options.errorHandler) {
|
|
6367
|
+
options.errorHandler("warning", "The `errorHandler` option has been deprecated, use `onError` instead!", this);
|
|
6393
6368
|
}
|
|
6394
|
-
this.normalizeLineEndings =
|
|
6395
|
-
this.locator = !!
|
|
6396
|
-
this.xmlns = this.assign(/* @__PURE__ */ Object.create(null),
|
|
6369
|
+
this.normalizeLineEndings = options.normalizeLineEndings || normalizeLineEndings;
|
|
6370
|
+
this.locator = !!options.locator;
|
|
6371
|
+
this.xmlns = this.assign(/* @__PURE__ */ Object.create(null), options.xmlns);
|
|
6397
6372
|
}
|
|
6398
6373
|
__name(DOMParser2, "DOMParser");
|
|
6399
6374
|
DOMParser2.prototype.parseFromString = function(source, mimeType) {
|
|
@@ -6433,8 +6408,8 @@ var require_dom_parser = __commonJS({
|
|
|
6433
6408
|
}
|
|
6434
6409
|
return domBuilder.doc;
|
|
6435
6410
|
};
|
|
6436
|
-
function DOMHandler(
|
|
6437
|
-
var opt =
|
|
6411
|
+
function DOMHandler(options) {
|
|
6412
|
+
var opt = options || {};
|
|
6438
6413
|
this.mimeType = opt.mimeType || MIME_TYPE.XML_APPLICATION;
|
|
6439
6414
|
this.defaultNamespace = opt.defaultNamespace || null;
|
|
6440
6415
|
this.cdata = false;
|
|
@@ -12930,7 +12905,7 @@ var require_bom_handling = __commonJS({
|
|
|
12930
12905
|
"use strict";
|
|
12931
12906
|
var BOMChar = "\uFEFF";
|
|
12932
12907
|
exports.PrependBOM = PrependBOMWrapper;
|
|
12933
|
-
function PrependBOMWrapper(encoder,
|
|
12908
|
+
function PrependBOMWrapper(encoder, options) {
|
|
12934
12909
|
this.encoder = encoder;
|
|
12935
12910
|
this.addBOM = true;
|
|
12936
12911
|
}
|
|
@@ -12946,10 +12921,10 @@ var require_bom_handling = __commonJS({
|
|
|
12946
12921
|
return this.encoder.end();
|
|
12947
12922
|
};
|
|
12948
12923
|
exports.StripBOM = StripBOMWrapper;
|
|
12949
|
-
function StripBOMWrapper(decoder3,
|
|
12924
|
+
function StripBOMWrapper(decoder3, options) {
|
|
12950
12925
|
this.decoder = decoder3;
|
|
12951
12926
|
this.pass = false;
|
|
12952
|
-
this.options =
|
|
12927
|
+
this.options = options || {};
|
|
12953
12928
|
}
|
|
12954
12929
|
__name(StripBOMWrapper, "StripBOMWrapper");
|
|
12955
12930
|
StripBOMWrapper.prototype.write = function(buf) {
|
|
@@ -13027,7 +13002,7 @@ var require_internal = __commonJS({
|
|
|
13027
13002
|
InternalCodec.prototype.encoder = InternalEncoder;
|
|
13028
13003
|
InternalCodec.prototype.decoder = InternalDecoder;
|
|
13029
13004
|
var StringDecoder = __require("string_decoder").StringDecoder;
|
|
13030
|
-
function InternalDecoder(
|
|
13005
|
+
function InternalDecoder(options, codec) {
|
|
13031
13006
|
this.decoder = new StringDecoder(codec.enc);
|
|
13032
13007
|
}
|
|
13033
13008
|
__name(InternalDecoder, "InternalDecoder");
|
|
@@ -13040,7 +13015,7 @@ var require_internal = __commonJS({
|
|
|
13040
13015
|
InternalDecoder.prototype.end = function() {
|
|
13041
13016
|
return this.decoder.end();
|
|
13042
13017
|
};
|
|
13043
|
-
function InternalEncoder(
|
|
13018
|
+
function InternalEncoder(options, codec) {
|
|
13044
13019
|
this.enc = codec.enc;
|
|
13045
13020
|
}
|
|
13046
13021
|
__name(InternalEncoder, "InternalEncoder");
|
|
@@ -13049,7 +13024,7 @@ var require_internal = __commonJS({
|
|
|
13049
13024
|
};
|
|
13050
13025
|
InternalEncoder.prototype.end = function() {
|
|
13051
13026
|
};
|
|
13052
|
-
function InternalEncoderBase64(
|
|
13027
|
+
function InternalEncoderBase64(options, codec) {
|
|
13053
13028
|
this.prevStr = "";
|
|
13054
13029
|
}
|
|
13055
13030
|
__name(InternalEncoderBase64, "InternalEncoderBase64");
|
|
@@ -13063,7 +13038,7 @@ var require_internal = __commonJS({
|
|
|
13063
13038
|
InternalEncoderBase64.prototype.end = function() {
|
|
13064
13039
|
return Buffer2.from(this.prevStr, "base64");
|
|
13065
13040
|
};
|
|
13066
|
-
function InternalEncoderCesu8(
|
|
13041
|
+
function InternalEncoderCesu8(options, codec) {
|
|
13067
13042
|
}
|
|
13068
13043
|
__name(InternalEncoderCesu8, "InternalEncoderCesu8");
|
|
13069
13044
|
InternalEncoderCesu8.prototype.write = function(str) {
|
|
@@ -13086,7 +13061,7 @@ var require_internal = __commonJS({
|
|
|
13086
13061
|
};
|
|
13087
13062
|
InternalEncoderCesu8.prototype.end = function() {
|
|
13088
13063
|
};
|
|
13089
|
-
function InternalDecoderCesu8(
|
|
13064
|
+
function InternalDecoderCesu8(options, codec) {
|
|
13090
13065
|
this.acc = 0;
|
|
13091
13066
|
this.contBytes = 0;
|
|
13092
13067
|
this.accBytes = 0;
|
|
@@ -13149,7 +13124,7 @@ var require_internal = __commonJS({
|
|
|
13149
13124
|
}
|
|
13150
13125
|
return res;
|
|
13151
13126
|
};
|
|
13152
|
-
function InternalEncoderUtf8(
|
|
13127
|
+
function InternalEncoderUtf8(options, codec) {
|
|
13153
13128
|
this.highSurrogate = "";
|
|
13154
13129
|
}
|
|
13155
13130
|
__name(InternalEncoderUtf8, "InternalEncoderUtf8");
|
|
@@ -13195,7 +13170,7 @@ var require_utf32 = __commonJS({
|
|
|
13195
13170
|
exports.ucs4be = "utf32be";
|
|
13196
13171
|
Utf32Codec.prototype.encoder = Utf32Encoder;
|
|
13197
13172
|
Utf32Codec.prototype.decoder = Utf32Decoder;
|
|
13198
|
-
function Utf32Encoder(
|
|
13173
|
+
function Utf32Encoder(options, codec) {
|
|
13199
13174
|
this.isLE = codec.isLE;
|
|
13200
13175
|
this.highSurrogate = 0;
|
|
13201
13176
|
}
|
|
@@ -13247,7 +13222,7 @@ var require_utf32 = __commonJS({
|
|
|
13247
13222
|
this.highSurrogate = 0;
|
|
13248
13223
|
return buf;
|
|
13249
13224
|
};
|
|
13250
|
-
function Utf32Decoder(
|
|
13225
|
+
function Utf32Decoder(options, codec) {
|
|
13251
13226
|
this.isLE = codec.isLE;
|
|
13252
13227
|
this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);
|
|
13253
13228
|
this.overflow = [];
|
|
@@ -13316,18 +13291,18 @@ var require_utf32 = __commonJS({
|
|
|
13316
13291
|
};
|
|
13317
13292
|
exports.utf32 = Utf32AutoCodec;
|
|
13318
13293
|
exports.ucs4 = "utf32";
|
|
13319
|
-
function Utf32AutoCodec(
|
|
13294
|
+
function Utf32AutoCodec(options, iconv3) {
|
|
13320
13295
|
this.iconv = iconv3;
|
|
13321
13296
|
}
|
|
13322
13297
|
__name(Utf32AutoCodec, "Utf32AutoCodec");
|
|
13323
13298
|
Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder;
|
|
13324
13299
|
Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
|
|
13325
|
-
function Utf32AutoEncoder(
|
|
13326
|
-
|
|
13327
|
-
if (
|
|
13328
|
-
|
|
13300
|
+
function Utf32AutoEncoder(options, codec) {
|
|
13301
|
+
options = options || {};
|
|
13302
|
+
if (options.addBOM === void 0) {
|
|
13303
|
+
options.addBOM = true;
|
|
13329
13304
|
}
|
|
13330
|
-
this.encoder = codec.iconv.getEncoder(
|
|
13305
|
+
this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options);
|
|
13331
13306
|
}
|
|
13332
13307
|
__name(Utf32AutoEncoder, "Utf32AutoEncoder");
|
|
13333
13308
|
Utf32AutoEncoder.prototype.write = function(str) {
|
|
@@ -13336,11 +13311,11 @@ var require_utf32 = __commonJS({
|
|
|
13336
13311
|
Utf32AutoEncoder.prototype.end = function() {
|
|
13337
13312
|
return this.encoder.end();
|
|
13338
13313
|
};
|
|
13339
|
-
function Utf32AutoDecoder(
|
|
13314
|
+
function Utf32AutoDecoder(options, codec) {
|
|
13340
13315
|
this.decoder = null;
|
|
13341
13316
|
this.initialBufs = [];
|
|
13342
13317
|
this.initialBufsLen = 0;
|
|
13343
|
-
this.options =
|
|
13318
|
+
this.options = options || {};
|
|
13344
13319
|
this.iconv = codec.iconv;
|
|
13345
13320
|
}
|
|
13346
13321
|
__name(Utf32AutoDecoder, "Utf32AutoDecoder");
|
|
@@ -13480,12 +13455,12 @@ var require_utf16 = __commonJS({
|
|
|
13480
13455
|
__name(Utf16Codec, "Utf16Codec");
|
|
13481
13456
|
Utf16Codec.prototype.encoder = Utf16Encoder;
|
|
13482
13457
|
Utf16Codec.prototype.decoder = Utf16Decoder;
|
|
13483
|
-
function Utf16Encoder(
|
|
13484
|
-
|
|
13485
|
-
if (
|
|
13486
|
-
|
|
13458
|
+
function Utf16Encoder(options, codec) {
|
|
13459
|
+
options = options || {};
|
|
13460
|
+
if (options.addBOM === void 0) {
|
|
13461
|
+
options.addBOM = true;
|
|
13487
13462
|
}
|
|
13488
|
-
this.encoder = codec.iconv.getEncoder("utf-16le",
|
|
13463
|
+
this.encoder = codec.iconv.getEncoder("utf-16le", options);
|
|
13489
13464
|
}
|
|
13490
13465
|
__name(Utf16Encoder, "Utf16Encoder");
|
|
13491
13466
|
Utf16Encoder.prototype.write = function(str) {
|
|
@@ -13494,11 +13469,11 @@ var require_utf16 = __commonJS({
|
|
|
13494
13469
|
Utf16Encoder.prototype.end = function() {
|
|
13495
13470
|
return this.encoder.end();
|
|
13496
13471
|
};
|
|
13497
|
-
function Utf16Decoder(
|
|
13472
|
+
function Utf16Decoder(options, codec) {
|
|
13498
13473
|
this.decoder = null;
|
|
13499
13474
|
this.initialBufs = [];
|
|
13500
13475
|
this.initialBufsLen = 0;
|
|
13501
|
-
this.options =
|
|
13476
|
+
this.options = options || {};
|
|
13502
13477
|
this.iconv = codec.iconv;
|
|
13503
13478
|
}
|
|
13504
13479
|
__name(Utf16Decoder, "Utf16Decoder");
|
|
@@ -13585,7 +13560,7 @@ var require_utf7 = __commonJS({
|
|
|
13585
13560
|
Utf7Codec.prototype.decoder = Utf7Decoder;
|
|
13586
13561
|
Utf7Codec.prototype.bomAware = true;
|
|
13587
13562
|
var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
|
|
13588
|
-
function Utf7Encoder(
|
|
13563
|
+
function Utf7Encoder(options, codec) {
|
|
13589
13564
|
this.iconv = codec.iconv;
|
|
13590
13565
|
}
|
|
13591
13566
|
__name(Utf7Encoder, "Utf7Encoder");
|
|
@@ -13596,7 +13571,7 @@ var require_utf7 = __commonJS({
|
|
|
13596
13571
|
};
|
|
13597
13572
|
Utf7Encoder.prototype.end = function() {
|
|
13598
13573
|
};
|
|
13599
|
-
function Utf7Decoder(
|
|
13574
|
+
function Utf7Decoder(options, codec) {
|
|
13600
13575
|
this.iconv = codec.iconv;
|
|
13601
13576
|
this.inBase64 = false;
|
|
13602
13577
|
this.base64Accum = "";
|
|
@@ -13670,7 +13645,7 @@ var require_utf7 = __commonJS({
|
|
|
13670
13645
|
Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
|
|
13671
13646
|
Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
|
|
13672
13647
|
Utf7IMAPCodec.prototype.bomAware = true;
|
|
13673
|
-
function Utf7IMAPEncoder(
|
|
13648
|
+
function Utf7IMAPEncoder(options, codec) {
|
|
13674
13649
|
this.iconv = codec.iconv;
|
|
13675
13650
|
this.inBase64 = false;
|
|
13676
13651
|
this.base64Accum = Buffer2.alloc(6);
|
|
@@ -13732,7 +13707,7 @@ var require_utf7 = __commonJS({
|
|
|
13732
13707
|
}
|
|
13733
13708
|
return buf.slice(0, bufIdx);
|
|
13734
13709
|
};
|
|
13735
|
-
function Utf7IMAPDecoder(
|
|
13710
|
+
function Utf7IMAPDecoder(options, codec) {
|
|
13736
13711
|
this.iconv = codec.iconv;
|
|
13737
13712
|
this.inBase64 = false;
|
|
13738
13713
|
this.base64Accum = "";
|
|
@@ -13824,7 +13799,7 @@ var require_sbcs_codec = __commonJS({
|
|
|
13824
13799
|
__name(SBCSCodec, "SBCSCodec");
|
|
13825
13800
|
SBCSCodec.prototype.encoder = SBCSEncoder;
|
|
13826
13801
|
SBCSCodec.prototype.decoder = SBCSDecoder;
|
|
13827
|
-
function SBCSEncoder(
|
|
13802
|
+
function SBCSEncoder(options, codec) {
|
|
13828
13803
|
this.encodeBuf = codec.encodeBuf;
|
|
13829
13804
|
}
|
|
13830
13805
|
__name(SBCSEncoder, "SBCSEncoder");
|
|
@@ -13837,7 +13812,7 @@ var require_sbcs_codec = __commonJS({
|
|
|
13837
13812
|
};
|
|
13838
13813
|
SBCSEncoder.prototype.end = function() {
|
|
13839
13814
|
};
|
|
13840
|
-
function SBCSDecoder(
|
|
13815
|
+
function SBCSDecoder(options, codec) {
|
|
13841
13816
|
this.decodeBuf = codec.decodeBuf;
|
|
13842
13817
|
}
|
|
13843
13818
|
__name(SBCSDecoder, "SBCSDecoder");
|
|
@@ -14701,7 +14676,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
14701
14676
|
}
|
|
14702
14677
|
return hasValues;
|
|
14703
14678
|
};
|
|
14704
|
-
function DBCSEncoder(
|
|
14679
|
+
function DBCSEncoder(options, codec) {
|
|
14705
14680
|
this.leadSurrogate = -1;
|
|
14706
14681
|
this.seqObj = void 0;
|
|
14707
14682
|
this.encodeTable = codec.encodeTable;
|
|
@@ -14837,7 +14812,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
14837
14812
|
return newBuf.slice(0, j);
|
|
14838
14813
|
};
|
|
14839
14814
|
DBCSEncoder.prototype.findIdx = findIdx;
|
|
14840
|
-
function DBCSDecoder(
|
|
14815
|
+
function DBCSDecoder(options, codec) {
|
|
14841
14816
|
this.nodeIdx = 0;
|
|
14842
14817
|
this.prevBytes = [];
|
|
14843
14818
|
this.decodeTables = codec.decodeTables;
|
|
@@ -16460,11 +16435,11 @@ var require_streams = __commonJS({
|
|
|
16460
16435
|
var Buffer2 = require_safer().Buffer;
|
|
16461
16436
|
module.exports = function(streamModule) {
|
|
16462
16437
|
var Transform = streamModule.Transform;
|
|
16463
|
-
function IconvLiteEncoderStream(conv,
|
|
16438
|
+
function IconvLiteEncoderStream(conv, options) {
|
|
16464
16439
|
this.conv = conv;
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
Transform.call(this,
|
|
16440
|
+
options = options || {};
|
|
16441
|
+
options.decodeStrings = false;
|
|
16442
|
+
Transform.call(this, options);
|
|
16468
16443
|
}
|
|
16469
16444
|
__name(IconvLiteEncoderStream, "IconvLiteEncoderStream");
|
|
16470
16445
|
IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
|
|
@@ -16502,11 +16477,11 @@ var require_streams = __commonJS({
|
|
|
16502
16477
|
});
|
|
16503
16478
|
return this;
|
|
16504
16479
|
};
|
|
16505
|
-
function IconvLiteDecoderStream(conv,
|
|
16480
|
+
function IconvLiteDecoderStream(conv, options) {
|
|
16506
16481
|
this.conv = conv;
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
Transform.call(this,
|
|
16482
|
+
options = options || {};
|
|
16483
|
+
options.encoding = this.encoding = "utf8";
|
|
16484
|
+
Transform.call(this, options);
|
|
16510
16485
|
}
|
|
16511
16486
|
__name(IconvLiteDecoderStream, "IconvLiteDecoderStream");
|
|
16512
16487
|
IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
|
|
@@ -16562,14 +16537,14 @@ var require_lib3 = __commonJS({
|
|
|
16562
16537
|
module.exports.encodings = null;
|
|
16563
16538
|
module.exports.defaultCharUnicode = "\uFFFD";
|
|
16564
16539
|
module.exports.defaultCharSingleByte = "?";
|
|
16565
|
-
module.exports.encode = /* @__PURE__ */ __name(function encode(str, encoding,
|
|
16540
|
+
module.exports.encode = /* @__PURE__ */ __name(function encode(str, encoding, options) {
|
|
16566
16541
|
str = "" + (str || "");
|
|
16567
|
-
var encoder = module.exports.getEncoder(encoding,
|
|
16542
|
+
var encoder = module.exports.getEncoder(encoding, options);
|
|
16568
16543
|
var res = encoder.write(str);
|
|
16569
16544
|
var trail = encoder.end();
|
|
16570
16545
|
return trail && trail.length > 0 ? Buffer2.concat([res, trail]) : res;
|
|
16571
16546
|
}, "encode");
|
|
16572
|
-
module.exports.decode = /* @__PURE__ */ __name(function decode2(buf, encoding,
|
|
16547
|
+
module.exports.decode = /* @__PURE__ */ __name(function decode2(buf, encoding, options) {
|
|
16573
16548
|
if (typeof buf === "string") {
|
|
16574
16549
|
if (!module.exports.skipDecodeWarning) {
|
|
16575
16550
|
console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
|
|
@@ -16577,7 +16552,7 @@ var require_lib3 = __commonJS({
|
|
|
16577
16552
|
}
|
|
16578
16553
|
buf = Buffer2.from("" + (buf || ""), "binary");
|
|
16579
16554
|
}
|
|
16580
|
-
var decoder3 = module.exports.getDecoder(encoding,
|
|
16555
|
+
var decoder3 = module.exports.getDecoder(encoding, options);
|
|
16581
16556
|
var res = decoder3.write(buf);
|
|
16582
16557
|
var trail = decoder3.end();
|
|
16583
16558
|
return trail ? res + trail : res;
|
|
@@ -16635,19 +16610,19 @@ var require_lib3 = __commonJS({
|
|
|
16635
16610
|
module.exports._canonicalizeEncoding = function(encoding) {
|
|
16636
16611
|
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
16637
16612
|
};
|
|
16638
|
-
module.exports.getEncoder = /* @__PURE__ */ __name(function getEncoder(encoding,
|
|
16613
|
+
module.exports.getEncoder = /* @__PURE__ */ __name(function getEncoder(encoding, options) {
|
|
16639
16614
|
var codec = module.exports.getCodec(encoding);
|
|
16640
|
-
var encoder = new codec.encoder(
|
|
16641
|
-
if (codec.bomAware &&
|
|
16642
|
-
encoder = new bomHandling.PrependBOM(encoder,
|
|
16615
|
+
var encoder = new codec.encoder(options, codec);
|
|
16616
|
+
if (codec.bomAware && options && options.addBOM) {
|
|
16617
|
+
encoder = new bomHandling.PrependBOM(encoder, options);
|
|
16643
16618
|
}
|
|
16644
16619
|
return encoder;
|
|
16645
16620
|
}, "getEncoder");
|
|
16646
|
-
module.exports.getDecoder = /* @__PURE__ */ __name(function getDecoder(encoding,
|
|
16621
|
+
module.exports.getDecoder = /* @__PURE__ */ __name(function getDecoder(encoding, options) {
|
|
16647
16622
|
var codec = module.exports.getCodec(encoding);
|
|
16648
|
-
var decoder3 = new codec.decoder(
|
|
16649
|
-
if (codec.bomAware && !(
|
|
16650
|
-
decoder3 = new bomHandling.StripBOM(decoder3,
|
|
16623
|
+
var decoder3 = new codec.decoder(options, codec);
|
|
16624
|
+
if (codec.bomAware && !(options && options.stripBOM === false)) {
|
|
16625
|
+
decoder3 = new bomHandling.StripBOM(decoder3, options);
|
|
16651
16626
|
}
|
|
16652
16627
|
return decoder3;
|
|
16653
16628
|
}, "getDecoder");
|
|
@@ -16658,11 +16633,11 @@ var require_lib3 = __commonJS({
|
|
|
16658
16633
|
var streams = require_streams()(streamModule2);
|
|
16659
16634
|
module.exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
16660
16635
|
module.exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
16661
|
-
module.exports.encodeStream = /* @__PURE__ */ __name(function encodeStream(encoding,
|
|
16662
|
-
return new module.exports.IconvLiteEncoderStream(module.exports.getEncoder(encoding,
|
|
16636
|
+
module.exports.encodeStream = /* @__PURE__ */ __name(function encodeStream(encoding, options) {
|
|
16637
|
+
return new module.exports.IconvLiteEncoderStream(module.exports.getEncoder(encoding, options), options);
|
|
16663
16638
|
}, "encodeStream");
|
|
16664
|
-
module.exports.decodeStream = /* @__PURE__ */ __name(function decodeStream(encoding,
|
|
16665
|
-
return new module.exports.IconvLiteDecoderStream(module.exports.getDecoder(encoding,
|
|
16639
|
+
module.exports.decodeStream = /* @__PURE__ */ __name(function decodeStream(encoding, options) {
|
|
16640
|
+
return new module.exports.IconvLiteDecoderStream(module.exports.getDecoder(encoding, options), options);
|
|
16666
16641
|
}, "decodeStream");
|
|
16667
16642
|
module.exports.supportsStreams = true;
|
|
16668
16643
|
}, "enableStreamingAPI");
|
|
@@ -16684,20 +16659,20 @@ var require_lib3 = __commonJS({
|
|
|
16684
16659
|
}
|
|
16685
16660
|
});
|
|
16686
16661
|
|
|
16687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
16688
16663
|
import { extname as extname2 } from "node:path";
|
|
16689
16664
|
|
|
16690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
16691
16666
|
import { readFileSync } from "node:fs";
|
|
16692
16667
|
import { dirname, extname, join } from "node:path";
|
|
16693
16668
|
import { fileURLToPath } from "node:url";
|
|
16694
16669
|
|
|
16695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16696
16671
|
import { setImmediate as tick } from "node:timers/promises";
|
|
16697
16672
|
import { crc32 } from "node:zlib";
|
|
16698
16673
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
16699
16674
|
|
|
16700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
16701
16676
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
16702
16677
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
16703
16678
|
var SAMPLE = 65536;
|
|
@@ -16799,7 +16774,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
|
|
|
16799
16774
|
return result.text;
|
|
16800
16775
|
}, "decodeXml");
|
|
16801
16776
|
|
|
16802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16803
16778
|
var MAX_PART = 10 * 1024 * 1024;
|
|
16804
16779
|
var MAX_ENTRIES = 1e3;
|
|
16805
16780
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -17014,7 +16989,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
17014
16989
|
return found;
|
|
17015
16990
|
}, "elements");
|
|
17016
16991
|
|
|
17017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
17018
16993
|
var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
|
|
17019
16994
|
var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
|
|
17020
16995
|
var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
|
|
@@ -17072,7 +17047,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
|
|
|
17072
17047
|
}
|
|
17073
17048
|
}, "derived");
|
|
17074
17049
|
|
|
17075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
17076
17051
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
17077
17052
|
var image = {
|
|
17078
17053
|
id: "image",
|
|
@@ -17081,7 +17056,7 @@ var image = {
|
|
|
17081
17056
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
17082
17057
|
};
|
|
17083
17058
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
17085
17060
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
17086
17061
|
var doc = {
|
|
17087
17062
|
id: "doc",
|
|
@@ -17093,7 +17068,7 @@ var doc = {
|
|
|
17093
17068
|
}), "read")
|
|
17094
17069
|
};
|
|
17095
17070
|
|
|
17096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
17097
17072
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
17098
17073
|
var docx = {
|
|
17099
17074
|
id: "docx",
|
|
@@ -17106,10 +17081,10 @@ var docx = {
|
|
|
17106
17081
|
}), "read")
|
|
17107
17082
|
};
|
|
17108
17083
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17110
17085
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
17111
17086
|
|
|
17112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
17113
17088
|
var NAMED = {
|
|
17114
17089
|
amp: "&",
|
|
17115
17090
|
lt: "<",
|
|
@@ -17161,7 +17136,7 @@ var decodeEntities = /* @__PURE__ */ __name((text) => text.replace(/&(#x[0-9a-f]
|
|
|
17161
17136
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
17162
17137
|
}), "decodeEntities");
|
|
17163
17138
|
|
|
17164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17165
17140
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
17166
17141
|
"fonttbl",
|
|
17167
17142
|
"colortbl",
|
|
@@ -17327,7 +17302,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
17327
17302
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
17328
17303
|
}, "htmlText");
|
|
17329
17304
|
|
|
17330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
17331
17306
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
17332
17307
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
17333
17308
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -17383,7 +17358,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
17383
17358
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
17384
17359
|
}, "markdownSections");
|
|
17385
17360
|
|
|
17386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
17387
17362
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
17388
17363
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
17389
17364
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -17454,10 +17429,10 @@ var html = {
|
|
|
17454
17429
|
}, "read")
|
|
17455
17430
|
};
|
|
17456
17431
|
|
|
17457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17458
17433
|
import { posix } from "node:path";
|
|
17459
17434
|
|
|
17460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
17461
17436
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
17462
17437
|
let name = "";
|
|
17463
17438
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -17512,7 +17487,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
17512
17487
|
return { text: parts.join("").trim(), truncated: false };
|
|
17513
17488
|
}, "sheetText");
|
|
17514
17489
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17516
17491
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
17517
17492
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
17518
17493
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -17824,14 +17799,14 @@ var readSlides = /* @__PURE__ */ __name((archive, output) => {
|
|
|
17824
17799
|
const document = xmlPart(archive, path);
|
|
17825
17800
|
const namespace = rootIs(document, "presentation", [SLIDE, "http://purl.oclc.org/ooxml/presentationml/main"]);
|
|
17826
17801
|
const rels = relationships(archive, path);
|
|
17827
|
-
let
|
|
17802
|
+
let number = 0;
|
|
17828
17803
|
for (const slide of elements(document, "sldId", namespace)) {
|
|
17829
17804
|
const relationship = rels.get(relationId(slide));
|
|
17830
17805
|
if (!relationship?.type.endsWith("/slide"))
|
|
17831
17806
|
throw new Error("missing_slide");
|
|
17832
17807
|
const content = xmlPart(archive, relationship.path);
|
|
17833
17808
|
rootIs(content, "sld", [namespace]);
|
|
17834
|
-
output.section(`Slide ${++
|
|
17809
|
+
output.section(`Slide ${++number}`);
|
|
17835
17810
|
const drawing = namespace === SLIDE ? DRAW : "http://purl.oclc.org/ooxml/drawingml/main";
|
|
17836
17811
|
for (const paragraph of elements(content, "p", drawing))
|
|
17837
17812
|
output.add(`${drawingText(paragraph, drawing)}
|
|
@@ -17854,7 +17829,7 @@ var readBook = /* @__PURE__ */ __name((archive, output) => {
|
|
|
17854
17829
|
throw new Error("duplicate_chapter");
|
|
17855
17830
|
manifest.set(id, { path: target(path, required(attribute(item, "href"))), type: attribute(item, "media-type") });
|
|
17856
17831
|
}
|
|
17857
|
-
let
|
|
17832
|
+
let number = 0;
|
|
17858
17833
|
const chapters = elements(book, "itemref", OPF);
|
|
17859
17834
|
if (!chapters.length)
|
|
17860
17835
|
throw new Error("missing_chapters");
|
|
@@ -17866,7 +17841,7 @@ var readBook = /* @__PURE__ */ __name((archive, output) => {
|
|
|
17866
17841
|
const bodies = elements(document, "body", XHTML);
|
|
17867
17842
|
if (bodies.length !== 1)
|
|
17868
17843
|
throw new Error("missing_chapter");
|
|
17869
|
-
output.section(`Chapter ${++
|
|
17844
|
+
output.section(`Chapter ${++number}`);
|
|
17870
17845
|
const visit = /* @__PURE__ */ __name((node) => {
|
|
17871
17846
|
if (node.nodeType === 3 || node.nodeType === 4) {
|
|
17872
17847
|
output.add(node.nodeValue ?? "");
|
|
@@ -17927,7 +17902,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
|
|
|
17927
17902
|
}
|
|
17928
17903
|
}, "readDocument");
|
|
17929
17904
|
|
|
17930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
17931
17906
|
var office = {
|
|
17932
17907
|
id: "office",
|
|
17933
17908
|
version: documentExtractor("odt"),
|
|
@@ -17938,7 +17913,7 @@ var office = {
|
|
|
17938
17913
|
}, "read")
|
|
17939
17914
|
};
|
|
17940
17915
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
17942
17917
|
var pdf = {
|
|
17943
17918
|
id: "pdf",
|
|
17944
17919
|
version: "unpdf",
|
|
@@ -18005,7 +17980,7 @@ var pdf = {
|
|
|
18005
17980
|
}), "read")
|
|
18006
17981
|
};
|
|
18007
17982
|
|
|
18008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
18009
17984
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
18010
17985
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
18011
17986
|
var readPlain = /* @__PURE__ */ __name((bytes) => {
|
|
@@ -18025,7 +18000,7 @@ var plain = {
|
|
|
18025
18000
|
read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
|
|
18026
18001
|
};
|
|
18027
18002
|
|
|
18028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
18029
18004
|
var rtf = {
|
|
18030
18005
|
id: "rtf",
|
|
18031
18006
|
version: "v1",
|
|
@@ -18033,10 +18008,10 @@ var rtf = {
|
|
|
18033
18008
|
read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
|
|
18034
18009
|
};
|
|
18035
18010
|
|
|
18036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18037
18012
|
import { basename } from "node:path";
|
|
18038
18013
|
|
|
18039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
18040
18015
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
18041
18016
|
const cells = [];
|
|
18042
18017
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -18074,7 +18049,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
18074
18049
|
return { cells, truncated };
|
|
18075
18050
|
}, "delimitedSpans");
|
|
18076
18051
|
|
|
18077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18078
18053
|
var DELIMITED = {
|
|
18079
18054
|
".csv": ",",
|
|
18080
18055
|
".tsv": " ",
|
|
@@ -18113,7 +18088,7 @@ var sheets = {
|
|
|
18113
18088
|
}, "read")
|
|
18114
18089
|
};
|
|
18115
18090
|
|
|
18116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
18117
18092
|
var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
18118
18093
|
var HEAD_BYTES = 1024;
|
|
18119
18094
|
var readers = [...BUILT_INS];
|
|
@@ -18123,7 +18098,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
|
|
|
18123
18098
|
return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
|
|
18124
18099
|
}, "readWithRegistry");
|
|
18125
18100
|
|
|
18126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
18127
18102
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
18128
18103
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
18129
18104
|
var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
|
|
@@ -18161,203 +18136,6 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
|
|
|
18161
18136
|
}
|
|
18162
18137
|
})), "engineStates");
|
|
18163
18138
|
|
|
18164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18165
|
-
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18166
|
-
const controller = new AbortController();
|
|
18167
|
-
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
18168
|
-
timer.unref();
|
|
18169
|
-
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
18170
|
-
}, "timeLimit");
|
|
18171
|
-
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
18172
|
-
const limit = timeLimit(ms);
|
|
18173
|
-
try {
|
|
18174
|
-
return await run2(limit.signal);
|
|
18175
|
-
} finally {
|
|
18176
|
-
limit.clear();
|
|
18177
|
-
}
|
|
18178
|
-
}, "withTimeLimit");
|
|
18179
|
-
|
|
18180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18181
|
-
var options = strictObject({
|
|
18182
|
-
temperature: range(0, 2),
|
|
18183
|
-
top_p: range(0, 1),
|
|
18184
|
-
presence_penalty: range(-2, 2),
|
|
18185
|
-
frequency_penalty: range(-2, 2),
|
|
18186
|
-
seed: optional(pipe(number(), integer())),
|
|
18187
|
-
stop: optional(union([string(), array(string())])),
|
|
18188
|
-
response_format: optional(strictObject({ type: picklist(["text", "json_object"]) }))
|
|
18189
|
-
});
|
|
18190
|
-
var openai = {
|
|
18191
|
-
images: true,
|
|
18192
|
-
baseUrl: "https://api.openai.com/v1",
|
|
18193
|
-
validate: /* @__PURE__ */ __name((given) => checkedOptions("openai", options, given), "validate"),
|
|
18194
|
-
complete: /* @__PURE__ */ __name((target2, request, checked, apiKey, fetcher) => withTimeLimit(12e4, async (deadline) => {
|
|
18195
|
-
const response = await fetcher(`${target2.baseUrl.replace(/\/+$/, "")}/chat/completions`, {
|
|
18196
|
-
method: "POST",
|
|
18197
|
-
headers: { "Content-Type": "application/json", ...apiKey ? { Authorization: `Bearer ${apiKey}` } : {} },
|
|
18198
|
-
body: JSON.stringify({
|
|
18199
|
-
...checked,
|
|
18200
|
-
model: target2.model,
|
|
18201
|
-
messages: [
|
|
18202
|
-
{ role: "system", content: systemFor(request) },
|
|
18203
|
-
...messagesFor(request),
|
|
18204
|
-
...request.images === void 0 ? [] : [
|
|
18205
|
-
{
|
|
18206
|
-
role: "user",
|
|
18207
|
-
content: [
|
|
18208
|
-
{ type: "text", text: request.prompt },
|
|
18209
|
-
...request.images.map((image2) => ({
|
|
18210
|
-
type: "image_url",
|
|
18211
|
-
image_url: { url: `data:${image2.mimeType};base64,${image2.data}`, detail: "high" }
|
|
18212
|
-
}))
|
|
18213
|
-
]
|
|
18214
|
-
}
|
|
18215
|
-
]
|
|
18216
|
-
],
|
|
18217
|
-
...new URL(target2.baseUrl).hostname === "api.openai.com" ? { max_completion_tokens: request.maxTokens } : { max_tokens: request.maxTokens }
|
|
18218
|
-
}),
|
|
18219
|
-
signal: deadline,
|
|
18220
|
-
redirect: "error"
|
|
18221
|
-
});
|
|
18222
|
-
if (!response.ok)
|
|
18223
|
-
throw new Error("provider rejected request");
|
|
18224
|
-
const body = await response.json();
|
|
18225
|
-
const choice = body.choices?.[0];
|
|
18226
|
-
const content = choice?.message?.content;
|
|
18227
|
-
const total = body.usage?.total_tokens;
|
|
18228
|
-
const counted = Number.isInteger(total) && (total ?? 0) >= 1;
|
|
18229
|
-
const local = onThisComputer(target2.baseUrl);
|
|
18230
|
-
const finish = choice?.finish_reason ?? null;
|
|
18231
|
-
if (finish !== "stop" && !(local && finish === null))
|
|
18232
|
-
throw new Error("incomplete response");
|
|
18233
|
-
if (typeof content !== "string" || content.trim() === "")
|
|
18234
|
-
throw new EmptyAnswer();
|
|
18235
|
-
if (!counted && !local)
|
|
18236
|
-
throw new Error("incomplete response");
|
|
18237
|
-
const { prompt_tokens: input, completion_tokens: output } = body.usage ?? {};
|
|
18238
|
-
return {
|
|
18239
|
-
text: content,
|
|
18240
|
-
// No count from a server on this computer costs nothing; a rough one keeps the gateway's check meaningful.
|
|
18241
|
-
tokens: counted ? total : Math.max(1, Math.ceil(content.length / 4)),
|
|
18242
|
-
...Number.isInteger(input) && Number.isInteger(output) ? { usage: { input, output } } : {}
|
|
18243
|
-
};
|
|
18244
|
-
}), "complete")
|
|
18245
|
-
};
|
|
18246
|
-
|
|
18247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18248
|
-
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18249
|
-
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18250
|
-
if (deps.signal?.aborted)
|
|
18251
|
-
throw new CliError("cancelled", "model request cancelled");
|
|
18252
|
-
const target2 = deps.resolve(request.purpose);
|
|
18253
|
-
if (!target2 || target2.provider === "off")
|
|
18254
|
-
throw new CliError("configuration_error", `models.${request.purpose}.provider is not configured; no model was called`);
|
|
18255
|
-
if (!request.purpose || !Number.isSafeInteger(request.maxTokens) || request.maxTokens < 1 || typeof request.prompt !== "string")
|
|
18256
|
-
throw new CliError("validation_error", "a model request needs a purpose, prompt and positive whole maxTokens");
|
|
18257
|
-
validateImages(request.images);
|
|
18258
|
-
let adapter = deps.adapters?.[target2.provider];
|
|
18259
|
-
if (!adapter && target2.provider === "openai")
|
|
18260
|
-
adapter = openai;
|
|
18261
|
-
if (!adapter && target2.provider === "anthropic")
|
|
18262
|
-
adapter = (await import("./anthropic-PSWTEU6G.js")).anthropic;
|
|
18263
|
-
if (!adapter)
|
|
18264
|
-
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18265
|
-
if (request.images !== void 0 && adapter.images !== true)
|
|
18266
|
-
throw new CliError("validation_error", "the model adapter does not support image inputs");
|
|
18267
|
-
const options2 = adapter.validate(request.options ?? {});
|
|
18268
|
-
const baseUrl = target2.baseUrl ?? adapter.baseUrl;
|
|
18269
|
-
if (!target2.model.trim() || !endpoint(baseUrl))
|
|
18270
|
-
throw new CliError("validation_error", "a model target needs a model and an HTTP/S endpoint without credentials, query or fragment");
|
|
18271
|
-
if (!modelAddressAllowed(baseUrl))
|
|
18272
|
-
throw new CliError("validation_error", `${PLAIN_HTTP_REFUSED}; no data was sent`, {
|
|
18273
|
-
reason: "model.address-refused"
|
|
18274
|
-
});
|
|
18275
|
-
refuseOffComputer(deps.env ?? process.env, baseUrl, `${request.purpose} data`);
|
|
18276
|
-
if (!await deps.consent(request, { ...target2, baseUrl }))
|
|
18277
|
-
throw new CliError("permission_error", `model consent for ${request.purpose} is missing; no data was sent`);
|
|
18278
|
-
const apiKey = await deps.key?.(target2.provider, target2);
|
|
18279
|
-
if (deps.signal?.aborted)
|
|
18280
|
-
throw new CliError("cancelled", "model request cancelled");
|
|
18281
|
-
const fetcher = deps.fetch ?? endpointFetch(baseUrl, 12e4);
|
|
18282
|
-
let limited = false;
|
|
18283
|
-
let unreachable = false;
|
|
18284
|
-
let refused = false;
|
|
18285
|
-
let status;
|
|
18286
|
-
const cancellable = /* @__PURE__ */ __name(async (input, init) => {
|
|
18287
|
-
const signal = init?.signal ?? (input instanceof Request ? input.signal : void 0);
|
|
18288
|
-
let response;
|
|
18289
|
-
try {
|
|
18290
|
-
response = await fetcher(input, {
|
|
18291
|
-
...init,
|
|
18292
|
-
signal: deps.signal ? AbortSignal.any([deps.signal, ...signal ? [signal] : []]) : signal
|
|
18293
|
-
});
|
|
18294
|
-
} catch (error) {
|
|
18295
|
-
unreachable = true;
|
|
18296
|
-
throw error;
|
|
18297
|
-
}
|
|
18298
|
-
if (!response.ok)
|
|
18299
|
-
status = response.status;
|
|
18300
|
-
if (response.status === 429)
|
|
18301
|
-
limited = true;
|
|
18302
|
-
if (response.status === 401 || response.status === 403)
|
|
18303
|
-
refused = true;
|
|
18304
|
-
return response;
|
|
18305
|
-
}, "cancellable");
|
|
18306
|
-
try {
|
|
18307
|
-
const answer = await adapter.complete({ ...target2, baseUrl }, request, options2, apiKey, cancellable);
|
|
18308
|
-
if (deps.signal?.aborted)
|
|
18309
|
-
throw new Error("cancelled");
|
|
18310
|
-
if (typeof answer.text !== "string" || !Number.isSafeInteger(answer.tokens) || answer.tokens < 1)
|
|
18311
|
-
throw new Error("incomplete");
|
|
18312
|
-
return { ...answer, provider: target2.provider, model: target2.model };
|
|
18313
|
-
} catch (error) {
|
|
18314
|
-
if (limited)
|
|
18315
|
-
throw new CliError("rate_limited", `${request.purpose} provider rate limit reached; no result was stored`);
|
|
18316
|
-
const reason = refused ? "model.key-rejected" : unreachable && !deps.signal?.aborted ? "model.unreachable" : error instanceof EmptyAnswer ? "model.empty-answer" : void 0;
|
|
18317
|
-
throw new CliError("invalid_response", `${request.purpose} provider failed or returned an incomplete response; no result was stored`, reason === void 0 && status === void 0 ? void 0 : { ...reason === void 0 ? {} : { reason }, ...status === void 0 ? {} : { status } });
|
|
18318
|
-
}
|
|
18319
|
-
}, "complete")
|
|
18320
|
-
}), "modelGateway");
|
|
18321
|
-
|
|
18322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
18323
|
-
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
18324
|
-
const host = new URL(baseUrl).host;
|
|
18325
|
-
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
18326
|
-
}, "endpointKeyName");
|
|
18327
|
-
var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) => {
|
|
18328
|
-
const where = { appName: app.appName, prefix: app.envPrefix, env };
|
|
18329
|
-
const credentials = /* @__PURE__ */ __name((provider) => new Credentials({
|
|
18330
|
-
configDir: resolvePaths(where).config,
|
|
18331
|
-
service: app.appName,
|
|
18332
|
-
...["openai", "anthropic"].includes(provider) ? { envVar: envName(app, `${provider.toUpperCase()}_API_KEY`) } : {},
|
|
18333
|
-
isolated: pathsAreOverridden(where),
|
|
18334
|
-
env,
|
|
18335
|
-
...keyring ? { keyring } : {},
|
|
18336
|
-
warn: /* @__PURE__ */ __name((message) => process.stderr.write(`${message}
|
|
18337
|
-
`), "warn")
|
|
18338
|
-
}), "credentials");
|
|
18339
|
-
const account = /* @__PURE__ */ __name((provider) => `embeddings:${provider}`, "account");
|
|
18340
|
-
return {
|
|
18341
|
-
read: /* @__PURE__ */ __name((provider) => {
|
|
18342
|
-
const stored = credentials(provider).read(account(provider));
|
|
18343
|
-
if (stored)
|
|
18344
|
-
return { key: stored.secret, source: stored.source };
|
|
18345
|
-
const shared = ["openai", "anthropic"].includes(provider) ? env[`${provider.toUpperCase()}_API_KEY`]?.trim() : void 0;
|
|
18346
|
-
return shared ? { key: shared, source: "env" } : void 0;
|
|
18347
|
-
}, "read"),
|
|
18348
|
-
/** A key kept under the provider's own name, as an owner may have stored it by hand for the whole tool. */
|
|
18349
|
-
readPlain: /* @__PURE__ */ __name((provider) => credentials(provider).read(provider)?.secret, "readPlain"),
|
|
18350
|
-
write: /* @__PURE__ */ __name((provider, key) => credentials(provider).write(account(provider), key, { signIn: true }), "write"),
|
|
18351
|
-
remove: /* @__PURE__ */ __name((provider) => credentials(provider).remove(account(provider)), "remove")
|
|
18352
|
-
};
|
|
18353
|
-
}, "embeddingKeys");
|
|
18354
|
-
|
|
18355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18356
|
-
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18357
|
-
...error,
|
|
18358
|
-
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18359
|
-
}), "withRecovery");
|
|
18360
|
-
|
|
18361
18139
|
// node_modules/.pnpm/image-size@2.0.4/node_modules/image-size/dist/esm/types/utils.js
|
|
18362
18140
|
var decoder2 = new TextDecoder();
|
|
18363
18141
|
var toUTF8String = /* @__PURE__ */ __name((input, start = 0, end = input.length) => decoder2.decode(input.slice(start, end)), "toUTF8String");
|
|
@@ -19399,7 +19177,7 @@ function imageSize(input) {
|
|
|
19399
19177
|
}
|
|
19400
19178
|
__name(imageSize, "imageSize");
|
|
19401
19179
|
|
|
19402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
19403
19181
|
var MAX_PAGES = 20;
|
|
19404
19182
|
var MAX_PIXELS = 2e7;
|
|
19405
19183
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -19559,7 +19337,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
|
|
|
19559
19337
|
}
|
|
19560
19338
|
}, "ocrPdf");
|
|
19561
19339
|
|
|
19562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
19563
19341
|
import { spawn } from "node:child_process";
|
|
19564
19342
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
|
|
19565
19343
|
import { tmpdir } from "node:os";
|
|
@@ -19723,14 +19501,14 @@ Read the attached picture.`,
|
|
|
19723
19501
|
}, "readPictureWithAgent");
|
|
19724
19502
|
|
|
19725
19503
|
export {
|
|
19726
|
-
|
|
19727
|
-
|
|
19728
|
-
|
|
19729
|
-
embeddingKeys,
|
|
19730
|
-
withRecovery,
|
|
19504
|
+
ReaderLimit,
|
|
19505
|
+
readContainer,
|
|
19506
|
+
xmlPart,
|
|
19731
19507
|
columnName,
|
|
19732
19508
|
documentKind,
|
|
19733
19509
|
documentExtractor,
|
|
19510
|
+
relationships,
|
|
19511
|
+
mainPart,
|
|
19734
19512
|
readSpreadsheet,
|
|
19735
19513
|
importEngine,
|
|
19736
19514
|
extractText,
|