@visulima/vis 5.0.0 → 6.0.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/CHANGELOG.md +101 -0
- package/LICENSE.md +151 -88
- package/README.md +2 -2
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/config/index.d.ts +16 -18
- package/dist/packem_chunks/CONFIG_FILES.js +4 -4
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog.js +61 -51
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +202 -176
- package/dist/packem_chunks/dart-plan.js +1 -1
- package/dist/packem_chunks/dart-projects.js +1 -1
- package/dist/packem_chunks/dispatch.js +1 -1
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +4 -4
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -2
- package/dist/packem_chunks/handler21.js +1 -1
- package/dist/packem_chunks/handler22.js +2 -2
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler26.js +3 -3
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler30.js +1 -1
- package/dist/packem_chunks/handler39.js +6 -6
- package/dist/packem_chunks/handler5.js +1 -1
- package/dist/packem_chunks/handler50.js +2 -2
- package/dist/packem_chunks/handler51.js +1 -1
- package/dist/packem_chunks/handler53.js +1 -1
- package/dist/packem_chunks/handler54.js +1 -1
- package/dist/packem_chunks/handler55.js +1 -1
- package/dist/packem_chunks/handler58.js +1 -1
- package/dist/packem_chunks/handler59.js +1 -1
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler60.js +7 -7
- package/dist/packem_chunks/handler61.js +2 -2
- package/dist/packem_chunks/handler62.js +2 -2
- package/dist/packem_chunks/handler63.js +1 -1
- package/dist/packem_chunks/handler64.js +2 -2
- package/dist/packem_chunks/handler65.js +3 -3
- package/dist/packem_chunks/handler66.js +2 -2
- package/dist/packem_chunks/handler67.js +31 -20
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +4 -4
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +5 -5
- package/dist/packem_chunks/handler71.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler73.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/handler75.js +36 -36
- package/dist/packem_chunks/handler76.js +1 -1
- package/dist/packem_chunks/handler77.js +3 -3
- package/dist/packem_chunks/handler78.js +24 -24
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +40 -7
- package/dist/packem_chunks/index2.js +32 -32
- package/dist/packem_chunks/index6.js +1 -1
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/lean.js +3 -4
- package/dist/packem_chunks/list.js +1 -1
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/orchestrator.js +1 -1
- package/dist/packem_chunks/prompts.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/ts-loader.js +5 -5
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/{affected-selection-BJXJW_3Q.js → affected-selection-DDxwjwM4.js} +1 -1
- package/dist/packem_shared/{affected-shas-B_kfSKss.js → affected-shas-BuaWvmsG.js} +1 -1
- package/dist/packem_shared/{ai-fix-BC6aIRJT.js → ai-fix-C2BhFFhi.js} +5 -5
- package/dist/packem_shared/{augment-B9kSZuvW.js → augment-CxUPE8KX.js} +1 -1
- package/dist/packem_shared/{bin-Dx8mjl3g.js → bin-Be7_QhQK.js} +1 -1
- package/dist/packem_shared/{build-scripts-CEDx_nJp.js → build-scripts-DxyVSkgM.js} +1 -1
- package/dist/packem_shared/command-runtime-BXvH5EC0.js +1 -0
- package/dist/packem_shared/{dart-pubspec-BK_cK2EP.js → dart-pubspec-DvmyleIr.js} +2 -2
- package/dist/packem_shared/{dependency-scan-B8jroa1D.js → dependency-scan-DKK3ZEZI.js} +1 -1
- package/dist/packem_shared/{docker-DXqV-07f.js → docker-BTuwdXaC.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-CeV20GSB.js → ecosystem-gate-BpQNUJzN.js} +1 -1
- package/dist/packem_shared/{env-consistency-Dt_uDbSP.js → env-consistency-CUBJHENL.js} +1 -1
- package/dist/packem_shared/{failure-log-D2x5BT8S.js → failure-log-kp0n2rbD.js} +1 -1
- package/dist/packem_shared/{formatBytes-BHAzNIrn-CrusHOew.js → formatBytes-BHAzNIrn-DRcKvqnb.js} +1 -1
- package/dist/packem_shared/{index-BzhrR_iC.js → index-BdMIfGVZ.js} +15 -15
- package/dist/packem_shared/index-C9ENZqH9.js +39 -0
- package/dist/packem_shared/{index-nEyN71oX.js → index-DQfNpt2u.js} +1 -1
- package/dist/packem_shared/{index-C_ScJMpb.js → index-DsSWb5XH.js} +1 -1
- package/dist/packem_shared/{index.server-sXNQYpsl.js → index.server-D8BLnYZO.js} +2 -2
- package/dist/packem_shared/{isAccessibleSync-DYKTrrvc-C-_5cgwu.js → isAccessibleSync-DYKTrrvc-BwaMhQs0.js} +1 -1
- package/dist/packem_shared/{lifecycle-D6PMPor-.js → lifecycle-BAhkhE2L.js} +1 -1
- package/dist/packem_shared/{lockfile-CiUtEbnt.js → lockfile-DHmlPGk1.js} +1 -1
- package/dist/packem_shared/{manifests-Du4yKlf_.js → manifests-Dd4Hoztt.js} +1 -1
- package/dist/packem_shared/{min-release-age-JViyQuBM.js → min-release-age-BJnOQaoF.js} +1 -1
- package/dist/packem_shared/{missing-package-json-Cu5YVAot.js → missing-package-json-DfzrGwe1.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-B2X3yhyo.js → multi-eco-lockfiles-BIa6xvJc.js} +1 -1
- package/dist/packem_shared/{native-config-sync-TdTWjVgI.js → native-config-sync-Dr9XvxOf.js} +1 -1
- package/dist/packem_shared/osv-bloom-t40ra5U5.js +2 -0
- package/dist/packem_shared/{package-version-CiRZecQu.js → package-version-CFuNUWDG.js} +2 -2
- package/dist/packem_shared/{packument-Df46y5MY.js → packument-C9nRiBJf.js} +1 -1
- package/dist/packem_shared/pm-runner-ImwtpnWY.js +1 -0
- package/dist/packem_shared/{project-name-filter-CH8Ih7Qr.js → project-name-filter-C2rkW-Vn.js} +1 -1
- package/dist/packem_shared/{provenance-DKeR0Ig1.js → provenance-DF-ypZj3.js} +1 -1
- package/dist/packem_shared/{readJsonSync-CbryXYxN-EWl7_7KX.js → readJsonSync-CbryXYxN-Bm5i10UW.js} +1 -1
- package/dist/packem_shared/{registry-keys-DwB3ZXS_.js → registry-keys-BLuHOyZu.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-BmV8YBE-.js → resolve-explicit-BDaQRR6o.js} +1 -1
- package/dist/packem_shared/resolve-runtime-Cr19Pk6L.js +1 -0
- package/dist/packem_shared/{run-file-UBukWaha.js → run-file-XbRCF6Mp.js} +1 -1
- package/dist/packem_shared/{runtime-check-1U8HrQd9.js → runtime-check-Bh5q9IrT.js} +1 -1
- package/dist/packem_shared/{s1ngularity-DZhkIqL4.js → s1ngularity-UCZN7skW.js} +1 -1
- package/dist/packem_shared/{scan-progress-CkumcBG-.js → scan-progress-DcYI76zE.js} +1 -1
- package/dist/packem_shared/{selectors-edwcgNl3.js → selectors-DCiEU0iv.js} +2 -2
- package/dist/packem_shared/{signatures-BxTMck2l.js → signatures-CicxPHN4.js} +1 -1
- package/dist/packem_shared/target-merge-BClIXg2k.js +14 -0
- package/dist/packem_shared/{target-options-DsHFmRZH.js → target-options-PgWIuJnb.js} +1 -1
- package/dist/packem_shared/{task-env-DzR4RkOj.js → task-env-Dl08aklA.js} +1 -1
- package/dist/packem_shared/toolchain-DvUxlbDz.js +5 -0
- package/dist/packem_shared/{typosquats-8u0drCqQ.js → typosquats-DxPzyK7u.js} +1 -1
- package/dist/packem_shared/{verify-B_MblU_Q.js → verify-CadR9PUk.js} +1 -1
- package/dist/packem_shared/{vis-update-app-BCIccZfA.js → vis-update-app-DrFWQyPn.js} +1 -1
- package/dist/packem_shared/{vis-user-error-Dd7hwxlW.js → vis-user-error-k7CLTpA4.js} +15 -15
- package/dist/packem_shared/{watch-CcTketln.js → watch-Dr_6yz3o.js} +1 -1
- package/dist/packem_shared/watch-loop-BId9vT7Q.js +11 -0
- package/dist/packem_shared/{writeFileSync-DJoHk3Ks-BPRoepNw.js → writeFileSync-DJoHk3Ks-Dhem3Uof.js} +1 -1
- package/dist/release/core/version-actions/index.d.ts +1 -1
- package/dist/release/presets.d.ts +1 -55
- package/dist/release/presets.js +1 -1
- package/dist/release/types.d.ts +1 -18
- package/dist/runtime/preload.js +1 -1
- package/index.d.ts +204 -204
- package/index.js +26 -26
- package/package.json +10 -10
- package/schemas/vis-config.schema.json +6 -28
- package/schemas/vis-release-config.schema.json +1 -12
- package/dist/packem_shared/Table-BB8xHTU5-BLPS917D.js +0 -11
- package/dist/packem_shared/command-runtime-p4IXiIf6.js +0 -1
- package/dist/packem_shared/index-BisalDCf.js +0 -39
- package/dist/packem_shared/osv-bloom-BCAX5ARR.js +0 -2
- package/dist/packem_shared/pm-runner-3iiQayy-.js +0 -1
- package/dist/packem_shared/resolve-runtime-CNiHcVtx.js +0 -1
- package/dist/packem_shared/target-merge-DVJl-7Qz.js +0 -4
- package/dist/packem_shared/toolchain-BRdpaAC4.js +0 -5
- package/dist/packem_shared/watch-loop-BBkg02-Q.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as ze}from"node:module";import{e as M,
|
|
1
|
+
import{createRequire as ze}from"node:module";import{e as M,a as Fe}from"./index-BdMIfGVZ.js";import{r as qe}from"./docker-BTuwdXaC.js";import{parse as We}from"../packem_chunks/index4.js";import Re from"../packem_chunks/index.js";import{b as fe,l as Ke,a as Ze,d as Qe,e as en,f as nn,g as tn}from"./multi-eco-lockfiles-BIa6xvJc.js";import{p as ke,r as ue,c as sn}from"./composer-DR3D-Psb.js";import{p as Ie}from"./readJsonSync-CbryXYxN-Bm5i10UW.js";import{e as on}from"./license-DvlYdo6T.js";import{S as rn}from"./lockfile-DhHAaHN5.js";import{a as cn}from"./index-B4AjSxHU.js";import{V as Le}from"./vis-user-error-k7CLTpA4.js";import{w as an,r as pn,Z as Ce}from"./zig-manifest-P7ydLEOa.js";let He;const Ve=e=>(He??=ze(import.meta.url))(e),ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,be=e=>{if(typeof ee<"u"&&ee.versions&&ee.versions.node){const[t,n]=ee.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return ee.getBuiltinModule(e)}return Ve(e)},{randomUUID:Be}=be("node:crypto"),{readFileSync:G,readdirSync:Pe,statSync:Xe,existsSync:Je}=be("node:fs"),{join:A,relative:$e,resolve:De,basename:Ye}=be("node:path"),ne=e=>e.replaceAll(/[^\w.~-]/g,t=>`%${(t.codePointAt(0)??0).toString(16).toUpperCase().padStart(2,"0")}`),j=(e,t)=>{const n=e.toLowerCase();if(n.startsWith("@")){const s=n.indexOf("/");if(s>0){const o=n.slice(0,s),r=n.slice(s+1);return`pkg:npm/${ne(o)}/${ne(r)}@${ne(t)}`}}return`pkg:npm/${ne(n)}@${ne(t)}`},_={ARRAY:"array",BOOLEAN:"boolean",DATE:"date",FUNCTION:"function",JSTOXML_OBJECT:"jstoxml-object",NULL:"null",NUMBER:"number",OBJECT:"object",STRING:"string"},ln=[_.STRING,_.NUMBER,_.BOOLEAN],un='<?xml version="1.0" encoding="UTF-8"?>',Ee=["_selfCloseTag","_attrs"],fn=(e="",t=0)=>e.repeat(t),pe=e=>Array.isArray(e)&&_.ARRAY||typeof e===_.OBJECT&&e!==null&&e._name&&_.JSTOXML_OBJECT||e instanceof Date&&_.DATE||e===null&&_.NULL||typeof e,Ue=e=>e.startsWith("<![CDATA["),je=(e="",t={},n)=>{let s=e;if(typeof e===_.STRING){if(Ue(e))return e;const o=new RegExp(`(${Object.keys(t).join("|")})(?!(\\w|#)*;)`,"g");s=String(e).replace(o,(r,l)=>t[l]||"")}return typeof n=="function"?n(s):s},dn=(e={},t,n,s)=>(Array.isArray(e)?e:Object.entries(e).map(([r,l])=>({[r]:l}))).reduce((r,l)=>{const c=Object.keys(l)[0],i=l[c];if(typeof n===_.FUNCTION&&n(c,i))return r;const a=t?je(i,t):i,f=!s&&a===!0?"":`="${a}"`;return r.push(`${c}${f}`),r},[]),mn=(e={},t,n,s)=>{const o=dn(e,t,n,s);return o.length===0?"":` ${o.join(" ")}`},hn=(e={})=>Object.keys(e).map(t=>({_name:t,_content:e[t]})),gn=e=>ln.includes(pe(e)),vn=e=>!e.match("<"),yn=({header:e,isOutputStart:t})=>e&&t?typeof e===_.BOOLEAN?un:e:"",Ae={"<":"<",">":">","&":"&",'"':"""},q=(e={},t={})=>{const{depth:n=0,indent:s,_isFirstItem:o,_isOutputStart:r=!0,header:l,attributeReplacements:c={},attributeFilter:i,attributeExplicitTrue:a=!1,contentReplacements:f={},contentMap:g,selfCloseTags:y=!0}=t,X=typeof c=="boolean"&&!c?{}:{...Ae,...c},z=typeof f=="boolean"&&!f?{}:{...Ae,...f},N=typeof s=="string",H=fn(s,n),J=pe(e),Y=yn({header:l,isOutputStart:r}),O=r&&!Y&&o&&n===0,V=N&&!O?`
|
|
2
2
|
`:"";let k="";switch(J){case _.JSTOXML_OBJECT:{const{_name:b,_content:S}=e;if(S===null&&typeof g!="function"){k=`${V}${H}${b}`;break}if(Array.isArray(S)&&S.every(gn))return S.map(ae=>q({_name:b,_content:ae},{...t,depth:n,_isOutputStart:!1})).join("");if(Ee.includes(b))break;const $=q(S,{...t,depth:n+1,_isOutputStart:O}),B=pe($),E=vn($),oe=Ue($),T=`${V}${H}`;if(b==="_comment"){k+=`${T}<!-- ${S} -->`;break}const R=B==="undefined"||$==="",D=y,W=e._selfCloseTag,K=typeof W===_.BOOLEAN?R&&W:R&&D,I=K?"/":"",re=mn(e._attrs,X,i,a),Z=`<${b}${re}${I}>`,ce=N&&!E&&!oe?`
|
|
3
3
|
${H}`:"",ie=K?"":`${$}${ce}</${b}>`;k+=`${T}${Z}${ie}`;break}case _.OBJECT:{const b=Object.keys(e);k=b.map((v,$)=>{const B={...t,_isFirstItem:$===0,_isLastItem:$+1===b.length,_isOutputStart:O},E={_name:v};if(pe(e[v])===_.OBJECT&&(Ee.forEach(R=>{const D=e[v][R];typeof D<"u"&&(E[R]=D,delete e[v][R])}),typeof e[v]._content<"u"&&Object.keys(e[v]).length>1)){const R=Object.assign({},e[v]);delete R._content,E._content=[...hn(R),e[v]._content]}return typeof E._content>"u"&&(E._content=e[v]),q(E,B)},t).join("");break}case _.FUNCTION:{const b=e(t);k=q(b,t);break}case _.ARRAY:{k=e.map((S,v)=>{const $={...t,_isFirstItem:v===0,_isLastItem:v+1===e.length,_isOutputStart:O};return q(S,$)}).join("");break}default:{k=je(e,z,g);break}}return`${Y}${k}`},_n=(e,t)=>`pkg:cargo/${encodeURIComponent(e)}@${encodeURIComponent(t)}`,se=e=>e,bn=e=>{const t=e.split(" ")[0];if(t===void 0||t==="")return;const n=/^\S+\s+(\d[^\s(]*)/.exec(e)?.[1],s=/\(([^)]+)\)/.exec(e)?.[1];return{kind:"main",name:t,source:s,version:n}},$n=e=>{const t=[];let n,s=!1;const o=()=>{n?.name!==void 0&&n.version!==void 0&&t.push({deps:n.deps,member:n.source===void 0,name:n.name,source:n.source,version:n.version})};for(const r of e.split(`
|
|
4
4
|
`)){const l=r.trim();if(l==="[[package]]"){o(),n={deps:[]},s=!1;continue}if(n===void 0)continue;if(s){const i=/^"([^"]+)",?$/.exec(l);if(i){const a=bn(i[1]);a!==void 0&&n.deps.push(a)}else l==="]"&&(s=!1);continue}if(l==="dependencies = ["){s=!0;continue}const c=/^(name|version|source)\s*=\s*"([^"]*)"$/.exec(l);if(c){const[,i="",a=""]=c;i==="name"?n.name=a:i==="version"?n.version=a:n.source=a}}return o(),t},Cn=(e,t)=>{const n=typeof t=="object"&&t!==null?t.package:void 0;return typeof n=="string"?n:e},Sn=(e,t)=>{const n=Array.isArray(t.workspace?.members)?t.workspace.members.filter(r=>typeof r=="string"):[],s=Array.isArray(t.workspace?.exclude)?t.workspace.exclude.filter(r=>typeof r=="string"):[],o=new Set;for(const r of n){let l=[e];for(const c of r.split("/").filter(i=>i!==""&&i!==".")){const i=[];for(const a of l){if(!/[*?[{]/.test(c)){i.push(A(a,c));continue}let f;try{f=Pe(a)}catch{f=[]}for(const g of f){const y=A(a,g);Re(c,g)&&Xe(y).isDirectory()&&i.push(y)}}l=i}for(const c of l){const i=c.slice(e.length+1).split("\\").join("/");s.some(a=>Re(a,i))||o.add(c)}}return[...o]},Rn=e=>{const t=new Map;let n;try{n=Oe(G(A(e,"Cargo.toml"),"utf8"))}catch{return t}const s=Sn(e,n);n.package?.name!==void 0&&s.push(e);for(const o of s){let r;try{r=Oe(G(A(o,"Cargo.toml"),"utf8"))}catch{continue}if(typeof r.package?.name!="string")continue;const l=new Set,c=i=>{for(const[a,f]of Object.entries(i??{}))l.add(se(Cn(a,f)))};c(r.dependencies),c(r["build-dependencies"]);for(const i of Object.values(r.target??{}))c(i.dependencies),c(i["build-dependencies"]);t.set(se(r.package.name),l)}return t},Oe=e=>We(e),kn=(e,t={})=>{let n;try{n=G(A(e,"Cargo.lock"),"utf8")}catch{return{components:[],dependencies:[]}}const s=Rn(e),o=$n(n).map(r=>{const l=r.member?s.get(se(r.name)):void 0;return l===void 0?r:{...r,deps:r.deps.map(c=>l.has(se(c.name))?c:{...c,kind:"dev"})}});return fe(o,{focusNames:t.focusNames,includeDev:t.includeDev,normalize:se,purl:_n})},En=(e,t)=>`pkg:composer/${e.split("/").map(n=>encodeURIComponent(n)).join("/")}@${encodeURIComponent(t)}`,te=e=>e.toLowerCase(),An=e=>{const t=[];for(const[n,s]of[["packages",!1],["packages-dev",!0]]){const o=e[n];if(Array.isArray(o))for(const r of o){if(typeof r.name!="string"||typeof r.version!="string")continue;const l=[...ue(r,"require").map(c=>({kind:s?"dev":"main",name:c})),...ue(r,"require-dev").map(c=>({kind:"dev",name:c}))];t.push({deps:l,member:!1,name:r.name,version:sn(r.version)})}}return t},On=(e,t={})=>{const n={components:[],dependencies:[]};let s,o;try{s=ke(G(A(e,"composer.lock"),"utf8")),o=ke(G(A(e,"composer.json"),"utf8"))}catch{return n}const r=typeof o.name=="string"?te(o.name):void 0;if(t.focusNames!==void 0&&!t.focusNames.some(i=>te(i)===r))return n;const l=new Set([...ue(o,"require"),...t.includeDev?ue(o,"require-dev"):[]].map(i=>te(i))),c=An(s).map(i=>({...i,member:l.has(te(i.name))}));return fe(c,{includeDev:t.includeDev,normalize:te,purl:En})},Te=e=>e.split("/").map(t=>encodeURIComponent(t)).join("/"),Tn={Go:(e,t)=>`pkg:golang/${Te(e)}@${encodeURIComponent(t)}`,Pub:(e,t)=>`pkg:pub/${encodeURIComponent(e)}@${encodeURIComponent(t)}`,SwiftURL:(e,t)=>`pkg:swift/${Te(e)}@${encodeURIComponent(t)}`},wn=(e,t)=>{const n=Ke(e,t).map(s=>{const o=Tn[t](s.name,s.version);return{"bom-ref":o,name:s.name,purl:o,type:"library",version:s.version}}).sort((s,o)=>(s["bom-ref"]??"").localeCompare(o["bom-ref"]??""));return{components:n,dependencies:n.map(s=>({ref:s["bom-ref"]??""}))}},xn=(e,t)=>`pkg:gem/${encodeURIComponent(e)}@${encodeURIComponent(t)}`,Nn=/^ {4}(\S+) \(([^()]+)\)\s*$/,Pn=/^ {6}(\S+)(?: \(.*\))?\s*$/,Dn=e=>{const t=new Map;let n,s,o;for(const r of e.split(/\r?\n/)){if(r.length>0&&!r.startsWith(" ")){n=r.trim(),s=void 0,o=void 0;continue}if(n!=="PATH"&&n!=="GEM"&&n!=="GIT")continue;const l=/^ {2}remote: (.+)$/.exec(r);if(l?.[1]!==void 0){s=l[1].trim();continue}const c=Nn.exec(r);if(c?.[1]!==void 0&&c[2]!==void 0){const a=c[1],f=c[2].split("-")[0]??c[2],g=n==="GIT"&&s!==void 0?`git:${s}`:void 0,y=`${a}\0${f}\0${g??""}`;o=t.get(y)??{deps:[],member:n==="PATH",name:a,source:g,version:f},t.set(y,o);continue}const i=Pn.exec(r);i?.[1]!==void 0&&o!==void 0&&o.deps.push({kind:"main",name:i[1]})}return[...t.values()]},In=(e,t={})=>{let n;try{n=G(A(e,"Gemfile.lock"),"utf8")}catch{return{components:[],dependencies:[]}}return fe(Dn(n),{focusNames:t.focusNames,includeDev:t.includeDev,normalize:s=>s,purl:xn})},ye=e=>{try{return Ie(e)}catch{return}},Ln=e=>{if(e.length===0||e.includes("..")||e.startsWith(".")||e.includes("\0")||e.includes("\\"))return!1;if(e.startsWith("@")){const t=e.indexOf("/");return t>1&&!e.includes("/",t+1)}return!e.includes("/")},Un=e=>e.length>0&&!e.includes("/")&&!e.includes("\\")&&!e.includes("..")&&!e.includes("\0"),jn=(e,t,n)=>{const o=`${t.replaceAll("/","+")}@${n}`,r=M(e,"node_modules",".pnpm"),l=ye(M(r,o,"node_modules",t,"package.json"));if(l)return l;let c;try{c=Pe(r)}catch{return}const i=`${o}_`;for(const a of c){if(!a.startsWith(i))continue;const f=ye(M(r,a,"node_modules",t,"package.json"));if(f)return f}},Mn=(e,t,n)=>{const s=ye(M(e,"node_modules",t,"package.json"));return s?.version===n?s:void 0},Gn=(e,t,n)=>{if(!(!Ln(t)||!Un(n)))return jn(e,t,n)??Mn(e,t,n)},zn={sha256:"SHA-256",sha384:"SHA-384",sha512:"SHA-512"},Hn={sha256:64,sha384:96,sha512:128},Vn=e=>{const t={name:e.name,version:e.version},{integrity:n}=e;return n&&n.hex.length===Hn[n.algorithm]&&(t.hash={alg:zn[n.algorithm],content:n.hex}),e.dependencies&&(t.dependencies=e.dependencies),e.peerDependencies&&(t.peerDependencies=e.peerDependencies),e.optionalDependencies&&(t.optionalDependencies=e.optionalDependencies),t},Bn=[{file:"pnpm-lock.yaml",type:"pnpm"},{file:"npm-shrinkwrap.json",type:"npm"},{file:"package-lock.json",type:"npm"},{file:"yarn.lock",type:"yarn"},{file:"bun.lock",type:"bun"}],Fn=e=>{for(const{file:t,type:n}of Bn){let s;try{s=Fe(M(e,t))}catch{continue}const o=new Map;for(const r of rn(s,n))o.set(`${r.name}@${r.version}`,Vn(r));return{packages:o,type:n}}},Me=e=>e.toLowerCase().replaceAll(/[-_.]+/g,"-"),qn=(e,t)=>`pkg:pypi/${encodeURIComponent(Me(e))}@${encodeURIComponent(t)}`,Xn=/^source\s*=\s*\{\s*(?:editable|virtual|directory)\s*=/,Jn=/\{\s*name\s*=\s*"([^"]+)"([^}]*)\}/,Yn=e=>{const t=[];let n,s="none",o=!1;const r=()=>{n?.name!==void 0&&n.version!==void 0&&t.push({deps:n.deps,member:n.member,name:n.name,source:n.source,version:n.version})};for(const l of e.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d,
|
|
1
|
+
import{e as d,a as u}from"./index-BdMIfGVZ.js";import{s as l}from"./index-B4AjSxHU.js";import{y as f}from"./isAccessibleSync-DYKTrrvc-BwaMhQs0.js";import{p as m}from"./readJsonSync-CbryXYxN-Bm5i10UW.js";const v={sha1:40,sha224:56,sha256:64,sha384:96,sha512:128},p=o=>{const n=o.indexOf("+");if(n===-1)return;const t=o.slice(n+1),e=/^([a-z0-9]+)\.([0-9a-f]+)$/.exec(t),s=e?v[e[1]]:void 0;if(!(e&&s!==void 0&&e[2].length===s))return`packageManager "${o}" has a malformed integrity suffix. Expected "+<algo>.<hex>" with algo sha1, sha224, sha256, sha384 or sha512 and lowercase hex of the matching length (sha512 = 128 characters).`},k=[".nvmrc",".node-version"],y=o=>{const n=d(o,"package.json");if(!f(n))return{};try{return m(n)??{}}catch{return{}}},c=(o,n)=>{const t=[];for(const{name:e,version:s}of n){const a=typeof s=="string"&&s.trim()!==""?s.trim():"*";l.validRange(a)!==null&&t.push({name:e,range:a})}if(t.length!==0)return{entries:t,label:o,value:n.map(e=>typeof e.version=="string"&&e.version!==""?`${e.name}@${e.version}`:e.name).join(" | ")}},h=(o,n)=>{const t=Array.isArray(o)?o:[o],e=[];for(const s of t){if(typeof s!="object"||s===null)continue;const{name:a,version:r}=s;typeof a!="string"||n!==void 0&&a!==n||e.push({name:a,version:r})}return e},E=(o,n)=>{const t=d(o,n);if(f(t))try{const e=u(t).trim();return e===""?void 0:e}catch{return}},x=(o,n)=>{const t=[];for(const r of k){const i=E(o,r);i!==void 0&&t.push(c(r,[{name:"node",version:i}]))}const e=n.engines;e&&typeof e.node=="string"&&t.push(c("engines.node",[{name:"node",version:e.node}]));const s=n.devEngines;s?.runtime!==void 0&&t.push(c("devEngines.runtime",h(s.runtime,"node")));const a=n.volta;return a&&typeof a.node=="string"&&t.push(c("volta.node",[{name:"node",version:a.node}])),t.filter(r=>r!==void 0)},$=o=>{const n=[],t=[];if(typeof o.packageManager=="string"){const s=o.packageManager,a=p(s);a&&t.push(a);const[r]=s.split("+",1),i=/^([^@]+)@(.+)$/.exec(r??"");i&&n.push(c("packageManager",[{name:i[1],version:i[2]}]))}const e=o.devEngines;if(e?.packageManager!==void 0){const s=h(e.packageManager);n.push(c("devEngines.packageManager",s))}return{declarations:n.filter(s=>s!==void 0),integrityIssues:t}},M=(o,n)=>o.entries.some(t=>n.entries.some(e=>t.name===e.name&&l.intersects(t.range,e.range))),g=(o,n)=>{const t=[];for(let e=0;e<n.length;e++)for(let s=e+1;s<n.length;s++){const a=n[e],r=n[s];M(a,r)||t.push(`Conflicting ${o} declarations: ${a.label} (${a.value}) and ${r.label} (${r.value}) have no version in common. vis does not pick one; align them.`)}return t},P=o=>{const n=y(o),t=x(o,n),{declarations:e,integrityIssues:s}=$(n),a=t.length+e.length;if(a===0&&s.length===0)return[{id:"env-declarations",message:"No Node.js or package-manager declarations to cross-check.",status:"skip"}];const r=[...g("Node.js",t),...g("package-manager",e)].map(i=>({id:"env-conflict",message:i,status:"warn"}));for(const i of s)r.push({id:"env-integrity",message:i,status:"warn"});return r.length===0?[{id:"env-declarations",message:`Node.js and package-manager declarations agree (${a} checked).`,status:"ok"}]:r};export{P as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire as p}from"node:module";import{e as j}from"./index-
|
|
1
|
+
import{createRequire as p}from"node:module";import{e as j}from"./index-BdMIfGVZ.js";import{a as F}from"./formatBytes-BHAzNIrn-DRcKvqnb.js";let h;const m=t=>(h??=p(import.meta.url))(t),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,r]=s.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return s.getBuiltinModule(t)}return m(t)},{mkdirSync:f,writeFileSync:y,readdirSync:g}=c("node:fs"),{readFile:_}=c("node:fs/promises"),i=t=>F(t),a=(t,e)=>j(i(t),`${encodeURIComponent(e)}.json`);class R{#e;#t;constructor(e,r){this.#e=e,this.#t=r}printTaskTerminalOutput(e,r,o){if(r!=="failure")return;const n=i(this.#e);try{f(n,{recursive:!0})}catch{return}const u=e.overrides.command,d=e.projectRoot,l={command:u,cwd:d,exitCode:void 0,hash:e.hash,runId:this.#t,status:r,taskId:e.id,terminalOutput:o,timestamp:new Date().toISOString()};try{y(a(this.#e,e.id),`${JSON.stringify(l,void 0,2)}
|
|
2
2
|
`,"utf8")}catch{}}}const S=async(t,e)=>{const r=a(t,e);try{const o=await _(r,"utf8");return JSON.parse(o)}catch{return}},w=t=>{const e=i(t);let r;try{r=g(e)}catch{return[]}const o=[];for(const n of r)if(n.endsWith(".json"))try{o.push(decodeURIComponent(n.slice(0,-5)))}catch{}return o};export{R as F,S as a,w as l};
|
package/dist/packem_shared/{formatBytes-BHAzNIrn-CrusHOew.js → formatBytes-BHAzNIrn-DRcKvqnb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as st}from"node:module";import{e as f}from"./index-BzhrR_iC.js";import{y as G}from"./isAccessibleSync-DYKTrrvc-C-_5cgwu.js";import{p as ht}from"./readJsonSync-CbryXYxN-EWl7_7KX.js";import{h as dt}from"./writeFileSync-DJoHk3Ks-BPRoepNw.js";let nt;const ot=t=>(nt??=st(import.meta.url))(t),x=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,R=t=>{if(typeof x<"u"&&x.versions&&x.versions.node){const[s,e]=x.versions.node.split(".").map(Number);if(s>22||s===22&&e>=3||s===20&&e>=16)return x.getBuiltinModule(t)}return ot(t)},{existsSync:it,readdirSync:z,statSync:rt,rmSync:Y,writeFileSync:at}=R("node:fs"),{spawn:F}=R("node:child_process"),{createHash:ct}=R("node:crypto"),{homedir:lt,platform:ut}=R("node:os"),pt=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ft=12288,gt=65510,mt=[12288,12288,65281,65376,65504,65510],wt=8361,bt=65518,yt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],St=32,Et=10630,xt=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],$t=4352,Mt=262141,V=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],$=(t,s)=>{let e=0,n=Math.floor(t.length/2)-1;for(;e<=n;){const r=Math.floor((e+n)/2),c=r*2;if(s<t[c])n=r-1;else if(s>t[c+1])e=r+1;else return!0}return!1},D=19968,[Bt,kt]=vt(V);function vt(t){let s=t[0],e=t[1];for(let n=0;n<t.length;n+=2){const r=t[n],c=t[n+1];if(D>=r&&D<=c)return[r,c];c-r>e-s&&(s=r,e=c)}return[s,e]}const Tt=t=>t<161||t>1114109?!1:$(pt,t),It=t=>t<ft||t>gt?!1:$(mt,t),Rt=t=>t<wt||t>bt?!1:$(yt,t),Wt=t=>t<St||t>Et?!1:$(xt,t),_t=t=>t>=Bt&&t<=kt?!0:t<$t||t>Mt?!1:$(V,t);function Ct(t){return Tt(t)?"ambiguous":It(t)?"fullwidth":Rt(t)?"halfwidth":Wt(t)?"narrow":_t(t)?"wide":"neutral"}function Nt(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Z(t){return Nt(t),Ct(t)}const H=String.raw,j=H`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,At=()=>new RegExp(H`\p{RI}{2}|(?)${j}(?:\u200D${j})*`,"gu"),he=new Set(["\x1B",""]),de="\x07",pe="]8;;",fe=/[\u200B\uFEFF\u2060-\u2064]/g,U=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\)|\][^\u0007\u001B]{0,1000}(?:\u0007|\u001B\\))/g,ge=/\u001B\[[\d;]*m[^\u001B]*(?:\u001B\[[\d;]*m|$)/g,me=/\u001B\]8;[^\u0007\u001B]*(?:\u0007|\u001B\\)[^\u001B]*\u001B\]8;;(?:\u0007|\u001B\\)/g,v=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,q=At(),we=/[-_./\s]+/g,be=/(\u001B\[[0-9;]*[a-z])/i,ye=new RegExp("\\p{Script=Arabic}","u"),Se=new RegExp("\\p{Script=Bengali}","u"),Ee=new RegExp("\\p{Script=Cyrillic}","u"),xe=new RegExp("\\p{Script=Devanagari}","u"),$e=new RegExp("\\p{Script=Ethiopic}","u"),Me=new RegExp("\\p{Script=Greek}","u"),Be=new RegExp("\\p{Script=Greek}+|\\p{Script=Latin}+|[^\\p{Script=Greek}\\p{Script=Latin}]+","gu"),ke=new RegExp("\\p{Script=Gujarati}","u"),ve=new RegExp("\\p{Script=Gurmukhi}","u"),Te=new RegExp("\\p{Script=Hangul}","u"),Ie=new RegExp("\\p{Script=Hebrew}","u"),Re=new RegExp("\\p{Script=Hiragana}","u"),We=new RegExp("\\p{Script=Han}","u"),_e=new RegExp("\\p{Script=Kannada}","u"),Ce=new RegExp("\\p{Script=Katakana}","u"),Ne=new RegExp("\\p{Script=Khmer}","u"),Ae=new RegExp("\\p{Script=Lao}","u"),Fe=new RegExp("\\p{Script=Latin}","u"),De=new RegExp("\\p{Script=Malayalam}","u"),je=new RegExp("\\p{Script=Myanmar}","u"),Oe=new RegExp("\\p{Script=Oriya}","u"),Pe=new RegExp("\\p{Script=Sinhala}","u"),Ke=new RegExp("\\p{Script=Tamil}","u"),Le=new RegExp("\\p{Script=Telugu}","u"),ze=new RegExp("\\p{Script=Thai}","u"),Ye=new RegExp("\\p{Script=Tibetan}","u"),Ge=/[\u02BB\u02BC\u0027]/u,Ve=t=>t.replace(q,""),O=new Map,Ft=t=>[t.ambiguousIsNarrow?1:0,t.control,t.fullWidth,t.regular,t.wide].join("|"),Dt=t=>{const s=Ft(t.width);let e=O.get(s);return e||(e=new Map,O.set(s,e)),e},T=new RegExp(U.source,"y"),_=new RegExp(q.source,"uy"),I=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,J=t=>t>=32&&t<=126?"latin":t===8203||t===8204||t===8205||t===8288?"zero":t<=31||t>=127&&t<=159?"control":t>=160&&t<=255||t>=9472&&t<=9599?"latin":t>=4352&&t<=4607||t>=11904&&t<=40959||t>=44032&&t<=55215||t>=63744&&t<=64255||t>=65280&&t<=65519&&!(t>=65377&&t<=65439)||t>=12352&&t<=12543?"wide":t===8230?"latin":"other",jt=(t,s)=>{const e=Dt(s),n=Math.floor(t/65536),r=t%65536;let c=e.get(n);if(c||(c=new Map,e.set(n,c)),c.has(r))return c.get(r);let o;switch(J(t)){case"control":{o=s.width.control;break}case"latin":{o=s.width.regular;break}case"wide":{o=s.width.wide;break}case"zero":{o=0;break}default:switch(Z(t)){case"ambiguous":{o=s.width.ambiguousIsNarrow?s.width.regular:s.width.wide;break}case"fullwidth":{o=s.width.fullWidth;break}case"wide":{o=s.width.wide;break}default:o=s.width.regular}}return c.set(r,o),o},Ot=t=>t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071||t>=917760&&t<=917999||t>=65024&&t<=65039||t>=3633&&t<=3642||t>=3655&&t<=3662||t>=3761&&t<=3769||t>=3771&&t<=3772||t>=3784&&t<=3789||t>=2304&&t<=2307||t>=2362&&t<=2383||t>=2385&&t<=2391||t>=2402&&t<=2403||t>=2433&&t<=2435||t>=2492&&t<=2500||t>=2509&&t<=2509||t>=2561&&t<=2563||t>=2620&&t<=2637||t>=1611&&t<=1631||t>=1648&&t<=1648||t>=1750&&t<=1773||t>=2276&&t<=2302||t>=1425&&t<=1469||t>=1471&&t<=1471||t>=1473&&t<=1474||t>=1476&&t<=1477||t>=1479&&t<=1479||t>=3893&&t<=3893||t>=3895&&t<=3895||t>=3897&&t<=3897||t>=3953&&t<=3966||t>=3968&&t<=3972||t>=3974&&t<=3975?!0:t>=768&&t<=777||t>=803&&t<=803,C=(t,s={})=>{if(!t||t.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const e={truncation:{countAnsiEscapeCodes:s.countAnsiEscapeCodes??!1,ellipsis:s.ellipsis??"",ellipsisWidth:s.ellipsisWidth??(s.ellipsis?C(s.ellipsis,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:s.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:s.ambiguousIsNarrow??!1,ansi:s.ansiWidth??0,control:s.controlWidth??0,emoji:s.emojiWidth??2,fullWidth:s.fullWidth??2,halfWidth:s.halfWidth??1,regular:s.regularWidth??1,tab:s.tabWidth??8,wide:s.wideWidth??2}},n=Math.max(0,e.truncation.limit-e.truncation.ellipsisWidth),{length:r}=t,c=r>1e4;let o=0,i=0,a=r,l=!1;const p=t.includes("\x1B")||t.includes("");for(;o<r;){if(p&&(t[o]==="\x1B"||t[o]==="")){if(t.startsWith("\x1B]8;;",o)){const d="\x1B]8;;\x07",w=d.length,y=t.indexOf("\x07",o+5);if(y!==-1){const S=t.indexOf(d,y+1);if(S!==-1){const B=S+w,W=t.slice(y+1,S).replace(U,""),k=C(W,{ambiguousIsNarrow:e.width.ambiguousIsNarrow,ansiWidth:e.width.ansi,controlWidth:e.width.control,countAnsiEscapeCodes:!1,ellipsis:e.truncation.ellipsis,ellipsisWidth:e.truncation.ellipsisWidth,emojiWidth:e.width.emoji,fullWidth:e.width.fullWidth,halfWidth:e.width.halfWidth,limit:Math.max(0,n-i),regularWidth:e.width.regular,tabWidth:e.width.tab,wideWidth:e.width.wide}),E=k.width;if(k.truncated)l=!0,a=Math.min(a,o);else if(i+E>n&&(a=Math.min(a,o),l=!0,i+E>e.truncation.limit))break;if(i+=E,o=B,l&&i>=e.truncation.limit)break;continue}}}if(T.lastIndex=o,T.test(t)){const d=T.lastIndex-o,w=e.truncation.countAnsiEscapeCodes?d:e.width.ansi;if(i+w>n&&(a=Math.min(a,o),i+w>e.truncation.limit)){l=!0;break}i+=w,o=T.lastIndex;continue}}const u=t.codePointAt(o);if(u===8203||u===65279||u>=8288&&u<=8292){o+=1;continue}if(u===9){if(i+e.width.tab>n&&(a=Math.min(a,o),i+e.width.tab>e.truncation.limit)){l=!0;break}i+=e.width.tab,o+=1;continue}if(I.lastIndex=o,I.test(t)){const d=(I.lastIndex-o)*e.width.regular;if(i+d>n){const w=e.width.regular>0?Math.floor((n-i)/e.width.regular):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=I.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(v.lastIndex=o,v.test(t))){const d=(v.lastIndex-o)*e.width.control;if(i+d>n){const w=e.width.control>0?Math.floor((n-i)/e.width.control):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=v.lastIndex;continue}if(_.lastIndex=o,_.test(t)){if(i+e.width.emoji>n&&(a=Math.min(a,o),i+e.width.emoji>e.truncation.limit)){l=!0;break}i+=e.width.emoji,o=_.lastIndex;continue}const m=t.codePointAt(o)??0;if(Ot(m)){o+=m>65535?2:1;continue}let h;if(c)h=jt(m,e);else switch(J(m)){case"control":{h=e.width.control;break}case"latin":{h=e.width.regular;break}case"wide":{h=e.width.wide;break}case"zero":{h=0;break}default:switch(Z(m)){case"ambiguous":{h=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{h=e.width.fullWidth;break}case"wide":{h=e.width.wide;break}default:h=e.width.regular}}if(i+h>n&&(a=Math.min(a,o),i+h>e.truncation.limit)){l=!0;break}i+=h,o+=m>65535?2:1}let g=i,b=!1;return l&&e.truncation.limit>=e.truncation.ellipsisWidth&&(g=e.truncation.limit,b=!0),{ellipsed:b,index:l?a:r,truncated:l,width:g}},Ze=(t,s={})=>C(t,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,N=()=>f(lt(),".vis"),Pt=()=>f(N(),"cache"),He=()=>f(N(),"state"),Kt=t=>ct("sha256").update(t).digest("hex").slice(0,12),Ue=t=>f(N(),"workspaces",Kt(t)),Lt=".vis",A=t=>f(t,Lt),qe="node_modules/.cache/vis",Je=t=>f(A(t),"runs"),Xe=t=>f(A(t),"last-summary.json"),Qe=t=>f(A(t),"last-failures"),ts=t=>{const s=ut()==="win32";for(const e of[".task-runner",".task-runner-cache"]){const n=f(t,e);if(it(n))try{const r=s?F("cmd.exe",["/c","rmdir","/s","/q",n],{detached:!0,stdio:"ignore"}):F("rm",["-rf",n],{detached:!0,stdio:"ignore"});r.on("error",()=>{}),r.unref()}catch{}}},zt="https://api.socket.dev/v0/purl?alerts=true",M=()=>f(Pt(),"socket-security"),Yt=3600*1e3,X=.4,P=100,Gt=t=>typeof t=="object"&&t!==null&&"id"in t&&"type"in t&&"name"in t&&"version"in t&&"alerts"in t&&"score"in t&&t.type==="npm",Vt=()=>{dt(M())},Q=(t,s)=>`${encodeURIComponent(t)}@${encodeURIComponent(s)}`,Zt=(t,s)=>{const e=Q(t,s),n=f(M(),`${e}.json`);try{const r=ht(n);if(Date.now()-r.createdAt>r.ttlMs){Y(n,{force:!0});return}return r.report}catch{return}},Ht=(t,s,e,n)=>{const r=Q(t,s),c={createdAt:Date.now(),report:e,ttlMs:n};at(f(M(),`${r}.json`),JSON.stringify(c),"utf8")},Ut=t=>{const s=[t.license,t.maintenance,t.quality,t.supplyChain,t.vulnerability];return Number((s.reduce((e,n)=>e+n,0)/s.length).toFixed(2))},qt=async(t,s={})=>{const{apiToken:e,cacheTtlMs:n=Yt,timeoutMs:r=15e3}=s,c=new Map;if(t.length===0||!e)return c;const o=[];for(const l of t){const p=Zt(l.name,l.version);p?c.set(`${l.name}@${l.version}`,p):o.push(l)}if(o.length===0)return c;const i=`Basic ${Buffer.from(`${e}:`).toString("base64")}`;Vt();const a=[];for(let l=0;l<o.length;l+=P)a.push(o.slice(l,l+P));for(const l of a){const p=l.map(u=>({purl:`pkg:npm/${u.name}@${u.version}`})),g=new AbortController,b=setTimeout(()=>{g.abort()},r);try{const u=await fetch(zt,{body:JSON.stringify({components:p}),headers:{Authorization:i,"Content-Type":"application/json","User-Agent":"@visulima/vis"},method:"POST",signal:g.signal});if(!u.ok)continue;const m=await u.text();Jt(m,l,c,n)}catch{}finally{clearTimeout(b)}}return c},Jt=(t,s,e,n)=>{const r=new Map;for(const o of s)r.set(`${o.name}@${o.version}`,o);const c=t.split(`}
|
|
1
|
+
import{createRequire as st}from"node:module";import{e as f}from"./index-BdMIfGVZ.js";import{y as G}from"./isAccessibleSync-DYKTrrvc-BwaMhQs0.js";import{p as ht}from"./readJsonSync-CbryXYxN-Bm5i10UW.js";import{h as dt}from"./writeFileSync-DJoHk3Ks-Dhem3Uof.js";let nt;const ot=t=>(nt??=st(import.meta.url))(t),x=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,R=t=>{if(typeof x<"u"&&x.versions&&x.versions.node){const[s,e]=x.versions.node.split(".").map(Number);if(s>22||s===22&&e>=3||s===20&&e>=16)return x.getBuiltinModule(t)}return ot(t)},{existsSync:it,readdirSync:z,statSync:rt,rmSync:Y,writeFileSync:at}=R("node:fs"),{spawn:F}=R("node:child_process"),{createHash:ct}=R("node:crypto"),{homedir:lt,platform:ut}=R("node:os"),pt=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ft=12288,gt=65510,mt=[12288,12288,65281,65376,65504,65510],wt=8361,bt=65518,yt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],St=32,Et=10630,xt=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],$t=4352,Mt=262141,V=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],$=(t,s)=>{let e=0,n=Math.floor(t.length/2)-1;for(;e<=n;){const r=Math.floor((e+n)/2),c=r*2;if(s<t[c])n=r-1;else if(s>t[c+1])e=r+1;else return!0}return!1},D=19968,[Bt,kt]=vt(V);function vt(t){let s=t[0],e=t[1];for(let n=0;n<t.length;n+=2){const r=t[n],c=t[n+1];if(D>=r&&D<=c)return[r,c];c-r>e-s&&(s=r,e=c)}return[s,e]}const Tt=t=>t<161||t>1114109?!1:$(pt,t),It=t=>t<ft||t>gt?!1:$(mt,t),Rt=t=>t<wt||t>bt?!1:$(yt,t),Wt=t=>t<St||t>Et?!1:$(xt,t),_t=t=>t>=Bt&&t<=kt?!0:t<$t||t>Mt?!1:$(V,t);function Ct(t){return Tt(t)?"ambiguous":It(t)?"fullwidth":Rt(t)?"halfwidth":Wt(t)?"narrow":_t(t)?"wide":"neutral"}function Nt(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Z(t){return Nt(t),Ct(t)}const H=String.raw,j=H`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,At=()=>new RegExp(H`\p{RI}{2}|(?)${j}(?:\u200D${j})*`,"gu"),he=new Set(["\x1B",""]),de="\x07",pe="]8;;",fe=/[\u200B\uFEFF\u2060-\u2064]/g,U=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\)|\][^\u0007\u001B]{0,1000}(?:\u0007|\u001B\\))/g,ge=/\u001B\[[\d;]*m[^\u001B]*(?:\u001B\[[\d;]*m|$)/g,me=/\u001B\]8;[^\u0007\u001B]*(?:\u0007|\u001B\\)[^\u001B]*\u001B\]8;;(?:\u0007|\u001B\\)/g,v=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,q=At(),we=/[-_./\s]+/g,be=/(\u001B\[[0-9;]*[a-z])/i,ye=new RegExp("\\p{Script=Arabic}","u"),Se=new RegExp("\\p{Script=Bengali}","u"),Ee=new RegExp("\\p{Script=Cyrillic}","u"),xe=new RegExp("\\p{Script=Devanagari}","u"),$e=new RegExp("\\p{Script=Ethiopic}","u"),Me=new RegExp("\\p{Script=Greek}","u"),Be=new RegExp("\\p{Script=Greek}+|\\p{Script=Latin}+|[^\\p{Script=Greek}\\p{Script=Latin}]+","gu"),ke=new RegExp("\\p{Script=Gujarati}","u"),ve=new RegExp("\\p{Script=Gurmukhi}","u"),Te=new RegExp("\\p{Script=Hangul}","u"),Ie=new RegExp("\\p{Script=Hebrew}","u"),Re=new RegExp("\\p{Script=Hiragana}","u"),We=new RegExp("\\p{Script=Han}","u"),_e=new RegExp("\\p{Script=Kannada}","u"),Ce=new RegExp("\\p{Script=Katakana}","u"),Ne=new RegExp("\\p{Script=Khmer}","u"),Ae=new RegExp("\\p{Script=Lao}","u"),Fe=new RegExp("\\p{Script=Latin}","u"),De=new RegExp("\\p{Script=Malayalam}","u"),je=new RegExp("\\p{Script=Myanmar}","u"),Oe=new RegExp("\\p{Script=Oriya}","u"),Pe=new RegExp("\\p{Script=Sinhala}","u"),Ke=new RegExp("\\p{Script=Tamil}","u"),Le=new RegExp("\\p{Script=Telugu}","u"),ze=new RegExp("\\p{Script=Thai}","u"),Ye=new RegExp("\\p{Script=Tibetan}","u"),Ge=/[\u02BB\u02BC\u0027]/u,Ve=t=>t.replace(q,""),O=new Map,Ft=t=>[t.ambiguousIsNarrow?1:0,t.control,t.fullWidth,t.regular,t.wide].join("|"),Dt=t=>{const s=Ft(t.width);let e=O.get(s);return e||(e=new Map,O.set(s,e)),e},T=new RegExp(U.source,"y"),_=new RegExp(q.source,"uy"),I=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,J=t=>t>=32&&t<=126?"latin":t===8203||t===8204||t===8205||t===8288?"zero":t<=31||t>=127&&t<=159?"control":t>=160&&t<=255||t>=9472&&t<=9599?"latin":t>=4352&&t<=4607||t>=11904&&t<=40959||t>=44032&&t<=55215||t>=63744&&t<=64255||t>=65280&&t<=65519&&!(t>=65377&&t<=65439)||t>=12352&&t<=12543?"wide":t===8230?"latin":"other",jt=(t,s)=>{const e=Dt(s),n=Math.floor(t/65536),r=t%65536;let c=e.get(n);if(c||(c=new Map,e.set(n,c)),c.has(r))return c.get(r);let o;switch(J(t)){case"control":{o=s.width.control;break}case"latin":{o=s.width.regular;break}case"wide":{o=s.width.wide;break}case"zero":{o=0;break}default:switch(Z(t)){case"ambiguous":{o=s.width.ambiguousIsNarrow?s.width.regular:s.width.wide;break}case"fullwidth":{o=s.width.fullWidth;break}case"wide":{o=s.width.wide;break}default:o=s.width.regular}}return c.set(r,o),o},Ot=t=>t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071||t>=917760&&t<=917999||t>=65024&&t<=65039||t>=3633&&t<=3642||t>=3655&&t<=3662||t>=3761&&t<=3769||t>=3771&&t<=3772||t>=3784&&t<=3789||t>=2304&&t<=2307||t>=2362&&t<=2383||t>=2385&&t<=2391||t>=2402&&t<=2403||t>=2433&&t<=2435||t>=2492&&t<=2500||t>=2509&&t<=2509||t>=2561&&t<=2563||t>=2620&&t<=2637||t>=1611&&t<=1631||t>=1648&&t<=1648||t>=1750&&t<=1773||t>=2276&&t<=2302||t>=1425&&t<=1469||t>=1471&&t<=1471||t>=1473&&t<=1474||t>=1476&&t<=1477||t>=1479&&t<=1479||t>=3893&&t<=3893||t>=3895&&t<=3895||t>=3897&&t<=3897||t>=3953&&t<=3966||t>=3968&&t<=3972||t>=3974&&t<=3975?!0:t>=768&&t<=777||t>=803&&t<=803,C=(t,s={})=>{if(!t||t.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const e={truncation:{countAnsiEscapeCodes:s.countAnsiEscapeCodes??!1,ellipsis:s.ellipsis??"",ellipsisWidth:s.ellipsisWidth??(s.ellipsis?C(s.ellipsis,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:s.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:s.ambiguousIsNarrow??!1,ansi:s.ansiWidth??0,control:s.controlWidth??0,emoji:s.emojiWidth??2,fullWidth:s.fullWidth??2,halfWidth:s.halfWidth??1,regular:s.regularWidth??1,tab:s.tabWidth??8,wide:s.wideWidth??2}},n=Math.max(0,e.truncation.limit-e.truncation.ellipsisWidth),{length:r}=t,c=r>1e4;let o=0,i=0,a=r,l=!1;const p=t.includes("\x1B")||t.includes("");for(;o<r;){if(p&&(t[o]==="\x1B"||t[o]==="")){if(t.startsWith("\x1B]8;;",o)){const d="\x1B]8;;\x07",w=d.length,y=t.indexOf("\x07",o+5);if(y!==-1){const S=t.indexOf(d,y+1);if(S!==-1){const B=S+w,W=t.slice(y+1,S).replace(U,""),k=C(W,{ambiguousIsNarrow:e.width.ambiguousIsNarrow,ansiWidth:e.width.ansi,controlWidth:e.width.control,countAnsiEscapeCodes:!1,ellipsis:e.truncation.ellipsis,ellipsisWidth:e.truncation.ellipsisWidth,emojiWidth:e.width.emoji,fullWidth:e.width.fullWidth,halfWidth:e.width.halfWidth,limit:Math.max(0,n-i),regularWidth:e.width.regular,tabWidth:e.width.tab,wideWidth:e.width.wide}),E=k.width;if(k.truncated)l=!0,a=Math.min(a,o);else if(i+E>n&&(a=Math.min(a,o),l=!0,i+E>e.truncation.limit))break;if(i+=E,o=B,l&&i>=e.truncation.limit)break;continue}}}if(T.lastIndex=o,T.test(t)){const d=T.lastIndex-o,w=e.truncation.countAnsiEscapeCodes?d:e.width.ansi;if(i+w>n&&(a=Math.min(a,o),i+w>e.truncation.limit)){l=!0;break}i+=w,o=T.lastIndex;continue}}const u=t.codePointAt(o);if(u===8203||u===65279||u>=8288&&u<=8292){o+=1;continue}if(u===9){if(i+e.width.tab>n&&(a=Math.min(a,o),i+e.width.tab>e.truncation.limit)){l=!0;break}i+=e.width.tab,o+=1;continue}if(I.lastIndex=o,I.test(t)){const d=(I.lastIndex-o)*e.width.regular;if(i+d>n){const w=e.width.regular>0?Math.floor((n-i)/e.width.regular):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=I.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(v.lastIndex=o,v.test(t))){const d=(v.lastIndex-o)*e.width.control;if(i+d>n){const w=e.width.control>0?Math.floor((n-i)/e.width.control):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=v.lastIndex;continue}if(_.lastIndex=o,_.test(t)){if(i+e.width.emoji>n&&(a=Math.min(a,o),i+e.width.emoji>e.truncation.limit)){l=!0;break}i+=e.width.emoji,o=_.lastIndex;continue}const m=t.codePointAt(o)??0;if(Ot(m)){o+=m>65535?2:1;continue}let h;if(c)h=jt(m,e);else switch(J(m)){case"control":{h=e.width.control;break}case"latin":{h=e.width.regular;break}case"wide":{h=e.width.wide;break}case"zero":{h=0;break}default:switch(Z(m)){case"ambiguous":{h=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{h=e.width.fullWidth;break}case"wide":{h=e.width.wide;break}default:h=e.width.regular}}if(i+h>n&&(a=Math.min(a,o),i+h>e.truncation.limit)){l=!0;break}i+=h,o+=m>65535?2:1}let g=i,b=!1;return l&&e.truncation.limit>=e.truncation.ellipsisWidth&&(g=e.truncation.limit,b=!0),{ellipsed:b,index:l?a:r,truncated:l,width:g}},Ze=(t,s={})=>C(t,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,N=()=>f(lt(),".vis"),Pt=()=>f(N(),"cache"),He=()=>f(N(),"state"),Kt=t=>ct("sha256").update(t).digest("hex").slice(0,12),Ue=t=>f(N(),"workspaces",Kt(t)),Lt=".vis",A=t=>f(t,Lt),qe="node_modules/.cache/vis",Je=t=>f(A(t),"runs"),Xe=t=>f(A(t),"last-summary.json"),Qe=t=>f(A(t),"last-failures"),ts=t=>{const s=ut()==="win32";for(const e of[".task-runner",".task-runner-cache"]){const n=f(t,e);if(it(n))try{const r=s?F("cmd.exe",["/c","rmdir","/s","/q",n],{detached:!0,stdio:"ignore"}):F("rm",["-rf",n],{detached:!0,stdio:"ignore"});r.on("error",()=>{}),r.unref()}catch{}}},zt="https://api.socket.dev/v0/purl?alerts=true",M=()=>f(Pt(),"socket-security"),Yt=3600*1e3,X=.4,P=100,Gt=t=>typeof t=="object"&&t!==null&&"id"in t&&"type"in t&&"name"in t&&"version"in t&&"alerts"in t&&"score"in t&&t.type==="npm",Vt=()=>{dt(M())},Q=(t,s)=>`${encodeURIComponent(t)}@${encodeURIComponent(s)}`,Zt=(t,s)=>{const e=Q(t,s),n=f(M(),`${e}.json`);try{const r=ht(n);if(Date.now()-r.createdAt>r.ttlMs){Y(n,{force:!0});return}return r.report}catch{return}},Ht=(t,s,e,n)=>{const r=Q(t,s),c={createdAt:Date.now(),report:e,ttlMs:n};at(f(M(),`${r}.json`),JSON.stringify(c),"utf8")},Ut=t=>{const s=[t.license,t.maintenance,t.quality,t.supplyChain,t.vulnerability];return Number((s.reduce((e,n)=>e+n,0)/s.length).toFixed(2))},qt=async(t,s={})=>{const{apiToken:e,cacheTtlMs:n=Yt,timeoutMs:r=15e3}=s,c=new Map;if(t.length===0||!e)return c;const o=[];for(const l of t){const p=Zt(l.name,l.version);p?c.set(`${l.name}@${l.version}`,p):o.push(l)}if(o.length===0)return c;const i=`Basic ${Buffer.from(`${e}:`).toString("base64")}`;Vt();const a=[];for(let l=0;l<o.length;l+=P)a.push(o.slice(l,l+P));for(const l of a){const p=l.map(u=>({purl:`pkg:npm/${u.name}@${u.version}`})),g=new AbortController,b=setTimeout(()=>{g.abort()},r);try{const u=await fetch(zt,{body:JSON.stringify({components:p}),headers:{Authorization:i,"Content-Type":"application/json","User-Agent":"@visulima/vis"},method:"POST",signal:g.signal});if(!u.ok)continue;const m=await u.text();Jt(m,l,c,n)}catch{}finally{clearTimeout(b)}}return c},Jt=(t,s,e,n)=>{const r=new Map;for(const o of s)r.set(`${o.name}@${o.version}`,o);const c=t.split(`}
|
|
2
2
|
`);for(const o of c){const i=o.trim();if(i)try{const a=JSON.parse(i.endsWith("}")?i:`${i}}`),p=`${a.namespace?`${a.namespace}/`:""}${a.name}`,g=`${p}@${a.version}`;if(!r.has(g))continue;const b=a.score.overall??Ut(a.score),u={alerts:a.alerts,author:a.author,id:a.id,license:a.license,name:a.name,score:{...a.score,overall:b},size:a.size,type:"npm",version:a.version};a.namespace&&(u.namespace=a.namespace),Gt(u)&&(e.set(g,u),Ht(p,a.version,u,n))}catch{}}},Xt=t=>t.namespace?`${t.namespace}/${t.name}`:t.name,es=t=>t>=.8?"excellent":t>=.6?"good":t>=.4?"fair":t>=.2?"poor":"critical",ss=t=>t>=.6?"green":t>=.4?"yellow":"red",ns=t=>{const s=Xt(t),e=`score: ${String(Math.round(t.score.overall*100))}%`,n=t.alerts.length,r=n>0?`${String(n)} alert${n===1?"":"s"}`:"no alerts";return`${s}@${t.version} (${e}, ${r})`},os=(t,s=X)=>{if(t.size===0)return"";let e=0,n=0,r=0,c=0,o=0,i=0;for(const l of t.values()){for(const p of l.alerts)switch(e++,p.severity){case"critical":{n++;break}case"high":{r++;break}case"medium":{c++;break}default:o++}l.score.overall<s&&i++}const a=[`Socket.dev: scanned ${String(t.size)} package${t.size===1?"":"s"}`];if(e>0){const l=[];n>0&&l.push(`${String(n)} critical`),r>0&&l.push(`${String(r)} high`),c>0&&l.push(`${String(c)} medium`),o>0&&l.push(`${String(o)} low`),a.push(` Alerts: ${String(e)} total (${l.join(", ")})`)}else a.push(" No security alerts found.");if(i>0){const l=Math.round(s*100);a.push(` ${String(i)} package${i===1?"":"s"} with low security score (<${String(l)}%)`)}return a.join(`
|
|
3
3
|
`)},Qt=()=>{const t=M();if(!G(t))return 0;const s=z(t).filter(e=>e.endsWith(".json"));for(const e of s)Y(f(t,e),{force:!0});return s.length},te=()=>{const t=M();if(!G(t))return{entries:0,newestEntry:void 0,oldestEntry:void 0,totalSizeBytes:0};const s=z(t).filter(c=>c.endsWith(".json"));let e=0,n,r;for(const c of s){const o=rt(f(t,c));e+=o.size;const{mtimeMs:i}=o;(n===void 0||i<n)&&(n=i),(r===void 0||i>r)&&(r=i)}return{entries:s.length,newestEntry:r,oldestEntry:n,totalSizeBytes:e}},ee=(t,s)=>t?.enabled?{apiToken:t.apiToken??process.env.VIS_SOCKET_TOKEN,cacheTtlMs:t.cacheTtlMs,minimumScore:s??X,timeoutMs:t.timeoutMs}:void 0,is=(t,s,e,n)=>{if(!e)return;const r=Date.now(),c=i=>{if(i.expiresAt){const a=Date.parse(i.expiresAt);if(!Number.isNaN(a)&&a<r)return!1}return!(n&&i.policies&&!i.policies.includes(n))},o=`${t}@${s}`;if(e[o]&&c(e[o]))return e[o];if(e[t]&&c(e[t]))return e[t];for(const[i,a]of Object.entries(e))if(i.endsWith("*")&&t.startsWith(i.slice(0,-1))&&c(a))return a},rs=(t,s,e,n)=>[" // Add to security.acceptedRisks in vis.config.ts:",` ${`"${t}"`}: {`,` reason: "${n}",`,` acceptedAt: "${new Date().toISOString()}",`,` acceptedScore: ${String(e)},`,' policies: ["score"],'," },"].join(`
|
|
4
4
|
`),as=(t,s={})=>{const e=ee(t,s.minimumScore);if(e)return{clearCache:Qt,displayName:"Socket.dev",fetchReports:n=>qt(n,e),getCacheStats:te,id:"socket"}},cs=t=>{if(t===void 0)return!1;const s=t.trim().toLowerCase();return s!==""&&s!=="0"&&s!=="false"&&s!=="no"},tt={iec:[{long:"Bytes",short:"B"},{long:"Kibibytes",short:"KiB"},{long:"Mebibytes",short:"MiB"},{long:"Gibibytes",short:"GiB"},{long:"Tebibytes",short:"TiB"},{long:"Pebibytes",short:"PiB"},{long:"Exbibytes",short:"EiB"},{long:"Zebibytes",short:"ZiB"},{long:"Yobibytes",short:"YiB"}],iec_octet:[{long:"Octets",short:"o"},{long:"Kibioctets",short:"Kio"},{long:"Mebioctets",short:"Mio"},{long:"Gibioctets",short:"Gio"},{long:"Tebioctets",short:"Tio"},{long:"Pebioctets",short:"Pio"},{long:"Exbioctets",short:"Eio"},{long:"Zebioctets",short:"Zio"},{long:"Yobioctets",short:"Yio"}],metric:[{long:"Bytes",short:"Bytes"},{long:"Kilobytes",short:"KB"},{long:"Megabytes",short:"MB"},{long:"Gigabytes",short:"GB"},{long:"Terabytes",short:"TB"},{long:"Petabytes",short:"PB"},{long:"Exabytes",short:"EB"},{long:"Zettabytes",short:"ZB"},{long:"Yottabytes",short:"YB"}],metric_octet:[{long:"Octets",short:"o"},{long:"Kilo-octets",short:"ko"},{long:"Mega-octets",short:"Mo"},{long:"Giga-octets",short:"Go"},{long:"Tera-octets",short:"To"},{long:"Peta-octets",short:"Po"},{long:"Exa-octets",short:"Eo"},{long:"Zetta-octets",short:"Zo"},{long:"Yotta-octets",short:"Yo"}]},se=[{long:"bits",short:"bit"},{long:"Kilobits",short:"kbit"},{long:"Megabits",short:"Mbit"},{long:"Gigabits",short:"Gbit"},{long:"Terabits",short:"Tbit"},{long:"Petabits",short:"Pbit"},{long:"Exabits",short:"Ebit"},{long:"Zettabits",short:"Zbit"},{long:"Yottabits",short:"Ybit"}],K=new Map,L=(t,s)=>{const e=`${t}\0${JSON.stringify(s)}`;let n=K.get(e);return n===void 0&&(n=new Intl.NumberFormat(t,s),K.set(e,n)),n},ne=t=>{switch(t){case 2:return 1024;case 10:return 1e3;default:throw new Error("Unsupported base.")}},oe=(t,s,e)=>({maximumFractionDigits:t,minimumFractionDigits:t,...s,...e}),ie=(t,s,e,n)=>{if(t===void 0)return-1;const r=s.findIndex(c=>c.short===t);return r===-1&&n?tt[e].findIndex(c=>c.short===t):r},ls=(t,s)=>{if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("Bytesize is not a number.");const{base:e,bits:n,decimals:r,locale:c,long:o,signed:i,unit:a,units:l,...p}={base:2,bits:!1,decimals:0,locale:"en-US",long:!1,signed:!1,units:"metric",...s},g=ne(e),b=n?t*8:t,u=Math.abs(b),m=s?.space??!0?" ":"",h=n?se:tt[l],d=ie(a,h,l,n),w=r<0?void 0:r,y=i?{signDisplay:"exceptZero"}:{};if(b===0){const E=d===-1?0:Math.min(d,h.length-1),et=h[E][o?"long":"short"];return L(c,{...y,...p}).format(0)+m+et}const S=Math.max(0,Math.min(Math.floor(Math.log(u)/Math.log(g)),h.length-1)),B=d===-1?S:d,W=h[B][o?"long":"short"],k=b/g**B;return L(c,oe(w,y,p)).format(k)+m+W};export{ls as $,Ae as A,Ee as B,ve as C,X as D,je as E,Te as F,$e as G,xe as H,Ne as I,ze as J,Be as K,we as L,ke as M,Oe as N,Me as O,_e as P,ts as Q,q as R,ge as S,be as T,Fe as U,Ye as V,Ce as W,me as X,De as Y,Ge as Z,U as _,Qe as a,C as a0,It as a1,_t as a2,fe as a3,he as a4,pe as a5,de as a6,as as a7,os as a8,qe as a9,te as aa,Qt as ab,Xe as ac,N as b,A as c,Je as d,Xt as e,is as f,Pt as g,ns as h,es as i,rs as j,cs as k,He as l,Ut as m,qt as n,Ze as o,Ue as p,Ve as q,We as r,ss as s,Re as t,Ie as u,Ke as v,Se as w,ye as x,Le as y,Pe as z};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{createRequire as bu}from"node:module";let wu;const xu=u=>(wu??=bu(import.meta.url))(u),V=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vu=u=>{if(typeof V<"u"&&V.versions&&V.versions.node){const[D,e]=V.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return V.getBuiltinModule(u)}return xu(u)},{createRequire:Y}=vu("node:module"),
|
|
2
|
-
`),a0=(u,D,e,r)=>{const n={column:0,line:-1,...u.start},i={...n,...u.end},c=n.line,E=n.column,
|
|
3
|
-
`);typeof r.tabWidth=="number"&&u.includes(" ")&&(i=i.map(l=>l.replaceAll(" "," ".repeat(r.tabWidth))));const{end:c,markerLines:E,start:
|
|
4
|
-
`,r.prefix+A(y.replaceAll(/\d/g," "))," ",
|
|
5
|
-
`);return r.message&&!n&&(p=`${r.prefix+" ".repeat(
|
|
1
|
+
import{createRequire as bu}from"node:module";let wu;const xu=u=>(wu??=bu(import.meta.url))(u),V=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vu=u=>{if(typeof V<"u"&&V.versions&&V.versions.node){const[D,e]=V.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return V.getBuiltinModule(u)}return xu(u)},{createRequire:Y}=vu("node:module"),O0=0,_0=4,$u=Symbol("findUpStop"),I0=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,Su=/^[A-Z]:\//i,I=(u="")=>u&&u.replaceAll("\\","/").replace(Su,D=>D.toUpperCase()),Nu=/^[/\\]{2}/,ku=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,iu=/^[A-Z]:$/i,ou=/^\/([A-Z]:)?$/i,Cu=/^([A-Z]:)\/$/i,Pu=/[^/](\.[^./]+)$/,ju=/^[/\\]|^[a-z]:[/\\]/i,zu=/\/$/,Ou=()=>{if(typeof process.cwd=="function")try{const u=process.cwd();if(typeof u=="string")return I(u)}catch{}return"/"},T0="/",pu=(u,D)=>{let e="",r=0,n=-1,i=0,c;for(let E=0;E<=u.length;++E){if(E<u.length)c=u[E];else{if(c==="/")break;c="/"}if(c==="/"){if(!(n===E-1||i===1))if(i===2){if(e.length<2||r!==2||!e.endsWith(".")||e.at(-2)!=="."){if(e.length>2){const g=e.lastIndexOf("/");g===-1?(e="",r=0):(e=e.slice(0,g),r=e.length-1-e.lastIndexOf("/")),n=E,i=0;continue}else if(e.length>0){e="",r=0,n=E,i=0;continue}}D&&(e+=e.length>0?"/..":"..",r=2)}else e.length>0?e+=`/${u.slice(n+1,E)}`:e=u.slice(n+1,E),r=E-n-1;n=E,i=0}else c==="."&&i!==-1?++i:i=-1}return e},M=u=>ku.test(u),_u=function(u){if(u.length===0)return".";u=I(u);const D=Nu.exec(u),e=M(u),r=u.at(-1)==="/";return u=pu(u,!e),u.length===0?e?"/":r?"./":".":(r&&(u+="/"),iu.test(u)&&(u+="/"),D?e?`//${u}`:`//./${u}`:e&&!M(u)?`/${u}`:u)},L0=(...u)=>{let D="";for(const e of u)if(e)if(D.length>0){const r=D.at(-1)==="/",n=e[0]==="/";r&&n?D+=e.slice(1):D+=r||n?e:`/${e}`}else D+=e;return _u(D)},H=function(...u){u=u.map(r=>I(r));let D="",e=!1;for(let r=u.length-1;r>=-1&&!e;r--){const n=r>=0?u[r]:Ou();!n||n.length===0||(D=`${n}/${D}`,e=M(n))}return D=pu(D,!e),iu.test(D)?`${D}/`:e&&!M(D)?`/${D}`:D.length>0?D:"."},M0=function(u){return I(u)},Iu=function(u){return Pu.exec(I(u))?.[1]??""},V0=function(u,D){const e=H(u).replace(ou,"$1").replace(Cu,"$1").split("/"),r=H(D).replace(ou,"$1").replace(Cu,"$1").split("/");if(r[0][1]===":"&&e[0][1]===":"&&e[0]!==r[0])return r.join("/");const n=Math.min(e.length,r.length);let i=0;for(;i<n&&e[i]===r[i];)i+=1;const c=e.length-i;return[...Array.from({length:c}).fill(".."),...r.slice(i)].join("/")},mu=u=>{const D=I(u).replace(zu,""),e=D.lastIndexOf("/");if(e===-1)return M(u)?"/":".";const r=D.slice(0,e);return iu.test(r)?`${r}/`:r||(M(u)?"/":".")},Tu=(u,D)=>{const e=I(u),r=e.slice(e.lastIndexOf("/")+1);if(D&&r.endsWith(D)){if(D===e)return"";const n=r.slice(0,-D.length);if(n.length>0)return n}return r},Lu=function(u){const D=ju.exec(u)?.[0]?.replaceAll("\\","/")??"",e=Tu(u),r=Iu(e);return{base:e,dir:mu(u),ext:r,name:e.slice(0,e.length-r.length),root:D}};let Mu;const Vu=u=>(Mu??=Y(import.meta.url))(u),J=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ju=u=>{if(typeof J<"u"&&J.versions&&J.versions.node){const[D,e]=J.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return J.getBuiltinModule(u)}return Vu(u)},{fileURLToPath:Ru}=Ju("node:url");function qu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Au,au;function Wu(){return au||(au=1,Au=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Au}var Uu=Wu();const Hu=qu(Uu);new Set(Hu);const Zu=/^(?:\.?\.[/\\]|\.\.\B)/,J0=u=>Zu.test(u)||u==="..",K=u=>I(u instanceof URL?Ru(u):u),Gu=u=>{if(!u||!(u instanceof URL)&&typeof u!="string")throw new TypeError("Path must be a non-empty string or URL.")};let Ku;const Qu=u=>(Ku??=Y(import.meta.url))(u),R=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xu=u=>{if(typeof R<"u"&&R.versions&&R.versions.node){const[D,e]=R.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return R.getBuiltinModule(u)}return Qu(u)},{statSync:Yu,lstatSync:u0}=Xu("node:fs"),R0=(u,D={})=>{if(typeof u!="string"&&!Array.isArray(u)&&typeof u!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const e=D.cwd?K(D.cwd):process.cwd();let r=H(e);const{root:n}=Lu(r),i=K(D.stopAt??n),c=H(r,i),E=D.type??"file",g=function(A){return typeof u=="function"?[u(A)]:typeof u=="string"?[u]:Array.isArray(u)?u:[u]};D.allowSymlinks??=!0;const S=D.allowSymlinks?Yu:u0;for(;r;){for(let A of g(r)){if(A===$u)return;if(A===void 0)continue;Buffer.isBuffer(A)?A=A.toString():A instanceof URL&&(A=K(A));const B=M(A)?A:H(r,A);try{const h=S(B);if(E==="file"&&h.isFile()||E==="directory"&&h.isDirectory())return B}catch{}}if(r===c||r===n)break;r=mu(r)}};let D0=class extends Error{constructor(D){super(`ENOENT: ${D}`)}get code(){return"ENOENT"}set code(D){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(D){throw new Error("Cannot overwrite name of NotFoundError")}};class e0 extends Error{constructor(D){super(`EPERM: Operation not permitted, ${D}`)}get code(){return"EPERM"}set code(D){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(D){throw new Error("Cannot overwrite name of PermissionError")}}const t0=(u,D)=>{const e=u?.code;return e==="ENOENT"?new D0(`no such file or directory, open '${D}'`):e==="EACCES"||e==="EPERM"?new e0(`unable to read the non-readable file: ${D}`):u};let r0;const n0=u=>(r0??=Y(import.meta.url))(u),q=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,du=u=>{if(typeof q<"u"&&q.versions&&q.versions.node){const[D,e]=q.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return q.getBuiltinModule(u)}return n0(u)},{readFileSync:i0}=du("node:fs"),{unzipSync:s0,brotliDecompressSync:F0}=du("node:zlib"),o0={brotli:F0,gzip:s0,none:u=>u},W0=(u,D)=>{Gu(u),u=K(u);const{buffer:e,compression:r,encoding:n,flag:i}=D??{};let c;try{c=i0(u,i?{flag:i}:{})}catch(S){throw t0(S,u)}const E=o0[r??"none"],g=E(c);return e?g:g.toString(n??"utf8")},C0=globalThis.process??Object.create(null),Eu={versions:{}},cu=new Proxy(C0,{get(u,D){if(D in u)return u[D];if(D in Eu)return Eu[D]}}),A0=u=>u.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
2
|
+
`),a0=(u,D,e,r)=>{const n={column:0,line:-1,...u.start},i={...n,...u.end},c=n.line,E=n.column,g=i.line,S=i.column;let A=Math.max(c-(e+1),0),B=Math.min(D.length,g+r);c===-1&&(A=0),g===-1&&(B=D.length);const h=g-c,p={};if(h)for(let l=0;l<=h;l++){const F=l+c;if(!E)p[F]=!0;else if(l===0){const f=D[F-1]?.length;p[F]=[E,(f??0)-E+1]}else if(l===h)p[F]=[0,S];else{const f=D[F-l]?.length;p[F]=[0,f]}}else E===S?p[c]=E?[E,0]:!0:p[c]=[E,(S??0)-(E??0)];return{end:B,markerLines:p,start:A}},E0=cu.platform==="win32"&&!cu.env?.WT_SESSION?">":"❯",U0=(u,D,e)=>{const r={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...e,color:{gutter:l=>l,marker:l=>l,message:l=>l,...e?.color}},n=typeof D.start.column=="number";let i=(u.includes("\r")?A0(u):u).split(`
|
|
3
|
+
`);typeof r.tabWidth=="number"&&u.includes(" ")&&(i=i.map(l=>l.replaceAll(" "," ".repeat(r.tabWidth))));const{end:c,markerLines:E,start:g}=a0(D,i,r.linesAbove,r.linesBelow),S=String(c).length,{gutter:A,marker:B,message:h}=r.color;let p=i.slice(g,c).map((l,F)=>{const f=g+1+F,s=E[f],w=String(f).padStart(S),v=!E[f+1],y=` ${w}${r.showGutter?" |":""}`;if(s){let x="";if(Array.isArray(s)){const O=l.replaceAll(/[^\t]/g," ").slice(0,Math.max(s[0]-1,0)),yu=s[1]||1;x=[`
|
|
4
|
+
`,r.prefix+A(y.replaceAll(/\d/g," "))," ",O,B("^").repeat(yu)].join(""),v&&r.message&&(x+=` ${h(r.message)}`)}return[r.prefix+B(E0),A(y),l.length>0?` ${l}`:"",x].join("")}return`${r.prefix} ${A(y)}${l.length>0?` ${l}`:""}`}).join(`
|
|
5
|
+
`);return r.message&&!n&&(p=`${r.prefix+" ".repeat(S+1)+r.message}
|
|
6
6
|
${p}`),p},lu=(u,D)=>{let e=0,r=D.length-2;for(;e<r;){const n=e+(r-e>>1);if(u<D[n])r=n-1;else if(u>=D[n+1])e=n+1;else{e=n;break}}return e},c0=/\n|\r(?!\n)/,l0=u=>u.split(c0).reduce((D,e)=>(D.push(D.at(-1)+e.length+1),D),[0]),H0=(u,D,e)=>{if(!Array.isArray(u)&&typeof u!="string"||(typeof u=="string"||Array.isArray(u))&&u.length===0)return{column:0,line:0};if(typeof D!="number"||typeof u=="string"&&D>=u.length||Array.isArray(u)&&D+1>=u.at(-1))return{column:0,line:0};if(typeof u=="string"){const n=l0(u),i=lu(D,n);return{column:D-n[i]+1,line:i+1}}const r=lu(D,u);return{column:D-u[r]+1,line:r+1}};class Z0 extends Error{fileName;codeFrame;name="JSONError";#u;constructor(D){super(),this.#u=D}get message(){return`${this.#u}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
|
|
7
7
|
|
|
8
8
|
${this.codeFrame}
|
|
9
|
-
`:""}`}set message(D){this.#u=D}}let f0;const B0=u=>(f0??=Y(import.meta.url))(u),W=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,su=u=>{if(typeof W<"u"&&W.versions&&W.versions.node){const[D,e]=W.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return W.getBuiltinModule(u)}return B0(u)},p0=su("fs"),m0=su("os"),g0=su("path");var uu={},fu;function d0(){if(fu)return uu;fu=1;var u=Object.defineProperty,D=(A,B)=>u(A,"name",{value:B,configurable:!0}),e=p0,r=m0,n=g0;const i=D(A=>{let B="";for(let h=0;h<A.length;h+=1){const p=A[h],l=p.toUpperCase();B+=p===l?p.toLowerCase():l}return B},"invertCase"),c=new Map,E=D((A,B)=>{const h=n.join(A,`.is-fs-case-sensitive-test-${process.pid}`);try{return B.writeFileSync(h,""),!B.existsSync(i(h))}finally{try{B.unlinkSync(h)}catch{}}},"checkDirectoryCaseWithWrite"),d=D((A,B,h)=>{try{return E(A,h)}catch(p){if(B===void 0)return E(r.tmpdir(),h);throw p}},"checkDirectoryCaseWithFallback"),$=D((A,B=e,h=!0)=>{const p=A??process.cwd();if(h&&c.has(p))return c.get(p);let l;const o=i(p);return o!==p&&B.existsSync(p)?l=!B.existsSync(o):l=d(p,A,B),h&&c.set(p,l),l},"isFsCaseSensitive");return uu.isFsCaseSensitive=$,uu}var h0=d0();const G0=h0.isFsCaseSensitive;var y0=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,b0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,w0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Du={Space_Separator:y0,ID_Start:b0,ID_Continue:w0},b={isSpaceSeparator(u){return typeof u=="string"&&Du.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||Du.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u===""||u===""||Du.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}};let tu,N,j,Q,_,k,S,ou,Z;var x0=function(D,e){tu=String(D),N="start",j=[],Q=0,_=1,k=0,S=void 0,ou=void 0,Z=void 0;do S=v0(),N0[N]();while(S.type!=="eof");return typeof e=="function"?ru({"":Z},"",e):Z};function ru(u,D,e){const r=u[D];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let n=0;n<r.length;n++){const i=String(n),c=ru(r,i,e);c===void 0?delete r[i]:Object.defineProperty(r,i,{value:c,writable:!0,enumerable:!0,configurable:!0})}else for(const n in r){const i=ru(r,n,e);i===void 0?delete r[n]:Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0})}return e.call(u,D,r)}let C,F,U,P,a;function v0(){for(C="default",F="",U=!1,P=1;;){a=O();const u=du[C]();if(u)return u}}function O(){if(tu[Q])return String.fromCodePoint(tu.codePointAt(Q))}function t(){const u=O();return u===`
|
|
10
|
-
`?(_++,k=0):u?k+=u.length:k++,u&&(Q+=u.length),u}const
|
|
11
|
-
`:case"\r":case"\u2028":case"\u2029":t();return;case"/":t(),C="comment";return;case void 0:return t(),m("eof")}if(b.isSpaceSeparator(a)){t();return}return
|
|
12
|
-
`:case"\r":case"\u2028":case"\u2029":t(),C="default";return;case void 0:return t(),m("eof")}t()},value(){switch(a){case"{":case"[":return m("punctuator",t());case"n":return t(),T("ull"),m("null",null);case"t":return t(),T("rue"),m("boolean",!0);case"f":return t(),T("alse"),m("boolean",!1);case"-":case"+":t()==="-"&&(P=-1),C="sign";return;case".":
|
|
13
|
-
`:case"\r":throw
|
|
14
|
-
`;case"r":return t(),"\r";case"t":return t()," ";case"v":return t(),"\v";case"0":if(t(),b.isDigit(
|
|
15
|
-
`:case"\u2028":case"\u2029":return t(),"";case"\r":return t(),
|
|
16
|
-
`&&t(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw
|
|
9
|
+
`:""}`}set message(D){this.#u=D}}let f0;const B0=u=>(f0??=Y(import.meta.url))(u),W=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,su=u=>{if(typeof W<"u"&&W.versions&&W.versions.node){const[D,e]=W.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return W.getBuiltinModule(u)}return B0(u)},p0=su("fs"),m0=su("os"),d0=su("path");var uu={},fu;function g0(){if(fu)return uu;fu=1;var u=Object.defineProperty,D=(A,B)=>u(A,"name",{value:B,configurable:!0}),e=p0,r=m0,n=d0;const i=D(A=>{let B="";for(let h=0;h<A.length;h+=1){const p=A[h],l=p.toUpperCase();B+=p===l?p.toLowerCase():l}return B},"invertCase"),c=new Map,E=D((A,B)=>{const h=n.join(A,`.is-fs-case-sensitive-test-${process.pid}`);try{return B.writeFileSync(h,""),!B.existsSync(i(h))}finally{try{B.unlinkSync(h)}catch{}}},"checkDirectoryCaseWithWrite"),g=D((A,B,h)=>{try{return E(A,h)}catch(p){if(B===void 0)return E(r.tmpdir(),h);throw p}},"checkDirectoryCaseWithFallback"),S=D((A,B=e,h=!0)=>{const p=A??process.cwd();if(h&&c.has(p))return c.get(p);let l;const F=i(p);return F!==p&&B.existsSync(p)?l=!B.existsSync(F):l=g(p,A,B),h&&c.set(p,l),l},"isFsCaseSensitive");return uu.isFsCaseSensitive=S,uu}var h0=g0();const G0=h0.isFsCaseSensitive;var y0=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,b0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,w0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Du={Space_Separator:y0,ID_Start:b0,ID_Continue:w0},b={isSpaceSeparator(u){return typeof u=="string"&&Du.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||Du.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u===""||u===""||Du.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}};let tu,N,j,Q,_,k,$,Fu,Z;var x0=function(D,e){tu=String(D),N="start",j=[],Q=0,_=1,k=0,$=void 0,Fu=void 0,Z=void 0;do $=v0(),N0[N]();while($.type!=="eof");return typeof e=="function"?ru({"":Z},"",e):Z};function ru(u,D,e){const r=u[D];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let n=0;n<r.length;n++){const i=String(n),c=ru(r,i,e);c===void 0?delete r[i]:Object.defineProperty(r,i,{value:c,writable:!0,enumerable:!0,configurable:!0})}else for(const n in r){const i=ru(r,n,e);i===void 0?delete r[n]:Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0})}return e.call(u,D,r)}let C,o,U,P,a;function v0(){for(C="default",o="",U=!1,P=1;;){a=z();const u=gu[C]();if(u)return u}}function z(){if(tu[Q])return String.fromCodePoint(tu.codePointAt(Q))}function t(){const u=z();return u===`
|
|
10
|
+
`?(_++,k=0):u?k+=u.length:k++,u&&(Q+=u.length),u}const gu={default(){switch(a){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
11
|
+
`:case"\r":case"\u2028":case"\u2029":t();return;case"/":t(),C="comment";return;case void 0:return t(),m("eof")}if(b.isSpaceSeparator(a)){t();return}return gu[N]()},comment(){switch(a){case"*":t(),C="multiLineComment";return;case"/":t(),C="singleLineComment";return}throw d(t())},multiLineComment(){switch(a){case"*":t(),C="multiLineCommentAsterisk";return;case void 0:throw d(t())}t()},multiLineCommentAsterisk(){switch(a){case"*":t();return;case"/":t(),C="default";return;case void 0:throw d(t())}t(),C="multiLineComment"},singleLineComment(){switch(a){case`
|
|
12
|
+
`:case"\r":case"\u2028":case"\u2029":t(),C="default";return;case void 0:return t(),m("eof")}t()},value(){switch(a){case"{":case"[":return m("punctuator",t());case"n":return t(),T("ull"),m("null",null);case"t":return t(),T("rue"),m("boolean",!0);case"f":return t(),T("alse"),m("boolean",!1);case"-":case"+":t()==="-"&&(P=-1),C="sign";return;case".":o=t(),C="decimalPointLeading";return;case"0":o=t(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":o=t(),C="decimalInteger";return;case"I":return t(),T("nfinity"),m("numeric",1/0);case"N":return t(),T("aN"),m("numeric",NaN);case'"':case"'":U=t()==='"',o="",C="string";return}throw d(t())},identifierNameStartEscape(){if(a!=="u")throw d(t());t();const u=nu();switch(u){case"$":case"_":break;default:if(!b.isIdStartChar(u))throw Bu();break}o+=u,C="identifierName"},identifierName(){switch(a){case"$":case"_":case"":case"":o+=t();return;case"\\":t(),C="identifierNameEscape";return}if(b.isIdContinueChar(a)){o+=t();return}return m("identifier",o)},identifierNameEscape(){if(a!=="u")throw d(t());t();const u=nu();switch(u){case"$":case"_":case"":case"":break;default:if(!b.isIdContinueChar(u))throw Bu();break}o+=u,C="identifierName"},sign(){switch(a){case".":o=t(),C="decimalPointLeading";return;case"0":o=t(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":o=t(),C="decimalInteger";return;case"I":return t(),T("nfinity"),m("numeric",P*(1/0));case"N":return t(),T("aN"),m("numeric",NaN)}throw d(t())},zero(){switch(a){case".":o+=t(),C="decimalPoint";return;case"e":case"E":o+=t(),C="decimalExponent";return;case"x":case"X":o+=t(),C="hexadecimal";return}return m("numeric",P*0)},decimalInteger(){switch(a){case".":o+=t(),C="decimalPoint";return;case"e":case"E":o+=t(),C="decimalExponent";return}if(b.isDigit(a)){o+=t();return}return m("numeric",P*Number(o))},decimalPointLeading(){if(b.isDigit(a)){o+=t(),C="decimalFraction";return}throw d(t())},decimalPoint(){switch(a){case"e":case"E":o+=t(),C="decimalExponent";return}if(b.isDigit(a)){o+=t(),C="decimalFraction";return}return m("numeric",P*Number(o))},decimalFraction(){switch(a){case"e":case"E":o+=t(),C="decimalExponent";return}if(b.isDigit(a)){o+=t();return}return m("numeric",P*Number(o))},decimalExponent(){switch(a){case"+":case"-":o+=t(),C="decimalExponentSign";return}if(b.isDigit(a)){o+=t(),C="decimalExponentInteger";return}throw d(t())},decimalExponentSign(){if(b.isDigit(a)){o+=t(),C="decimalExponentInteger";return}throw d(t())},decimalExponentInteger(){if(b.isDigit(a)){o+=t();return}return m("numeric",P*Number(o))},hexadecimal(){if(b.isHexDigit(a)){o+=t(),C="hexadecimalInteger";return}throw d(t())},hexadecimalInteger(){if(b.isHexDigit(a)){o+=t();return}return m("numeric",P*Number(o))},string(){switch(a){case"\\":t(),o+=$0();return;case'"':if(U)return t(),m("string",o);o+=t();return;case"'":if(!U)return t(),m("string",o);o+=t();return;case`
|
|
13
|
+
`:case"\r":throw d(t());case"\u2028":case"\u2029":k0(a);break;case void 0:throw d(t())}o+=t()},start(){switch(a){case"{":case"[":return m("punctuator",t())}C="value"},beforePropertyName(){switch(a){case"$":case"_":o=t(),C="identifierName";return;case"\\":t(),C="identifierNameStartEscape";return;case"}":return m("punctuator",t());case'"':case"'":U=t()==='"',C="string";return}if(b.isIdStartChar(a)){o+=t(),C="identifierName";return}throw d(t())},afterPropertyName(){if(a===":")return m("punctuator",t());throw d(t())},beforePropertyValue(){C="value"},afterPropertyValue(){switch(a){case",":case"}":return m("punctuator",t())}throw d(t())},beforeArrayValue(){if(a==="]")return m("punctuator",t());C="value"},afterArrayValue(){switch(a){case",":case"]":return m("punctuator",t())}throw d(t())},end(){throw d(t())}};function m(u,D){return{type:u,value:D,line:_,column:k}}function T(u){for(const D of u){if(z()!==D)throw d(t());t()}}function $0(){switch(z()){case"b":return t(),"\b";case"f":return t(),"\f";case"n":return t(),`
|
|
14
|
+
`;case"r":return t(),"\r";case"t":return t()," ";case"v":return t(),"\v";case"0":if(t(),b.isDigit(z()))throw d(t());return"\0";case"x":return t(),S0();case"u":return t(),nu();case`
|
|
15
|
+
`:case"\u2028":case"\u2029":return t(),"";case"\r":return t(),z()===`
|
|
16
|
+
`&&t(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw d(t());case void 0:throw d(t())}return t()}function S0(){let u="",D=z();if(!b.isHexDigit(D)||(u+=t(),D=z(),!b.isHexDigit(D)))throw d(t());return u+=t(),String.fromCodePoint(parseInt(u,16))}function nu(){let u="",D=4;for(;D-- >0;){const e=z();if(!b.isHexDigit(e))throw d(t());u+=t()}return String.fromCodePoint(parseInt(u,16))}const N0={start(){if($.type==="eof")throw L();eu()},beforePropertyName(){switch($.type){case"identifier":case"string":Fu=$.value,N="afterPropertyName";return;case"punctuator":G();return;case"eof":throw L()}},afterPropertyName(){if($.type==="eof")throw L();N="beforePropertyValue"},beforePropertyValue(){if($.type==="eof")throw L();eu()},beforeArrayValue(){if($.type==="eof")throw L();if($.type==="punctuator"&&$.value==="]"){G();return}eu()},afterPropertyValue(){if($.type==="eof")throw L();switch($.value){case",":N="beforePropertyName";return;case"}":G()}},afterArrayValue(){if($.type==="eof")throw L();switch($.value){case",":N="beforeArrayValue";return;case"]":G()}},end(){}};function eu(){let u;switch($.type){case"punctuator":switch($.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=$.value;break}if(Z===void 0)Z=u;else{const D=j[j.length-1];Array.isArray(D)?D.push(u):Object.defineProperty(D,Fu,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")j.push(u),Array.isArray(u)?N="beforeArrayValue":N="beforePropertyName";else{const D=j[j.length-1];D==null?N="end":Array.isArray(D)?N="afterArrayValue":N="afterPropertyValue"}}function G(){j.pop();const u=j[j.length-1];u==null?N="end":Array.isArray(u)?N="afterArrayValue":N="afterPropertyValue"}function d(u){return X(u===void 0?`JSON5: invalid end of input at ${_}:${k}`:`JSON5: invalid character '${hu(u)}' at ${_}:${k}`)}function L(){return X(`JSON5: invalid end of input at ${_}:${k}`)}function Bu(){return k-=5,X(`JSON5: invalid identifier character at ${_}:${k}`)}function k0(u){console.warn(`JSON5: '${hu(u)}' in strings is not valid ECMAScript; consider escaping`)}function hu(u){const D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){const e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function X(u){const D=new SyntaxError(u);return D.lineNumber=_,D.columnNumber=k,D}var P0=function(D,e,r){const n=[];let i="",c,E,g="",S;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,S=e.quote,e=e.replacer),typeof e=="function")E=e;else if(Array.isArray(e)){c=[];for(const F of e){let f;typeof F=="string"?f=F:(typeof F=="number"||F instanceof String||F instanceof Number)&&(f=String(F)),f!==void 0&&c.indexOf(f)<0&&c.push(f)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),g=" ".substr(0,r)):typeof r=="string"&&(g=r.substr(0,10)),A("",{"":D});function A(F,f){let s=f[F];switch(s!=null&&(typeof s.toJSON5=="function"?s=s.toJSON5(F):typeof s.toJSON=="function"&&(s=s.toJSON(F))),E&&(s=E.call(f,F,s)),s instanceof Number?s=Number(s):s instanceof String?s=String(s):s instanceof Boolean&&(s=s.valueOf()),s){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof s=="string")return B(s);if(typeof s=="number")return String(s);if(typeof s=="object")return Array.isArray(s)?l(s):h(s)}function B(F){const f={"'":.1,'"':.2},s={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let w="";for(let y=0;y<F.length;y++){const x=F[y];switch(x){case"'":case'"':f[x]++,w+=x;continue;case"\0":if(b.isDigit(F[y+1])){w+="\\x00";continue}}if(s[x]){w+=s[x];continue}if(x<" "){let O=x.charCodeAt(0).toString(16);w+="\\x"+("00"+O).substring(O.length);continue}w+=x}const v=S||Object.keys(f).reduce((y,x)=>f[y]<f[x]?y:x);return w=w.replace(new RegExp(v,"g"),s[v]),v+w+v}function h(F){if(n.indexOf(F)>=0)throw TypeError("Converting circular structure to JSON5");n.push(F);let f=i;i=i+g;let s=c||Object.keys(F),w=[];for(const y of s){const x=A(y,F);if(x!==void 0){let O=p(y)+":";g!==""&&(O+=" "),O+=x,w.push(O)}}let v;if(w.length===0)v="{}";else{let y;if(g==="")y=w.join(","),v="{"+y+"}";else{let x=`,
|
|
17
17
|
`+i;y=w.join(x),v=`{
|
|
18
18
|
`+i+y+`,
|
|
19
|
-
`+f+"}"}}return n.pop(),i=f,v}function p(
|
|
19
|
+
`+f+"}"}}return n.pop(),i=f,v}function p(F){if(F.length===0)return B(F);const f=String.fromCodePoint(F.codePointAt(0));if(!b.isIdStartChar(f))return B(F);for(let s=f.length;s<F.length;s++)if(!b.isIdContinueChar(String.fromCodePoint(F.codePointAt(s))))return B(F);return F}function l(F){if(n.indexOf(F)>=0)throw TypeError("Converting circular structure to JSON5");n.push(F);let f=i;i=i+g;let s=[];for(let v=0;v<F.length;v++){const y=A(String(v),F);s.push(y!==void 0?y:"null")}let w;if(s.length===0)w="[]";else if(g==="")w="["+s.join(",")+"]";else{let v=`,
|
|
20
20
|
`+i,y=s.join(v);w=`[
|
|
21
21
|
`+i+y+`,
|
|
22
|
-
`+f+"]"}return n.pop(),i=f,w}};const j0={parse:x0,stringify:P0};var K0=j0;export{
|
|
22
|
+
`+f+"]"}return n.pop(),i=f,w}};const j0={parse:x0,stringify:P0};var K0=j0;export{mu as $,K as C,J0 as L,U0 as T,H as U,_0 as _,W0 as a,V0 as b,H0 as c,t0 as d,L0 as e,K0 as f,D0 as g,_u as h,I0 as i,R0 as k,T0 as l,Tu as m,Gu as n,O0 as o,G0 as q,Z0 as r,Lu as s,M0 as t,M as z};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const de=/[\t\n\r ]/,Xe=(e,n,t=4,s=79)=>{let o=n.position,i=n.position,r="",a="";for(;o>0&&!de.test(e.charAt(o-1));)if(o-=1,n.position-o>s/2-1){r=" ... ",o+=5;break}for(;i<e.length&&!de.test(e.charAt(i));)if(i+=1,i-n.position>s/2-1){a=" ... ",i-=5;break}const l=e.slice(o,i),u=" ".repeat(t+n.position-o+r.length);return`${" ".repeat(t)}${r}${l}${a}
|
|
2
|
+
${u}^`};class oe extends Error{mark;constructor(n,t,s){let o=n,i=t;if(t&&(o+=` at line ${String(t.line+1)}, column ${String(t.column+1)}`,s!==void 0)){const r=Xe(s,t);o+=`:
|
|
3
|
+
${r}`,i={...t,snippet:r}}super(o),this.name="YAMLError",this.mark=i}}let x=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLParseError"}},E=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLStringifyError"}},Ze=class extends oe{constructor(n,t,s){super(n,t,s),this.name="YAMLWarning"}},K=class{kind="SCALAR";value;anchor;comment;commentBefore;spaceBefore;tag;type;constructor(n){this.value=n}toJSON(){return I(this)}toString(){return String(this.value)}},$e=class{kind="ALIAS";source;comment;commentBefore;spaceBefore;constructor(n){this.source=n}toString(){return`*${this.source}`}},te=class{kind="PAIR";key;value;comment;commentBefore;spaceBefore;constructor(n,t){this.key=n,this.value=t}toJSON(){return{key:I(this.key),value:I(this.value)}}};const Q=(e,n)=>typeof e=="object"&&e!==null&&e.kind===n,v=e=>Q(e,"SCALAR"),ie=e=>Q(e,"ALIAS"),Ce=e=>Q(e,"PAIR"),U=e=>Q(e,"MAP"),re=e=>Q(e,"SEQ"),q=e=>U(e)||re(e),He=e=>v(e)||ie(e)||q(e),en=(e,n)=>{const t=v(e)?e.value:e,s=v(n)?n.value:n;return t===s};let Ne=class{anchor;comment;commentBefore;flow;spaceBefore;tag;getIn(n,t=!1){const[s,...o]=[...n];if(s===void 0)return;const i=this.get(s,!0);return o.length===0?t||!v(i)?i:i.value:q(i)?i.getIn(o,t):void 0}hasIn(n){const[t,...s]=[...n];if(t===void 0)return!1;if(s.length===0)return this.has(t);const o=this.get(t,!0);return q(o)?o.hasIn(s):!1}setIn(n,t){const[s,...o]=[...n];if(s===void 0)return;if(o.length===0){this.set(s,t);return}let i=this.get(s,!0);q(i)||(i=new T,this.set(s,i)),i.setIn(o,t)}deleteIn(n){const[t,...s]=[...n];if(t===void 0)return!1;if(s.length===0)return this.delete(t);const o=this.get(t,!0);return q(o)?o.deleteIn(s):!1}toJSON(){return I(this)}};class T extends Ne{kind="MAP";items=[];#e;#n=0;#o(){if(this.#e===void 0||this.#n!==this.items.length){const n=new Map;for(const t of this.items){const s=v(t.key)?t.key.value:t.key;n.has(s)||n.set(s,t)}this.#e=n,this.#n=this.items.length}return this.#e}#t(n){return this.#o().get(v(n)?n.value:n)}get(n,t=!1){const s=this.#t(n);if(s)return t||!v(s.value)?s.value:s.value.value}set(n,t){const s=this.#t(n);if(s){s.value=t;return}const o=new te(n,t);this.items.push(o),this.#e!==void 0&&this.#n===this.items.length-1&&(this.#e.set(v(n)?n.value:n,o),this.#n=this.items.length)}has(n){return this.#t(n)!==void 0}delete(n){const t=this.items.findIndex(s=>en(s.key,n));return t===-1?!1:(this.items.splice(t,1),this.#e=void 0,!0)}add(n){this.items.push(n)}}let ae=class extends Ne{kind="SEQ";items=[];get(n,t=!1){const s=V(n),o=s===void 0?void 0:this.items[s];return t||!v(o)?o:o.value}set(n,t){const s=V(n);s!==void 0&&(this.items[s]=t)}has(n){const t=V(n);return t!==void 0&&t<this.items.length}delete(n){const t=V(n);return t===void 0||t>=this.items.length?!1:(this.items.splice(t,1),!0)}add(n){this.items.push(n)}};const V=e=>{const n=v(e)?e.value:e,t=typeof n=="number"?n:Number(n);return Number.isInteger(t)&&t>=0?t:void 0},nn=e=>(v(e)?e.value:e)==="<<",xe=(e,n,t)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0})},S=e=>typeof e=="string"?e:e===null||typeof e!="object"?String(e):v(e)?S(e.value):re(e)?`[${e.items.map(n=>S(n)).join(",")}]`:U(e)?`{${e.items.map(n=>`${S(n.key)}: ${S(n.value)}`).toSorted((n,t)=>n.localeCompare(t)).join(", ")}}`:ie(e)?`*${e.source}`:Array.isArray(e)?`[${e.map(n=>S(n)).join(",")}]`:Object.prototype.toString.call(e)==="[object Object]"?`{${Object.entries(e).map(([n,t])=>`${n}: ${S(t)}`).toSorted((n,t)=>n.localeCompare(t)).join(", ")}}`:Object.prototype.toString.call(e),tn=(e,n)=>{const t=I(e,n);return Array.isArray(t)?t.filter(s=>ge(s)):ge(t)?[t]:[]},ge=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),sn=(e,n)=>{const t={};e.anchor&&n.set(e.anchor,t);for(const s of e.items){if(nn(s.key)){on(t,s.value,n);continue}xe(t,S(s.key),I(s.value,n))}return t},on=(e,n,t)=>{for(const s of tn(n,t))for(const[o,i]of Object.entries(s))Object.hasOwn(e,o)||xe(e,o,i)},I=(e,n)=>{const t=n??new Map;if(v(e))return e.anchor&&t.set(e.anchor,e.value),e.value;if(ie(e))return t.get(e.source);if(re(e)){const s=[];e.anchor&&t.set(e.anchor,s);for(const o of e.items)s.push(I(o,t));return s}return U(e)?sn(e,t):Ce(e)?{key:I(e.key,t),value:I(e.value,t)}:e},L=e=>{if(He(e)||Ce(e))return e;if(Array.isArray(e)){const n=new ae;for(const t of e)n.items.push(L(t));return n}if(e instanceof Map){const n=new T;for(const[t,s]of e)n.items.push(new te(L(t),L(s)));return n}if(typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]"){const n=new T;for(const[t,s]of Object.entries(e))n.items.push(new te(new K(t),L(s)));return n}return new K(e)},Me=/^[-+]?\d+$/,je=/^0x[0-9a-fA-F]+$/,Le=/^0o[0-7]+$/,rn=/^[-+]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[-+]?\d+)?$/i,an=/^([-+]?)\.(?:inf|Inf|INF)$/,ln=/^\.(?:nan|NaN|NAN)$/,cn=e=>e==="~"||e==="null"||e==="Null"||e==="NULL",Oe=e=>e==="true"||e==="True"||e==="TRUE",Te=e=>e==="false"||e==="False"||e==="FALSE",le=e=>{if(e.length===0)return null;const n=e.charCodeAt(0);if(n>=65&&n<=90||n>=97&&n<=122||n===126){const{length:t}=e;if(t===1)return n===126?null:e;if(t===4){if(cn(e))return null;if(Oe(e))return!0}else if(t===5&&Te(e))return!1;return e}if(n>=48&&n<=57||n===43||n===45||n===46){if(Me.test(e))return Number.parseInt(e,10);if(n===48&&je.test(e))return Number.parseInt(e.slice(2),16);if(n===48&&Le.test(e))return Number.parseInt(e.slice(2),8);if(n===46||n===43||n===45){const t=an.exec(e);if(t)return t[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;if(ln.test(e))return Number.NaN}if(rn.test(e))return Number.parseFloat(e)}return e},un=e=>le(e)!==e,H={status:"invalid"},pn={status:"unknown"},fn=(e,n)=>{switch(e){case"!!bool":case"tag:yaml.org,2002:bool":return Oe(n)?{status:"ok",value:!0}:Te(n)?{status:"ok",value:!1}:H;case"!!float":case"tag:yaml.org,2002:float":{const t=le(n);return typeof t=="number"?{status:"ok",value:t}:H}case"!!int":case"tag:yaml.org,2002:int":return je.test(n)?{status:"ok",value:Number.parseInt(n.slice(2),16)}:Le.test(n)?{status:"ok",value:Number.parseInt(n.slice(2),8)}:Me.test(n)?{status:"ok",value:Number.parseInt(n,10)}:H;case"!!null":case"tag:yaml.org,2002:null":return{status:"ok",value:null};case"!!str":case"tag:yaml.org,2002:str":return{status:"ok",value:n};default:return pn}},hn=e=>e.startsWith("!!")?[e,`tag:yaml.org,2002:${e.slice(2)}`]:[e],dn=e=>{if(!e)return;const n=typeof e=="function"?e([]):e;if(!Array.isArray(n))throw new x("customTags must be an array of tags, or a function returning one");if(n.length===0)return;const t=new Map,s=[];for(const o of n){for(const i of hn(o.tag))t.set(i,o);if(o.default&&o.test){const i=o.test.flags.includes("g")||o.test.flags.includes("y")?new RegExp(o.test.source,o.test.flags.replaceAll(/[gy]/gu,"")):o.test;s.push({...o,test:i})}}return{byTag:t,implicit:s}},gn=(e,n)=>{if(e){for(const t of e.implicit)if(t.test.test(n))return{value:t.resolve(n)}}},ce=(e,n)=>{if(e){for(const t of e)if(t.identify?.(n)){const s=t.stringify?t.stringify(n):String(n);return`${t.tag} ${s}`}}},mn=/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u2028\u2029\uFFFE\uFFFF]/,bn=new Set("!\"#%&'*,-:>?@[\\]`{|}"),yn=/^\s|\s$/,An=/[\n\t]/,kn=/:[ \t]|:$|[ \t]#/,vn=/[,[\]{}]/,wn=/^\s/,Sn=/[ \t]$/,In=e=>{let n=e.length;for(;n>0&&e.codePointAt(n-1)===10;)n-=1;return n===e.length?e:e.slice(0,n)},$n=/[\n\t]/g,Cn=/\t/,Nn=/^\S+(?: \S+)*$/,Z=(e,n)=>" ".repeat(e*n.indent),xn=(e,n)=>e<n?-1:e>n?1:0,Mn=(e,n)=>!(e.length===0||e==="<<"||bn.has(e[0])||yn.test(e)||An.test(e)||kn.test(e)||n&&vn.test(e)),jn=e=>`'${e.replaceAll("'","''")}'`,W=(e,n)=>{let t="";for(const s of e){const o=s.codePointAt(0);switch(s){case`
|
|
4
|
+
`:{t+=String.raw`\n`;break}case" ":{t+=String.raw`\t`;break}case"\r":{t+=String.raw`\r`;break}case"\0":{t+=String.raw`\0`;break}case"\f":{t+=String.raw`\f`;break}case"\v":{t+=String.raw`\v`;break}case"\b":{t+=String.raw`\b`;break}case"\x1B":{t+=String.raw`\e`;break}case'"':{t+=String.raw`\"`;break}case"\\":{t+="\\\\";break}default:{const i=o.toString(16).toUpperCase();o<32||o>=127&&o<=159?t+=String.raw`\x${i.padStart(2,"0")}`:n&&o>126?t+=o<=255?String.raw`\x${i.padStart(2,"0")}`:String.raw`\u${i.padStart(4,"0")}`:t+=s}}}return`"${t}"`},Ln=(e,n,t)=>{const s=Z(n+1,t);let o="",i=e;e.endsWith(`
|
|
5
|
+
`)?(e.endsWith(`
|
|
6
|
+
|
|
7
|
+
`)&&(o="+"),i=e.slice(0,-1)):o="-";const r=i.split(`
|
|
8
|
+
`).map(a=>a===""?"":s+a).join(`
|
|
9
|
+
`);return`|${o}
|
|
10
|
+
${r}`},On=(e,n)=>{const t=e.split(" "),s=[];let o="";for(const i of t)o===""?o=i:o.length+1+i.length<=n?o+=` ${i}`:(s.push(o),o=i);return o!==""&&s.push(o),s},Tn=(e,n,t)=>{const s=Z(n+1,t),o=Math.max(1,t.lineWidth-s.length);return`>-
|
|
11
|
+
${On(e,o).map(i=>s+i).join(`
|
|
12
|
+
`)}`},Fn=(e,n,t)=>{if(t.lineWidth<=0)return!1;const s=t.lineWidth-(n+1)*t.indent;return e.length<=s?!1:e.includes(" ")&&Nn.test(e)},ue=(e,n,t,s)=>e===""?'""':mn.test(e.replaceAll($n,""))?W(e,t.forceQuotes):t.forceQuotes?W(e,!0):e.includes(`
|
|
13
|
+
`)?t.blockQuote!==!1&&!s&&!wn.test(e)&&!Sn.test(In(e))?Ln(e,n,t):W(e,!1):Mn(e,s)&&!un(e)?!s&&Fn(e,n,t)?Tn(e,n,t):e:Cn.test(e)?W(e,!1):t.singleQuote?jn(e):W(e,!1),En=e=>Number.isNaN(e)?".nan":e===Number.POSITIVE_INFINITY?".inf":e===Number.NEGATIVE_INFINITY?"-.inf":Object.is(e,-0)?"-0":String(e),Fe=(e,n)=>{const t=Object.entries(e);if(n.sortKeys===!0)t.sort(([s],[o])=>xn(s,o));else if(typeof n.sortKeys=="function"){const s=n.sortKeys;t.sort(([o],[i])=>s(o,i))}return t},Pn=e=>Array.isArray(e)?e.length>0:typeof e=="object"&&e!==null&&Object.keys(e).length>0,D=(e,n,t)=>{let s=t;return s!==null&&typeof s=="object"&&typeof s.toJSON=="function"&&(s=s.toJSON()),e.replacer&&(s=e.replacer(n,s)),s},J=(e,n,t)=>{const s=ce(t.customTags,e);if(s!==void 0)return s;if(Array.isArray(e)){G(e,t),t.stack.add(e);const o=e.map((i,r)=>J(D(t,String(r),i),n,t));return t.stack.delete(e),o.length===0?"[]":t.flowCollectionPadding?`[ ${o.join(", ")} ]`:`[${o.join(", ")}]`}if(typeof e=="object"&&e!==null){G(e,t),t.stack.add(e);const o=Fe(e,t).map(([i,r])=>`${ue(i,n,t,!0)}: ${J(D(t,i,r),n,t)}`);return t.stack.delete(e),o.length===0?"{}":t.flowCollectionPadding?`{ ${o.join(", ")} }`:`{${o.join(", ")}}`}return Ee(e,n,t,!0)},Ee=(e,n,t,s)=>{if(e==null)return t.nullStr;switch(typeof e){case"bigint":return e.toString();case"boolean":return e?t.trueStr:t.falseStr;case"number":return En(e);case"string":return ue(e,n,t,s);default:{if(t.skipInvalid)return t.nullStr;throw new E(`cannot serialize a value of type "${typeof e}"`)}}},Pe=(e,n,t)=>{const s=ce(t.customTags,e);return s!==void 0?s:Array.isArray(e)?e.length===0?"[]":se(n,t)?J(e,n,t):_n(e,n,t):typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).length===0?"{}":se(n,t)?J(e,n,t):Wn(e,n,t):Ee(e,n,t,!1)},G=(e,n)=>{if(n.stack.has(e))throw new E("cannot serialize a circular structure to YAML")},se=(e,n)=>n.collectionStyle==="flow"?!0:n.collectionStyle==="block"?!1:n.flowLevel>=0&&e>=n.flowLevel,_e=(e,n,t)=>{const s=Pn(e)&&ce(t.customTags,e)===void 0,o=Pe(e,s?n+1:n,t);return{block:s&&!se(n+1,t)&&o!=="[]"&&o!=="{}",text:o}},_n=(e,n,t)=>{G(e,t),t.stack.add(e);const s=t.indentSeq||n===0?n:n-1,o=Z(s,t),i=`-${" ".repeat(t.indent-1)}`,r=(s+1)*t.indent,a=[];for(const[l,u]of e.entries()){const p=D(t,String(l),u);if(p===void 0&&t.skipInvalid&&!t.keepUndefined)continue;const{block:f,text:b}=_e(p,s,t);a.push(o+i+(f?b.slice(r):b))}return t.stack.delete(e),a.length===0?"[]":a.join(`
|
|
14
|
+
`)},Wn=(e,n,t)=>{G(e,t),t.stack.add(e);const s=Z(n,t),o=Fe(e,t),i=[];for(const[r,a]of o){const l=D(t,r,a);if(l===void 0&&!t.keepUndefined)continue;const u=ue(r,n,t,!0),{block:p,text:f}=_e(l,n,t);i.push(p?`${s+u}:
|
|
15
|
+
${f}`:`${s+u}: ${f}`)}return t.stack.delete(e),i.length===0?"{}":i.join(`
|
|
16
|
+
`)},B=(e,n={})=>{const t={blockQuote:n.blockQuote??!0,collectionStyle:n.collectionStyle??"any",customTags:typeof n.customTags=="function"?n.customTags([]):n.customTags,falseStr:n.falseStr??"false",flowCollectionPadding:n.flowCollectionPadding??!0,flowLevel:n.flowLevel??-1,forceQuotes:n.forceQuotes??!1,indent:n.indent??2,indentSeq:n.indentSeq??!0,keepUndefined:n.keepUndefined??!1,lineWidth:n.lineWidth??80,nullStr:n.nullStr??"null",replacer:n.replacer,singleQuote:n.singleQuote??!1,skipInvalid:n.skipInvalid??!1,sortKeys:n.sortKeys??!1,stack:new Set,trueStr:n.trueStr??"true"};if(t.indent<2)throw new E("indentation width must be at least 2");const s=D(t,"",e);if(s===void 0)return n.directives?`---
|
|
17
|
+
`:`
|
|
18
|
+
`;const o=Pe(s,0,t);return`${n.directives?`---
|
|
19
|
+
`:""}${o}
|
|
20
|
+
`},We=Symbol("invalid scalar"),qn=/^-?(?:0|[1-9]\d*)$/,Bn=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:e[-+]?\d+)?$/i,Yn=/^[-+]?(?:0|[1-9][\d_]*)$/,Kn=/^[-+]?0[0-7_]+$/,Un=/^[-+]?0x[\dA-Fa-f_]+$/,Dn=/^[-+]?0b[01_]+$/,Qn=/^[-+]?(?:\d[\d_]*)?\.[\d_]*(?:e[-+]?\d+)?$/i,Rn=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+$/,Vn=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+\.[\d_]*$/,Jn=/^([-+])?\.(?:inf|Inf|INF)$/,Gn=/^\.(?:nan|NaN|NAN)$/,zn=/^[-+]?0b/,Xn=/^[-+]?0x/,Zn=/^[-+]?0/,Hn=new Set(["","null","Null","NULL","~"]),et=new Set(["on","On","ON","true","True","TRUE","y","Y","yes","Yes","YES"]),nt=new Set(["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"]),j=e=>e.includes("_")?e.replaceAll("_",""):e,me=(e,n)=>{const t=j(e),s=t.startsWith("-"),o=s||t.startsWith("+")?t.slice(1):t;let i=0;for(const r of o.split(":"))i=i*60+(n?Number.parseFloat(r):Number.parseInt(r,10));return s?-i:i},tt=e=>{let n=0;const t=(d,h)=>{let m=0,g=0;for(;g<h&&n<e.length;){const w=e.codePointAt(n)??0;if(w<48||w>57)break;m=m*10+(w-48),n+=1,g+=1}return g<d?-1:m},s=d=>e[n]===d?(n+=1,!0):!1,o=()=>{const d=n;for(;e[n]===" "||e[n]===" ";)n+=1;return n-d},i=t(4,4);if(i<0||!s("-"))return;const r=t(1,2);if(r<0||!s("-"))return;const a=t(1,2);if(a<0)return;if(n===e.length)return new Date(Date.UTC(i,r-1,a));if(!s("T")&&!s("t")&&o()===0)return;const l=t(1,2);if(l<0||!s(":"))return;const u=t(2,2);if(u<0||!s(":"))return;const p=t(2,2);if(p<0)return;let f=0;if(s(".")){const d=n;if(t(1,9)<0)return;f=Math.round(+`0.${e.slice(d,n)}`*1e3)}o();let b=0;if(n<e.length&&!s("Z")&&!s("z")){const d=s("-");if(!d&&!s("+"))return;const h=t(1,2);if(h<0)return;s(":");const m=n<e.length?t(2,2):0;if(m<0)return;b=(h*60+m)*(d?-1:1)}if(n===e.length)return new Date(Date.UTC(i,r-1,a,l,u,p,f)-b*6e4)},st=e=>e,ot=e=>e==="null"?null:e==="true"?!0:e==="false"?!1:qn.test(e)?Number.parseInt(e,10):Bn.test(e)?Number.parseFloat(e):We,it=e=>{if(Hn.has(e))return null;if(et.has(e))return!0;if(nt.has(e))return!1;if(Dn.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(zn,""),2)}if(Un.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(Xn,""),16)}if(Kn.test(e)){const t=j(e);return(t.startsWith("-")?-1:1)*Number.parseInt(t.replace(Zn,""),8)}if(Vn.test(e))return me(e,!0);if(Rn.test(e))return me(e,!1);if(Yn.test(e))return Number.parseInt(j(e),10);const n=Jn.exec(e);return n?n[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY:Gn.test(e)?Number.NaN:Qn.test(e)?Number.parseFloat(j(e)):tt(e)??e},ee={core:le,failsafe:st,json:ot,"yaml-1.1":it},rt=/^[-+]?(?:0B[01]+|0O[0-7]+|0X[\dA-F]+|\d+)$/i,at=e=>n=>{const t=e(n);if(typeof t!="number"||!Number.isInteger(t))return t;const s=j(n);return rt.test(s)?BigInt(s):t},lt=e=>e==="core"||e==="failsafe"||e==="json"||e==="yaml-1.1",be=(e,n,t=!1)=>{let s=ee.core;if(e!==void 0){if(!lt(e))throw new x(`unknown schema "${String(e)}"; expected one of core, failsafe, json, yaml-1.1`);s=ee[e]}else n==="1.1"&&(s=ee["yaml-1.1"]);return t?at(s):s},ct="tag:yaml.org,2002:merge",qe=(e,n)=>e===ct||e==="?"&&n==="<<",ut={alias:(e,n)=>e.anchorMap.get(n),anchor:()=>{},finish:(e,n)=>n,has:(e,n)=>Object.hasOwn(e,n),isMergeKey:qe,key:(e,n)=>S(n),map:()=>({}),push:(e,n)=>{e.push(n)},seq:()=>[],set:(e,n,t,s)=>{if(t==="__proto__"&&e.options.preventProtoPollution){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:s,writable:!0});return}n[t]=s}},pt={alias:(e,n)=>e.anchorMap.get(n),anchor:()=>{},finish:(e,n)=>n,has:(e,n)=>e.has(n),isMergeKey:qe,key:(e,n)=>e.options.stringKeys?S(n):n,map:()=>new Map,push:(e,n)=>{e.push(n)},seq:()=>[],set:(e,n,t,s)=>{n.set(t,s)}},ft={alias:(e,n)=>new $e(n),anchor:(e,n)=>{e.anchor=n},finish:(e,n,t)=>ht(e,n,t),has:(e,n)=>e.has(n),isMergeKey:()=>!1,key:(e,n)=>e.options.stringKeys?new K(S(n)):n,map:()=>new T,push:(e,n)=>{e.items.push(n)},seq:()=>new ae,set:(e,n,t,s)=>{n.set(t,s)}},ht=(e,n,t)=>{if(n instanceof $e)return n;if(n instanceof K)return e.anchor!==null&&(n.anchor=e.anchor),e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(n.tag=e.tag),n;if(n instanceof T||n instanceof ae)return e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(n.tag=e.tag),n;const s=new K(n);return t&&e.scalarStyle&&(s.type=e.scalarStyle),e.anchor!==null&&(s.anchor=e.anchor),e.tag!==null&&e.tag!=="?"&&e.tag!=="!"&&(s.tag=e.tag),s},dt=(e,n)=>e?ft:n?pt:ut;let gt=class{input;length;position=0;line=0;lineStart=0;lineIndent=0;firstTabInLine=-1;documentMarkerLine=-1;documents=[];tag=null;anchor=null;kind=null;result=null;anchorMap=new Map;tagMap=new Map;aliasCount=0;depth=0;mappingRanges=null;resolveScalar;#e;nodes;build;lineCounter;scalarStyle=void 0;tags;options;constructor(e,n){this.input=e,this.length=e.length,this.options={...n,duplicateKeys:n.duplicateKeys??"error",maxAliasCount:n.maxAliasCount??100,maxDepth:n.maxDepth??1e3,preventProtoPollution:n.preventProtoPollution??!0,strict:n.strict??!0},this.#e=be(this.options.schema,this.options.version,this.options.intAsBigInt),this.resolveScalar=this.#e,this.tags=dn(this.options.customTags),this.nodes=n.nodes??!1,this.build=dt(this.nodes,this.options.mapAsMap),this.lineCounter=n.lineCounter}applyVersionDirective(e){this.resolveScalar=e==="1.1"||e==="1.2"?be(this.options.schema,e,this.options.intAsBigInt):this.#e}resetVersionDirective(){this.resolveScalar=this.#e}};const Be=e=>({anchor:e.anchor,firstTabInLine:e.firstTabInLine,kind:e.kind,line:e.line,lineIndent:e.lineIndent,lineStart:e.lineStart,position:e.position,result:e.result,tag:e.tag}),Ye=(e,n)=>{e.position=n.position,e.line=n.line,e.lineStart=n.lineStart,e.lineIndent=n.lineIndent,e.firstTabInLine=n.firstTabInLine,e.tag=n.tag,e.anchor=n.anchor,e.kind=n.kind,e.result=n.result},mt=e=>({aliasCount:e.aliasCount,anchorMap:new Map(e.anchorMap),cursor:Be(e)}),bt=(e,n)=>{e.anchorMap=n.anchorMap,e.aliasCount=n.aliasCount,Ye(e,n.cursor)},c=(e,n)=>{throw new x(n,{column:e.position-e.lineStart,line:e.line,position:e.position},e.input)},yt=(e,n)=>{e.options.onWarning&&e.options.onWarning(new Ze(n,{column:e.position-e.lineStart,line:e.line,position:e.position},e.input))},Ke=e=>typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Object]",At=e=>e instanceof Map?[...e.keys()]:Object.keys(e),kt=(e,n)=>e instanceof Map?e.get(n):e[String(n)],ye=(e,n,t,s)=>{!Ke(t)&&!(t instanceof Map)&&c(e,"cannot merge mappings; the provided source object is unacceptable");const o=t;for(const i of At(o))e.build.has(n,i)||(e.build.set(e,n,i,kt(o,i)),s.add(i))},vt=(e,n,t,s,o,i)=>{if(e.mappingRanges===null||s<0)return;let r=e.mappingRanges.get(n);r===void 0&&(r=[],e.mappingRanges.set(n,r)),r.push({column:s-(e.input.lastIndexOf(`
|
|
21
|
+
`,s-1)+1),end:i,key:S(t),start:s,valueStart:o})},F=(e,n,t,s,o,i)=>{const{build:r}=e;let a=t;if(e.options.merge!==!1&&r.isMergeKey(s,o)){if(a??=new Set,Array.isArray(i))for(const u of i)ye(e,n,u,a);else ye(e,n,i,a);return a}const l=r.key(e,o);if(!a?.has(l)&&r.has(n,l)){if(e.options.duplicateKeys==="error")c(e,`duplicated mapping key "${String(l)}"`);else if(e.options.duplicateKeys==="ignore")return a}return r.set(e,n,l,i),a?.delete(l),a},$=e=>e===10||e===13,C=e=>e===9||e===32,k=e=>e===9||e===32||e===10||e===13||e===0,O=e=>e===44||e===91||e===93||e===123||e===125,Ue=new Uint8Array(128);for(const e of[33,34,35,37,38,39,42,62,64,96,124])Ue[e]=1;const wt=e=>e<128&&Ue[e]===1,St=e=>{if(e>=48&&e<=57)return e-48;const n=e|32;return n>=97&&n<=102?n-97+10:-1},It=e=>e>=48&&e<=57?e-48:-1,y=Array.from({length:256});y[48]="\0";y[97]="\x07";y[98]="\b";y[116]=" ";y[9]=" ";y[110]=`
|
|
22
|
+
`;y[118]="\v";y[102]="\f";y[114]="\r";y[101]="\x1B";y[32]=" ";y[34]='"';y[47]="/";y[92]="\\";y[78]="
";y[95]=" ";y[76]="\u2028";y[80]="\u2029";const $t=e=>{switch(e){case 85:return 8;case 117:return 4;case 120:return 2;default:return 0}},N=(e,n,t)=>{n<t&&(e.result=e.result+e.input.slice(n,t))},pe=(e,n)=>{n===1?e.result=`${e.result} `:n>1&&(e.result=e.result+`
|
|
23
|
+
`.repeat(n-1))},fe=e=>{const n=e.input.charCodeAt(e.position);n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):c(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1,e.lineCounter?.addNewLine(e.position)},A=(e,n,t)=>{let s=0,o=e.input.charCodeAt(e.position);for(;o!==0;){for(;C(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(n&&o===35){const i=e.position===e.lineStart?10:e.input.charCodeAt(e.position-1);k(i)||c(e,"a comment must be separated from other tokens by white space characters");do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0)}if($(o))for(fe(e),o=e.input.charCodeAt(e.position),s++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return t!==-1&&s!==0&&e.lineIndent<t&&c(e,"deficient indentation"),s},R=e=>{let{position:n}=e,t=e.input.charCodeAt(n);return!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||k(t)))},Ct=/^(?:!|!!|![a-z-]+!)$/i,Nt=e=>{let n=e.input.charCodeAt(e.position);if(n!==33)return!1;e.tag!==null&&c(e,"duplication of a tag property");let t=!1,s=!1,o="!";n=e.input.charCodeAt(++e.position),n===60?(t=!0,n=e.input.charCodeAt(++e.position)):n===33&&(s=!0,o="!!",n=e.input.charCodeAt(++e.position));let{position:i}=e,r;if(t){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);if(n===62)r=e.input.slice(i,e.position),e.position++;else return c(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!k(n)&&!O(n);)n===33&&(s?c(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(i-1,e.position+1),Ct.test(o)||c(e,"named tag handle cannot contain such characters"),s=!0,i=e.position+1)),n=e.input.charCodeAt(++e.position);r=e.input.slice(i,e.position)}return t?e.tag=r:e.tagMap.has(o)?e.tag=e.tagMap.get(o)+r:o==="!"?e.tag=`!${r}`:o==="!!"?e.tag=`tag:yaml.org,2002:${r}`:c(e,`undeclared tag handle "${o}"`),!0},xt=e=>{let n=e.input.charCodeAt(e.position);if(n!==38)return!1;e.anchor!==null&&c(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position);const{position:t}=e;for(;n!==0&&!k(n)&&!O(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&c(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0},Mt=e=>{let n=e.input.charCodeAt(e.position);if(n!==42)return!1;n=e.input.charCodeAt(++e.position);const{position:t}=e;for(;n!==0&&!k(n)&&!O(n);)n=e.input.charCodeAt(++e.position);e.position===t&&c(e,"name of an alias node must contain at least one character");const s=e.input.slice(t,e.position);return e.anchorMap.has(s)||c(e,`unidentified alias "${s}"`),e.aliasCount++,e.aliasCount>e.options.maxAliasCount&&c(e,"alias reference count limit exceeded (possible resource-exhaustion attack)"),e.result=e.build.alias(e,s),e.kind="scalar",!0},ne=1,jt=2,Ae=3,Lt=(e,n,t)=>{e.scalarStyle="PLAIN";const s=e.kind,o=e.result,{input:i}=e;let r=i.charCodeAt(e.position);if(k(r)||O(r)||wt(r))return!1;let a;if((r===63||r===45)&&(a=i.charCodeAt(e.position+1),k(a)||t&&O(a)))return!1;e.kind="scalar",e.result="";let l=e.position,u=e.position,p=!1,f=0,b=0,d=0;for(;r!==0;){if(r===58){if(a=i.charCodeAt(e.position+1),k(a)||t&&O(a))break}else if(r===35){const h=i.charCodeAt(e.position-1);if(k(h))break}else{if(e.position===e.lineStart&&R(e)||t&&O(r))break;if($(r))if(f=e.line,b=e.lineStart,d=e.lineIndent,A(e,!1,-1),e.lineIndent>=n){p=!0,r=i.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=b,e.lineIndent=d;break}}p&&(N(e,l,u),pe(e,e.line-f),l=e.position,u=e.position,p=!1),C(r)||(u=e.position+1),r=i.charCodeAt(++e.position)}return N(e,l,u),e.result!==""?!0:(e.kind=s,e.result=o,!1)},Ot=(e,n)=>{e.scalarStyle="QUOTE_SINGLE";let t=e.input.charCodeAt(e.position);if(t!==39)return!1;e.kind="scalar",e.result="",e.position++;let s=e.position,o=e.position;for(;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(N(e,s,e.position),t=e.input.charCodeAt(++e.position),t===39)s=e.position,e.position++,o=e.position;else return!0;else $(t)?(N(e,s,o),pe(e,A(e,!1,n)),s=e.position,o=e.position):e.position===e.lineStart&&R(e)?c(e,"unexpected end of the document within a single quoted scalar"):(C(t)||(o=e.position+1),e.position++);return c(e,"unexpected end of the stream within a single quoted scalar")},Tt=(e,n)=>{e.scalarStyle="QUOTE_DOUBLE";let t=e.input.charCodeAt(e.position);if(t!==34)return!1;e.kind="scalar",e.result="",e.position++;let s=e.position,o=e.position;for(;(t=e.input.charCodeAt(e.position))!==0;){if(t===34)return N(e,s,e.position),e.position++,!0;if(t===92){if(N(e,s,e.position),t=e.input.charCodeAt(++e.position),$(t))A(e,!1,n);else if(t<256&&y[t]!==void 0)e.result=e.result+y[t],e.position++;else{const i=$t(t);if(i>0){let r=i,a=0;for(;r>0;r--){t=e.input.charCodeAt(++e.position);const l=St(t);l>=0?a=a*16+l:c(e,"expected hexadecimal character")}a>1114111&&c(e,`code point "${a.toString(16).toUpperCase()}" is outside the Unicode range`),e.result=e.result+String.fromCodePoint(a),e.position++}else c(e,"unknown escape sequence")}s=e.position,o=e.position}else $(t)?(N(e,s,o),pe(e,A(e,!1,n)),s=e.position,o=e.position):e.position===e.lineStart&&R(e)?c(e,"unexpected end of the document within a double quoted scalar"):(C(t)||(o=e.position+1),e.position++)}return c(e,"unexpected end of the stream within a double quoted scalar")},Ft=(e,n)=>{let t=e.input.charCodeAt(e.position),s;if(t===124)s=!1,e.scalarStyle="BLOCK_LITERAL";else if(t===62)s=!0,e.scalarStyle="BLOCK_FOLDED";else return!1;e.kind="scalar",e.result="";let o=ne,i=!1,r=!1,a=n,l=0,u=!1,p=0;for(;t!==0;)if(t=e.input.charCodeAt(++e.position),t===43||t===45)o===ne?o=t===43?Ae:jt:c(e,"repeat of a chomping mode identifier");else{const f=It(t);if(f>=0)f===0?c(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):r?c(e,"repeat of an indentation width identifier"):(a=n+f-1,r=!0);else break}if(C(t)){do t=e.input.charCodeAt(++e.position);while(C(t));if(t===35)do t=e.input.charCodeAt(++e.position);while(!$(t)&&t!==0)}for(;t!==0;){for(fe(e),e.lineIndent=0,t=e.input.charCodeAt(e.position);(!r||e.lineIndent<a)&&t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);if(!r&&e.lineIndent>a&&(a=e.lineIndent),$(t)){!r&&e.lineIndent>p&&(p=e.lineIndent),l++;continue}e.options.strict&&t===9&&e.lineIndent<a&&c(e,"tab characters must not be used in indentation");const f=e.position===e.lineStart&&R(e);if(e.options.strict&&t!==0&&!f&&!r&&p>e.lineIndent&&c(e,"a block scalar's leading empty lines cannot be indented more than its content"),e.lineIndent<a||t===0||f){o===Ae?e.result=e.result+`
|
|
24
|
+
`.repeat(i?1+l:l):o===ne&&i&&(e.result=`${e.result}
|
|
25
|
+
`);break}s?C(t)?(u=!0,e.result=e.result+`
|
|
26
|
+
`.repeat(i?1+l:l)):u?(u=!1,e.result=e.result+`
|
|
27
|
+
`.repeat(l+1)):l===0?i&&(e.result=`${e.result} `):e.result=e.result+`
|
|
28
|
+
`.repeat(l):e.result=e.result+`
|
|
29
|
+
`.repeat(i?1+l:l),i=!0,r=!0,l=0;const b=e.position;for(;!$(t)&&t!==0;)t=e.input.charCodeAt(++e.position);N(e,b,e.position)}return!0},z=1,De=2,Qe=3,X=4,ke=(e,n)=>{const t=e.tag,s=e.anchor,o=e.build.seq();let i=!1;if(e.firstTabInLine!==-1)return!1;const r=e.line;e.anchor!==null&&(e.build.anchor(o,e.anchor),e.anchorMap.set(e.anchor,o));let a=e.input.charCodeAt(e.position);for(;a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,c(e,"tab characters must not be used in indentation")),a===45);){const l=e.input.charCodeAt(e.position+1);if(!k(l))break;if(i=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=n){e.build.push(o,null),a=e.input.charCodeAt(e.position);continue}const{line:u}=e;if(P(e,n,Qe,!1,!0),e.build.push(o,e.result),A(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>n)&&a!==0)c(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return i?(e.options.strict&&r===e.documentMarkerLine&&c(e,"a block collection cannot start on the same line as the document start marker"),e.tag=t,e.anchor=s,e.kind="sequence",e.result=o,!0):!1},Re=(e,n,t)=>{const s=e.tag,o=e.anchor,i=e.build.map();let r,a=null,l=null,u=null,p=!1,f=!1,b=!1,d=-1,h=-1;if(e.firstTabInLine!==-1)return!1;const m=e.line;e.anchor!==null&&(e.build.anchor(i,e.anchor),e.anchorMap.set(e.anchor,i));let g=e.input.charCodeAt(e.position);for(;g!==0;){!p&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,c(e,"tab characters must not be used in indentation"));const w=e.input.charCodeAt(e.position+1),{line:_}=e;if((g===63||g===58)&&k(w))g===63?(p&&(r=F(e,i,r,a,l,null),a=null,l=null,u=null),f=!0,p=!0,b=!0):p?(p=!1,b=!0):(f=!0,p=!1,b=!1,a=null,l=null),e.position+=1,g=w;else{if(d=e.position,!P(e,t,De,!1,!0))break;if(e.line===_){for(g=e.input.charCodeAt(e.position);C(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),k(g)||c(e,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(r=F(e,i,r,a,l,null),a=null,l=null,u=null),f=!0,p=!1,b=!1,a=e.tag,l=e.result,h=e.position+1;else if(f)c(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=o,!0}else if(f)c(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=s,e.anchor=o,!0}if((e.line===_||e.lineIndent>n)&&(P(e,n,X,!0,b)&&(p?l=e.result:u=e.result),p||(vt(e,i,l,d,h,e.position),r=F(e,i,r,a,l,u),a=null,l=null,u=null,d=-1,h=-1),A(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===_||e.lineIndent>n)&&g!==0)c(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return p&&F(e,i,r,a,l,null),f&&(e.options.strict&&m===e.documentMarkerLine&&c(e,"a block collection cannot start on the same line as the document start marker"),e.tag=s,e.anchor=o,e.kind="mapping",e.result=i),f},Et=(e,n)=>{const t=e.tag,s=e.anchor;let o,i=e.input.charCodeAt(e.position),r,a,l;if(i===91)r=93,a=!1,l=e.build.seq();else if(i===123)r=125,a=!0,l=e.build.map();else return!1;e.anchor!==null&&(e.build.anchor(l,e.anchor),e.anchorMap.set(e.anchor,l)),i=e.input.charCodeAt(++e.position);let u=!0;for(;i!==0;){if(A(e,!0,n),i=e.input.charCodeAt(e.position),i===r)return e.position++,e.tag=t,e.anchor=s,e.kind=a?"mapping":"sequence",e.result=l,!0;u?i===44&&c(e,"expected the node content, but found ','"):c(e,"missed comma between flow collection entries");let p=null,f=null,b=null,d=!1;if(i===63){const m=e.input.charCodeAt(e.position+1);k(m)&&(d=!0,e.position++,A(e,!0,n))}const h=e.line;if(P(e,n,z,!1,!0),p=e.tag,f=e.result,A(e,!0,n),i=e.input.charCodeAt(e.position),i===58&&(a||d||h===e.line)&&(d=!0,e.position++,A(e,!0,n),P(e,n,z,!1,!0),b=e.result),a)o=F(e,l,o,p,f,b);else if(d){const m=e.build.map();o=F(e,m,o,p,f,b),e.build.push(l,m)}else e.build.push(l,f);A(e,!0,n),i=e.input.charCodeAt(e.position),i===44?(u=!0,i=e.input.charCodeAt(++e.position)):u=!1}return c(e,"unexpected end of the stream within a flow collection")},ve=(e,n,t,s)=>{const o=mt(e);s&&Ye(e,s),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let i=!1;try{i=Re(e,n,t)&&e.kind==="mapping"}catch(r){if(!(r instanceof x))throw r;i=!1}return i?!0:(bt(e,o),!1)},Pt=(e,n,t,s,o)=>{let i=1,r=!1,a=!1,l=!1,u=!1,p=null;e.tag=null,e.anchor=null,e.kind=null,e.result=null;const f=t===X||t===Qe,b=f;let d=f;if(s&&A(e,!0,-1)&&(r=!0,e.lineIndent>n?i=1:e.lineIndent===n?i=0:i=-1),i===1)for(;;){const h=e.input.charCodeAt(e.position);if(r&&(h===33&&e.tag!==null||h===38&&e.anchor!==null)){u=!0;break}if(r&&(h===33||h===38)&&(e.tag!==null||e.anchor!==null)){const g=e.tag,w=e.anchor;if(ve(e,e.position-e.lineStart,n+1)){e.tag=g,e.anchor=w,e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),l=!0;break}e.tag=g,e.anchor=w}e.options.strict&&r&&i!==1&&(h===33||h===38)&&c(e,"a node property must be indented more than its parent node");const m=Be(e);if(!Nt(e)&&!xt(e))break;p??=m,A(e,!0,-1)?(r=!0,d=f,e.lineIndent>n?i=1:e.lineIndent===n?i=0:i=-1):d=!1}if(d&&(d=r||o),l)a=!0;else if(i===1||t===X){const h=t===z||t===De?n:n+1,m=e.position-e.lineStart;if(i===1){let g=d&&(ke(e,m)||Re(e,m,h));g||(g=Et(e,h));const w=e.input.charCodeAt(e.position),_=p!==null&&f&&!d&&w!==124&&w!==62;let he=!1;if(!g&&_&&p){const M=p.position-p.lineStart;he=ve(e,M,h,p)}if(e.options.strict&&u&&e.kind!=="mapping"&&e.kind!=="sequence"&&c(e,"a node may only have one anchor and one tag"),g||he)a=!0;else{let M=b&&Ft(e,h);M||(M=Ot(e,h)),M||(M=Tt(e,h)),M?a=!0:Mt(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&c(e,"alias node should not have any properties")):Lt(e,h,t===z)&&(a=!0,e.tag??="?")}}else i===0&&(a=d&&ke(e,m))}if(e.tag==="?"){if(e.kind==="scalar"&&typeof e.result=="string"){const h=gn(e.tags,e.result);if(h)return e.result=h.value,e.result=e.build.finish(e,e.result,a),e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),e.tag!==null||e.anchor!==null||a;const m=e.resolveScalar(e.result);m===We&&c(e,`unquoted scalar "${e.result}" is not valid under the json schema`),e.result=m}}else if(e.tag!==null&&e.tag!=="!"&&(e.kind==="scalar"||!a&&e.kind===null)){const h=typeof e.result=="string"?e.result:"",m=e.tags?.byTag.get(e.tag);if(m)e.result=m.resolve(h);else{const g=fn(e.tag,h);g.status==="ok"?e.result=g.value:g.status==="invalid"&&c(e,`unacceptable value "${h}" for the "${e.tag}" tag`)}}return e.result=e.build.finish(e,e.result,a),e.anchor!==null&&e.anchorMap.set(e.anchor,e.result),e.tag!==null||e.anchor!==null||a},P=(e,n,t,s,o)=>{e.depth>=e.options.maxDepth&&c(e,`maximum nesting depth of ${String(e.options.maxDepth)} exceeded`),e.depth+=1;try{return Pt(e,n,t,s,o)}finally{e.depth-=1}},_t=/^\d+\.\d+$/,Ve=e=>{let n=!1,t=!1;e.tagMap=new Map,e.anchorMap=new Map,e.aliasCount=0,e.resetVersionDirective();let s;for(;e.input.charCodeAt(e.position)!==0&&(A(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){n=!0,s=e.input.charCodeAt(++e.position);let{position:r}=e;for(;s!==0&&!k(s);)s=e.input.charCodeAt(++e.position);const a=e.input.slice(r,e.position),l=[];for(a.length===0&&c(e,"directive name must not be less than one character in length");s!==0;){for(;C(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!$(s));break}if($(s))break;for(r=e.position;s!==0&&!k(s);)s=e.input.charCodeAt(++e.position);l.push(e.input.slice(r,e.position))}s!==0&&fe(e),a==="YAML"?(t?c(e,"duplication of a YAML directive"):l.length!==1?c(e,"the YAML directive accepts exactly one argument"):_t.test(l[0]??"")||c(e,"ill-formed argument of the YAML directive"),t=!0,e.applyVersionDirective(l[0])):a==="TAG"?l.length===2?e.tagMap.set(l[0],l[1]):c(e,"the TAG directive accepts exactly two arguments"):yt(e,`unknown document directive "${a}"`)}A(e,!0,-1);let o=!1;e.lineIndent===0&&e.input.startsWith("---",e.position)&&k(e.input.charCodeAt(e.position+3))?(e.position+=3,o=!0,A(e,!0,-1)===0&&(e.documentMarkerLine=e.line)):n&&c(e,"directives end mark is expected");const i=P(e,e.lineIndent-1,X,!1,!0);if(e.documentMarkerLine=-1,A(e,!0,-1),(i||o||n)&&e.documents.push(e.result),e.position===e.lineStart&&R(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;let r=e.input.charCodeAt(e.position);for(;r===32||r===9;)r=e.input.charCodeAt(++e.position);r!==0&&r!==35&&!$(r)&&c(e,"unexpected content after document end marker"),A(e,!0,-1)}return}e.position<e.length-1&&c(e,"end of the stream or a document separator is expected")},Wt=e=>{let n=e;if(n.length>0){const t=n.charCodeAt(n.length-1);t!==10&&t!==13&&(n+=`
|
|
30
|
+
`),n.charCodeAt(0)===65279&&(n=n.slice(1))}return n},Je=(e,n)=>{if(typeof e!="string")throw new x(`expected a string to parse, received ${e===null?"null":typeof e}`);let t=Wt(e);if(t.includes("\0"))throw new x("null byte is not allowed in input");t+="\0";const s=new gt(t,n);return s.position=0,s.lineIndent=0,s},Y=(e,n,t,s)=>{if(Array.isArray(t))for(let o=t.length-1;o>=0;o--){const i=Y(t,String(o),t[o],s);t[o]=i}else if(t instanceof Map)for(const o of t.keys()){const i=Y(t,o,t.get(o),s);i===void 0?t.delete(o):t.set(o,i)}else if(Ke(t)){const o=t;for(const i of Object.keys(o)){const r=Y(o,i,o[i],s);r===void 0?delete o[i]:o[i]=r}}return s.call(e,n,t)},qt=(e,n={})=>{const t=Je(e,n);for(;t.position<t.length-1;)Ve(t);const{reviver:s}=n;return s?t.documents.map(o=>Y({"":o},"",o,s)):t.documents},Bt=e=>{const{input:n}=e;let t=n.indexOf(`
|
|
31
|
+
`,e.position);for(;t!==-1;){const s=t+1,o=n.slice(s,s+3);if(o==="---"||o==="...")return e.position=s,e.lineStart=s,e.line+=1,e.lineIndent=0,e.firstTabInLine=-1,e.position<e.length-1;t=n.indexOf(`
|
|
32
|
+
`,s)}return!1},Ge=(e,n={})=>{const t=[],s=Je(e,{...n,onWarning:i=>{t.push(i),n.onWarning?.(i)}});s.mappingRanges=new WeakMap;const o=[];for(;s.position<s.length-1;){const i=s.documents.length,r=t.length,a=s.position;try{Ve(s)}catch(l){if(!(l instanceof x))throw l;if(o.push({contents:null,errors:[l],warnings:t.slice(r)}),!Bt(s))break;continue}for(const l of s.documents.slice(i))o.push({contents:l,errors:[],warnings:t.slice(r)});if(s.position===a)break}return{documents:o,ranges:s.mappingRanges}},we=(e,n={})=>{const t=qt(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new x("expected a single document in the stream, but found more")}},Yt=/\s/,Se=(e,n)=>{let t=n;for(;t>0&&Yt.test(e[t-1]);)t-=1;return t},Kt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ie=(e,n,t)=>{const s=B(e,t).trimEnd();if(!s.includes(`
|
|
33
|
+
`)&&!Kt(e)&&!Array.isArray(e))return` ${s}`;const o=" ".repeat(n+(t.indent??2));return`
|
|
34
|
+
${s.split(`
|
|
35
|
+
`).map(i=>i===""?i:o+i).join(`
|
|
36
|
+
`)}`};class ze{errors;warnings;contents;#e;#n=[];#o;#t;#s;constructor(n,t,s,o={}){this.#s=n,this.#e=s,this.#o=o,this.contents=t.contents,this.errors=t.errors,this.warnings=t.warnings}toJS(n){const t=I(this.contents);return n?.reviver?Y({"":t},"",t,n.reviver):t}toJSON(){return this.toJS()}getIn(n){this.#t??={value:I(this.contents)};let t=this.#t.value;for(const s of n){if(t===null||typeof t!="object"&&typeof t!="string")return;t=t[s]}return t}get(n){return this.getIn([n])}hasIn(n){return this.getIn(n)!==void 0}has(n){return this.hasIn([n])}setIn(n,t){if(n.length===0)throw new E("setIn requires a non-empty path");const s=n.map(String);let o=this.#i(),i=0;for(;i<s.length-1;){const p=o.get(s[i],!0);if(!U(p))break;o=p,i+=1}const r=this.#e.get(o)??[],a=s.slice(i);if(r.length===0&&o!==this.contents)throw new E(`cannot edit ${JSON.stringify(n)}: the target is not a block mapping`);const l=a.length===1?r.find(p=>p.key===a[0]):void 0;l?this.#r(l,t):this.#a(r,a,t);let u=o;for(const p of a.slice(0,-1)){const f=new T;u.set(L(p),f),u=f}u.set(L(a.at(-1)),L(t)),this.#t=void 0}set(n,t){this.setIn([n],t)}toString(){if(this.#n.length===0)return this.#s;const n=this.#n.toSorted((s,o)=>o.start-s.start);let t=this.#s;for(const s of n)t=t.slice(0,s.start)+s.text+t.slice(s.end);return this.#s=t,this.#n.length=0,t}#i(){if(this.contents===null||this.contents===void 0){const n=new T;return this.contents=n,this.#t=void 0,n}if(!U(this.contents))throw new E("cannot edit a document whose root is not a mapping");return this.contents}#r(n,t){const s=Ie(t,n.column,this.#o),o=n.valueStart>0?n.valueStart-1:n.end,i=Math.max(o,Se(this.#s,n.end));this.#n.push({end:i,start:o,text:s})}#a(n,t,s){let o;for(const u of n)(o===void 0||u.end>o.end)&&(o=u);const i=o?.column??0;let r="";for(const[u,p]of t.entries()){const f=" ".repeat(i+u*(this.#o.indent??2));r+=`
|
|
37
|
+
${f}${p}:`,u===t.length-1&&(r+=Ie(s,i+u*(this.#o.indent??2),this.#o))}const a=Se(this.#s,o?.end??this.#s.length);let l=a===0?r.slice(1):r;this.#s.slice(a).includes(`
|
|
38
|
+
`)||(l+=`
|
|
39
|
+
`),this.#n.push({end:a,start:a,text:l})}}const Ut={contents:null,errors:[],warnings:[]};function Zt(e,n,t){const s=typeof n=="function"?we(e,{...t,reviver:n}):we(e,n??t);return s===void 0?null:s}function Ht(e,n,t){if(!(typeof n=="function"||Array.isArray(n)||n===null)&&n!==void 0)return B(e,n);let s={};if(typeof t=="number"?s={indent:t}:typeof t=="string"?s={indent:t.length}:t&&(s=t),Array.isArray(n)){const o=new Set(n.map(String));return B(e,{...s,replacer:(i,r)=>{if(i===""||o.has(i))return r}})}return typeof n=="function"?B(e,{...s,replacer:n}):B(e,s)}const es=(e,n)=>{const{documents:t,ranges:s}=Ge(e,{...n,nodes:!0});return new ze(e,t[0]??Ut,s)},ns=(e,n)=>{const{documents:t,ranges:s}=Ge(e,{...n,nodes:!0});return t.map(o=>new ze(e,o,s))};export{Ht as M,ns as N,es as x,Zt as y};
|