@visulima/vis 1.0.7 → 2.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE.md +210 -2733
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/CONFIG_FILES.js +1 -1
  6. package/dist/packem_chunks/bloom-sync.js +1 -1
  7. package/dist/packem_chunks/catalog.js +68 -68
  8. package/dist/packem_chunks/cli-exec.js +1 -1
  9. package/dist/packem_chunks/cli-main.js +163 -163
  10. package/dist/packem_chunks/devtools.js +1 -1
  11. package/dist/packem_chunks/dispatch.js +1 -1
  12. package/dist/packem_chunks/fix.js +1 -1
  13. package/dist/packem_chunks/handler.js +1 -1
  14. package/dist/packem_chunks/handler10.js +1 -1
  15. package/dist/packem_chunks/handler11.js +1 -1
  16. package/dist/packem_chunks/handler12.js +1 -1
  17. package/dist/packem_chunks/handler13.js +1 -1
  18. package/dist/packem_chunks/handler14.js +1 -1
  19. package/dist/packem_chunks/handler15.js +1 -1
  20. package/dist/packem_chunks/handler16.js +1 -1
  21. package/dist/packem_chunks/handler17.js +1 -1
  22. package/dist/packem_chunks/handler18.js +1 -1
  23. package/dist/packem_chunks/handler19.js +1 -1
  24. package/dist/packem_chunks/handler2.js +1 -1
  25. package/dist/packem_chunks/handler20.js +1 -1
  26. package/dist/packem_chunks/handler21.js +1 -1
  27. package/dist/packem_chunks/handler22.js +1 -1
  28. package/dist/packem_chunks/handler23.js +1 -1
  29. package/dist/packem_chunks/handler24.js +1 -1
  30. package/dist/packem_chunks/handler26.js +1 -1
  31. package/dist/packem_chunks/handler27.js +1 -1
  32. package/dist/packem_chunks/handler28.js +1 -1
  33. package/dist/packem_chunks/handler29.js +1 -1
  34. package/dist/packem_chunks/handler3.js +1 -1
  35. package/dist/packem_chunks/handler30.js +1 -1
  36. package/dist/packem_chunks/handler4.js +1 -1
  37. package/dist/packem_chunks/handler5.js +5 -5
  38. package/dist/packem_chunks/handler50.js +6 -6
  39. package/dist/packem_chunks/handler51.js +1 -1
  40. package/dist/packem_chunks/handler53.js +1 -1
  41. package/dist/packem_chunks/handler54.js +1 -1
  42. package/dist/packem_chunks/handler55.js +1 -1
  43. package/dist/packem_chunks/handler58.js +3 -3
  44. package/dist/packem_chunks/handler59.js +1 -1
  45. package/dist/packem_chunks/handler6.js +7 -7
  46. package/dist/packem_chunks/handler60.js +2 -2
  47. package/dist/packem_chunks/handler61.js +1 -1
  48. package/dist/packem_chunks/handler62.js +2 -2
  49. package/dist/packem_chunks/handler63.js +1 -1
  50. package/dist/packem_chunks/handler64.js +4 -4
  51. package/dist/packem_chunks/handler66.js +1 -1
  52. package/dist/packem_chunks/handler67.js +19 -19
  53. package/dist/packem_chunks/handler68.js +3 -3
  54. package/dist/packem_chunks/handler69.js +1 -1
  55. package/dist/packem_chunks/handler7.js +1 -1
  56. package/dist/packem_chunks/handler70.js +4 -4
  57. package/dist/packem_chunks/handler71.js +1 -1
  58. package/dist/packem_chunks/handler72.js +13 -13
  59. package/dist/packem_chunks/handler73.js +4 -4
  60. package/dist/packem_chunks/handler74.js +7 -7
  61. package/dist/packem_chunks/handler75.js +3 -27
  62. package/dist/packem_chunks/handler76.js +27 -3
  63. package/dist/packem_chunks/handler77.js +32 -32
  64. package/dist/packem_chunks/handler78.js +25 -23
  65. package/dist/packem_chunks/handler8.js +1 -1
  66. package/dist/packem_chunks/handler9.js +1 -1
  67. package/dist/packem_chunks/heal-accept.js +1 -1
  68. package/dist/packem_chunks/heal.js +1 -1
  69. package/dist/packem_chunks/help-command.js +56 -23
  70. package/dist/packem_chunks/index3.js +1 -1
  71. package/dist/packem_chunks/keys-refresh.js +1 -1
  72. package/dist/packem_chunks/lean.js +1 -1
  73. package/dist/packem_chunks/list.js +1 -1
  74. package/dist/packem_chunks/loader.js +1 -1
  75. package/dist/packem_chunks/sync.js +1 -1
  76. package/dist/packem_chunks/sync2.js +1 -1
  77. package/dist/packem_chunks/tripwire.js +1 -1
  78. package/dist/packem_chunks/ts-loader.js +1 -1
  79. package/dist/packem_chunks/verify-lockfile.js +1 -1
  80. package/dist/packem_shared/{affected-shas-DkrQVQla.js → affected-shas-BOeR4vEc.js} +1 -1
  81. package/dist/packem_shared/{ai-analysis-DWBi9tSU.js → ai-analysis-D7HOdUwd.js} +3 -3
  82. package/dist/packem_shared/{ai-fix-BocGeQu4.js → ai-fix-CLfWbyqY.js} +1 -1
  83. package/dist/packem_shared/{augment-BIUGEy1Q.js → augment-BVuj3ee7.js} +1 -1
  84. package/dist/packem_shared/{bin-BZ_m_tag.js → bin-CkfFJCAM.js} +1 -1
  85. package/dist/packem_shared/{build-scripts-CpTeQE1L.js → build-scripts-CfAqHBlq.js} +1 -1
  86. package/dist/packem_shared/{command-runtime-Buz4F5LM.js → command-runtime-DTbo12cP.js} +1 -1
  87. package/dist/packem_shared/{cyclonedx-DFlz2HRz.js → cyclonedx--L7NbMBH.js} +1 -1
  88. package/dist/packem_shared/{dependency-scan-173U3WXB.js → dependency-scan-DZcSlSFp.js} +1 -1
  89. package/dist/packem_shared/{docker-B2h5KRZH.js → docker-69ybb6g7.js} +1 -1
  90. package/dist/packem_shared/{en-BRcjb70R.js → en-C26W78--.js} +1 -1
  91. package/dist/packem_shared/{failure-log-C3c5AVfc.js → failure-log-BZQqxffZ.js} +1 -1
  92. package/dist/packem_shared/glob-DMbPwGSj-D2Hk3lFG.js +1 -0
  93. package/dist/packem_shared/{index-D75r1yKp.js → index-2LCHaVNX.js} +1 -1
  94. package/dist/packem_shared/{index-BtbefKtY.js → index-Bhzio2RB.js} +1 -1
  95. package/dist/packem_shared/{index-ZfYDID5E.js → index-Bq6YEpiq.js} +1 -1
  96. package/dist/packem_shared/{lifecycle-CG0Ccu4h.js → lifecycle-BcCMt9wn.js} +1 -1
  97. package/dist/packem_shared/{lockfile-D_JiWcwS.js → lockfile-Cwt0Nwr0.js} +1 -1
  98. package/dist/packem_shared/{manifests-mFrrpzXW.js → manifests-BshBdSb-.js} +1 -1
  99. package/dist/packem_shared/{min-release-age-Cdh1dLz1.js → min-release-age-hK604veF.js} +1 -1
  100. package/dist/packem_shared/{missing-package-json-sYPP3cm-.js → missing-package-json-Cu0iWMT2.js} +1 -1
  101. package/dist/packem_shared/{native-config-sync-DW8549FX.js → native-config-sync-DDKjAy0i.js} +1 -1
  102. package/dist/packem_shared/{package-version-DBJLduJL.js → package-version-TsxLc6w2.js} +2 -2
  103. package/dist/packem_shared/{packument-BFekEvwn.js → packument-CtVAoNo7.js} +1 -1
  104. package/dist/packem_shared/{pm-runner-D5NWL8yv.js → pm-runner-CfyxALPK.js} +1 -1
  105. package/dist/packem_shared/{provenance-ByHgofYo.js → provenance-CRBV9cko.js} +1 -1
  106. package/dist/packem_shared/{readJsonSync-DuMMeB3s-wlhgSHes.js → readJsonSync-DuMMeB3s-B9cGBVbJ.js} +1 -1
  107. package/dist/packem_shared/{registry-keys-BCD7Ir8g.js → registry-keys-Ci2keQNi.js} +1 -1
  108. package/dist/packem_shared/{resolve-explicit-CnEsy-zC.js → resolve-explicit-BX6aMYl-.js} +1 -1
  109. package/dist/packem_shared/{resolve-runtime-Z2n59SEd.js → resolve-runtime-COyiEML3.js} +1 -1
  110. package/dist/packem_shared/{run-file-u9hMNu8K.js → run-file-CTJfIZ0I.js} +1 -1
  111. package/dist/packem_shared/{runtime-check-B1OF152E.js → runtime-check-fzDkedMW.js} +1 -1
  112. package/dist/packem_shared/{s1ngularity-DkNDQiKU.js → s1ngularity-Cq1cCSpU.js} +1 -1
  113. package/dist/packem_shared/scan-progress-DQ9qIGzr.js +2 -0
  114. package/dist/packem_shared/{selectors-DiZWa7R4.js → selectors-B9dOMIMq.js} +1 -1
  115. package/dist/packem_shared/{signatures-kvrwi3Un.js → signatures-DvD1E8Xa.js} +1 -1
  116. package/dist/packem_shared/{target-options-BJIDkfDf.js → target-options-aPqByoww.js} +1 -1
  117. package/dist/packem_shared/{toolchain-CAbopPwK.js → toolchain-CiaW3bx4.js} +1 -1
  118. package/dist/packem_shared/{typosquats-DWB80Gyv.js → typosquats-CRnvlYPw.js} +1 -1
  119. package/dist/packem_shared/use-measured-height-DfNxp6nf.js +1 -0
  120. package/dist/packem_shared/{verify-BajubByH.js → verify-23b6IfSg.js} +1 -1
  121. package/dist/packem_shared/vis-update-app-De8JjZm0.js +1 -0
  122. package/dist/packem_shared/{watch-B8WT65yN.js → watch-B3P2dwoG.js} +1 -1
  123. package/dist/packem_shared/{watch-loop-CZazUnGB.js → watch-loop-B3_O8hF-.js} +1 -1
  124. package/dist/runtime/preload.js +1 -1
  125. package/index.d.ts +204 -204
  126. package/index.js +26 -26
  127. package/package.json +11 -10
  128. package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +0 -3
  129. package/dist/packem_shared/Table-BGIHvenQ-D2oJtNQj.js +0 -34
  130. package/dist/packem_shared/glob-DMbPwGSj-DFkUYBco.js +0 -1
  131. package/dist/packem_shared/scan-progress-CHdHWhVw.js +0 -2
  132. package/dist/packem_shared/spinner-DuJJvFTl.js +0 -1
  133. package/dist/packem_shared/tabs-CgxCvjCY.js +0 -1
  134. package/dist/packem_shared/use-measured-height-C4jA0yNy.js +0 -1
  135. package/dist/packem_shared/vis-update-app-M3dw6XRC.js +0 -1
@@ -1,4 +1,4 @@
1
- import{createRequire as et}from"node:module";import{m as ii,a as dt,f as fu}from"./index-D75r1yKp.js";import{a as rt}from"./readJsonSync-DuMMeB3s-wlhgSHes.js";const nt=et(import.meta.url),vo=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zo=i=>{if(typeof vo<"u"&&vo.versions&&vo.versions.node){const[o,e]=vo.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return vo.getBuiltinModule(i)}return nt(i)},{createRequire:wu}=Zo("node:module"),{existsSync:at,rmSync:ju,writeFileSync:ut,readdirSync:mu,statSync:gt}=Zo("node:fs"),{spawn:$n}=Zo("node:child_process"),{createHash:tt}=Zo("node:crypto"),{homedir:st,platform:ht}=Zo("node:os"),lt=[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],vt=12288,yt=65510,ct=[12288,12288,65281,65376,65504,65510],bt=8361,pt=65518,wt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],jt=32,mt=10630,ft=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Yt=4352,kt=262141,Yu=[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],So=(i,o)=>{let e=0,n=Math.floor(i.length/2)-1;for(;e<=n;){const a=Math.floor((e+n)/2),u=a*2;if(o<i[u])n=a-1;else if(o>i[u+1])e=a+1;else return!0}return!1},qn=19968,[Lt,Zt]=St(Yu);function St(i){let o=i[0],e=i[1];for(let n=0;n<i.length;n+=2){const a=i[n],u=i[n+1];if(qn>=a&&qn<=u)return[a,u];u-a>e-o&&(o=a,e=u)}return[o,e]}const Jt=i=>i<161||i>1114109?!1:So(lt,i),Ct=i=>i<vt||i>yt?!1:So(ct,i),Xt=i=>i<bt||i>pt?!1:So(wt,i),Ht=i=>i<jt||i>mt?!1:So(ft,i),Dt=i=>i>=Lt&&i<=Zt?!0:i<Yt||i>kt?!1:So(Yu,i);function Tt(i){return Jt(i)?"ambiguous":Ct(i)?"fullwidth":Xt(i)?"halfwidth":Ht(i)?"narrow":Dt(i)?"wide":"neutral"}function Bt(i){if(!Number.isSafeInteger(i))throw new TypeError(`Expected a code point, got \`${typeof i}\`.`)}function ku(i){return Bt(i),Tt(i)}const Lu=String.raw,In=Lu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Mt=()=>new RegExp(Lu`\p{RI}{2}|(?![#*\d](?!\uFE0F?\u20E3))${In}(?:\u200D${In})*`,"gu"),yX=new Set(["\x1B","›"]),Qt="\x07",Gt="[",cX="m",xt="]8;;",bX=39,pX=/[\u200B\uFEFF\u2060-\u2064]/g,wX=new RegExp(`(?:\\${Gt}(?<code>\\d+)m|\\${xt}(?<uri>.*)${Qt})`),jX=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),Nt=/^[ \t]*(?:\r\n|\r|\n)/,Wt=/(?:\r\n|\r|\n)[ \t]*$/,Pt=/^(?:[\r\n]|$)/,Ft=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Kt=/^[ \t]*[\r\n][ \t\r\n]*$/,Rt=/\r\n|\n|\r/g,yo=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,mX=/\u001B\[[\d;]*m[^\u001B]*(?:\u001B\[[\d;]*m|$)/g,fX=/\u001B\]8;[^\u0007\u001B]*(?:\u0007|\u001B\\)[^\u001B]*\u001B\]8;;(?:\u0007|\u001B\\)/g,Qo=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,ci=Mt(),At=/[-_./\s]+/g,we=/(\u001B\[[0-9;]*[a-z])/i,Un=new RegExp("\\p{Script=Arabic}","u"),Ot=new RegExp("\\p{Script=Bengali}","u"),qi=new RegExp("\\p{Script=Cyrillic}","u"),_t=new RegExp("\\p{Script=Devanagari}","u"),zt=new RegExp("\\p{Script=Ethiopic}","u"),je=new RegExp("\\p{Script=Greek}","u"),Vn=new RegExp("\\p{Script=Greek}+|\\p{Script=Latin}+|[^\\p{Script=Greek}\\p{Script=Latin}]+","gu"),Et=new RegExp("\\p{Script=Gujarati}","u"),$t=new RegExp("\\p{Script=Gurmukhi}","u"),ia=new RegExp("\\p{Script=Hangul}","u"),oa=new RegExp("\\p{Script=Hebrew}","u"),qt=new RegExp("\\p{Script=Hiragana}","u"),ea=new RegExp("\\p{Script=Han}","u"),It=new RegExp("\\p{Script=Kannada}","u"),Ut=new RegExp("\\p{Script=Katakana}","u"),Vt=new RegExp("\\p{Script=Khmer}","u"),is=new RegExp("\\p{Script=Lao}","u"),U=new RegExp("\\p{Script=Latin}","u"),os=new RegExp("\\p{Script=Malayalam}","u"),es=new RegExp("\\p{Script=Myanmar}","u"),ns=new RegExp("\\p{Script=Oriya}","u"),as=new RegExp("\\p{Script=Sinhala}","u"),us=new RegExp("\\p{Script=Tamil}","u"),gs=new RegExp("\\p{Script=Telugu}","u"),ds=new RegExp("\\p{Script=Thai}","u"),ts=new RegExp("\\p{Script=Tibetan}","u"),na=/[\u02BB\u02BC\u0027]/u,ss=i=>i.replace(ci,""),aa=new Map,hs=i=>[i.ambiguousIsNarrow?1:0,i.control,i.fullWidth,i.regular,i.wide].join("|"),rs=i=>{const o=hs(i.width);let e=aa.get(o);return e||(e=new Map,aa.set(o,e)),e},Go=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Zu=i=>i>=32&&i<=126?"latin":i===8203||i===8204||i===8205||i===8288?"zero":i<=31||i>=127&&i<=159?"control":i>=160&&i<=255||i>=9472&&i<=9599?"latin":i>=4352&&i<=4607||i>=11904&&i<=40959||i>=44032&&i<=55215||i>=63744&&i<=64255||i>=65280&&i<=65519&&!(i>=65377&&i<=65439)||i>=12352&&i<=12543?"wide":i===8230?"latin":"other",ls=(i,o)=>{const e=rs(o),n=Math.floor(i/65536),a=i%65536;let u=e.get(n);if(u||(u=new Map,e.set(n,u)),u.has(a))return u.get(a);let g;switch(Zu(i)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(ku(i)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}return u.set(a,g),g},vs=i=>i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071||i>=917760&&i<=917999||i>=65024&&i<=65039||i>=3633&&i<=3642||i>=3655&&i<=3662||i>=3761&&i<=3769||i>=3771&&i<=3772||i>=3784&&i<=3789||i>=2304&&i<=2307||i>=2362&&i<=2383||i>=2385&&i<=2391||i>=2402&&i<=2403||i>=2433&&i<=2435||i>=2492&&i<=2500||i>=2509&&i<=2509||i>=2561&&i<=2563||i>=2620&&i<=2637||i>=1611&&i<=1631||i>=1648&&i<=1648||i>=1750&&i<=1773||i>=2276&&i<=2302||i>=1425&&i<=1469||i>=1471&&i<=1471||i>=1473&&i<=1474||i>=1476&&i<=1477||i>=1479&&i<=1479||i>=3893&&i<=3893||i>=3895&&i<=3895||i>=3897&&i<=3897||i>=3953&&i<=3966||i>=3968&&i<=3972||i>=3974&&i<=3975?!0:i>=768&&i<=777||i>=803&&i<=803,Qe=(i,o={})=>{if(!i||i.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const e={truncation:{countAnsiEscapeCodes:o.countAnsiEscapeCodes??!1,ellipsis:o.ellipsis??"",ellipsisWidth:o.ellipsisWidth??(o.ellipsis?Qe(o.ellipsis,{...o,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:o.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:o.ambiguousIsNarrow??!1,ansi:o.ansiWidth??0,control:o.controlWidth??0,emoji:o.emojiWidth??2,fullWidth:o.fullWidth??2,halfWidth:o.halfWidth??1,regular:o.regularWidth??1,tab:o.tabWidth??8,wide:o.wideWidth??2}},n=Math.max(0,e.truncation.limit-e.truncation.ellipsisWidth),{length:a}=i,u=a>1e4;let g=0,d=0,h=a,s=!1;const l=i.includes("\x1B")||i.includes("›");for(;g<a;){if(l&&(i[g]==="\x1B"||i[g]==="›")){if(i.startsWith("\x1B]8;;",g)){const p="\x1B]8;;\x07",w=p.length,j=i.indexOf("\x07",g+5);if(j!==-1){const Z=i.indexOf(p,j+1);if(Z!==-1){const X=Z+w,A=i.slice(j+1,Z).replace(yo,""),M=Qe(A,{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-d),regularWidth:e.width.regular,tabWidth:e.width.tab,wideWidth:e.width.wide}),B=M.width;if(M.truncated)s=!0,h=Math.min(h,g);else if(d+B>n&&(h=Math.min(h,g),s=!0,d+B>e.truncation.limit))break;if(d+=B,g=X,s&&d>=e.truncation.limit)break;continue}}}if(yo.lastIndex=g,yo.test(i)){const p=yo.lastIndex-g,w=e.truncation.countAnsiEscapeCodes?p:e.width.ansi;if(d+w>n&&(h=Math.min(h,g),d+w>e.truncation.limit)){s=!0;break}d+=w,g=yo.lastIndex;continue}}const c=i.codePointAt(g);if(c===8203||c===65279||c>=8288&&c<=8292){g+=1;continue}if(c===9){if(d+e.width.tab>n&&(h=Math.min(h,g),d+e.width.tab>e.truncation.limit)){s=!0;break}d+=e.width.tab,g+=1;continue}if(Go.lastIndex=g,Go.test(i)){const p=(Go.lastIndex-g)*e.width.regular;if(d+p>n){const w=Math.floor((n-d)/e.width.regular);if(h=Math.min(h,g+w),d+p>e.truncation.limit){s=!0;break}}d+=p,g=Go.lastIndex;continue}if((c<=31||c>=127&&c<=159)&&(Qo.lastIndex=g,Qo.test(i))){const p=(Qo.lastIndex-g)*e.width.control;if(d+p>n&&(h=Math.min(h,g+Math.floor((n-d)/e.width.control)),d+p>e.truncation.limit)){s=!0;break}d+=p,g=Qo.lastIndex;continue}if(ci.lastIndex=g,ci.test(i)){if(d+e.width.emoji>n&&(h=Math.min(h,g),d+e.width.emoji>e.truncation.limit)){s=!0;break}d+=e.width.emoji,g=ci.lastIndex;continue}const y=i.codePointAt(g)??0;if(vs(y)){g+=y>65535?2:1;continue}let b;if(u)b=ls(y,e);else switch(Zu(y)){case"control":{b=e.width.control;break}case"latin":{b=e.width.regular;break}case"wide":{b=e.width.wide;break}case"zero":{b=0;break}default:switch(ku(y)){case"ambiguous":{b=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{b=e.width.fullWidth;break}case"wide":{b=e.width.wide;break}default:b=e.width.regular}}if(d+b>n&&(h=Math.min(h,g),d+b>e.truncation.limit)){s=!0;break}d+=b,g+=y>65535?2:1}let v=d,r=!1;return s&&e.truncation.limit>=e.truncation.ellipsisWidth&&(v=e.truncation.limit,r=!0),{ellipsed:r,index:s?h:a,truncated:s,width:v}},YX=(i,o={})=>Qe(i,{...o,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width;let ys=class{capacity;cache;constructor(o){this.capacity=o,this.cache=new Map}get(o){if(!this.cache.has(o))return;const e=this.cache.get(o);return this.cache.delete(o),this.cache.set(o,e),e}has(o){return this.cache.has(o)}set(o,e){if(this.cache.has(o))this.cache.delete(o);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(o,e)}delete(o){this.cache.delete(o)}clear(){this.cache.clear()}size(){return this.cache.size}};const cs=wu(import.meta.url),co=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bs=i=>{if(typeof co<"u"&&co.versions&&co.versions.node){const[o,e]=co.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return co.getBuiltinModule(i)}return cs(i)},{stripVTControlCharacters:ps}=bs("node:util"),me=new ys(1e3),ws=/[.*+?^${}()|[\]\\]/g,js=i=>{const o=i.join("");if(me.has(o)){const a=me.get(o);return a.lastIndex=0,a}const e=i.map(a=>a.replaceAll(ws,String.raw`\$&`)).join("|"),n=new RegExp(e,"g");return me.set(o,n),n},ms=i=>{const o=[];let e=0,n;for(ci.lastIndex=0;(n=ci.exec(i))!==null;)n.index>e&&o.push(i.slice(e,n.index)),o.push(n[0]),e=ci.lastIndex;return e<i.length&&o.push(i.slice(e)),o.filter(Boolean)},fs=/[ČŠŽĐ]/i,Su=new Uint8Array(128),Ju=new Uint8Array(128),Cu=new Uint8Array(128);for(let i=0;i<128;i++)Su[i]=i>=65&&i<=90?1:0,Ju[i]=i>=97&&i<=122?1:0,Cu[i]=i>=48&&i<=57?1:0;const fe=i=>Su[i],ua=i=>Ju[i],Ye=i=>Cu[i],Bi=(i,o,e,n,a)=>{if(i.length===0)return[];let u=!1;const g=Object.values(o);for(const c of g)if(c(i[0])){u=!0;break}if(!u&&!e)return[i];const d=[...i],h=[];let s=d[0],l="other";const v=Object.entries(o);for(const c of v){const[y,b]=c;if(b(d[0])){l=y;break}}let r=e&&n?d[0]===d[0].toLocaleUpperCase(n):!1;for(let c=1;c<d.length;c++){const y=d[c];let b="other";for(const j of v){const[Z,X]=j;if(X(y)){b=Z;break}}const p=e&&n?y===y.toLocaleUpperCase(n):!1;let w=!1;a?w=a(l,b,r,p,y,c,d):(l!==b&&l!=="other"&&b!=="other"&&(w=!0),e&&b!=="other"&&!r&&p&&(w=!0)),w?(h.push(s),s=y):s+=y,l=b,e&&(r=p)}return s&&s.length>0&&h.push(s),h.length>0?h:[i]},Ys=(i,o,e,n)=>{if(e.size===0)return o;for(const a of e)if(i.startsWith(a,o))return n.push(a),o+a.length;return o},Xu=(i,o=new Set)=>{if(i.length===0)return[];if(i.toUpperCase()===i)return[i];let e=0;const n=[],a=i.length;for(let u=1;u<a;u++){const g=Ys(i,e,o,n);if(g!==e){e=g,u=e-1;continue}const d=i.codePointAt(u-1),h=i.codePointAt(u),s=d&&d<128&&fe(d),l=h&&h<128&&fe(h),v=d&&d<128&&ua(d),r=d&&d<128&&Ye(d),c=h&&h<128&&Ye(h);if(v&&l){n.push(i.slice(e,u)),e=u;continue}if(r&&!c||!r&&c){n.push(i.slice(e,u)),e=u;continue}if(c&&!r){let y=!1,b=!1;if(u+1<a){const p=i.codePointAt(u+1);y=p&&p<128&&fe(p),b=p&&p<128&&Ye(p)}if(!b&&y){n.push(i.slice(e,u),i.slice(u,u+1)),e=u+1;continue}}if(u+1<a){const y=i.codePointAt(u+1),b=y&&y<128&&ua(y);if(s&&l&&b){const p=i.slice(e,u+1);o.has(p)||(n.push(i.slice(e,u)),e=u)}}}return e<a&&n.push(i.slice(e)),n.filter(u=>u!=="")},Hu=(i,o,e)=>{if(i.length===0)return[];const n=i===i.toLocaleUpperCase(o);if(o.startsWith("de")){if(!n&&i.replaceAll("ß","SS")===i.toLocaleUpperCase(o))return[i];const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o),y=c,b=c?0:-1;for(let p=1;p<l;p++){const w=s[p],j=w===w.toLocaleUpperCase(o);if(j===c)r+=w;else if(j)r&&r.length>0&&(v.push(r),r=w),y=!0,b=p;else{if(y&&p-b>1){const Z=s[p-1],X=r.slice(0,-1);X&&X.length>0&&v.push(X),r=Z+w}else r+=w;y=!1,b=-1}c=j}return r&&r.length>0&&v.push(r),v}if(o.startsWith("uk")||o.startsWith("ru")||o.startsWith("bg")||o.startsWith("sr")||o.startsWith("mk")||o.startsWith("be")){if(!qi.test(i)&&!U.test(i))return[i];const s=[...i],l=s.length,v=[];let r=s[0];const c=s[0];let y;qi.test(c)?y=1:U.test(c)?y=2:y=0;let b=c===c.toLocaleUpperCase(o);for(let w=1;w<l;w++){const j=s[w];let Z;qi.test(j)?Z=1:U.test(j)?Z=2:Z=0;const X=j===j.toLocaleUpperCase(o);y!==Z&&(y===1||y===2)&&(Z===1||Z===2)||Z===y&&!b&&X?(v.push(r),r=j):r+=j,y=Z,b=X}r&&r.length>0&&v.push(r);const p=[];for(let w=0;w<v.length;w++)w<v.length-1&&v[w].length===1&&U.test(v[w])&&qi.test(v[w+1][0])?(p.push(v[w]+v[w+1]),w+=1):p.push(v[w]);return p}if(o.startsWith("el")){if(!je.test(i)&&!U.test(i))return[i];const s=[];Vn.lastIndex=0;let l;for(;(l=Vn.exec(i))!==null;)s.push(l[0]);s.length===0&&s.push(i);const v=[];if(s.length===1){const r=s[0];if(!r||!je.test(r[0])||r.length===1)return[r??i]}for(const r of s){if(!r)continue;if(!je.test(r[0])||r.length===1){v.push(r);continue}const c=r.length;let y=r[0],b=r[0]===r[0].toLocaleUpperCase(o);for(let p=1;p<c;p++){const w=r[p],j=w===w.toLocaleUpperCase(o);!b&&j?(v.push(y),y=w):y+=w,b=j}y&&v.push(y)}return v}if(o.startsWith("ja")||o.startsWith("ko")){const s=o.startsWith("ja"),l=s?{hiragana:r=>qt.test(r),kanji:r=>ea.test(r),katakana:r=>Ut.test(r),latin:r=>U.test(r)}:{hangul:r=>ia.test(r),latin:r=>U.test(r)},v=new Set(["が","で","と","に","の","は","へ","も","や","を"]);if(s){const r=Bi(i,l,!1,o,(y,b)=>y==="hiragana"&&b==="katakana"||y==="katakana"&&b==="hiragana"||y==="hiragana"&&b==="latin"||y==="katakana"&&b==="latin"||y==="kanji"&&b==="latin"||y==="latin"&&(b==="hiragana"||b==="katakana"||b==="kanji")),c=[];for(const y of r){const b=y;b.length===1&&v.has(b)&&c.length>0?c[c.length-1]=c.at(-1)+b:c.push(b)}return c.length>0?c:[i]}return Bi(i,l,!1,o,(r,c)=>r==="hangul"&&c==="latin"||r==="latin"&&c==="hangul")}if(o.startsWith("sl")){const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o);for(let y=1;y<l;y++){const b=s[y],p=b===b.toLocaleUpperCase(o),w=fs.test(b),j=y<l-1&&s[y+1]===s[y+1].toLocaleUpperCase(o);!c&&p||w&&j?(v.push(r),r=b,w&&j&&(v.push(r),r="")):r+=b,c=p}return r&&r.length>0&&v.push(r),v}if(o.startsWith("zh"))return Bi(i,{han:s=>ea.test(s),latin:s=>U.test(s)},!1,o);if(["ar","fa","he","ur"].includes(o.split("-")[0])){const s=l=>oa.test(l)||Un.test(l);return Bi(i,{latin:l=>U.test(l),rtl:l=>s(l)},!1,o)}if(["am","bn","gu","hi","km","kn","lo","ml","mr","ne","or","pa","si","ta","te","th"].includes(o.split("-")[0])){const s=l=>_t.test(l)||Ot.test(l)||Et.test(l)||$t.test(l)||It.test(l)||us.test(l)||gs.test(l)||os.test(l)||as.test(l)||ds.test(l)||is.test(l)||ts.test(l)||es.test(l)||zt.test(l)||Vt.test(l)||ns.test(l);return Bi(i,{indic:l=>s(l),latin:l=>U.test(l)},!1,o)}if(["be","bg","ru","sr","uk"].includes(o))return Bi(i,{cyrillic:s=>qi.test(s),latin:s=>U.test(s)},!0,o);if(["ar","fa","he"].includes(o))return Bi(i,{latin:s=>U.test(s),rtl:s=>oa.test(s)||Un.test(s)},!1,o);if(o.startsWith("ko"))return Bi(i,{hangul:s=>ia.test(s),latin:s=>U.test(s)},!1,o);if(o.startsWith("uz")){if(!qi.test(i)&&!U.test(i))return[i];const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o);for(let y=1;y<l;y++){const b=s[y],p=b===b.toLocaleUpperCase(o);if(na.test(b)||na.test(s[y-1])){r+=b;continue}!c&&p?(v.push(r),r=b):r+=b,c=p}return r&&r.length>0&&v.push(r),v}const a=[...i],u=a.length,g=[];let d=a[0],h=a[0]===a[0].toLocaleUpperCase(o);for(const s of e)if(i.startsWith(s)){g.push(s),d=a[s.length],h=d===d.toLocaleUpperCase(o);break}for(let s=1;s<u;s++){const l=a[s],v=l===l.toLocaleUpperCase(o);let r=0;for(const c of e)if(i.startsWith(c,s)){g.push(d,c),r=c.length,d="";const y=c.at(-1);y&&(h=y===y.toLocaleUpperCase(o));break}if(r>0){s+=r-1;continue}!h&&v?(g.push(d),d=l):d+=l,h=v}return d&&g.push(d),g},ks=(i,o,e)=>{const n=[],a=we.test(i)?i.split(we).filter(Boolean):[i];for(const u of a){const g=u;if(we.test(g))n.push(g);else{ci.lastIndex=0;const d=ci.test(g)?ms(g).filter(Boolean):[g];for(const h of d)if(ci.lastIndex=0,ci.test(h))n.push(h);else if(o){const s=o.toLowerCase().split("-")[0];n.push(...Hu(h,s,e))}else n.push(...Xu(h,e))}}return n},LX=(i,o={})=>{if(!i||typeof i!="string")return[];const{handleAnsi:e=!1,handleEmoji:n=!1,knownAcronyms:a=[],locale:u,normalize:g=!1,separators:d,stripAnsi:h=!1,stripEmoji:s=!1}=o,l=new Set([...a].toSorted((w,j)=>j.length-w.length));let v=i;h&&(v=ps(v)),s&&(v=ss(v));let r;Array.isArray(d)?r=js(d):d instanceof RegExp?r=d:r=At;const c=[];let y=v;const b=r.flags.includes("g")?r:new RegExp(r.source,`${r.flags}g`);for(;y.length>0;){const w=b.exec(y);if(!w){y===".."?c.push(".."):y==="."?c.push("."):y.length>0&&c.push(y);break}const j=w.index,Z=w[0],X=Z.length,A=y.slice(0,j),M=y.slice(j+X);if(Z.startsWith("../"))c.push(".."),y=y.slice(j+3);else if(Z.startsWith("./"))c.push("."),y=y.slice(j+2);else if(j===0&&Z==="..")c.push(".."),y=y.slice(2);else if(j===0&&Z===".")c.push("."),y=y.slice(1);else{A.length>0&&c.push(A);let B=0;for(;(B=Z.indexOf("../",B))!==-1;)c.push(".."),B+=3;for(B=0;(B=Z.indexOf("./",B))!==-1;)(B===0||Z[B-1]!==".")&&c.push("."),B+=2;let K=M;for(;K.startsWith("../");)c.push(".."),K=K.slice(3);for(;K.startsWith("./");)c.push("."),K=K.slice(2);if(K===".."){c.push("..");break}else if(K==="."){c.push(".");break}else y=K}b.lastIndex=0}if(c.length===0){const w=v.split(r).filter(Boolean);c.push(...w)}let p=[];for(const w of c)e||n?p.push(...ks(w,u,l)):u?p.push(...Hu(w,u,l)):p.push(...Xu(w,l));return g&&(p=p.map(w=>l.has(w)?w:u&&w===w.toLocaleUpperCase(u)?w[0]+w.slice(1).toLocaleLowerCase(u):w.toUpperCase()===w&&!l.has(w)?w.slice(0,1)+w.slice(1).toLowerCase():w)),p},Ls=wu(import.meta.url),bo=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zs=i=>{if(typeof bo<"u"&&bo.versions&&bo.versions.node){const[o,e]=bo.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return bo.getBuiltinModule(i)}return Ls(i)};Zs("node:util");function Ss(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ke,ga;function Js(){if(ga)return ke;ga=1,ke=o;function i(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function o(n){if(n=n||{},n.circles)return e(n);const a=new Map;if(a.set(Date,s=>new Date(s)),a.set(Map,(s,l)=>new Map(g(Array.from(s),l))),a.set(Set,(s,l)=>new Set(g(Array.from(s),l))),n.constructorHandlers)for(const s of n.constructorHandlers)a.set(s[0],s[1]);let u=null;return n.proto?h:d;function g(s,l){const v=Object.keys(s),r=new Array(v.length);for(let c=0;c<v.length;c++){const y=v[c],b=s[y];typeof b!="object"||b===null?r[y]=b:b.constructor!==Object&&(u=a.get(b.constructor))?r[y]=u(b,l):ArrayBuffer.isView(b)?r[y]=i(b):r[y]=l(b)}return r}function d(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return g(s,d);if(s.constructor!==Object&&(u=a.get(s.constructor)))return u(s,d);const l={};for(const v in s){if(Object.hasOwnProperty.call(s,v)===!1)continue;const r=s[v];typeof r!="object"||r===null?l[v]=r:r.constructor!==Object&&(u=a.get(r.constructor))?l[v]=u(r,d):ArrayBuffer.isView(r)?l[v]=i(r):l[v]=d(r)}return l}function h(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return g(s,h);if(s.constructor!==Object&&(u=a.get(s.constructor)))return u(s,h);const l={};for(const v in s){const r=s[v];typeof r!="object"||r===null?l[v]=r:r.constructor!==Object&&(u=a.get(r.constructor))?l[v]=u(r,h):ArrayBuffer.isView(r)?l[v]=i(r):l[v]=h(r)}return l}}function e(n){const a=[],u=[],g=new Map;if(g.set(Date,v=>new Date(v)),g.set(Map,(v,r)=>new Map(h(Array.from(v),r))),g.set(Set,(v,r)=>new Set(h(Array.from(v),r))),n.constructorHandlers)for(const v of n.constructorHandlers)g.set(v[0],v[1]);let d=null;return n.proto?l:s;function h(v,r){const c=Object.keys(v),y=new Array(c.length);for(let b=0;b<c.length;b++){const p=c[b],w=v[p];if(typeof w!="object"||w===null)y[p]=w;else if(w.constructor!==Object&&(d=g.get(w.constructor)))y[p]=d(w,r);else if(ArrayBuffer.isView(w))y[p]=i(w);else{const j=a.indexOf(w);j!==-1?y[p]=u[j]:y[p]=r(w)}}return y}function s(v){if(typeof v!="object"||v===null)return v;if(Array.isArray(v))return h(v,s);if(v.constructor!==Object&&(d=g.get(v.constructor)))return d(v,s);const r={};a.push(v),u.push(r);for(const c in v){if(Object.hasOwnProperty.call(v,c)===!1)continue;const y=v[c];if(typeof y!="object"||y===null)r[c]=y;else if(y.constructor!==Object&&(d=g.get(y.constructor)))r[c]=d(y,s);else if(ArrayBuffer.isView(y))r[c]=i(y);else{const b=a.indexOf(y);b!==-1?r[c]=u[b]:r[c]=s(y)}}return a.pop(),u.pop(),r}function l(v){if(typeof v!="object"||v===null)return v;if(Array.isArray(v))return h(v,l);if(v.constructor!==Object&&(d=g.get(v.constructor)))return d(v,l);const r={};a.push(v),u.push(r);for(const c in v){const y=v[c];if(typeof y!="object"||y===null)r[c]=y;else if(y.constructor!==Object&&(d=g.get(y.constructor)))r[c]=d(y,l);else if(ArrayBuffer.isView(y))r[c]=i(y);else{const b=a.indexOf(y);b!==-1?r[c]=u[b]:r[c]=l(y)}}return a.pop(),u.pop(),r}}return ke}var Cs=Js();const Du=Ss(Cs);Du();var Tu=typeof global=="object"&&global&&global.Object===Object&&global,Xs=typeof self=="object"&&self&&self.Object===Object&&self,O=Tu||Xs||Function("return this")(),E=O.Symbol,Bu=Object.prototype,Hs=Bu.hasOwnProperty,Ds=Bu.toString,po=E?E.toStringTag:void 0;function Ts(i){var o=Hs.call(i,po),e=i[po];try{i[po]=void 0;var n=!0}catch{}var a=Ds.call(i);return n&&(o?i[po]=e:delete i[po]),a}var Bs=Object.prototype,Ms=Bs.toString;function Qs(i){return Ms.call(i)}var Gs="[object Null]",xs="[object Undefined]",da=E?E.toStringTag:void 0;function q(i){return i==null?i===void 0?xs:Gs:da&&da in Object(i)?Ts(i):Qs(i)}function P(i){return i!=null&&typeof i=="object"}var Ns="[object Symbol]";function ai(i){return typeof i=="symbol"||P(i)&&q(i)==Ns}var Ws=NaN;function ta(i){return typeof i=="number"?i:ai(i)?Ws:+i}function N(i,o){for(var e=-1,n=i==null?0:i.length,a=Array(n);++e<n;)a[e]=o(i[e],e,i);return a}var L=Array.isArray,sa=E?E.prototype:void 0,ha=sa?sa.toString:void 0;function ui(i){if(typeof i=="string")return i;if(L(i))return N(i,ui)+"";if(ai(i))return ha?ha.call(i):"";var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}function zo(i,o){return function(e,n){var a;if(e===void 0&&n===void 0)return o;if(e!==void 0&&(a=e),n!==void 0){if(a===void 0)return n;typeof e=="string"||typeof n=="string"?(e=ui(e),n=ui(n)):(e=ta(e),n=ta(n)),a=i(e,n)}return a}}var Ps=zo(function(i,o){return i+o},0),Fs=/\s/;function Mu(i){for(var o=i.length;o--&&Fs.test(i.charAt(o)););return o}var Ks=/^\s+/;function Qu(i){return i&&i.slice(0,Mu(i)+1).replace(Ks,"")}function W(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}var ra=NaN,Rs=/^[-+]0x[0-9a-f]+$/i,As=/^0b[01]+$/i,Os=/^0o[0-7]+$/i,_s=parseInt;function si(i){if(typeof i=="number")return i;if(ai(i))return ra;if(W(i)){var o=typeof i.valueOf=="function"?i.valueOf():i;i=W(o)?o+"":o}if(typeof i!="string")return i===0?i:+i;i=Qu(i);var e=As.test(i);return e||Os.test(i)?_s(i.slice(2),e?2:8):Rs.test(i)?ra:+i}var la=1/0,zs=17976931348623157e292;function Si(i){if(!i)return i===0?i:0;if(i=si(i),i===la||i===-la){var o=i<0?-1:1;return o*zs}return i===i?i:0}function S(i){var o=Si(i),e=o%1;return o===o?e?o-e:o:0}var Es="Expected a function";function $s(i,o){if(typeof o!="function")throw new TypeError(Es);return i=S(i),function(){if(--i<1)return o.apply(this,arguments)}}function oi(i){return i}var qs="[object AsyncFunction]",Is="[object Function]",Us="[object GeneratorFunction]",Vs="[object Proxy]";function Ji(i){if(!W(i))return!1;var o=q(i);return o==Is||o==Us||o==qs||o==Vs}var Wo=O["__core-js_shared__"],va=(function(){var i=/[^.]+$/.exec(Wo&&Wo.keys&&Wo.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function ih(i){return!!va&&va in i}var oh=Function.prototype,eh=oh.toString;function _i(i){if(i!=null){try{return eh.call(i)}catch{}try{return i+""}catch{}}return""}var nh=/[\\^$.*+?()[\]{}|]/g,ah=/^\[object .+?Constructor\]$/,uh=Function.prototype,gh=Object.prototype,dh=uh.toString,th=gh.hasOwnProperty,sh=RegExp("^"+dh.call(th).replace(nh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gu(i){if(!W(i)||ih(i))return!1;var o=Ji(i)?sh:ah;return o.test(_i(i))}function hh(i,o){return i?.[o]}function zi(i,o){var e=hh(i,o);return Gu(e)?e:void 0}var mo=zi(O,"WeakMap"),Ro=mo&&new mo,xu=Ro?function(i,o){return Ro.set(i,o),i}:oi,ya=Object.create,no=(function(){function i(){}return function(o){if(!W(o))return{};if(ya)return ya(o);i.prototype=o;var e=new i;return i.prototype=void 0,e}})();function fo(i){return function(){var o=arguments;switch(o.length){case 0:return new i;case 1:return new i(o[0]);case 2:return new i(o[0],o[1]);case 3:return new i(o[0],o[1],o[2]);case 4:return new i(o[0],o[1],o[2],o[3]);case 5:return new i(o[0],o[1],o[2],o[3],o[4]);case 6:return new i(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new i(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var e=no(i.prototype),n=i.apply(e,o);return W(n)?n:e}}var rh=1;function lh(i,o,e){var n=o&rh,a=fo(i);function u(){var g=this&&this!==O&&this instanceof u?a:i;return g.apply(n?e:this,arguments)}return u}function gi(i,o,e){switch(e.length){case 0:return i.call(o);case 1:return i.call(o,e[0]);case 2:return i.call(o,e[0],e[1]);case 3:return i.call(o,e[0],e[1],e[2])}return i.apply(o,e)}var vh=Math.max;function Nu(i,o,e,n){for(var a=-1,u=i.length,g=e.length,d=-1,h=o.length,s=vh(u-g,0),l=Array(h+s),v=!n;++d<h;)l[d]=o[d];for(;++a<g;)(v||a<u)&&(l[e[a]]=i[a]);for(;s--;)l[d++]=i[a++];return l}var yh=Math.max;function Wu(i,o,e,n){for(var a=-1,u=i.length,g=-1,d=e.length,h=-1,s=o.length,l=yh(u-d,0),v=Array(l+s),r=!n;++a<l;)v[a]=i[a];for(var c=a;++h<s;)v[c+h]=o[h];for(;++g<d;)(r||a<u)&&(v[c+e[g]]=i[a++]);return v}function ch(i,o){for(var e=i.length,n=0;e--;)i[e]===o&&++n;return n}function Eo(){}var bh=4294967295;function C(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bh,this.__views__=[]}C.prototype=no(Eo.prototype);C.prototype.constructor=C;function qe(){}var Ie=Ro?function(i){return Ro.get(i)}:qe,Vi={},ph=Object.prototype,wh=ph.hasOwnProperty;function Po(i){for(var o=i.name+"",e=Vi[o],n=wh.call(Vi,o)?e.length:0;n--;){var a=e[n],u=a.func;if(u==null||u==i)return a.name}return o}function ri(i,o){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=void 0}ri.prototype=no(Eo.prototype);ri.prototype.constructor=ri;function V(i,o){var e=-1,n=i.length;for(o||(o=Array(n));++e<n;)o[e]=i[e];return o}function Pu(i){if(i instanceof C)return i.clone();var o=new ri(i.__wrapped__,i.__chain__);return o.__actions__=V(i.__actions__),o.__index__=i.__index__,o.__values__=i.__values__,o}var jh=Object.prototype,mh=jh.hasOwnProperty;function t(i){if(P(i)&&!L(i)&&!(i instanceof C)){if(i instanceof ri)return i;if(mh.call(i,"__wrapped__"))return Pu(i)}return new ri(i)}t.prototype=Eo.prototype;t.prototype.constructor=t;function Ge(i){var o=Po(i),e=t[o];if(typeof e!="function"||!(o in C.prototype))return!1;if(i===e)return!0;var n=Ie(e);return!!n&&i===n[0]}var fh=800,Yh=16,kh=Date.now;function Fu(i){var o=0,e=0;return function(){var n=kh(),a=Yh-(n-e);if(e=n,a>0){if(++o>=fh)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}var Ku=Fu(xu),Lh=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /;function Sh(i){var o=i.match(Lh);return o?o[1].split(Zh):[]}var Jh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ch(i,o){var e=o.length;if(!e)return i;var n=e-1;return o[n]=(e>1?"& ":"")+o[n],o=o.join(e>2?", ":" "),i.replace(Jh,`{
1
+ import{createRequire as et}from"node:module";import{m as ii,a as dt,f as fu}from"./index-2LCHaVNX.js";import{a as rt}from"./readJsonSync-DuMMeB3s-B9cGBVbJ.js";const nt=et(import.meta.url),vo=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zo=i=>{if(typeof vo<"u"&&vo.versions&&vo.versions.node){const[o,e]=vo.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return vo.getBuiltinModule(i)}return nt(i)},{createRequire:wu}=Zo("node:module"),{existsSync:at,rmSync:ju,writeFileSync:ut,readdirSync:mu,statSync:gt}=Zo("node:fs"),{spawn:$n}=Zo("node:child_process"),{createHash:tt}=Zo("node:crypto"),{homedir:st,platform:ht}=Zo("node:os"),lt=[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],vt=12288,yt=65510,ct=[12288,12288,65281,65376,65504,65510],bt=8361,pt=65518,wt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],jt=32,mt=10630,ft=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Yt=4352,kt=262141,Yu=[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],So=(i,o)=>{let e=0,n=Math.floor(i.length/2)-1;for(;e<=n;){const a=Math.floor((e+n)/2),u=a*2;if(o<i[u])n=a-1;else if(o>i[u+1])e=a+1;else return!0}return!1},qn=19968,[Lt,Zt]=St(Yu);function St(i){let o=i[0],e=i[1];for(let n=0;n<i.length;n+=2){const a=i[n],u=i[n+1];if(qn>=a&&qn<=u)return[a,u];u-a>e-o&&(o=a,e=u)}return[o,e]}const Jt=i=>i<161||i>1114109?!1:So(lt,i),Ct=i=>i<vt||i>yt?!1:So(ct,i),Xt=i=>i<bt||i>pt?!1:So(wt,i),Ht=i=>i<jt||i>mt?!1:So(ft,i),Dt=i=>i>=Lt&&i<=Zt?!0:i<Yt||i>kt?!1:So(Yu,i);function Tt(i){return Jt(i)?"ambiguous":Ct(i)?"fullwidth":Xt(i)?"halfwidth":Ht(i)?"narrow":Dt(i)?"wide":"neutral"}function Bt(i){if(!Number.isSafeInteger(i))throw new TypeError(`Expected a code point, got \`${typeof i}\`.`)}function ku(i){return Bt(i),Tt(i)}const Lu=String.raw,In=Lu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Mt=()=>new RegExp(Lu`\p{RI}{2}|(?![#*\d](?!\uFE0F?\u20E3))${In}(?:\u200D${In})*`,"gu"),yX=new Set(["\x1B","›"]),Qt="\x07",Gt="[",cX="m",xt="]8;;",bX=39,pX=/[\u200B\uFEFF\u2060-\u2064]/g,wX=new RegExp(`(?:\\${Gt}(?<code>\\d+)m|\\${xt}(?<uri>.*)${Qt})`),jX=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),Nt=/^[ \t]*(?:\r\n|\r|\n)/,Wt=/(?:\r\n|\r|\n)[ \t]*$/,Pt=/^(?:[\r\n]|$)/,Ft=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Kt=/^[ \t]*[\r\n][ \t\r\n]*$/,Rt=/\r\n|\n|\r/g,yo=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,mX=/\u001B\[[\d;]*m[^\u001B]*(?:\u001B\[[\d;]*m|$)/g,fX=/\u001B\]8;[^\u0007\u001B]*(?:\u0007|\u001B\\)[^\u001B]*\u001B\]8;;(?:\u0007|\u001B\\)/g,Qo=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,ci=Mt(),At=/[-_./\s]+/g,we=/(\u001B\[[0-9;]*[a-z])/i,Un=new RegExp("\\p{Script=Arabic}","u"),Ot=new RegExp("\\p{Script=Bengali}","u"),qi=new RegExp("\\p{Script=Cyrillic}","u"),_t=new RegExp("\\p{Script=Devanagari}","u"),zt=new RegExp("\\p{Script=Ethiopic}","u"),je=new RegExp("\\p{Script=Greek}","u"),Vn=new RegExp("\\p{Script=Greek}+|\\p{Script=Latin}+|[^\\p{Script=Greek}\\p{Script=Latin}]+","gu"),Et=new RegExp("\\p{Script=Gujarati}","u"),$t=new RegExp("\\p{Script=Gurmukhi}","u"),ia=new RegExp("\\p{Script=Hangul}","u"),oa=new RegExp("\\p{Script=Hebrew}","u"),qt=new RegExp("\\p{Script=Hiragana}","u"),ea=new RegExp("\\p{Script=Han}","u"),It=new RegExp("\\p{Script=Kannada}","u"),Ut=new RegExp("\\p{Script=Katakana}","u"),Vt=new RegExp("\\p{Script=Khmer}","u"),is=new RegExp("\\p{Script=Lao}","u"),U=new RegExp("\\p{Script=Latin}","u"),os=new RegExp("\\p{Script=Malayalam}","u"),es=new RegExp("\\p{Script=Myanmar}","u"),ns=new RegExp("\\p{Script=Oriya}","u"),as=new RegExp("\\p{Script=Sinhala}","u"),us=new RegExp("\\p{Script=Tamil}","u"),gs=new RegExp("\\p{Script=Telugu}","u"),ds=new RegExp("\\p{Script=Thai}","u"),ts=new RegExp("\\p{Script=Tibetan}","u"),na=/[\u02BB\u02BC\u0027]/u,ss=i=>i.replace(ci,""),aa=new Map,hs=i=>[i.ambiguousIsNarrow?1:0,i.control,i.fullWidth,i.regular,i.wide].join("|"),rs=i=>{const o=hs(i.width);let e=aa.get(o);return e||(e=new Map,aa.set(o,e)),e},Go=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Zu=i=>i>=32&&i<=126?"latin":i===8203||i===8204||i===8205||i===8288?"zero":i<=31||i>=127&&i<=159?"control":i>=160&&i<=255||i>=9472&&i<=9599?"latin":i>=4352&&i<=4607||i>=11904&&i<=40959||i>=44032&&i<=55215||i>=63744&&i<=64255||i>=65280&&i<=65519&&!(i>=65377&&i<=65439)||i>=12352&&i<=12543?"wide":i===8230?"latin":"other",ls=(i,o)=>{const e=rs(o),n=Math.floor(i/65536),a=i%65536;let u=e.get(n);if(u||(u=new Map,e.set(n,u)),u.has(a))return u.get(a);let g;switch(Zu(i)){case"control":{g=o.width.control;break}case"latin":{g=o.width.regular;break}case"wide":{g=o.width.wide;break}case"zero":{g=0;break}default:switch(ku(i)){case"ambiguous":{g=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{g=o.width.fullWidth;break}case"wide":{g=o.width.wide;break}default:g=o.width.regular}}return u.set(a,g),g},vs=i=>i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071||i>=917760&&i<=917999||i>=65024&&i<=65039||i>=3633&&i<=3642||i>=3655&&i<=3662||i>=3761&&i<=3769||i>=3771&&i<=3772||i>=3784&&i<=3789||i>=2304&&i<=2307||i>=2362&&i<=2383||i>=2385&&i<=2391||i>=2402&&i<=2403||i>=2433&&i<=2435||i>=2492&&i<=2500||i>=2509&&i<=2509||i>=2561&&i<=2563||i>=2620&&i<=2637||i>=1611&&i<=1631||i>=1648&&i<=1648||i>=1750&&i<=1773||i>=2276&&i<=2302||i>=1425&&i<=1469||i>=1471&&i<=1471||i>=1473&&i<=1474||i>=1476&&i<=1477||i>=1479&&i<=1479||i>=3893&&i<=3893||i>=3895&&i<=3895||i>=3897&&i<=3897||i>=3953&&i<=3966||i>=3968&&i<=3972||i>=3974&&i<=3975?!0:i>=768&&i<=777||i>=803&&i<=803,Qe=(i,o={})=>{if(!i||i.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const e={truncation:{countAnsiEscapeCodes:o.countAnsiEscapeCodes??!1,ellipsis:o.ellipsis??"",ellipsisWidth:o.ellipsisWidth??(o.ellipsis?Qe(o.ellipsis,{...o,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:o.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:o.ambiguousIsNarrow??!1,ansi:o.ansiWidth??0,control:o.controlWidth??0,emoji:o.emojiWidth??2,fullWidth:o.fullWidth??2,halfWidth:o.halfWidth??1,regular:o.regularWidth??1,tab:o.tabWidth??8,wide:o.wideWidth??2}},n=Math.max(0,e.truncation.limit-e.truncation.ellipsisWidth),{length:a}=i,u=a>1e4;let g=0,d=0,h=a,s=!1;const l=i.includes("\x1B")||i.includes("›");for(;g<a;){if(l&&(i[g]==="\x1B"||i[g]==="›")){if(i.startsWith("\x1B]8;;",g)){const p="\x1B]8;;\x07",w=p.length,j=i.indexOf("\x07",g+5);if(j!==-1){const Z=i.indexOf(p,j+1);if(Z!==-1){const X=Z+w,A=i.slice(j+1,Z).replace(yo,""),M=Qe(A,{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-d),regularWidth:e.width.regular,tabWidth:e.width.tab,wideWidth:e.width.wide}),B=M.width;if(M.truncated)s=!0,h=Math.min(h,g);else if(d+B>n&&(h=Math.min(h,g),s=!0,d+B>e.truncation.limit))break;if(d+=B,g=X,s&&d>=e.truncation.limit)break;continue}}}if(yo.lastIndex=g,yo.test(i)){const p=yo.lastIndex-g,w=e.truncation.countAnsiEscapeCodes?p:e.width.ansi;if(d+w>n&&(h=Math.min(h,g),d+w>e.truncation.limit)){s=!0;break}d+=w,g=yo.lastIndex;continue}}const c=i.codePointAt(g);if(c===8203||c===65279||c>=8288&&c<=8292){g+=1;continue}if(c===9){if(d+e.width.tab>n&&(h=Math.min(h,g),d+e.width.tab>e.truncation.limit)){s=!0;break}d+=e.width.tab,g+=1;continue}if(Go.lastIndex=g,Go.test(i)){const p=(Go.lastIndex-g)*e.width.regular;if(d+p>n){const w=Math.floor((n-d)/e.width.regular);if(h=Math.min(h,g+w),d+p>e.truncation.limit){s=!0;break}}d+=p,g=Go.lastIndex;continue}if((c<=31||c>=127&&c<=159)&&(Qo.lastIndex=g,Qo.test(i))){const p=(Qo.lastIndex-g)*e.width.control;if(d+p>n&&(h=Math.min(h,g+Math.floor((n-d)/e.width.control)),d+p>e.truncation.limit)){s=!0;break}d+=p,g=Qo.lastIndex;continue}if(ci.lastIndex=g,ci.test(i)){if(d+e.width.emoji>n&&(h=Math.min(h,g),d+e.width.emoji>e.truncation.limit)){s=!0;break}d+=e.width.emoji,g=ci.lastIndex;continue}const y=i.codePointAt(g)??0;if(vs(y)){g+=y>65535?2:1;continue}let b;if(u)b=ls(y,e);else switch(Zu(y)){case"control":{b=e.width.control;break}case"latin":{b=e.width.regular;break}case"wide":{b=e.width.wide;break}case"zero":{b=0;break}default:switch(ku(y)){case"ambiguous":{b=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{b=e.width.fullWidth;break}case"wide":{b=e.width.wide;break}default:b=e.width.regular}}if(d+b>n&&(h=Math.min(h,g),d+b>e.truncation.limit)){s=!0;break}d+=b,g+=y>65535?2:1}let v=d,r=!1;return s&&e.truncation.limit>=e.truncation.ellipsisWidth&&(v=e.truncation.limit,r=!0),{ellipsed:r,index:s?h:a,truncated:s,width:v}},YX=(i,o={})=>Qe(i,{...o,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width;let ys=class{capacity;cache;constructor(o){this.capacity=o,this.cache=new Map}get(o){if(!this.cache.has(o))return;const e=this.cache.get(o);return this.cache.delete(o),this.cache.set(o,e),e}has(o){return this.cache.has(o)}set(o,e){if(this.cache.has(o))this.cache.delete(o);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(o,e)}delete(o){this.cache.delete(o)}clear(){this.cache.clear()}size(){return this.cache.size}};const cs=wu(import.meta.url),co=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bs=i=>{if(typeof co<"u"&&co.versions&&co.versions.node){const[o,e]=co.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return co.getBuiltinModule(i)}return cs(i)},{stripVTControlCharacters:ps}=bs("node:util"),me=new ys(1e3),ws=/[.*+?^${}()|[\]\\]/g,js=i=>{const o=i.join("");if(me.has(o)){const a=me.get(o);return a.lastIndex=0,a}const e=i.map(a=>a.replaceAll(ws,String.raw`\$&`)).join("|"),n=new RegExp(e,"g");return me.set(o,n),n},ms=i=>{const o=[];let e=0,n;for(ci.lastIndex=0;(n=ci.exec(i))!==null;)n.index>e&&o.push(i.slice(e,n.index)),o.push(n[0]),e=ci.lastIndex;return e<i.length&&o.push(i.slice(e)),o.filter(Boolean)},fs=/[ČŠŽĐ]/i,Su=new Uint8Array(128),Ju=new Uint8Array(128),Cu=new Uint8Array(128);for(let i=0;i<128;i++)Su[i]=i>=65&&i<=90?1:0,Ju[i]=i>=97&&i<=122?1:0,Cu[i]=i>=48&&i<=57?1:0;const fe=i=>Su[i],ua=i=>Ju[i],Ye=i=>Cu[i],Bi=(i,o,e,n,a)=>{if(i.length===0)return[];let u=!1;const g=Object.values(o);for(const c of g)if(c(i[0])){u=!0;break}if(!u&&!e)return[i];const d=[...i],h=[];let s=d[0],l="other";const v=Object.entries(o);for(const c of v){const[y,b]=c;if(b(d[0])){l=y;break}}let r=e&&n?d[0]===d[0].toLocaleUpperCase(n):!1;for(let c=1;c<d.length;c++){const y=d[c];let b="other";for(const j of v){const[Z,X]=j;if(X(y)){b=Z;break}}const p=e&&n?y===y.toLocaleUpperCase(n):!1;let w=!1;a?w=a(l,b,r,p,y,c,d):(l!==b&&l!=="other"&&b!=="other"&&(w=!0),e&&b!=="other"&&!r&&p&&(w=!0)),w?(h.push(s),s=y):s+=y,l=b,e&&(r=p)}return s&&s.length>0&&h.push(s),h.length>0?h:[i]},Ys=(i,o,e,n)=>{if(e.size===0)return o;for(const a of e)if(i.startsWith(a,o))return n.push(a),o+a.length;return o},Xu=(i,o=new Set)=>{if(i.length===0)return[];if(i.toUpperCase()===i)return[i];let e=0;const n=[],a=i.length;for(let u=1;u<a;u++){const g=Ys(i,e,o,n);if(g!==e){e=g,u=e-1;continue}const d=i.codePointAt(u-1),h=i.codePointAt(u),s=d&&d<128&&fe(d),l=h&&h<128&&fe(h),v=d&&d<128&&ua(d),r=d&&d<128&&Ye(d),c=h&&h<128&&Ye(h);if(v&&l){n.push(i.slice(e,u)),e=u;continue}if(r&&!c||!r&&c){n.push(i.slice(e,u)),e=u;continue}if(c&&!r){let y=!1,b=!1;if(u+1<a){const p=i.codePointAt(u+1);y=p&&p<128&&fe(p),b=p&&p<128&&Ye(p)}if(!b&&y){n.push(i.slice(e,u),i.slice(u,u+1)),e=u+1;continue}}if(u+1<a){const y=i.codePointAt(u+1),b=y&&y<128&&ua(y);if(s&&l&&b){const p=i.slice(e,u+1);o.has(p)||(n.push(i.slice(e,u)),e=u)}}}return e<a&&n.push(i.slice(e)),n.filter(u=>u!=="")},Hu=(i,o,e)=>{if(i.length===0)return[];const n=i===i.toLocaleUpperCase(o);if(o.startsWith("de")){if(!n&&i.replaceAll("ß","SS")===i.toLocaleUpperCase(o))return[i];const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o),y=c,b=c?0:-1;for(let p=1;p<l;p++){const w=s[p],j=w===w.toLocaleUpperCase(o);if(j===c)r+=w;else if(j)r&&r.length>0&&(v.push(r),r=w),y=!0,b=p;else{if(y&&p-b>1){const Z=s[p-1],X=r.slice(0,-1);X&&X.length>0&&v.push(X),r=Z+w}else r+=w;y=!1,b=-1}c=j}return r&&r.length>0&&v.push(r),v}if(o.startsWith("uk")||o.startsWith("ru")||o.startsWith("bg")||o.startsWith("sr")||o.startsWith("mk")||o.startsWith("be")){if(!qi.test(i)&&!U.test(i))return[i];const s=[...i],l=s.length,v=[];let r=s[0];const c=s[0];let y;qi.test(c)?y=1:U.test(c)?y=2:y=0;let b=c===c.toLocaleUpperCase(o);for(let w=1;w<l;w++){const j=s[w];let Z;qi.test(j)?Z=1:U.test(j)?Z=2:Z=0;const X=j===j.toLocaleUpperCase(o);y!==Z&&(y===1||y===2)&&(Z===1||Z===2)||Z===y&&!b&&X?(v.push(r),r=j):r+=j,y=Z,b=X}r&&r.length>0&&v.push(r);const p=[];for(let w=0;w<v.length;w++)w<v.length-1&&v[w].length===1&&U.test(v[w])&&qi.test(v[w+1][0])?(p.push(v[w]+v[w+1]),w+=1):p.push(v[w]);return p}if(o.startsWith("el")){if(!je.test(i)&&!U.test(i))return[i];const s=[];Vn.lastIndex=0;let l;for(;(l=Vn.exec(i))!==null;)s.push(l[0]);s.length===0&&s.push(i);const v=[];if(s.length===1){const r=s[0];if(!r||!je.test(r[0])||r.length===1)return[r??i]}for(const r of s){if(!r)continue;if(!je.test(r[0])||r.length===1){v.push(r);continue}const c=r.length;let y=r[0],b=r[0]===r[0].toLocaleUpperCase(o);for(let p=1;p<c;p++){const w=r[p],j=w===w.toLocaleUpperCase(o);!b&&j?(v.push(y),y=w):y+=w,b=j}y&&v.push(y)}return v}if(o.startsWith("ja")||o.startsWith("ko")){const s=o.startsWith("ja"),l=s?{hiragana:r=>qt.test(r),kanji:r=>ea.test(r),katakana:r=>Ut.test(r),latin:r=>U.test(r)}:{hangul:r=>ia.test(r),latin:r=>U.test(r)},v=new Set(["が","で","と","に","の","は","へ","も","や","を"]);if(s){const r=Bi(i,l,!1,o,(y,b)=>y==="hiragana"&&b==="katakana"||y==="katakana"&&b==="hiragana"||y==="hiragana"&&b==="latin"||y==="katakana"&&b==="latin"||y==="kanji"&&b==="latin"||y==="latin"&&(b==="hiragana"||b==="katakana"||b==="kanji")),c=[];for(const y of r){const b=y;b.length===1&&v.has(b)&&c.length>0?c[c.length-1]=c.at(-1)+b:c.push(b)}return c.length>0?c:[i]}return Bi(i,l,!1,o,(r,c)=>r==="hangul"&&c==="latin"||r==="latin"&&c==="hangul")}if(o.startsWith("sl")){const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o);for(let y=1;y<l;y++){const b=s[y],p=b===b.toLocaleUpperCase(o),w=fs.test(b),j=y<l-1&&s[y+1]===s[y+1].toLocaleUpperCase(o);!c&&p||w&&j?(v.push(r),r=b,w&&j&&(v.push(r),r="")):r+=b,c=p}return r&&r.length>0&&v.push(r),v}if(o.startsWith("zh"))return Bi(i,{han:s=>ea.test(s),latin:s=>U.test(s)},!1,o);if(["ar","fa","he","ur"].includes(o.split("-")[0])){const s=l=>oa.test(l)||Un.test(l);return Bi(i,{latin:l=>U.test(l),rtl:l=>s(l)},!1,o)}if(["am","bn","gu","hi","km","kn","lo","ml","mr","ne","or","pa","si","ta","te","th"].includes(o.split("-")[0])){const s=l=>_t.test(l)||Ot.test(l)||Et.test(l)||$t.test(l)||It.test(l)||us.test(l)||gs.test(l)||os.test(l)||as.test(l)||ds.test(l)||is.test(l)||ts.test(l)||es.test(l)||zt.test(l)||Vt.test(l)||ns.test(l);return Bi(i,{indic:l=>s(l),latin:l=>U.test(l)},!1,o)}if(["be","bg","ru","sr","uk"].includes(o))return Bi(i,{cyrillic:s=>qi.test(s),latin:s=>U.test(s)},!0,o);if(["ar","fa","he"].includes(o))return Bi(i,{latin:s=>U.test(s),rtl:s=>oa.test(s)||Un.test(s)},!1,o);if(o.startsWith("ko"))return Bi(i,{hangul:s=>ia.test(s),latin:s=>U.test(s)},!1,o);if(o.startsWith("uz")){if(!qi.test(i)&&!U.test(i))return[i];const s=[...i],l=s.length,v=[];let r=s[0],c=s[0]===s[0].toLocaleUpperCase(o);for(let y=1;y<l;y++){const b=s[y],p=b===b.toLocaleUpperCase(o);if(na.test(b)||na.test(s[y-1])){r+=b;continue}!c&&p?(v.push(r),r=b):r+=b,c=p}return r&&r.length>0&&v.push(r),v}const a=[...i],u=a.length,g=[];let d=a[0],h=a[0]===a[0].toLocaleUpperCase(o);for(const s of e)if(i.startsWith(s)){g.push(s),d=a[s.length],h=d===d.toLocaleUpperCase(o);break}for(let s=1;s<u;s++){const l=a[s],v=l===l.toLocaleUpperCase(o);let r=0;for(const c of e)if(i.startsWith(c,s)){g.push(d,c),r=c.length,d="";const y=c.at(-1);y&&(h=y===y.toLocaleUpperCase(o));break}if(r>0){s+=r-1;continue}!h&&v?(g.push(d),d=l):d+=l,h=v}return d&&g.push(d),g},ks=(i,o,e)=>{const n=[],a=we.test(i)?i.split(we).filter(Boolean):[i];for(const u of a){const g=u;if(we.test(g))n.push(g);else{ci.lastIndex=0;const d=ci.test(g)?ms(g).filter(Boolean):[g];for(const h of d)if(ci.lastIndex=0,ci.test(h))n.push(h);else if(o){const s=o.toLowerCase().split("-")[0];n.push(...Hu(h,s,e))}else n.push(...Xu(h,e))}}return n},LX=(i,o={})=>{if(!i||typeof i!="string")return[];const{handleAnsi:e=!1,handleEmoji:n=!1,knownAcronyms:a=[],locale:u,normalize:g=!1,separators:d,stripAnsi:h=!1,stripEmoji:s=!1}=o,l=new Set([...a].toSorted((w,j)=>j.length-w.length));let v=i;h&&(v=ps(v)),s&&(v=ss(v));let r;Array.isArray(d)?r=js(d):d instanceof RegExp?r=d:r=At;const c=[];let y=v;const b=r.flags.includes("g")?r:new RegExp(r.source,`${r.flags}g`);for(;y.length>0;){const w=b.exec(y);if(!w){y===".."?c.push(".."):y==="."?c.push("."):y.length>0&&c.push(y);break}const j=w.index,Z=w[0],X=Z.length,A=y.slice(0,j),M=y.slice(j+X);if(Z.startsWith("../"))c.push(".."),y=y.slice(j+3);else if(Z.startsWith("./"))c.push("."),y=y.slice(j+2);else if(j===0&&Z==="..")c.push(".."),y=y.slice(2);else if(j===0&&Z===".")c.push("."),y=y.slice(1);else{A.length>0&&c.push(A);let B=0;for(;(B=Z.indexOf("../",B))!==-1;)c.push(".."),B+=3;for(B=0;(B=Z.indexOf("./",B))!==-1;)(B===0||Z[B-1]!==".")&&c.push("."),B+=2;let K=M;for(;K.startsWith("../");)c.push(".."),K=K.slice(3);for(;K.startsWith("./");)c.push("."),K=K.slice(2);if(K===".."){c.push("..");break}else if(K==="."){c.push(".");break}else y=K}b.lastIndex=0}if(c.length===0){const w=v.split(r).filter(Boolean);c.push(...w)}let p=[];for(const w of c)e||n?p.push(...ks(w,u,l)):u?p.push(...Hu(w,u,l)):p.push(...Xu(w,l));return g&&(p=p.map(w=>l.has(w)?w:u&&w===w.toLocaleUpperCase(u)?w[0]+w.slice(1).toLocaleLowerCase(u):w.toUpperCase()===w&&!l.has(w)?w.slice(0,1)+w.slice(1).toLowerCase():w)),p},Ls=wu(import.meta.url),bo=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zs=i=>{if(typeof bo<"u"&&bo.versions&&bo.versions.node){const[o,e]=bo.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return bo.getBuiltinModule(i)}return Ls(i)};Zs("node:util");function Ss(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ke,ga;function Js(){if(ga)return ke;ga=1,ke=o;function i(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function o(n){if(n=n||{},n.circles)return e(n);const a=new Map;if(a.set(Date,s=>new Date(s)),a.set(Map,(s,l)=>new Map(g(Array.from(s),l))),a.set(Set,(s,l)=>new Set(g(Array.from(s),l))),n.constructorHandlers)for(const s of n.constructorHandlers)a.set(s[0],s[1]);let u=null;return n.proto?h:d;function g(s,l){const v=Object.keys(s),r=new Array(v.length);for(let c=0;c<v.length;c++){const y=v[c],b=s[y];typeof b!="object"||b===null?r[y]=b:b.constructor!==Object&&(u=a.get(b.constructor))?r[y]=u(b,l):ArrayBuffer.isView(b)?r[y]=i(b):r[y]=l(b)}return r}function d(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return g(s,d);if(s.constructor!==Object&&(u=a.get(s.constructor)))return u(s,d);const l={};for(const v in s){if(Object.hasOwnProperty.call(s,v)===!1)continue;const r=s[v];typeof r!="object"||r===null?l[v]=r:r.constructor!==Object&&(u=a.get(r.constructor))?l[v]=u(r,d):ArrayBuffer.isView(r)?l[v]=i(r):l[v]=d(r)}return l}function h(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return g(s,h);if(s.constructor!==Object&&(u=a.get(s.constructor)))return u(s,h);const l={};for(const v in s){const r=s[v];typeof r!="object"||r===null?l[v]=r:r.constructor!==Object&&(u=a.get(r.constructor))?l[v]=u(r,h):ArrayBuffer.isView(r)?l[v]=i(r):l[v]=h(r)}return l}}function e(n){const a=[],u=[],g=new Map;if(g.set(Date,v=>new Date(v)),g.set(Map,(v,r)=>new Map(h(Array.from(v),r))),g.set(Set,(v,r)=>new Set(h(Array.from(v),r))),n.constructorHandlers)for(const v of n.constructorHandlers)g.set(v[0],v[1]);let d=null;return n.proto?l:s;function h(v,r){const c=Object.keys(v),y=new Array(c.length);for(let b=0;b<c.length;b++){const p=c[b],w=v[p];if(typeof w!="object"||w===null)y[p]=w;else if(w.constructor!==Object&&(d=g.get(w.constructor)))y[p]=d(w,r);else if(ArrayBuffer.isView(w))y[p]=i(w);else{const j=a.indexOf(w);j!==-1?y[p]=u[j]:y[p]=r(w)}}return y}function s(v){if(typeof v!="object"||v===null)return v;if(Array.isArray(v))return h(v,s);if(v.constructor!==Object&&(d=g.get(v.constructor)))return d(v,s);const r={};a.push(v),u.push(r);for(const c in v){if(Object.hasOwnProperty.call(v,c)===!1)continue;const y=v[c];if(typeof y!="object"||y===null)r[c]=y;else if(y.constructor!==Object&&(d=g.get(y.constructor)))r[c]=d(y,s);else if(ArrayBuffer.isView(y))r[c]=i(y);else{const b=a.indexOf(y);b!==-1?r[c]=u[b]:r[c]=s(y)}}return a.pop(),u.pop(),r}function l(v){if(typeof v!="object"||v===null)return v;if(Array.isArray(v))return h(v,l);if(v.constructor!==Object&&(d=g.get(v.constructor)))return d(v,l);const r={};a.push(v),u.push(r);for(const c in v){const y=v[c];if(typeof y!="object"||y===null)r[c]=y;else if(y.constructor!==Object&&(d=g.get(y.constructor)))r[c]=d(y,l);else if(ArrayBuffer.isView(y))r[c]=i(y);else{const b=a.indexOf(y);b!==-1?r[c]=u[b]:r[c]=l(y)}}return a.pop(),u.pop(),r}}return ke}var Cs=Js();const Du=Ss(Cs);Du();var Tu=typeof global=="object"&&global&&global.Object===Object&&global,Xs=typeof self=="object"&&self&&self.Object===Object&&self,O=Tu||Xs||Function("return this")(),E=O.Symbol,Bu=Object.prototype,Hs=Bu.hasOwnProperty,Ds=Bu.toString,po=E?E.toStringTag:void 0;function Ts(i){var o=Hs.call(i,po),e=i[po];try{i[po]=void 0;var n=!0}catch{}var a=Ds.call(i);return n&&(o?i[po]=e:delete i[po]),a}var Bs=Object.prototype,Ms=Bs.toString;function Qs(i){return Ms.call(i)}var Gs="[object Null]",xs="[object Undefined]",da=E?E.toStringTag:void 0;function q(i){return i==null?i===void 0?xs:Gs:da&&da in Object(i)?Ts(i):Qs(i)}function P(i){return i!=null&&typeof i=="object"}var Ns="[object Symbol]";function ai(i){return typeof i=="symbol"||P(i)&&q(i)==Ns}var Ws=NaN;function ta(i){return typeof i=="number"?i:ai(i)?Ws:+i}function N(i,o){for(var e=-1,n=i==null?0:i.length,a=Array(n);++e<n;)a[e]=o(i[e],e,i);return a}var L=Array.isArray,sa=E?E.prototype:void 0,ha=sa?sa.toString:void 0;function ui(i){if(typeof i=="string")return i;if(L(i))return N(i,ui)+"";if(ai(i))return ha?ha.call(i):"";var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}function zo(i,o){return function(e,n){var a;if(e===void 0&&n===void 0)return o;if(e!==void 0&&(a=e),n!==void 0){if(a===void 0)return n;typeof e=="string"||typeof n=="string"?(e=ui(e),n=ui(n)):(e=ta(e),n=ta(n)),a=i(e,n)}return a}}var Ps=zo(function(i,o){return i+o},0),Fs=/\s/;function Mu(i){for(var o=i.length;o--&&Fs.test(i.charAt(o)););return o}var Ks=/^\s+/;function Qu(i){return i&&i.slice(0,Mu(i)+1).replace(Ks,"")}function W(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}var ra=NaN,Rs=/^[-+]0x[0-9a-f]+$/i,As=/^0b[01]+$/i,Os=/^0o[0-7]+$/i,_s=parseInt;function si(i){if(typeof i=="number")return i;if(ai(i))return ra;if(W(i)){var o=typeof i.valueOf=="function"?i.valueOf():i;i=W(o)?o+"":o}if(typeof i!="string")return i===0?i:+i;i=Qu(i);var e=As.test(i);return e||Os.test(i)?_s(i.slice(2),e?2:8):Rs.test(i)?ra:+i}var la=1/0,zs=17976931348623157e292;function Si(i){if(!i)return i===0?i:0;if(i=si(i),i===la||i===-la){var o=i<0?-1:1;return o*zs}return i===i?i:0}function S(i){var o=Si(i),e=o%1;return o===o?e?o-e:o:0}var Es="Expected a function";function $s(i,o){if(typeof o!="function")throw new TypeError(Es);return i=S(i),function(){if(--i<1)return o.apply(this,arguments)}}function oi(i){return i}var qs="[object AsyncFunction]",Is="[object Function]",Us="[object GeneratorFunction]",Vs="[object Proxy]";function Ji(i){if(!W(i))return!1;var o=q(i);return o==Is||o==Us||o==qs||o==Vs}var Wo=O["__core-js_shared__"],va=(function(){var i=/[^.]+$/.exec(Wo&&Wo.keys&&Wo.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function ih(i){return!!va&&va in i}var oh=Function.prototype,eh=oh.toString;function _i(i){if(i!=null){try{return eh.call(i)}catch{}try{return i+""}catch{}}return""}var nh=/[\\^$.*+?()[\]{}|]/g,ah=/^\[object .+?Constructor\]$/,uh=Function.prototype,gh=Object.prototype,dh=uh.toString,th=gh.hasOwnProperty,sh=RegExp("^"+dh.call(th).replace(nh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gu(i){if(!W(i)||ih(i))return!1;var o=Ji(i)?sh:ah;return o.test(_i(i))}function hh(i,o){return i?.[o]}function zi(i,o){var e=hh(i,o);return Gu(e)?e:void 0}var mo=zi(O,"WeakMap"),Ro=mo&&new mo,xu=Ro?function(i,o){return Ro.set(i,o),i}:oi,ya=Object.create,no=(function(){function i(){}return function(o){if(!W(o))return{};if(ya)return ya(o);i.prototype=o;var e=new i;return i.prototype=void 0,e}})();function fo(i){return function(){var o=arguments;switch(o.length){case 0:return new i;case 1:return new i(o[0]);case 2:return new i(o[0],o[1]);case 3:return new i(o[0],o[1],o[2]);case 4:return new i(o[0],o[1],o[2],o[3]);case 5:return new i(o[0],o[1],o[2],o[3],o[4]);case 6:return new i(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new i(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var e=no(i.prototype),n=i.apply(e,o);return W(n)?n:e}}var rh=1;function lh(i,o,e){var n=o&rh,a=fo(i);function u(){var g=this&&this!==O&&this instanceof u?a:i;return g.apply(n?e:this,arguments)}return u}function gi(i,o,e){switch(e.length){case 0:return i.call(o);case 1:return i.call(o,e[0]);case 2:return i.call(o,e[0],e[1]);case 3:return i.call(o,e[0],e[1],e[2])}return i.apply(o,e)}var vh=Math.max;function Nu(i,o,e,n){for(var a=-1,u=i.length,g=e.length,d=-1,h=o.length,s=vh(u-g,0),l=Array(h+s),v=!n;++d<h;)l[d]=o[d];for(;++a<g;)(v||a<u)&&(l[e[a]]=i[a]);for(;s--;)l[d++]=i[a++];return l}var yh=Math.max;function Wu(i,o,e,n){for(var a=-1,u=i.length,g=-1,d=e.length,h=-1,s=o.length,l=yh(u-d,0),v=Array(l+s),r=!n;++a<l;)v[a]=i[a];for(var c=a;++h<s;)v[c+h]=o[h];for(;++g<d;)(r||a<u)&&(v[c+e[g]]=i[a++]);return v}function ch(i,o){for(var e=i.length,n=0;e--;)i[e]===o&&++n;return n}function Eo(){}var bh=4294967295;function C(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bh,this.__views__=[]}C.prototype=no(Eo.prototype);C.prototype.constructor=C;function qe(){}var Ie=Ro?function(i){return Ro.get(i)}:qe,Vi={},ph=Object.prototype,wh=ph.hasOwnProperty;function Po(i){for(var o=i.name+"",e=Vi[o],n=wh.call(Vi,o)?e.length:0;n--;){var a=e[n],u=a.func;if(u==null||u==i)return a.name}return o}function ri(i,o){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=void 0}ri.prototype=no(Eo.prototype);ri.prototype.constructor=ri;function V(i,o){var e=-1,n=i.length;for(o||(o=Array(n));++e<n;)o[e]=i[e];return o}function Pu(i){if(i instanceof C)return i.clone();var o=new ri(i.__wrapped__,i.__chain__);return o.__actions__=V(i.__actions__),o.__index__=i.__index__,o.__values__=i.__values__,o}var jh=Object.prototype,mh=jh.hasOwnProperty;function t(i){if(P(i)&&!L(i)&&!(i instanceof C)){if(i instanceof ri)return i;if(mh.call(i,"__wrapped__"))return Pu(i)}return new ri(i)}t.prototype=Eo.prototype;t.prototype.constructor=t;function Ge(i){var o=Po(i),e=t[o];if(typeof e!="function"||!(o in C.prototype))return!1;if(i===e)return!0;var n=Ie(e);return!!n&&i===n[0]}var fh=800,Yh=16,kh=Date.now;function Fu(i){var o=0,e=0;return function(){var n=kh(),a=Yh-(n-e);if(e=n,a>0){if(++o>=fh)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}var Ku=Fu(xu),Lh=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /;function Sh(i){var o=i.match(Lh);return o?o[1].split(Zh):[]}var Jh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ch(i,o){var e=o.length;if(!e)return i;var n=e-1;return o[n]=(e>1?"& ":"")+o[n],o=o.join(e>2?", ":" "),i.replace(Jh,`{
2
2
  /* [wrapped with `+o+`] */
3
3
  `)}function Ue(i){return function(){return i}}var Ao=(function(){try{var i=zi(Object,"defineProperty");return i({},"",{}),i}catch{}})(),Xh=Ao?function(i,o){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:Ue(o),writable:!0})}:oi,Ve=Fu(Xh);function ti(i,o){for(var e=-1,n=i==null?0:i.length;++e<n&&o(i[e],e,i)!==!1;);return i}function $o(i,o,e,n){for(var a=i.length,u=e+(n?1:-1);n?u--:++u<a;)if(o(i[u],u,i))return u;return-1}function Ru(i){return i!==i}function Hh(i,o,e){for(var n=e-1,a=i.length;++n<a;)if(i[n]===o)return n;return-1}function ao(i,o,e){return o===o?Hh(i,o,e):$o(i,Ru,e)}function qo(i,o){var e=i==null?0:i.length;return!!e&&ao(i,o,0)>-1}var Dh=1,Th=2,Bh=8,Mh=16,Qh=32,Gh=64,xh=128,Nh=256,Wh=512,Ph=[["ary",xh],["bind",Dh],["bindKey",Th],["curry",Bh],["curryRight",Mh],["flip",Wh],["partial",Qh],["partialRight",Gh],["rearg",Nh]];function Fh(i,o){return ti(Ph,function(e){var n="_."+e[0];o&e[1]&&!qo(i,n)&&i.push(n)}),i.sort()}function Au(i,o,e){var n=o+"";return Ve(i,Ch(n,Fh(Sh(n),e)))}var Kh=4,Rh=8,ca=32,ba=64;function Ou(i,o,e,n,a,u,g,d,h,s){var l=o&Rh,v=l?g:void 0,r=l?void 0:g,c=l?u:void 0,y=l?void 0:u;o|=l?ca:ba,o&=~(l?ba:ca),o&Kh||(o&=-4);var b=[i,o,a,c,v,y,r,d,h,s],p=e.apply(void 0,b);return Ge(i)&&Ku(p,b),p.placeholder=n,Au(p,i,o)}function uo(i){var o=i;return o.placeholder}var Ah=9007199254740991,Oh=/^(?:0|[1-9]\d*)$/;function Ci(i,o){var e=typeof i;return o=o??Ah,!!o&&(e=="number"||e!="symbol"&&Oh.test(i))&&i>-1&&i%1==0&&i<o}var _h=Math.min;function zh(i,o){for(var e=i.length,n=_h(o.length,e),a=V(i);n--;){var u=o[n];i[n]=Ci(u,e)?a[u]:void 0}return i}var pa="__lodash_placeholder__";function Mi(i,o){for(var e=-1,n=i.length,a=0,u=[];++e<n;){var g=i[e];(g===o||g===pa)&&(i[e]=pa,u[a++]=e)}return u}var Eh=1,$h=2,qh=8,Ih=16,Uh=128,Vh=512;function Io(i,o,e,n,a,u,g,d,h,s){var l=o&Uh,v=o&Eh,r=o&$h,c=o&(qh|Ih),y=o&Vh,b=r?void 0:fo(i);function p(){for(var w=arguments.length,j=Array(w),Z=w;Z--;)j[Z]=arguments[Z];if(c)var X=uo(p),A=ch(j,X);if(n&&(j=Nu(j,n,a,c)),u&&(j=Wu(j,u,g,c)),w-=A,c&&w<s){var M=Mi(j,X);return Ou(i,o,Io,p.placeholder,e,j,M,d,h,s-w)}var B=v?e:this,K=r?B[i]:i;return w=j.length,d?j=zh(j,d):y&&w>1&&j.reverse(),l&&h<w&&(j.length=h),this&&this!==O&&this instanceof p&&(K=b||fo(K)),K.apply(B,j)}return p}function ir(i,o,e){var n=fo(i);function a(){for(var u=arguments.length,g=Array(u),d=u,h=uo(a);d--;)g[d]=arguments[d];var s=u<3&&g[0]!==h&&g[u-1]!==h?[]:Mi(g,h);if(u-=s.length,u<e)return Ou(i,o,Io,a.placeholder,void 0,g,s,void 0,void 0,e-u);var l=this&&this!==O&&this instanceof a?n:i;return gi(l,this,g)}return a}var or=1;function er(i,o,e,n){var a=o&or,u=fo(i);function g(){for(var d=-1,h=arguments.length,s=-1,l=n.length,v=Array(l+h),r=this&&this!==O&&this instanceof g?u:i;++s<l;)v[s]=n[s];for(;h--;)v[s++]=arguments[++d];return gi(r,a?e:this,v)}return g}var wa="__lodash_placeholder__",Le=1,nr=2,ar=4,ja=8,wo=128,ma=256,ur=Math.min;function gr(i,o){var e=i[1],n=o[1],a=e|n,u=a<(Le|nr|wo),g=n==wo&&e==ja||n==wo&&e==ma&&i[7].length<=o[8]||n==(wo|ma)&&o[7].length<=o[8]&&e==ja;if(!(u||g))return i;n&Le&&(i[2]=o[2],a|=e&Le?0:ar);var d=o[3];if(d){var h=i[3];i[3]=h?Nu(h,d,o[4]):d,i[4]=h?Mi(i[3],wa):o[4]}return d=o[5],d&&(h=i[5],i[5]=h?Wu(h,d,o[6]):d,i[6]=h?Mi(i[5],wa):o[6]),d=o[7],d&&(i[7]=d),n&wo&&(i[8]=i[8]==null?o[8]:ur(i[8],o[8])),i[9]==null&&(i[9]=o[9]),i[0]=o[0],i[1]=a,i}var dr="Expected a function",fa=1,tr=2,Ya=8,ka=16,La=32,sr=64,Za=Math.max;function Xi(i,o,e,n,a,u,g,d){var h=o&tr;if(!h&&typeof i!="function")throw new TypeError(dr);var s=n?n.length:0;if(s||(o&=-97,n=a=void 0),g=g===void 0?g:Za(S(g),0),d=d===void 0?d:S(d),s-=a?a.length:0,o&sr){var l=n,v=a;n=a=void 0}var r=h?void 0:Ie(i),c=[i,o,e,n,a,l,v,u,g,d];if(r&&gr(c,r),i=c[0],o=c[1],e=c[2],n=c[3],a=c[4],d=c[9]=c[9]===void 0?h?0:i.length:Za(c[9]-s,0),!d&&o&(Ya|ka)&&(o&=-25),!o||o==fa)var y=lh(i,o,e);else o==Ya||o==ka?y=ir(i,o,d):(o==La||o==(fa|La))&&!a.length?y=er(i,o,e,n):y=Io.apply(void 0,c);var b=r?xu:Ku;return Au(b(y,c),i,o)}var hr=128;function _u(i,o,e){return o=e?void 0:o,o=i&&o==null?i.length:o,Xi(i,hr,void 0,void 0,void 0,void 0,o)}function fi(i,o,e){o=="__proto__"&&Ao?Ao(i,o,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[o]=e}function ji(i,o){return i===o||i!==i&&o!==o}var rr=Object.prototype,lr=rr.hasOwnProperty;function Jo(i,o,e){var n=i[o];(!(lr.call(i,o)&&ji(n,e))||e===void 0&&!(o in i))&&fi(i,o,e)}function Yi(i,o,e,n){var a=!e;e||(e={});for(var u=-1,g=o.length;++u<g;){var d=o[u],h=n?n(e[d],i[d],d,e,i):void 0;h===void 0&&(h=i[d]),a?fi(e,d,h):Jo(e,d,h)}return e}var Sa=Math.max;function zu(i,o,e){return o=Sa(o===void 0?i.length-1:o,0),function(){for(var n=arguments,a=-1,u=Sa(n.length-o,0),g=Array(u);++a<u;)g[a]=n[o+a];a=-1;for(var d=Array(o+1);++a<o;)d[a]=n[a];return d[o]=e(g),gi(i,this,d)}}function J(i,o){return Ve(zu(i,o,oi),i+"")}var vr=9007199254740991;function Uo(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=vr}function ei(i){return i!=null&&Uo(i.length)&&!Ji(i)}function $(i,o,e){if(!W(e))return!1;var n=typeof o;return(n=="number"?ei(e)&&Ci(o,e.length):n=="string"&&o in e)?ji(e[o],i):!1}function go(i){return J(function(o,e){var n=-1,a=e.length,u=a>1?e[a-1]:void 0,g=a>2?e[2]:void 0;for(u=i.length>3&&typeof u=="function"?(a--,u):void 0,g&&$(e[0],e[1],g)&&(u=a<3?void 0:u,a=1),o=Object(o);++n<a;){var d=e[n];d&&i(o,d,n,u)}return o})}var yr=Object.prototype;function Co(i){var o=i&&i.constructor,e=typeof o=="function"&&o.prototype||yr;return i===e}function on(i,o){for(var e=-1,n=Array(i);++e<i;)n[e]=o(e);return n}var cr="[object Arguments]";function Ja(i){return P(i)&&q(i)==cr}var Eu=Object.prototype,br=Eu.hasOwnProperty,pr=Eu.propertyIsEnumerable,Ri=Ja((function(){return arguments})())?Ja:function(i){return P(i)&&br.call(i,"callee")&&!pr.call(i,"callee")};function en(){return!1}var $u=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ca=$u&&typeof module=="object"&&module&&!module.nodeType&&module,wr=Ca&&Ca.exports===$u,Xa=wr?O.Buffer:void 0,jr=Xa?Xa.isBuffer:void 0,Qi=jr||en,mr="[object Arguments]",fr="[object Array]",Yr="[object Boolean]",kr="[object Date]",Lr="[object Error]",Zr="[object Function]",Sr="[object Map]",Jr="[object Number]",Cr="[object Object]",Xr="[object RegExp]",Hr="[object Set]",Dr="[object String]",Tr="[object WeakMap]",Br="[object ArrayBuffer]",Mr="[object DataView]",Qr="[object Float32Array]",Gr="[object Float64Array]",xr="[object Int8Array]",Nr="[object Int16Array]",Wr="[object Int32Array]",Pr="[object Uint8Array]",Fr="[object Uint8ClampedArray]",Kr="[object Uint16Array]",Rr="[object Uint32Array]",x={};x[Qr]=x[Gr]=x[xr]=x[Nr]=x[Wr]=x[Pr]=x[Fr]=x[Kr]=x[Rr]=!0;x[mr]=x[fr]=x[Br]=x[Yr]=x[Mr]=x[kr]=x[Lr]=x[Zr]=x[Sr]=x[Jr]=x[Cr]=x[Xr]=x[Hr]=x[Dr]=x[Tr]=!1;function Ar(i){return P(i)&&Uo(i.length)&&!!x[q(i)]}function di(i){return function(o){return i(o)}}var qu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jo=qu&&typeof module=="object"&&module&&!module.nodeType&&module,Or=jo&&jo.exports===qu,Ze=Or&&Tu.process,li=(function(){try{var i=jo&&jo.require&&jo.require("util").types;return i||Ze&&Ze.binding&&Ze.binding("util")}catch{}})(),Ha=li&&li.isTypedArray,to=Ha?di(Ha):Ar,_r=Object.prototype,zr=_r.hasOwnProperty;function Iu(i,o){var e=L(i),n=!e&&Ri(i),a=!e&&!n&&Qi(i),u=!e&&!n&&!a&&to(i),g=e||n||a||u,d=g?on(i.length,String):[],h=d.length;for(var s in i)(o||zr.call(i,s))&&!(g&&(s=="length"||a&&(s=="offset"||s=="parent")||u&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Ci(s,h)))&&d.push(s);return d}function Uu(i,o){return function(e){return i(o(e))}}var Er=Uu(Object.keys,Object),$r=Object.prototype,qr=$r.hasOwnProperty;function nn(i){if(!Co(i))return Er(i);var o=[];for(var e in Object(i))qr.call(i,e)&&e!="constructor"&&o.push(e);return o}function _(i){return ei(i)?Iu(i):nn(i)}var Ir=Object.prototype,Ur=Ir.hasOwnProperty,Vr=go(function(i,o){if(Co(o)||ei(o)){Yi(o,_(o),i);return}for(var e in o)Ur.call(o,e)&&Jo(i,e,o[e])});function il(i){var o=[];if(i!=null)for(var e in Object(i))o.push(e);return o}var ol=Object.prototype,el=ol.hasOwnProperty;function nl(i){if(!W(i))return il(i);var o=Co(i),e=[];for(var n in i)n=="constructor"&&(o||!el.call(i,n))||e.push(n);return e}function ni(i){return ei(i)?Iu(i,!0):nl(i)}var al=go(function(i,o){Yi(o,ni(o),i)}),ul=go(function(i,o,e,n){Yi(o,ni(o),i,n)}),xe=go(function(i,o,e,n){Yi(o,_(o),i,n)}),gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dl=/^\w*$/;function an(i,o){if(L(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||ai(i)?!0:dl.test(i)||!gl.test(i)||o!=null&&i in Object(o)}var Yo=zi(Object,"create");function tl(){this.__data__=Yo?Yo(null):{},this.size=0}function sl(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}var hl="__lodash_hash_undefined__",rl=Object.prototype,ll=rl.hasOwnProperty;function vl(i){var o=this.__data__;if(Yo){var e=o[i];return e===hl?void 0:e}return ll.call(o,i)?o[i]:void 0}var yl=Object.prototype,cl=yl.hasOwnProperty;function bl(i){var o=this.__data__;return Yo?o[i]!==void 0:cl.call(o,i)}var pl="__lodash_hash_undefined__";function wl(i,o){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Yo&&o===void 0?pl:o,this}function Ai(i){var o=-1,e=i==null?0:i.length;for(this.clear();++o<e;){var n=i[o];this.set(n[0],n[1])}}Ai.prototype.clear=tl;Ai.prototype.delete=sl;Ai.prototype.get=vl;Ai.prototype.has=bl;Ai.prototype.set=wl;function jl(){this.__data__=[],this.size=0}function Vo(i,o){for(var e=i.length;e--;)if(ji(i[e][0],o))return e;return-1}var ml=Array.prototype,fl=ml.splice;function Yl(i){var o=this.__data__,e=Vo(o,i);if(e<0)return!1;var n=o.length-1;return e==n?o.pop():fl.call(o,e,1),--this.size,!0}function kl(i){var o=this.__data__,e=Vo(o,i);return e<0?void 0:o[e][1]}function Ll(i){return Vo(this.__data__,i)>-1}function Zl(i,o){var e=this.__data__,n=Vo(e,i);return n<0?(++this.size,e.push([i,o])):e[n][1]=o,this}function Hi(i){var o=-1,e=i==null?0:i.length;for(this.clear();++o<e;){var n=i[o];this.set(n[0],n[1])}}Hi.prototype.clear=jl;Hi.prototype.delete=Yl;Hi.prototype.get=kl;Hi.prototype.has=Ll;Hi.prototype.set=Zl;var ko=zi(O,"Map");function Sl(){this.size=0,this.__data__={hash:new Ai,map:new(ko||Hi),string:new Ai}}function Jl(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function ie(i,o){var e=i.__data__;return Jl(o)?e[typeof o=="string"?"string":"hash"]:e.map}function Cl(i){var o=ie(this,i).delete(i);return this.size-=o?1:0,o}function Xl(i){return ie(this,i).get(i)}function Hl(i){return ie(this,i).has(i)}function Dl(i,o){var e=ie(this,i),n=e.size;return e.set(i,o),this.size+=e.size==n?0:1,this}function Di(i){var o=-1,e=i==null?0:i.length;for(this.clear();++o<e;){var n=i[o];this.set(n[0],n[1])}}Di.prototype.clear=Sl;Di.prototype.delete=Cl;Di.prototype.get=Xl;Di.prototype.has=Hl;Di.prototype.set=Dl;var Tl="Expected a function";function oe(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(Tl);var e=function(){var n=arguments,a=o?o.apply(this,n):n[0],u=e.cache;if(u.has(a))return u.get(a);var g=i.apply(this,n);return e.cache=u.set(a,g)||u,g};return e.cache=new(oe.Cache||Di),e}oe.Cache=Di;var Bl=500;function Ml(i){var o=oe(i,function(n){return e.size===Bl&&e.clear(),n}),e=o.cache;return o}var Ql=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gl=/\\(\\)?/g,Vu=Ml(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(Ql,function(e,n,a,u){o.push(a?u.replace(Gl,"$1"):n||e)}),o});function D(i){return i==null?"":ui(i)}function xi(i,o){return L(i)?i:an(i,o)?[i]:Vu(D(i))}function pi(i){if(typeof i=="string"||ai(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}function Ei(i,o){o=xi(o,i);for(var e=0,n=o.length;i!=null&&e<n;)i=i[pi(o[e++])];return e&&e==n?i:void 0}function un(i,o,e){var n=i==null?void 0:Ei(i,o);return n===void 0?e:n}function gn(i,o){for(var e=-1,n=o.length,a=Array(n),u=i==null;++e<n;)a[e]=u?void 0:un(i,o[e]);return a}function Ni(i,o){for(var e=-1,n=o.length,a=i.length;++e<n;)i[a+e]=o[e];return i}var Da=E?E.isConcatSpreadable:void 0;function xl(i){return L(i)||Ri(i)||!!(Da&&i&&i[Da])}function z(i,o,e,n,a){var u=-1,g=i.length;for(e||(e=xl),a||(a=[]);++u<g;){var d=i[u];o>0&&e(d)?o>1?z(d,o-1,e,n,a):Ni(a,d):n||(a[a.length]=d)}return a}function ig(i){var o=i==null?0:i.length;return o?z(i,1):[]}function Ti(i){return Ve(zu(i,void 0,ig),i+"")}var Nl=Ti(gn),ee=Uu(Object.getPrototypeOf,Object),Wl="[object Object]",Pl=Function.prototype,Fl=Object.prototype,og=Pl.toString,Kl=Fl.hasOwnProperty,Rl=og.call(Object);function Xo(i){if(!P(i)||q(i)!=Wl)return!1;var o=ee(i);if(o===null)return!0;var e=Kl.call(o,"constructor")&&o.constructor;return typeof e=="function"&&e instanceof e&&og.call(e)==Rl}var Al="[object DOMException]",Ol="[object Error]";function dn(i){if(!P(i))return!1;var o=q(i);return o==Ol||o==Al||typeof i.message=="string"&&typeof i.name=="string"&&!Xo(i)}var eg=J(function(i,o){try{return gi(i,void 0,o)}catch(e){return dn(e)?e:new Error(e)}}),_l="Expected a function";function ng(i,o){var e;if(typeof o!="function")throw new TypeError(_l);return i=S(i),function(){return--i>0&&(e=o.apply(this,arguments)),i<=1&&(o=void 0),e}}var zl=1,El=32,ne=J(function(i,o,e){var n=zl;if(e.length){var a=Mi(e,uo(ne));n|=El}return Xi(i,n,o,e,a)});ne.placeholder={};var $l=Ti(function(i,o){return ti(o,function(e){e=pi(e),fi(i,e,ne(i[e],i))}),i}),ql=1,Il=2,Ul=32,tn=J(function(i,o,e){var n=ql|Il;if(e.length){var a=Mi(e,uo(tn));n|=Ul}return Xi(o,n,i,e,a)});tn.placeholder={};function vi(i,o,e){var n=-1,a=i.length;o<0&&(o=-o>a?0:a+o),e=e>a?a:e,e<0&&(e+=a),a=o>e?0:e-o>>>0,o>>>=0;for(var u=Array(a);++n<a;)u[n]=i[n+o];return u}function Wi(i,o,e){var n=i.length;return e=e===void 0?n:e,!o&&e>=n?i:vi(i,o,e)}var Vl="\\ud800-\\udfff",iv="\\u0300-\\u036f",ov="\\ufe20-\\ufe2f",ev="\\u20d0-\\u20ff",nv=iv+ov+ev,av="\\ufe0e\\ufe0f",uv="\\u200d",gv=RegExp("["+uv+Vl+nv+av+"]");function so(i){return gv.test(i)}function dv(i){return i.split("")}var ag="\\ud800-\\udfff",tv="\\u0300-\\u036f",sv="\\ufe20-\\ufe2f",hv="\\u20d0-\\u20ff",rv=tv+sv+hv,lv="\\ufe0e\\ufe0f",vv="["+ag+"]",Ne="["+rv+"]",We="\\ud83c[\\udffb-\\udfff]",yv="(?:"+Ne+"|"+We+")",ug="[^"+ag+"]",gg="(?:\\ud83c[\\udde6-\\uddff]){2}",dg="[\\ud800-\\udbff][\\udc00-\\udfff]",cv="\\u200d",tg=yv+"?",sg="["+lv+"]?",bv="(?:"+cv+"(?:"+[ug,gg,dg].join("|")+")"+sg+tg+")*",pv=sg+tg+bv,wv="(?:"+[ug+Ne+"?",Ne,gg,dg,vv].join("|")+")",jv=RegExp(We+"(?="+We+")|"+wv+pv,"g");function mv(i){return i.match(jv)||[]}function wi(i){return so(i)?mv(i):dv(i)}function hg(i){return function(o){o=D(o);var e=so(o)?wi(o):void 0,n=e?e[0]:o.charAt(0),a=e?Wi(e,1).join(""):o.slice(1);return n[i]()+a}}var sn=hg("toUpperCase");function rg(i){return sn(D(i).toLowerCase())}function hn(i,o,e,n){var a=-1,u=i==null?0:i.length;for(n&&u&&(e=i[++a]);++a<u;)e=o(e,i[a],a,i);return e}function rn(i){return function(o){return i?.[o]}}var fv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yv=rn(fv),kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lv="\\u0300-\\u036f",Zv="\\ufe20-\\ufe2f",Sv="\\u20d0-\\u20ff",Jv=Lv+Zv+Sv,Cv="["+Jv+"]",Xv=RegExp(Cv,"g");function lg(i){return i=D(i),i&&i.replace(kv,Yv).replace(Xv,"")}var Hv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dv(i){return i.match(Hv)||[]}var Tv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Bv(i){return Tv.test(i)}var vg="\\ud800-\\udfff",Mv="\\u0300-\\u036f",Qv="\\ufe20-\\ufe2f",Gv="\\u20d0-\\u20ff",xv=Mv+Qv+Gv,yg="\\u2700-\\u27bf",cg="a-z\\xdf-\\xf6\\xf8-\\xff",Nv="\\xac\\xb1\\xd7\\xf7",Wv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pv="\\u2000-\\u206f",Fv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bg="A-Z\\xc0-\\xd6\\xd8-\\xde",Kv="\\ufe0e\\ufe0f",pg=Nv+Wv+Pv+Fv,wg="['’]",Ta="["+pg+"]",Rv="["+xv+"]",jg="\\d+",Av="["+yg+"]",mg="["+cg+"]",fg="[^"+vg+pg+jg+yg+cg+bg+"]",Ov="\\ud83c[\\udffb-\\udfff]",_v="(?:"+Rv+"|"+Ov+")",zv="[^"+vg+"]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",kg="[\\ud800-\\udbff][\\udc00-\\udfff]",Ii="["+bg+"]",Ev="\\u200d",Ba="(?:"+mg+"|"+fg+")",$v="(?:"+Ii+"|"+fg+")",Ma="(?:"+wg+"(?:d|ll|m|re|s|t|ve))?",Qa="(?:"+wg+"(?:D|LL|M|RE|S|T|VE))?",Lg=_v+"?",Zg="["+Kv+"]?",qv="(?:"+Ev+"(?:"+[zv,Yg,kg].join("|")+")"+Zg+Lg+")*",Iv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vv=Zg+Lg+qv,i0="(?:"+[Av,Yg,kg].join("|")+")"+Vv,o0=RegExp([Ii+"?"+mg+"+"+Ma+"(?="+[Ta,Ii,"$"].join("|")+")",$v+"+"+Qa+"(?="+[Ta,Ii+Ba,"$"].join("|")+")",Ii+"?"+Ba+"+"+Ma,Ii+"+"+Qa,Uv,Iv,jg,i0].join("|"),"g");function e0(i){return i.match(o0)||[]}function Sg(i,o,e){return i=D(i),o=e?void 0:o,o===void 0?Bv(i)?e0(i):Dv(i):i.match(o)||[]}var n0="['’]",a0=RegExp(n0,"g");function ho(i){return function(o){return hn(Sg(lg(o).replace(a0,"")),i,"")}}var u0=ho(function(i,o,e){return o=o.toLowerCase(),i+(e?rg(o):o)});function g0(){if(!arguments.length)return[];var i=arguments[0];return L(i)?i:[i]}var d0=O.isFinite,t0=Math.min;function ln(i){var o=Math[i];return function(e,n){if(e=si(e),n=n==null?0:t0(S(n),292),n&&d0(e)){var a=(D(e)+"e").split("e"),u=o(a[0]+"e"+(+a[1]+n));return a=(D(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-n))}return o(e)}}var s0=ln("ceil");function Jg(i){var o=t(i);return o.__chain__=!0,o}var h0=Math.ceil,r0=Math.max;function l0(i,o,e){(e?$(i,o,e):o===void 0)?o=1:o=r0(S(o),0);var n=i==null?0:i.length;if(!n||o<1)return[];for(var a=0,u=0,g=Array(h0(n/o));a<n;)g[u++]=vi(i,a,a+=o);return g}function $i(i,o,e){return i===i&&(e!==void 0&&(i=i<=e?i:e),o!==void 0&&(i=i>=o?i:o)),i}function v0(i,o,e){return e===void 0&&(e=o,o=void 0),e!==void 0&&(e=si(e),e=e===e?e:0),o!==void 0&&(o=si(o),o=o===o?o:0),$i(si(i),o,e)}function y0(){this.__data__=new Hi,this.size=0}function c0(i){var o=this.__data__,e=o.delete(i);return this.size=o.size,e}function b0(i){return this.__data__.get(i)}function p0(i){return this.__data__.has(i)}var w0=200;function j0(i,o){var e=this.__data__;if(e instanceof Hi){var n=e.__data__;if(!ko||n.length<w0-1)return n.push([i,o]),this.size=++e.size,this;e=this.__data__=new Di(n)}return e.set(i,o),this.size=e.size,this}function bi(i){var o=this.__data__=new Hi(i);this.size=o.size}bi.prototype.clear=y0;bi.prototype.delete=c0;bi.prototype.get=b0;bi.prototype.has=p0;bi.prototype.set=j0;function Cg(i,o){return i&&Yi(o,_(o),i)}function m0(i,o){return i&&Yi(o,ni(o),i)}var Xg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ga=Xg&&typeof module=="object"&&module&&!module.nodeType&&module,f0=Ga&&Ga.exports===Xg,xa=f0?O.Buffer:void 0,Na=xa?xa.allocUnsafe:void 0;function Hg(i,o){if(o)return i.slice();var e=i.length,n=Na?Na(e):new i.constructor(e);return i.copy(n),n}function Pi(i,o){for(var e=-1,n=i==null?0:i.length,a=0,u=[];++e<n;){var g=i[e];o(g,e,i)&&(u[a++]=g)}return u}function vn(){return[]}var Y0=Object.prototype,k0=Y0.propertyIsEnumerable,Wa=Object.getOwnPropertySymbols,yn=Wa?function(i){return i==null?[]:(i=Object(i),Pi(Wa(i),function(o){return k0.call(i,o)}))}:vn;function L0(i,o){return Yi(i,yn(i),o)}var Z0=Object.getOwnPropertySymbols,Dg=Z0?function(i){for(var o=[];i;)Ni(o,yn(i)),i=ee(i);return o}:vn;function S0(i,o){return Yi(i,Dg(i),o)}function Tg(i,o,e){var n=o(i);return L(i)?n:Ni(n,e(i))}function Pe(i){return Tg(i,_,yn)}function cn(i){return Tg(i,ni,Dg)}var Fe=zi(O,"DataView"),Ke=zi(O,"Promise"),io=zi(O,"Set"),Pa="[object Map]",J0="[object Object]",Fa="[object Promise]",Ka="[object Set]",Ra="[object WeakMap]",Aa="[object DataView]",C0=_i(Fe),X0=_i(ko),H0=_i(Ke),D0=_i(io),T0=_i(mo),Ki=q;(Fe&&Ki(new Fe(new ArrayBuffer(1)))!=Aa||ko&&Ki(new ko)!=Pa||Ke&&Ki(Ke.resolve())!=Fa||io&&Ki(new io)!=Ka||mo&&Ki(new mo)!=Ra)&&(Ki=function(i){var o=q(i),e=o==J0?i.constructor:void 0,n=e?_i(e):"";if(n)switch(n){case C0:return Aa;case X0:return Pa;case H0:return Fa;case D0:return Ka;case T0:return Ra}return o});const mi=Ki;var B0=Object.prototype,M0=B0.hasOwnProperty;function Q0(i){var o=i.length,e=new i.constructor(o);return o&&typeof i[0]=="string"&&M0.call(i,"index")&&(e.index=i.index,e.input=i.input),e}var Oo=O.Uint8Array;function bn(i){var o=new i.constructor(i.byteLength);return new Oo(o).set(new Oo(i)),o}function G0(i,o){var e=o?bn(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.byteLength)}var x0=/\w*$/;function N0(i){var o=new i.constructor(i.source,x0.exec(i));return o.lastIndex=i.lastIndex,o}var Oa=E?E.prototype:void 0,_a=Oa?Oa.valueOf:void 0;function W0(i){return _a?Object(_a.call(i)):{}}function Bg(i,o){var e=o?bn(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var P0="[object Boolean]",F0="[object Date]",K0="[object Map]",R0="[object Number]",A0="[object RegExp]",O0="[object Set]",_0="[object String]",z0="[object Symbol]",E0="[object ArrayBuffer]",$0="[object DataView]",q0="[object Float32Array]",I0="[object Float64Array]",U0="[object Int8Array]",V0="[object Int16Array]",iy="[object Int32Array]",oy="[object Uint8Array]",ey="[object Uint8ClampedArray]",ny="[object Uint16Array]",ay="[object Uint32Array]";function uy(i,o,e){var n=i.constructor;switch(o){case E0:return bn(i);case P0:case F0:return new n(+i);case $0:return G0(i,e);case q0:case I0:case U0:case V0:case iy:case oy:case ey:case ny:case ay:return Bg(i,e);case K0:return new n;case R0:case _0:return new n(i);case A0:return N0(i);case O0:return new n;case z0:return W0(i)}}function Mg(i){return typeof i.constructor=="function"&&!Co(i)?no(ee(i)):{}}var gy="[object Map]";function dy(i){return P(i)&&mi(i)==gy}var za=li&&li.isMap,Qg=za?di(za):dy,ty="[object Set]";function sy(i){return P(i)&&mi(i)==ty}var Ea=li&&li.isSet,Gg=Ea?di(Ea):sy,hy=1,ry=2,ly=4,xg="[object Arguments]",vy="[object Array]",yy="[object Boolean]",cy="[object Date]",by="[object Error]",Ng="[object Function]",py="[object GeneratorFunction]",wy="[object Map]",jy="[object Number]",Wg="[object Object]",my="[object RegExp]",fy="[object Set]",Yy="[object String]",ky="[object Symbol]",Ly="[object WeakMap]",Zy="[object ArrayBuffer]",Sy="[object DataView]",Jy="[object Float32Array]",Cy="[object Float64Array]",Xy="[object Int8Array]",Hy="[object Int16Array]",Dy="[object Int32Array]",Ty="[object Uint8Array]",By="[object Uint8ClampedArray]",My="[object Uint16Array]",Qy="[object Uint32Array]",G={};G[xg]=G[vy]=G[Zy]=G[Sy]=G[yy]=G[cy]=G[Jy]=G[Cy]=G[Xy]=G[Hy]=G[Dy]=G[wy]=G[jy]=G[Wg]=G[my]=G[fy]=G[Yy]=G[ky]=G[Ty]=G[By]=G[My]=G[Qy]=!0;G[by]=G[Ng]=G[Ly]=!1;function hi(i,o,e,n,a,u){var g,d=o&hy,h=o&ry,s=o&ly;if(e&&(g=a?e(i,n,a,u):e(i)),g!==void 0)return g;if(!W(i))return i;var l=L(i);if(l){if(g=Q0(i),!d)return V(i,g)}else{var v=mi(i),r=v==Ng||v==py;if(Qi(i))return Hg(i,d);if(v==Wg||v==xg||r&&!a){if(g=h||r?{}:Mg(i),!d)return h?S0(i,m0(g,i)):L0(i,Cg(g,i))}else{if(!G[v])return a?i:{};g=uy(i,v,d)}}u||(u=new bi);var c=u.get(i);if(c)return c;u.set(i,g),Gg(i)?i.forEach(function(p){g.add(hi(p,o,e,p,i,u))}):Qg(i)&&i.forEach(function(p,w){g.set(w,hi(p,o,e,w,i,u))});var y=s?h?cn:Pe:h?ni:_,b=l?void 0:y(i);return ti(b||i,function(p,w){b&&(w=p,p=i[w]),Jo(g,w,hi(p,o,e,w,i,u))}),g}var Gy=4;function xy(i){return hi(i,Gy)}var Ny=1,Wy=4;function Py(i){return hi(i,Ny|Wy)}var Fy=1,Ky=4;function Ry(i,o){return o=typeof o=="function"?o:void 0,hi(i,Fy|Ky,o)}var Ay=4;function Oy(i,o){return o=typeof o=="function"?o:void 0,hi(i,Ay,o)}function _y(){return new ri(this.value(),this.__chain__)}function zy(i){for(var o=-1,e=i==null?0:i.length,n=0,a=[];++o<e;){var u=i[o];u&&(a[n++]=u)}return a}function Ey(){var i=arguments.length;if(!i)return[];for(var o=Array(i-1),e=arguments[0],n=i;n--;)o[n-1]=arguments[n];return Ni(L(e)?V(e):[e],z(o,1))}var $y="__lodash_hash_undefined__";function qy(i){return this.__data__.set(i,$y),this}function Iy(i){return this.__data__.has(i)}function Oi(i){var o=-1,e=i==null?0:i.length;for(this.__data__=new Di;++o<e;)this.add(i[o])}Oi.prototype.add=Oi.prototype.push=qy;Oi.prototype.has=Iy;function pn(i,o){for(var e=-1,n=i==null?0:i.length;++e<n;)if(o(i[e],e,i))return!0;return!1}function Lo(i,o){return i.has(o)}var Uy=1,Vy=2;function Pg(i,o,e,n,a,u){var g=e&Uy,d=i.length,h=o.length;if(d!=h&&!(g&&h>d))return!1;var s=u.get(i),l=u.get(o);if(s&&l)return s==o&&l==i;var v=-1,r=!0,c=e&Vy?new Oi:void 0;for(u.set(i,o),u.set(o,i);++v<d;){var y=i[v],b=o[v];if(n)var p=g?n(b,y,v,o,i,u):n(y,b,v,i,o,u);if(p!==void 0){if(p)continue;r=!1;break}if(c){if(!pn(o,function(w,j){if(!Lo(c,j)&&(y===w||a(y,w,e,n,u)))return c.push(j)})){r=!1;break}}else if(!(y===b||a(y,b,e,n,u))){r=!1;break}}return u.delete(i),u.delete(o),r}function wn(i){var o=-1,e=Array(i.size);return i.forEach(function(n,a){e[++o]=[a,n]}),e}function ae(i){var o=-1,e=Array(i.size);return i.forEach(function(n){e[++o]=n}),e}var ic=1,oc=2,ec="[object Boolean]",nc="[object Date]",ac="[object Error]",uc="[object Map]",gc="[object Number]",dc="[object RegExp]",tc="[object Set]",sc="[object String]",hc="[object Symbol]",rc="[object ArrayBuffer]",lc="[object DataView]",$a=E?E.prototype:void 0,Se=$a?$a.valueOf:void 0;function vc(i,o,e,n,a,u,g){switch(e){case lc:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case rc:return!(i.byteLength!=o.byteLength||!u(new Oo(i),new Oo(o)));case ec:case nc:case gc:return ji(+i,+o);case ac:return i.name==o.name&&i.message==o.message;case dc:case sc:return i==o+"";case uc:var d=wn;case tc:var h=n&ic;if(d||(d=ae),i.size!=o.size&&!h)return!1;var s=g.get(i);if(s)return s==o;n|=oc,g.set(i,o);var l=Pg(d(i),d(o),n,a,u,g);return g.delete(i),l;case hc:if(Se)return Se.call(i)==Se.call(o)}return!1}var yc=1,cc=Object.prototype,bc=cc.hasOwnProperty;function pc(i,o,e,n,a,u){var g=e&yc,d=Pe(i),h=d.length,s=Pe(o),l=s.length;if(h!=l&&!g)return!1;for(var v=h;v--;){var r=d[v];if(!(g?r in o:bc.call(o,r)))return!1}var c=u.get(i),y=u.get(o);if(c&&y)return c==o&&y==i;var b=!0;u.set(i,o),u.set(o,i);for(var p=g;++v<h;){r=d[v];var w=i[r],j=o[r];if(n)var Z=g?n(j,w,r,o,i,u):n(w,j,r,i,o,u);if(!(Z===void 0?w===j||a(w,j,e,n,u):Z)){b=!1;break}p||(p=r=="constructor")}if(b&&!p){var X=i.constructor,A=o.constructor;X!=A&&"constructor"in i&&"constructor"in o&&!(typeof X=="function"&&X instanceof X&&typeof A=="function"&&A instanceof A)&&(b=!1)}return u.delete(i),u.delete(o),b}var wc=1,qa="[object Arguments]",Ia="[object Array]",xo="[object Object]",jc=Object.prototype,Ua=jc.hasOwnProperty;function mc(i,o,e,n,a,u){var g=L(i),d=L(o),h=g?Ia:mi(i),s=d?Ia:mi(o);h=h==qa?xo:h,s=s==qa?xo:s;var l=h==xo,v=s==xo,r=h==s;if(r&&Qi(i)){if(!Qi(o))return!1;g=!0,l=!1}if(r&&!l)return u||(u=new bi),g||to(i)?Pg(i,o,e,n,a,u):vc(i,o,h,e,n,a,u);if(!(e&wc)){var c=l&&Ua.call(i,"__wrapped__"),y=v&&Ua.call(o,"__wrapped__");if(c||y){var b=c?i.value():i,p=y?o.value():o;return u||(u=new bi),a(b,p,e,n,u)}}return r?(u||(u=new bi),pc(i,o,e,n,a,u)):!1}function Ho(i,o,e,n,a){return i===o?!0:i==null||o==null||!P(i)&&!P(o)?i!==i&&o!==o:mc(i,o,e,n,Ho,a)}var fc=1,Yc=2;function jn(i,o,e,n){var a=e.length,u=a,g=!n;if(i==null)return!u;for(i=Object(i);a--;){var d=e[a];if(g&&d[2]?d[1]!==i[d[0]]:!(d[0]in i))return!1}for(;++a<u;){d=e[a];var h=d[0],s=i[h],l=d[1];if(g&&d[2]){if(s===void 0&&!(h in i))return!1}else{var v=new bi;if(n)var r=n(s,l,h,i,o,v);if(!(r===void 0?Ho(l,s,fc|Yc,n,v):r))return!1}}return!0}function Fg(i){return i===i&&!W(i)}function mn(i){for(var o=_(i),e=o.length;e--;){var n=o[e],a=i[n];o[e]=[n,a,Fg(a)]}return o}function Kg(i,o){return function(e){return e==null?!1:e[i]===o&&(o!==void 0||i in Object(e))}}function Rg(i){var o=mn(i);return o.length==1&&o[0][2]?Kg(o[0][0],o[0][1]):function(e){return e===i||jn(e,i,o)}}function kc(i,o){return i!=null&&o in Object(i)}function Ag(i,o,e){o=xi(o,i);for(var n=-1,a=o.length,u=!1;++n<a;){var g=pi(o[n]);if(!(u=i!=null&&e(i,g)))break;i=i[g]}return u||++n!=a?u:(a=i==null?0:i.length,!!a&&Uo(a)&&Ci(g,a)&&(L(i)||Ri(i)))}function fn(i,o){return i!=null&&Ag(i,o,kc)}var Lc=1,Zc=2;function Og(i,o){return an(i)&&Fg(o)?Kg(pi(i),o):function(e){var n=un(e,i);return n===void 0&&n===o?fn(e,i):Ho(o,n,Lc|Zc)}}function Yn(i){return function(o){return o?.[i]}}function Sc(i){return function(o){return Ei(o,i)}}function _g(i){return an(i)?Yn(pi(i)):Sc(i)}function k(i){return typeof i=="function"?i:i==null?oi:typeof i=="object"?L(i)?Og(i[0],i[1]):Rg(i):_g(i)}var Jc="Expected a function";function Cc(i){var o=i==null?0:i.length,e=k;return i=o?N(i,function(n){if(typeof n[1]!="function")throw new TypeError(Jc);return[e(n[0]),n[1]]}):[],J(function(n){for(var a=-1;++a<o;){var u=i[a];if(gi(u[0],this,n))return gi(u[1],this,n)}})}function zg(i,o,e){var n=e.length;if(i==null)return!n;for(i=Object(i);n--;){var a=e[n],u=o[a],g=i[a];if(g===void 0&&!(a in i)||!u(g))return!1}return!0}function Xc(i){var o=_(i);return function(e){return zg(e,i,o)}}var Hc=1;function Dc(i){return Xc(hi(i,Hc))}function Tc(i,o){return o==null||zg(i,o,_(o))}function Bc(i,o,e,n){for(var a=-1,u=i==null?0:i.length;++a<u;){var g=i[a];o(n,g,e(g),i)}return n}function Eg(i){return function(o,e,n){for(var a=-1,u=Object(o),g=n(o),d=g.length;d--;){var h=g[i?d:++a];if(e(u[h],h,u)===!1)break}return o}}var kn=Eg();function ki(i,o){return i&&kn(i,o,_)}function $g(i,o){return function(e,n){if(e==null)return e;if(!ei(e))return i(e,n);for(var a=e.length,u=o?a:-1,g=Object(e);(o?u--:++u<a)&&n(g[u],u,g)!==!1;);return e}}var Fi=$g(ki);function Mc(i,o,e,n){return Fi(i,function(a,u,g){o(n,a,e(a),g)}),n}function ue(i,o){return function(e,n){var a=L(e)?Bc:Mc,u=o?o():{};return a(e,i,k(n),u)}}var Qc=Object.prototype,Gc=Qc.hasOwnProperty,xc=ue(function(i,o,e){Gc.call(i,e)?++i[e]:fi(i,e,1)});function Nc(i,o){var e=no(i);return o==null?e:Cg(e,o)}var Wc=8;function Ln(i,o,e){o=e?void 0:o;var n=Xi(i,Wc,void 0,void 0,void 0,void 0,void 0,o);return n.placeholder=Ln.placeholder,n}Ln.placeholder={};var Pc=16;function Zn(i,o,e){o=e?void 0:o;var n=Xi(i,Pc,void 0,void 0,void 0,void 0,void 0,o);return n.placeholder=Zn.placeholder,n}Zn.placeholder={};var Fo=function(){return O.Date.now()},Fc="Expected a function",Kc=Math.max,Rc=Math.min;function qg(i,o,e){var n,a,u,g,d,h,s=0,l=!1,v=!1,r=!0;if(typeof i!="function")throw new TypeError(Fc);o=si(o)||0,W(e)&&(l=!!e.leading,v="maxWait"in e,u=v?Kc(si(e.maxWait)||0,o):u,r="trailing"in e?!!e.trailing:r);function c(M){var B=n,K=a;return n=a=void 0,s=M,g=i.apply(K,B),g}function y(M){return s=M,d=setTimeout(w,o),l?c(M):g}function b(M){var B=M-h,K=M-s,En=o-B;return v?Rc(En,u-K):En}function p(M){var B=M-h,K=M-s;return h===void 0||B>=o||B<0||v&&K>=u}function w(){var M=Fo();if(p(M))return j(M);d=setTimeout(w,b(M))}function j(M){return d=void 0,r&&n?c(M):(n=a=void 0,g)}function Z(){d!==void 0&&clearTimeout(d),s=0,n=h=a=d=void 0}function X(){return d===void 0?g:j(Fo())}function A(){var M=Fo(),B=p(M);if(n=arguments,a=this,h=M,B){if(d===void 0)return y(h);if(v)return clearTimeout(d),d=setTimeout(w,o),c(h)}return d===void 0&&(d=setTimeout(w,o)),g}return A.cancel=Z,A.flush=X,A}function Ac(i,o){return i==null||i!==i?o:i}var Ig=Object.prototype,Oc=Ig.hasOwnProperty,_c=J(function(i,o){i=Object(i);var e=-1,n=o.length,a=n>2?o[2]:void 0;for(a&&$(o[0],o[1],a)&&(n=1);++e<n;)for(var u=o[e],g=ni(u),d=-1,h=g.length;++d<h;){var s=g[d],l=i[s];(l===void 0||ji(l,Ig[s])&&!Oc.call(i,s))&&(i[s]=u[s])}return i});function Re(i,o,e){(e!==void 0&&!ji(i[o],e)||e===void 0&&!(o in i))&&fi(i,o,e)}function R(i){return P(i)&&ei(i)}function Ae(i,o){if(!(o==="constructor"&&typeof i[o]=="function")&&o!="__proto__")return i[o]}function Ug(i){return Yi(i,ni(i))}function zc(i,o,e,n,a,u,g){var d=Ae(i,e),h=Ae(o,e),s=g.get(h);if(s){Re(i,e,s);return}var l=u?u(d,h,e+"",i,o,g):void 0,v=l===void 0;if(v){var r=L(h),c=!r&&Qi(h),y=!r&&!c&&to(h);l=h,r||c||y?L(d)?l=d:R(d)?l=V(d):c?(v=!1,l=Hg(h,!0)):y?(v=!1,l=Bg(h,!0)):l=[]:Xo(h)||Ri(h)?(l=d,Ri(d)?l=Ug(d):(!W(d)||Ji(d))&&(l=Mg(h))):v=!1}v&&(g.set(h,l),a(l,h,n,u,g),g.delete(h)),Re(i,e,l)}function ge(i,o,e,n,a){i!==o&&kn(o,function(u,g){if(a||(a=new bi),W(u))zc(i,o,g,e,ge,n,a);else{var d=n?n(Ae(i,g),u,g+"",i,o,a):void 0;d===void 0&&(d=u),Re(i,g,d)}},ni)}function Vg(i,o,e,n,a,u){return W(i)&&W(o)&&(u.set(o,i),ge(i,o,void 0,Vg,u),u.delete(o)),i}var id=go(function(i,o,e,n){ge(i,o,e,n)}),Ec=J(function(i){return i.push(void 0,Vg),gi(id,void 0,i)}),$c="Expected a function";function od(i,o,e){if(typeof i!="function")throw new TypeError($c);return setTimeout(function(){i.apply(void 0,e)},o)}var qc=J(function(i,o){return od(i,1,o)}),Ic=J(function(i,o,e){return od(i,si(o)||0,e)});function Sn(i,o,e){for(var n=-1,a=i==null?0:i.length;++n<a;)if(e(o,i[n]))return!0;return!1}var Uc=200;function Do(i,o,e,n){var a=-1,u=qo,g=!0,d=i.length,h=[],s=o.length;if(!d)return h;e&&(o=N(o,di(e))),n?(u=Sn,g=!1):o.length>=Uc&&(u=Lo,g=!1,o=new Oi(o));i:for(;++a<d;){var l=i[a],v=e==null?l:e(l);if(l=n||l!==0?l:0,g&&v===v){for(var r=s;r--;)if(o[r]===v)continue i;h.push(l)}else u(o,v,n)||h.push(l)}return h}var Vc=J(function(i,o){return R(i)?Do(i,z(o,1,R,!0)):[]});function yi(i){var o=i==null?0:i.length;return o?i[o-1]:void 0}var ib=J(function(i,o){var e=yi(o);return R(e)&&(e=void 0),R(i)?Do(i,z(o,1,R,!0),k(e)):[]}),ob=J(function(i,o){var e=yi(o);return R(e)&&(e=void 0),R(i)?Do(i,z(o,1,R,!0),void 0,e):[]}),eb=zo(function(i,o){return i/o},1);function nb(i,o,e){var n=i==null?0:i.length;return n?(o=e||o===void 0?1:S(o),vi(i,o<0?0:o,n)):[]}function ab(i,o,e){var n=i==null?0:i.length;return n?(o=e||o===void 0?1:S(o),o=n-o,vi(i,0,o<0?0:o)):[]}function de(i,o,e,n){for(var a=i.length,u=n?a:-1;(n?u--:++u<a)&&o(i[u],u,i););return e?vi(i,n?0:u,n?u+1:a):vi(i,n?u+1:0,n?a:u)}function ub(i,o){return i&&i.length?de(i,k(o),!0,!0):[]}function gb(i,o){return i&&i.length?de(i,k(o),!0):[]}function Li(i){return typeof i=="function"?i:oi}function db(i,o){var e=L(i)?ti:Fi;return e(i,Li(o))}function tb(i,o){for(var e=i==null?0:i.length;e--&&o(i[e],e,i)!==!1;);return i}var ed=Eg(!0);function Jn(i,o){return i&&ed(i,o,_)}var nd=$g(Jn,!0);function sb(i,o){var e=L(i)?tb:nd;return e(i,Li(o))}function hb(i,o,e){i=D(i),o=ui(o);var n=i.length;e=e===void 0?n:$i(S(e),0,n);var a=e;return e-=o.length,e>=0&&i.slice(e,a)==o}function rb(i,o){return N(o,function(e){return[e,i[e]]})}function lb(i){var o=-1,e=Array(i.size);return i.forEach(function(n){e[++o]=[n,n]}),e}var vb="[object Map]",yb="[object Set]";function ad(i){return function(o){var e=mi(o);return e==vb?wn(o):e==yb?lb(o):rb(o,i(o))}}var cb=ad(_),bb=ad(ni),pb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wb=rn(pb),ud=/[&<>"']/g,jb=RegExp(ud.source);function gd(i){return i=D(i),i&&jb.test(i)?i.replace(ud,wb):i}var dd=/[\\^$.*+?()[\]{}|]/g,mb=RegExp(dd.source);function fb(i){return i=D(i),i&&mb.test(i)?i.replace(dd,"\\$&"):i}function td(i,o){for(var e=-1,n=i==null?0:i.length;++e<n;)if(!o(i[e],e,i))return!1;return!0}function Yb(i,o){var e=!0;return Fi(i,function(n,a,u){return e=!!o(n,a,u),e}),e}function kb(i,o,e){var n=L(i)?td:Yb;return e&&$(i,o,e)&&(o=void 0),n(i,k(o))}var Lb=4294967295;function sd(i){return i?$i(S(i),0,Lb):0}function Zb(i,o,e,n){var a=i.length;for(e=S(e),e<0&&(e=-e>a?0:a+e),n=n===void 0||n>a?a:S(n),n<0&&(n+=a),n=e>n?0:sd(n);e<n;)i[e++]=o;return i}function Sb(i,o,e,n){var a=i==null?0:i.length;return a?(e&&typeof e!="number"&&$(i,o,e)&&(e=0,n=a),Zb(i,o,e,n)):[]}function hd(i,o){var e=[];return Fi(i,function(n,a,u){o(n,a,u)&&e.push(n)}),e}function Jb(i,o){var e=L(i)?Pi:hd;return e(i,k(o))}function rd(i){return function(o,e,n){var a=Object(o);if(!ei(o)){var u=k(e);o=_(o),e=function(d){return u(a[d],d,a)}}var g=i(o,e,n);return g>-1?a[u?o[g]:g]:void 0}}var Cb=Math.max;function ld(i,o,e){var n=i==null?0:i.length;if(!n)return-1;var a=e==null?0:S(e);return a<0&&(a=Cb(n+a,0)),$o(i,k(o),a)}var Xb=rd(ld);function vd(i,o,e){var n;return e(i,function(a,u,g){if(o(a,u,g))return n=u,!1}),n}function Hb(i,o){return vd(i,k(o),ki)}var Db=Math.max,Tb=Math.min;function yd(i,o,e){var n=i==null?0:i.length;if(!n)return-1;var a=n-1;return e!==void 0&&(a=S(e),a=e<0?Db(n+a,0):Tb(a,n-1)),$o(i,k(o),a,!0)}var Bb=rd(yd);function Mb(i,o){return vd(i,k(o),Jn)}function Qb(i){return i&&i.length?i[0]:void 0}function cd(i,o){var e=-1,n=ei(i)?Array(i.length):[];return Fi(i,function(a,u,g){n[++e]=o(a,u,g)}),n}function te(i,o){var e=L(i)?N:cd;return e(i,k(o))}function Gb(i,o){return z(te(i,o),1)}var xb=1/0;function Nb(i,o){return z(te(i,o),xb)}function Wb(i,o,e){return e=e===void 0?1:S(e),z(te(i,o),e)}var Pb=1/0;function Fb(i){var o=i==null?0:i.length;return o?z(i,Pb):[]}function Kb(i,o){var e=i==null?0:i.length;return e?(o=o===void 0?1:S(o),z(i,o)):[]}var Rb=512;function Ab(i){return Xi(i,Rb)}var Ob=ln("floor"),_b="Expected a function",zb=8,Eb=32,$b=128,qb=256;function bd(i){return Ti(function(o){var e=o.length,n=e,a=ri.prototype.thru;for(i&&o.reverse();n--;){var u=o[n];if(typeof u!="function")throw new TypeError(_b);if(a&&!g&&Po(u)=="wrapper")var g=new ri([],!0)}for(n=g?n:e;++n<e;){u=o[n];var d=Po(u),h=d=="wrapper"?Ie(u):void 0;h&&Ge(h[0])&&h[1]==($b|zb|Eb|qb)&&!h[4].length&&h[9]==1?g=g[Po(h[0])].apply(g,h[3]):g=u.length==1&&Ge(u)?g[d]():g.thru(u)}return function(){var s=arguments,l=s[0];if(g&&s.length==1&&L(l))return g.plant(l).value();for(var v=0,r=e?o[v].apply(this,s):l;++v<e;)r=o[v].call(this,r);return r}})}var Ib=bd(),Ub=bd(!0);function Vb(i,o){return i==null?i:kn(i,Li(o),ni)}function ip(i,o){return i==null?i:ed(i,Li(o),ni)}function op(i,o){return i&&ki(i,Li(o))}function ep(i,o){return i&&Jn(i,Li(o))}function np(i){for(var o=-1,e=i==null?0:i.length,n={};++o<e;){var a=i[o];fi(n,a[0],a[1])}return n}function se(i,o){return Pi(o,function(e){return Ji(i[e])})}function ap(i){return i==null?[]:se(i,_(i))}function up(i){return i==null?[]:se(i,ni(i))}var gp=Object.prototype,dp=gp.hasOwnProperty,tp=ue(function(i,o,e){dp.call(i,e)?i[e].push(o):fi(i,e,[o])});function Cn(i,o){return i>o}function he(i){return function(o,e){return typeof o=="string"&&typeof e=="string"||(o=si(o),e=si(e)),i(o,e)}}var sp=he(Cn),hp=he(function(i,o){return i>=o}),rp=Object.prototype,lp=rp.hasOwnProperty;function vp(i,o){return i!=null&&lp.call(i,o)}function yp(i,o){return i!=null&&Ag(i,o,vp)}var cp=Math.max,bp=Math.min;function pp(i,o,e){return i>=bp(o,e)&&i<cp(o,e)}function wp(i,o,e){return o=Si(o),e===void 0?(e=o,o=0):e=Si(e),i=si(i),pp(i,o,e)}var jp="[object String]";function re(i){return typeof i=="string"||!L(i)&&P(i)&&q(i)==jp}function Xn(i,o){return N(o,function(e){return i[e]})}function ro(i){return i==null?[]:Xn(i,_(i))}var mp=Math.max;function fp(i,o,e,n){i=ei(i)?i:ro(i),e=e&&!n?S(e):0;var a=i.length;return e<0&&(e=mp(a+e,0)),re(i)?e<=a&&i.indexOf(o,e)>-1:!!a&&ao(i,o,e)>-1}var Yp=Math.max;function kp(i,o,e){var n=i==null?0:i.length;if(!n)return-1;var a=e==null?0:S(e);return a<0&&(a=Yp(n+a,0)),ao(i,o,a)}function Lp(i){var o=i==null?0:i.length;return o?vi(i,0,-1):[]}var Zp=Math.min;function Hn(i,o,e){for(var n=e?Sn:qo,a=i[0].length,u=i.length,g=u,d=Array(u),h=1/0,s=[];g--;){var l=i[g];g&&o&&(l=N(l,di(o))),h=Zp(l.length,h),d[g]=!e&&(o||a>=120&&l.length>=120)?new Oi(g&&l):void 0}l=i[0];var v=-1,r=d[0];i:for(;++v<a&&s.length<h;){var c=l[v],y=o?o(c):c;if(c=e||c!==0?c:0,!(r?Lo(r,y):n(s,y,e))){for(g=u;--g;){var b=d[g];if(!(b?Lo(b,y):n(i[g],y,e)))continue i}r&&r.push(y),s.push(c)}}return s}function Dn(i){return R(i)?i:[]}var Sp=J(function(i){var o=N(i,Dn);return o.length&&o[0]===i[0]?Hn(o):[]}),Jp=J(function(i){var o=yi(i),e=N(i,Dn);return o===yi(e)?o=void 0:e.pop(),e.length&&e[0]===i[0]?Hn(e,k(o)):[]}),Cp=J(function(i){var o=yi(i),e=N(i,Dn);return o=typeof o=="function"?o:void 0,o&&e.pop(),e.length&&e[0]===i[0]?Hn(e,void 0,o):[]});function Xp(i,o,e,n){return ki(i,function(a,u,g){o(n,e(a),u,g)}),n}function pd(i,o){return function(e,n){return Xp(e,i,o(n),{})}}var Hp=Object.prototype,Dp=Hp.toString,Tp=pd(function(i,o,e){o!=null&&typeof o.toString!="function"&&(o=Dp.call(o)),i[o]=e},Ue(oi)),wd=Object.prototype,Bp=wd.hasOwnProperty,Mp=wd.toString,Qp=pd(function(i,o,e){o!=null&&typeof o.toString!="function"&&(o=Mp.call(o)),Bp.call(i,o)?i[o].push(e):i[o]=[e]},k);function jd(i,o){return o.length<2?i:Ei(i,vi(o,0,-1))}function To(i,o,e){o=xi(o,i),i=jd(i,o);var n=i==null?i:i[pi(yi(o))];return n==null?void 0:gi(n,i,e)}var Gp=J(To),xp=J(function(i,o,e){var n=-1,a=typeof o=="function",u=ei(i)?Array(i.length):[];return Fi(i,function(g){u[++n]=a?gi(o,g,e):To(g,o,e)}),u}),Np="[object ArrayBuffer]";function Wp(i){return P(i)&&q(i)==Np}var Va=li&&li.isArrayBuffer,Pp=Va?di(Va):Wp,Fp="[object Boolean]";function Kp(i){return i===!0||i===!1||P(i)&&q(i)==Fp}var Rp="[object Date]";function Ap(i){return P(i)&&q(i)==Rp}var iu=li&&li.isDate,Op=iu?di(iu):Ap;function _p(i){return P(i)&&i.nodeType===1&&!Xo(i)}var zp="[object Map]",Ep="[object Set]",$p=Object.prototype,qp=$p.hasOwnProperty;function Ip(i){if(i==null)return!0;if(ei(i)&&(L(i)||typeof i=="string"||typeof i.splice=="function"||Qi(i)||to(i)||Ri(i)))return!i.length;var o=mi(i);if(o==zp||o==Ep)return!i.size;if(Co(i))return!nn(i).length;for(var e in i)if(qp.call(i,e))return!1;return!0}function Up(i,o){return Ho(i,o)}function Vp(i,o,e){e=typeof e=="function"?e:void 0;var n=e?e(i,o):void 0;return n===void 0?Ho(i,o,void 0,e):!!n}var iw=O.isFinite;function ow(i){return typeof i=="number"&&iw(i)}function md(i){return typeof i=="number"&&i==S(i)}function ew(i,o){return i===o||jn(i,o,mn(o))}function nw(i,o,e){return e=typeof e=="function"?e:void 0,jn(i,o,mn(o),e)}var aw="[object Number]";function fd(i){return typeof i=="number"||P(i)&&q(i)==aw}function uw(i){return fd(i)&&i!=+i}var gw=Wo?Ji:en,dw="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function tw(i){if(gw(i))throw new Error(dw);return Gu(i)}function sw(i){return i==null}function hw(i){return i===null}var rw="[object RegExp]";function lw(i){return P(i)&&q(i)==rw}var ou=li&&li.isRegExp,Tn=ou?di(ou):lw,eu=9007199254740991;function vw(i){return md(i)&&i>=-eu&&i<=eu}function yw(i){return i===void 0}var cw="[object WeakMap]";function bw(i){return P(i)&&mi(i)==cw}var pw="[object WeakSet]";function ww(i){return P(i)&&q(i)==pw}var jw=1;function mw(i){return k(typeof i=="function"?i:hi(i,jw))}var fw=Array.prototype,Yw=fw.join;function kw(i,o){return i==null?"":Yw.call(i,o)}var Lw=ho(function(i,o,e){return i+(e?"-":"")+o.toLowerCase()}),Zw=ue(function(i,o,e){fi(i,e,o)});function Sw(i,o,e){for(var n=e+1;n--;)if(i[n]===o)return n;return n}var Jw=Math.max,Cw=Math.min;function Xw(i,o,e){var n=i==null?0:i.length;if(!n)return-1;var a=n;return e!==void 0&&(a=S(e),a=a<0?Jw(n+a,0):Cw(a,n-1)),o===o?Sw(i,o,a):$o(i,Ru,a,!0)}var Hw=ho(function(i,o,e){return i+(e?" ":"")+o.toLowerCase()}),Dw=hg("toLowerCase");function Bn(i,o){return i<o}var Tw=he(Bn),Bw=he(function(i,o){return i<=o});function Mw(i,o){var e={};return o=k(o),ki(i,function(n,a,u){fi(e,o(n,a,u),n)}),e}function Qw(i,o){var e={};return o=k(o),ki(i,function(n,a,u){fi(e,a,o(n,a,u))}),e}var Gw=1;function xw(i){return Rg(hi(i,Gw))}var Nw=1;function Ww(i,o){return Og(i,hi(o,Nw))}function le(i,o,e){for(var n=-1,a=i.length;++n<a;){var u=i[n],g=o(u);if(g!=null&&(d===void 0?g===g&&!ai(g):e(g,d)))var d=g,h=u}return h}function Pw(i){return i&&i.length?le(i,oi,Cn):void 0}function Fw(i,o){return i&&i.length?le(i,k(o),Cn):void 0}function Mn(i,o){for(var e,n=-1,a=i.length;++n<a;){var u=o(i[n]);u!==void 0&&(e=e===void 0?u:e+u)}return e}var Kw=NaN;function Yd(i,o){var e=i==null?0:i.length;return e?Mn(i,o)/e:Kw}function Rw(i){return Yd(i,oi)}function Aw(i,o){return Yd(i,k(o))}var Ow=go(function(i,o,e){ge(i,o,e)}),_w=J(function(i,o){return function(e){return To(e,i,o)}}),zw=J(function(i,o){return function(e){return To(i,e,o)}});function Ew(i){return i&&i.length?le(i,oi,Bn):void 0}function $w(i,o){return i&&i.length?le(i,k(o),Bn):void 0}function qw(i,o,e){var n=_(o),a=se(o,n),u=!(W(e)&&"chain"in e)||!!e.chain,g=Ji(i);return ti(a,function(d){var h=o[d];i[d]=h,g&&(i.prototype[d]=function(){var s=this.__chain__;if(u||s){var l=i(this.__wrapped__),v=l.__actions__=V(this.__actions__);return v.push({func:h,args:arguments,thisArg:i}),l.__chain__=s,l}return h.apply(i,Ni([this.value()],arguments))})}),i}var Iw=zo(function(i,o){return i*o},1),Uw="Expected a function";function ve(i){if(typeof i!="function")throw new TypeError(Uw);return function(){var o=arguments;switch(o.length){case 0:return!i.call(this);case 1:return!i.call(this,o[0]);case 2:return!i.call(this,o[0],o[1]);case 3:return!i.call(this,o[0],o[1],o[2])}return!i.apply(this,o)}}function Vw(i){for(var o,e=[];!(o=i.next()).done;)e.push(o.value);return e}var ij="[object Map]",oj="[object Set]",Je=E?E.iterator:void 0;function kd(i){if(!i)return[];if(ei(i))return re(i)?wi(i):V(i);if(Je&&i[Je])return Vw(i[Je]());var o=mi(i),e=o==ij?wn:o==oj?ae:ro;return e(i)}function ej(){this.__values__===void 0&&(this.__values__=kd(this.value()));var i=this.__index__>=this.__values__.length,o=i?void 0:this.__values__[this.__index__++];return{done:i,value:o}}function Ld(i,o){var e=i.length;if(e)return o+=o<0?e:0,Ci(o,e)?i[o]:void 0}function nj(i,o){return i&&i.length?Ld(i,S(o)):void 0}function aj(i){return i=S(i),J(function(o){return Ld(o,i)})}var uj=Object.prototype,gj=uj.hasOwnProperty;function Qn(i,o){o=xi(o,i);var e=-1,n=o.length;if(!n)return!0;for(;++e<n;){var a=pi(o[e]);if(a==="__proto__"&&!gj.call(i,"__proto__")||(a==="constructor"||a==="prototype")&&e<n-1)return!1}var u=jd(i,o);return u==null||delete u[pi(yi(o))]}function dj(i){return Xo(i)?void 0:i}var tj=1,sj=2,hj=4,rj=Ti(function(i,o){var e={};if(i==null)return e;var n=!1;o=N(o,function(u){return u=xi(u,i),n||(n=u.length>1),u}),Yi(i,cn(i),e),n&&(e=hi(e,tj|sj|hj,dj));for(var a=o.length;a--;)Qn(e,o[a]);return e});function Bo(i,o,e,n){if(!W(i))return i;o=xi(o,i);for(var a=-1,u=o.length,g=u-1,d=i;d!=null&&++a<u;){var h=pi(o[a]),s=e;if(h==="__proto__"||h==="constructor"||h==="prototype")return i;if(a!=g){var l=d[h];s=n?n(l,h,d):void 0,s===void 0&&(s=W(l)?l:Ci(o[a+1])?[]:{})}Jo(d,h,s),d=d[h]}return i}function Zd(i,o,e){for(var n=-1,a=o.length,u={};++n<a;){var g=o[n],d=Ei(i,g);e(d,g)&&Bo(u,xi(g,i),d)}return u}function Sd(i,o){if(i==null)return{};var e=N(cn(i),function(n){return[n]});return o=k(o),Zd(i,e,function(n,a){return o(n,a[0])})}function lj(i,o){return Sd(i,ve(k(o)))}function vj(i){return ng(2,i)}function yj(i,o){var e=i.length;for(i.sort(o);e--;)i[e]=i[e].value;return i}function Jd(i,o){if(i!==o){var e=i!==void 0,n=i===null,a=i===i,u=ai(i),g=o!==void 0,d=o===null,h=o===o,s=ai(o);if(!d&&!s&&!u&&i>o||u&&g&&h&&!d&&!s||n&&g&&h||!e&&h||!a)return 1;if(!n&&!u&&!s&&i<o||s&&e&&a&&!n&&!u||d&&e&&a||!g&&a||!h)return-1}return 0}function cj(i,o,e){for(var n=-1,a=i.criteria,u=o.criteria,g=a.length,d=e.length;++n<g;){var h=Jd(a[n],u[n]);if(h){if(n>=d)return h;var s=e[n];return h*(s=="desc"?-1:1)}}return i.index-o.index}function Cd(i,o,e){o.length?o=N(o,function(u){return L(u)?function(g){return Ei(g,u.length===1?u[0]:u)}:u}):o=[oi];var n=-1;o=N(o,di(k));var a=cd(i,function(u,g,d){var h=N(o,function(s){return s(u)});return{criteria:h,index:++n,value:u}});return yj(a,function(u,g){return cj(u,g,e)})}function bj(i,o,e,n){return i==null?[]:(L(o)||(o=o==null?[]:[o]),e=n?void 0:e,L(e)||(e=e==null?[]:[e]),Cd(i,o,e))}function Gn(i){return Ti(function(o){return o=N(o,di(k)),J(function(e){var n=this;return i(o,function(a){return gi(a,n,e)})})})}var pj=Gn(N),wj=J,jj=Math.min,mj=wj(function(i,o){o=o.length==1&&L(o[0])?N(o[0],di(k)):N(z(o,1),di(k));var e=o.length;return J(function(n){for(var a=-1,u=jj(n.length,e);++a<u;)n[a]=o[a].call(this,n[a]);return gi(i,this,n)})}),fj=Gn(td),Yj=Gn(pn),kj=9007199254740991,Lj=Math.floor;function Oe(i,o){var e="";if(!i||o<1||o>kj)return e;do o%2&&(e+=i),o=Lj(o/2),o&&(i+=i);while(o);return e}var Zj=Yn("length"),Xd="\\ud800-\\udfff",Sj="\\u0300-\\u036f",Jj="\\ufe20-\\ufe2f",Cj="\\u20d0-\\u20ff",Xj=Sj+Jj+Cj,Hj="\\ufe0e\\ufe0f",Dj="["+Xd+"]",_e="["+Xj+"]",ze="\\ud83c[\\udffb-\\udfff]",Tj="(?:"+_e+"|"+ze+")",Hd="[^"+Xd+"]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Td="[\\ud800-\\udbff][\\udc00-\\udfff]",Bj="\\u200d",Bd=Tj+"?",Md="["+Hj+"]?",Mj="(?:"+Bj+"(?:"+[Hd,Dd,Td].join("|")+")"+Md+Bd+")*",Qj=Md+Bd+Mj,Gj="(?:"+[Hd+_e+"?",_e,Dd,Td,Dj].join("|")+")",nu=RegExp(ze+"(?="+ze+")|"+Gj+Qj,"g");function xj(i){for(var o=nu.lastIndex=0;nu.test(i);)++o;return o}function lo(i){return so(i)?xj(i):Zj(i)}var Nj=Math.ceil;function _o(i,o){o=o===void 0?" ":ui(o);var e=o.length;if(e<2)return e?Oe(o,i):o;var n=Oe(o,Nj(i/lo(o)));return so(o)?Wi(wi(n),0,i).join(""):n.slice(0,i)}var Wj=Math.ceil,Pj=Math.floor;function Fj(i,o,e){i=D(i),o=S(o);var n=o?lo(i):0;if(!o||n>=o)return i;var a=(o-n)/2;return _o(Pj(a),e)+i+_o(Wj(a),e)}function Kj(i,o,e){i=D(i),o=S(o);var n=o?lo(i):0;return o&&n<o?i+_o(o-n,e):i}function Rj(i,o,e){i=D(i),o=S(o);var n=o?lo(i):0;return o&&n<o?_o(o-n,e)+i:i}var Aj=/^\s+/,Oj=O.parseInt;function _j(i,o,e){return e||o==null?o=0:o&&(o=+o),Oj(D(i).replace(Aj,""),o||0)}var zj=32,ye=J(function(i,o){var e=Mi(o,uo(ye));return Xi(i,zj,void 0,o,e)});ye.placeholder={};var Ej=64,xn=J(function(i,o){var e=Mi(o,uo(xn));return Xi(i,Ej,void 0,o,e)});xn.placeholder={};var $j=ue(function(i,o,e){i[e?0:1].push(o)},function(){return[[],[]]});function qj(i,o){return Zd(i,o,function(e,n){return fn(i,n)})}var Ij=Ti(function(i,o){return i==null?{}:qj(i,o)});function Uj(i){for(var o,e=this;e instanceof Eo;){var n=Pu(e);n.__index__=0,n.__values__=void 0,o?a.__wrapped__=n:o=n;var a=n;e=e.__wrapped__}return a.__wrapped__=i,o}function Vj(i){return function(o){return i==null?void 0:Ei(i,o)}}function im(i,o,e,n){for(var a=e-1,u=i.length;++a<u;)if(n(i[a],o))return a;return-1}var om=Array.prototype,au=om.splice;function Nn(i,o,e,n){var a=n?im:ao,u=-1,g=o.length,d=i;for(i===o&&(o=V(o)),e&&(d=N(i,di(e)));++u<g;)for(var h=0,s=o[u],l=e?e(s):s;(h=a(d,l,h,n))>-1;)d!==i&&au.call(d,h,1),au.call(i,h,1);return i}function Qd(i,o){return i&&i.length&&o&&o.length?Nn(i,o):i}var em=J(Qd);function nm(i,o,e){return i&&i.length&&o&&o.length?Nn(i,o,k(e)):i}function am(i,o,e){return i&&i.length&&o&&o.length?Nn(i,o,void 0,e):i}var um=Array.prototype,gm=um.splice;function Gd(i,o){for(var e=i?o.length:0,n=e-1;e--;){var a=o[e];if(e==n||a!==u){var u=a;Ci(a)?gm.call(i,a,1):Qn(i,a)}}return i}var dm=Ti(function(i,o){var e=i==null?0:i.length,n=gn(i,o);return Gd(i,N(o,function(a){return Ci(a,e)?+a:a}).sort(Jd)),n}),tm=Math.floor,sm=Math.random;function Wn(i,o){return i+tm(sm()*(o-i+1))}var hm=parseFloat,rm=Math.min,lm=Math.random;function vm(i,o,e){if(e&&typeof e!="boolean"&&$(i,o,e)&&(o=e=void 0),e===void 0&&(typeof o=="boolean"?(e=o,o=void 0):typeof i=="boolean"&&(e=i,i=void 0)),i===void 0&&o===void 0?(i=0,o=1):(i=Si(i),o===void 0?(o=i,i=0):o=Si(o)),i>o){var n=i;i=o,o=n}if(e||i%1||o%1){var a=lm();return rm(i+a*(o-i+hm("1e-"+((a+"").length-1))),o)}return Wn(i,o)}var ym=Math.ceil,cm=Math.max;function bm(i,o,e,n){for(var a=-1,u=cm(ym((o-i)/(e||1)),0),g=Array(u);u--;)g[n?u:++a]=i,i+=e;return g}function xd(i){return function(o,e,n){return n&&typeof n!="number"&&$(o,e,n)&&(e=n=void 0),o=Si(o),e===void 0?(e=o,o=0):e=Si(e),n=n===void 0?o<e?1:-1:Si(n),bm(o,e,n,i)}}var pm=xd(),wm=xd(!0),jm=256,mm=Ti(function(i,o){return Xi(i,jm,void 0,void 0,void 0,o)});function Nd(i,o,e,n,a){return a(i,function(u,g,d){e=n?(n=!1,u):o(e,u,g,d)}),e}function fm(i,o,e){var n=L(i)?hn:Nd,a=arguments.length<3;return n(i,k(o),e,a,Fi)}function Ym(i,o,e,n){var a=i==null?0:i.length;for(n&&a&&(e=i[--a]);a--;)e=o(e,i[a],a,i);return e}function km(i,o,e){var n=L(i)?Ym:Nd,a=arguments.length<3;return n(i,k(o),e,a,nd)}function Lm(i,o){var e=L(i)?Pi:hd;return e(i,ve(k(o)))}function Zm(i,o){var e=[];if(!(i&&i.length))return e;var n=-1,a=[],u=i.length;for(o=k(o);++n<u;){var g=i[n];o(g,n,i)&&(e.push(g),a.push(n))}return Gd(i,a),e}function Sm(i,o,e){return(e?$(i,o,e):o===void 0)?o=1:o=S(o),Oe(D(i),o)}function Jm(){var i=arguments,o=D(i[0]);return i.length<3?o:o.replace(i[1],i[2])}var Cm="Expected a function";function Xm(i,o){if(typeof i!="function")throw new TypeError(Cm);return o=o===void 0?o:S(o),J(i,o)}function Hm(i,o,e){o=xi(o,i);var n=-1,a=o.length;for(a||(a=1,i=void 0);++n<a;){var u=i?.[pi(o[n])];u===void 0&&(n=a,u=e),i=Ji(u)?u.call(i):u}return i}var Dm=Array.prototype,Tm=Dm.reverse;function Ee(i){return i==null?i:Tm.call(i)}var Bm=ln("round");function Wd(i){var o=i.length;return o?i[Wn(0,o-1)]:void 0}function Mm(i){return Wd(ro(i))}function Qm(i){var o=L(i)?Wd:Mm;return o(i)}function ce(i,o){var e=-1,n=i.length,a=n-1;for(o=o===void 0?n:o;++e<o;){var u=Wn(e,a),g=i[u];i[u]=i[e],i[e]=g}return i.length=o,i}function Gm(i,o){return ce(V(i),$i(o,0,i.length))}function xm(i,o){var e=ro(i);return ce(e,$i(o,0,e.length))}function Nm(i,o,e){(e?$(i,o,e):o===void 0)?o=1:o=S(o);var n=L(i)?Gm:xm;return n(i,o)}function Wm(i,o,e){return i==null?i:Bo(i,o,e)}function Pm(i,o,e,n){return n=typeof n=="function"?n:void 0,i==null?i:Bo(i,o,e,n)}function Fm(i){return ce(V(i))}function Km(i){return ce(ro(i))}function Rm(i){var o=L(i)?Fm:Km;return o(i)}var Am="[object Map]",Om="[object Set]";function _m(i){if(i==null)return 0;if(ei(i))return re(i)?lo(i):i.length;var o=mi(i);return o==Am||o==Om?i.size:nn(i).length}function zm(i,o,e){var n=i==null?0:i.length;return n?(e&&typeof e!="number"&&$(i,o,e)?(o=0,e=n):(o=o==null?0:S(o),e=e===void 0?n:S(e)),vi(i,o,e)):[]}var Em=ho(function(i,o,e){return i+(e?"_":"")+o.toLowerCase()});function $m(i,o){var e;return Fi(i,function(n,a,u){return e=o(n,a,u),!e}),!!e}function qm(i,o,e){var n=L(i)?pn:$m;return e&&$(i,o,e)&&(o=void 0),n(i,k(o))}var Im=J(function(i,o){if(i==null)return[];var e=o.length;return e>1&&$(i,o[0],o[1])?o=[]:e>2&&$(o[0],o[1],o[2])&&(o=[o[0]]),Cd(i,z(o,1),[])}),Um=4294967295,Vm=Um-1,of=Math.floor,ef=Math.min;function Pn(i,o,e,n){var a=0,u=i==null?0:i.length;if(u===0)return 0;o=e(o);for(var g=o!==o,d=o===null,h=ai(o),s=o===void 0;a<u;){var l=of((a+u)/2),v=e(i[l]),r=v!==void 0,c=v===null,y=v===v,b=ai(v);if(g)var p=n||y;else s?p=y&&(n||r):d?p=y&&r&&(n||!c):h?p=y&&r&&!c&&(n||!b):c||b?p=!1:p=n?v<=o:v<o;p?a=l+1:u=l}return ef(u,Vm)}var nf=4294967295,af=nf>>>1;function be(i,o,e){var n=0,a=i==null?n:i.length;if(typeof o=="number"&&o===o&&a<=af){for(;n<a;){var u=n+a>>>1,g=i[u];g!==null&&!ai(g)&&(e?g<=o:g<o)?n=u+1:a=u}return a}return Pn(i,o,oi,e)}function uf(i,o){return be(i,o)}function gf(i,o,e){return Pn(i,o,k(e))}function df(i,o){var e=i==null?0:i.length;if(e){var n=be(i,o);if(n<e&&ji(i[n],o))return n}return-1}function tf(i,o){return be(i,o,!0)}function sf(i,o,e){return Pn(i,o,k(e),!0)}function hf(i,o){var e=i==null?0:i.length;if(e){var n=be(i,o,!0)-1;if(ji(i[n],o))return n}return-1}function Pd(i,o){for(var e=-1,n=i.length,a=0,u=[];++e<n;){var g=i[e],d=o?o(g):g;if(!e||!ji(d,h)){var h=d;u[a++]=g===0?0:g}}return u}function rf(i){return i&&i.length?Pd(i):[]}function lf(i,o){return i&&i.length?Pd(i,k(o)):[]}var vf=4294967295;function yf(i,o,e){return e&&typeof e!="number"&&$(i,o,e)&&(o=e=void 0),e=e===void 0?vf:e>>>0,e?(i=D(i),i&&(typeof o=="string"||o!=null&&!Tn(o))&&(o=ui(o),!o&&so(i))?Wi(wi(i),0,e):i.split(o,e)):[]}var cf="Expected a function",bf=Math.max;function pf(i,o){if(typeof i!="function")throw new TypeError(cf);return o=o==null?0:bf(S(o),0),J(function(e){var n=e[o],a=Wi(e,0,o);return n&&Ni(a,n),gi(i,this,a)})}var wf=ho(function(i,o,e){return i+(e?" ":"")+sn(o)});function jf(i,o,e){return i=D(i),e=e==null?0:$i(S(e),0,i.length),o=ui(o),i.slice(e,e+o.length)==o}function mf(){return{}}function ff(){return""}function Yf(){return!0}var kf=zo(function(i,o){return i-o},0);function Lf(i){return i&&i.length?Mn(i,oi):0}function Zf(i,o){return i&&i.length?Mn(i,k(o)):0}function Sf(i){var o=i==null?0:i.length;return o?vi(i,1,o):[]}function Jf(i,o,e){return i&&i.length?(o=e||o===void 0?1:S(o),vi(i,0,o<0?0:o)):[]}function Cf(i,o,e){var n=i==null?0:i.length;return n?(o=e||o===void 0?1:S(o),o=n-o,vi(i,o<0?0:o,n)):[]}function Xf(i,o){return i&&i.length?de(i,k(o),!1,!0):[]}function Hf(i,o){return i&&i.length?de(i,k(o)):[]}function Df(i,o){return o(i),i}var Fd=Object.prototype,Tf=Fd.hasOwnProperty;function uu(i,o,e,n){return i===void 0||ji(i,Fd[e])&&!Tf.call(n,e)?o:i}var Bf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Mf(i){return"\\"+Bf[i]}var Kd=/<%=([\s\S]+?)%>/g,Qf=/<%-([\s\S]+?)%>/g,Gf=/<%([\s\S]+?)%>/g,$e={escape:Qf,evaluate:Gf,interpolate:Kd,variable:"",imports:{_:{escape:gd}}},xf="Invalid `variable` option passed into `_.template`",Nf="Invalid `imports` option passed into `_.template`",Wf=/\b__p \+= '';/g,Pf=/\b(__p \+=) '' \+/g,Ff=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gu=/[()=,{}\[\]\/\s]/,Kf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,No=/($^)/,Rf=/['\n\r\u2028\u2029\\]/g,Af=Object.prototype,du=Af.hasOwnProperty;function Of(i,o,e){var n=$e.imports._.templateSettings||$e;e&&$(i,o,e)&&(o=void 0),i=D(i),o=xe({},o,n,uu);var a=xe({},o.imports,n.imports,uu),u=_(a),g=Xn(a,u);ti(u,function(p){if(gu.test(p))throw new Error(Nf)});var d,h,s=0,l=o.interpolate||No,v="__p += '",r=RegExp((o.escape||No).source+"|"+l.source+"|"+(l===Kd?Kf:No).source+"|"+(o.evaluate||No).source+"|$","g"),c=du.call(o,"sourceURL")?"//# sourceURL="+(o.sourceURL+"").replace(/\s/g," ")+`
4
4
  `:"";i.replace(r,function(p,w,j,Z,X,A){return j||(j=Z),v+=i.slice(s,A).replace(Rf,Mf),w&&(d=!0,v+=`' +
@@ -1,2 +1,2 @@
1
- import{createRequire as m}from"node:module";import{m as _}from"./index-D75r1yKp.js";import{a as F}from"./en-BRcjb70R.js";const p=m(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[t,e]=o.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return o.getBuiltinModule(r)}return p(r)},{mkdirSync:f,writeFileSync:h,readdirSync:g}=c("node:fs"),{readFile:y}=c("node:fs/promises"),n=r=>F(r),a=(r,t)=>_(n(r),`${encodeURIComponent(t)}.json`);class S{#t;#e;constructor(t,e){this.#t=t,this.#e=e}printTaskTerminalOutput(t,e,s){if(e!=="failure")return;const i=n(this.#t);try{f(i,{recursive:!0})}catch{return}const u=t.overrides.command,d=t.projectRoot,l={command:u,cwd:d,exitCode:void 0,hash:t.hash,runId:this.#e,status:e,taskId:t.id,terminalOutput:s,timestamp:new Date().toISOString()};try{h(a(this.#t,t.id),`${JSON.stringify(l,void 0,2)}
1
+ import{createRequire as m}from"node:module";import{m as _}from"./index-2LCHaVNX.js";import{a as F}from"./en-C26W78--.js";const p=m(import.meta.url),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[t,e]=o.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return o.getBuiltinModule(r)}return p(r)},{mkdirSync:f,writeFileSync:h,readdirSync:g}=c("node:fs"),{readFile:y}=c("node:fs/promises"),n=r=>F(r),a=(r,t)=>_(n(r),`${encodeURIComponent(t)}.json`);class S{#t;#e;constructor(t,e){this.#t=t,this.#e=e}printTaskTerminalOutput(t,e,s){if(e!=="failure")return;const i=n(this.#t);try{f(i,{recursive:!0})}catch{return}const u=t.overrides.command,d=t.projectRoot,l={command:u,cwd:d,exitCode:void 0,hash:t.hash,runId:this.#e,status:e,taskId:t.id,terminalOutput:s,timestamp:new Date().toISOString()};try{h(a(this.#t,t.id),`${JSON.stringify(l,void 0,2)}
2
2
  `,"utf8")}catch{}}}const I=async(r,t)=>{const e=a(r,t);try{const s=await y(e,"utf8");return JSON.parse(s)}catch{return}},O=r=>{const t=n(r);let e;try{e=g(t)}catch{return[]}const s=[];for(const i of e)if(i.endsWith(".json"))try{s.push(decodeURIComponent(i.slice(0,-5)))}catch{}return s};export{S as F,I as a,O as l};
@@ -0,0 +1 @@
1
+ import{W as o}from"./index-2LCHaVNX.js";const r=async(s,a)=>await o(s,a);export{r as s};
@@ -32,4 +32,4 @@ ${this.codeFrame}
32
32
  `+$+"}"}}return s.pop(),n=$,_}function b(f){if(f.length===0)return p(f);const $=String.fromCodePoint(f.codePointAt(0));if(!Y.isIdStartChar($))return p(f);for(let F=$.length;F<f.length;F++)if(!Y.isIdContinueChar(String.fromCodePoint(f.codePointAt(F))))return p(f);return f}function C(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let $=n;n=n+i;let F=[];for(let _=0;_<f.length;_++){const h=d(String(_),f);F.push(h!==void 0?h:"null")}let w;if(F.length===0)w="[]";else if(i==="")w="["+F.join(",")+"]";else{let _=`,
33
33
  `+n,h=F.join(_);w=`[
34
34
  `+n+h+`,
35
- `+$+"]"}return s.pop(),n=$,w}};const Gi={parse:Oi,stringify:ji};var Ca=Gi;export{Nu as A,Lu as B,ea as F,et as H,hs as I,Gt as J,yu as L,Aa as O,Ai as T,la as U,sa as W,Zi as a,na as b,aa as c,Ji as d,Eo as e,Qe as f,Se as g,Vi as h,Ca as i,Sr as j,ha as k,Wi as l,wr as m,fa as n,qi as o,Da as s,Ea as u,So as v,Xi as w,Ki as y,ca as z};
35
+ `+$+"]"}return s.pop(),n=$,w}};const Gi={parse:Oi,stringify:ji};var Ca=Gi;export{Nu as A,Lu as B,ea as F,et as H,hs as I,Gt as J,yu as L,Aa as O,Ai as T,la as U,sa as W,Zi as a,na as b,aa as c,Ji as d,Eo as e,Qe as f,Se as g,Vi as h,Ca as i,Sr as j,Wi as k,ha as l,wr as m,fa as n,qi as o,Da as s,Ea as u,So as v,Xi as w,Ki as y,ca as z};
@@ -1 +1 @@
1
- import{m as h,D as k,f as S}from"./provenance-ByHgofYo.js";import{g as $}from"./packument-BFekEvwn.js";import{H as d}from"./en-BRcjb70R.js";import{W as N}from"./build-scripts-CpTeQE1L.js";import{n as v}from"./license-t5KnNX6v.js";import{A as R,B as L,v as D}from"./index-D75r1yKp.js";import{D as A}from"./package-version-DBJLduJL.js";import"./public-api-WqUCiyIe.js";import{L as w}from"./dependency-scan-173U3WXB.js";const m={CRITICAL:0,HIGH:1,LOW:3,MODERATE:2,UNKNOWN:4},oe=(t,e)=>{const n=m[(t.vulnerability.severity??"UNKNOWN").toUpperCase()]??4,s=m[(e.vulnerability.severity??"UNKNOWN").toUpperCase()]??4;return n-s||t.packageName.localeCompare(e.packageName)||t.packageVersion.localeCompare(e.packageVersion)},P=(t,e)=>{const n=m[e.toUpperCase()]??2;return(m[t.toUpperCase()]??4)<=n},b=["firstSeen","installScripts","license","malware","publisherChange","score","unexpectedDeps","vulnerability"],g=6e4,W=(t,e,n)=>{for(const s of n)if(s===t||s===`${t}@${e}`||s.endsWith("*")&&t.startsWith(s.slice(0,-1)))return!0;return!1},x=async(t,e)=>{const n=e.security?.policies?.firstSeen;if(n?.minutes===void 0||n.minutes<=0)return[];const{minutes:s}=n,a=n.exclude??[],r=e.security?.acceptedRisks,c=s*g,i=Date.now();return(await h(t.packages,k,async o=>{if(W(o.name,o.version,a))return;const l=await $(o.name,{workspaceRoot:t.workspaceRoot});if(l===void 0)return;const p=l.time?.[o.version];if(p===void 0)return;const u=Date.parse(p);if(Number.isNaN(u))return;const f=i-u;if(f>=c)return;const y=Math.max(0,Math.floor(f/g));return{acceptedRisk:d(o.name,o.version,r,"firstSeen"),data:{ageMinutes:y,minimumMinutes:s,publishedAt:p},packageName:o.name,policy:"firstSeen",reason:`${o.name}@${o.version} was published ${String(y)} min ago — below the ${String(s)} min firstSeen cooldown.`,severity:"block",version:o.version}})).filter(o=>o!==void 0)},O=(t,e)=>{const n=e.security?.policies?.installScripts;if(!n)return[];const s=n.allow??{},a=n.strict===!0;if(!a&&Object.keys(s).length===0)return[];const r=N(t.workspaceRoot,s,{pinVersions:e.security?.pinVersions===!0});if(r.unapproved.length===0)return[];const c=e.security?.acceptedRisks,i=a?"block":"warn";return r.unapproved.map(o=>({acceptedRisk:d(o.name,o.version??"*",c,"installScripts"),data:{hooks:o.hooks},packageName:o.name,policy:"installScripts",reason:`${o.name}${o.version?`@${o.version}`:""} declares unapproved build script(s): ${o.hooks.join(", ")}`,severity:i,version:o.version??"*"}))},U=new Set(["AND","OR"]),E=t=>{const e=t.replaceAll("("," ").replaceAll(")"," ").split(/\s+/).map(a=>a.trim()).filter(a=>a.length>0),n=[];let s=!1;for(const a of e){const r=a.toUpperCase();if(s){s=!1;continue}if(r==="WITH"){s=!0;continue}if(U.has(r))continue;const c=a.endsWith("+"),i=c?a.slice(0,-1):a,o=v(i)??i;n.push(o),c&&n.push(`${o}-or-later`)}return n},F=t=>{if(typeof t.license=="string"){const e=t.license.trim();return e.length>0?e:void 0}if(t.license&&typeof t.license=="object"&&typeof t.license.type=="string"){const e=t.license.type.trim();if(e.length>0)return e}if(Array.isArray(t.licenses)&&t.licenses.length>0){const e=t.licenses.map(n=>n&&typeof n.type=="string"?n.type.trim():"").filter(n=>n.length>0);if(e.length>0)return e.length===1?e[0]:`(${e.join(" OR ")})`}},I=(t,e)=>{if(e.length===0)return;const n=new Set(e.map(s=>v(s)??s).map(s=>s.toLowerCase()));for(const s of t)if(n.has(s.toLowerCase()))return s},M=(t,e)=>{if(e.length===0)return;const n=new Set(e.map(s=>v(s)??s).map(s=>s.toLowerCase()));for(const s of t)if(!n.has(s.toLowerCase()))return s},V=(t,e)=>{const n=e.security?.policies?.license;if(!n)return[];const s=n.allow??[],a=n.deny??[];if(s.length===0&&a.length===0)return[];const r=e.security?.acceptedRisks,c=[];for(const i of t.packages){const o=t.manifestData?.get(`${i.name}@${i.version}`),l=o?F(o):void 0;if(!l){s.length>0&&c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{declaredLicense:null},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} declares no license; allow-list mode requires one of: ${s.join(", ")}`,severity:"block",version:i.version});continue}const p=E(l),u=I(p,a);if(u){c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{declaredLicense:l,deniedLicense:u},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} uses denied license '${u}' (declared: ${l})`,severity:"block",version:i.version});continue}const f=M(p,s);f&&c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{allowList:s,declaredLicense:l,unallowedLicense:f},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} uses license '${f}' which is not on the allow-list (declared: ${l})`,severity:"block",version:i.version})}return c},j=6e4,_=(t,e,n)=>{for(const s of n)if(s===t||s===`${t}@${e}`||s.endsWith("*")&&t.startsWith(s.slice(0,-1)))return!0;return!1},H=async(t,e)=>{const n=e.security?.policies?.publisherChange;if(n?.mode!=="no-downgrade")return[];const s=n.exclude??[],a=typeof n.ignoreAfter=="number"?n.ignoreAfter*j:void 0,r=e.security?.acceptedRisks,c=Date.now();return(await h(t.packages,k,async i=>{if(_(i.name,i.version,s))return;const o=await $(i.name,{workspaceRoot:t.workspaceRoot});if(o===void 0)return;if(a!==void 0){const p=o.time?.[i.version],u=p===void 0?Number.NaN:Date.parse(p);if(!Number.isNaN(u)&&c-u>a)return}if(o.versions[i.version]?.dist?.attestations?.provenance!==void 0)return;const l=S(o,i.version);if(l!==void 0)return{acceptedRisk:d(i.name,i.version,r,"publisherChange"),data:{priorVersionWithProvenance:l},packageName:i.name,policy:"publisherChange",reason:`${i.name}@${i.version} dropped the provenance attestation that ${i.name}@${l} carried — publisher trust downgrade.`,severity:"block",version:i.version}})).filter(i=>i!==void 0)},T=t=>{for(const e of Object.values(w))for(const n of[e.file,...e.aliases??[]])if(t===n||t.endsWith(`/${n}`)||t.endsWith(`.${n}`))return e.type},K=(t,e,n)=>{const s=R(e)?e:L(t,e);let a;try{a=D(s)}catch{return}const r=T(s)??w[n]?.type;if(!r)return;const c=A(a,r);if(c.length===0)return;const i=new Set;for(const o of c)i.add(`${o.name}@${o.version}`);return i},z=(t,e)=>{for(const n of e)if(n===t||n.endsWith("*")&&t.startsWith(n.slice(0,-1)))return!0;return!1},Y=(t,e)=>{const n=e.security?.policies?.unexpectedDeps;if(!n)return[];const s=n.allow??[],a=n.baselineLockfile;if(s.length===0&&!a)return[];const r=a?K(t.workspaceRoot,a,t.packageManager):void 0,c=e.security?.acceptedRisks,i=[];for(const o of t.packages){const l=s.length===0||z(o.name,s),p=r?r.has(`${o.name}@${o.version}`):!0;if(l&&p)continue;const u=[],f={};l||(u.push(`not on allow-list (${s.length} entr${s.length===1?"y":"ies"})`),f.allowList=s),!p&&r&&(u.push(`not present in baseline lockfile (${a})`),f.baselineLockfile=a),i.push({acceptedRisk:d(o.name,o.version,c,"unexpectedDeps"),data:f,packageName:o.name,policy:"unexpectedDeps",reason:`${o.name}@${o.version} is unexpected: ${u.join("; ")}`,severity:"block",version:o.version})}return i},q=(t,e)=>{if(!t.osvFindings||t.osvFindings.size===0)return[];const n=e.security?.policies?.vulnerability?.failOn,s=e.security?.acceptedRisks,a=[];for(const r of t.packages){const c=t.osvFindings.get(r.name);if(!(!c||c.length===0))for(const i of c){const o=n?P(i.severity,n)?"block":"warn":"info";a.push({acceptedRisk:d(r.name,r.version,s,"vulnerability"),data:{advisoryId:i.id,aliases:i.aliases??[],cvssScore:i.cvssScore,fixedVersions:i.fixedVersions,severity:i.severity,summary:i.summary},packageName:r.name,policy:"vulnerability",reason:`${i.severity} ${i.id} affects ${r.name}@${r.version}: ${i.summary}`,severity:o,version:r.version})}}return a},C=[{evaluate:q,isConfigured:t=>t.security?.policies?.vulnerability!==void 0,name:"vulnerability",offlineSupported:!0,surfaces:["audit","doctor"]},{evaluate:V,isConfigured:t=>{const e=t.security?.policies?.license;return!!(e&&(e.allow&&e.allow.length>0||e.deny&&e.deny.length>0))},name:"license",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:O,isConfigured:t=>{const e=t.security?.policies?.installScripts;return!!(e&&(e.allow&&Object.keys(e.allow).length>0||e.strict===!0))},name:"installScripts",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:Y,isConfigured:t=>{const e=t.security?.policies?.unexpectedDeps;return!!(e&&(e.allow&&e.allow.length>0||typeof e.baselineLockfile=="string"))},name:"unexpectedDeps",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:x,isConfigured:t=>{const e=t.security?.policies?.firstSeen?.minutes;return typeof e=="number"&&e>0},name:"firstSeen",offlineSupported:!1,surfaces:["audit","doctor","install"]},{evaluate:H,isConfigured:t=>t.security?.policies?.publisherChange?.mode==="no-downgrade",name:"publisherChange",offlineSupported:!1,surfaces:["audit","doctor","install"]}],B=(t,e,n)=>C.filter(s=>s.surfaces.includes(t)?n!==void 0?n.has(s.name):s.isConfigured(e):!1),re=async(t,e,n)=>{const s=B(e,n.visConfig,n.enabledPolicies),a=[];for(const r of s){if(t.offline&&!r.offlineSupported){a.push({packageName:"*",policy:r.name,reason:`policy.${r.name} skipped: requires network (--offline)`,severity:"info",version:"*"});continue}try{const c=await r.evaluate(t,n.visConfig);a.push(...c)}catch(c){const i=c instanceof Error?c.message:String(c);a.push({packageName:"*",policy:r.name,reason:`policy.${r.name} failed: ${i}`,severity:"info",version:"*"})}}return a},G=(()=>{const t=new Map;for(const e of b)t.set(e.toLowerCase(),e);return t})(),ae=()=>C.map(t=>t.name),ce=(t,e)=>{if(t===void 0)return;const n=t.trim().toLowerCase();if(n===""||n==="none")return new Set;if(n==="all")return new Set(b);const s=new Set;for(const a of t.split(",").map(r=>r.trim()).filter(r=>r.length>0)){const r=a.replace(/^_+/,"").replaceAll(/_+([a-z])/g,(i,o)=>o.toUpperCase()),c=G.get(r.toLowerCase());c===void 0?e?.(a):s.add(c)}return s};export{oe as c,re as e,ae as g,ce as p,P as s};
1
+ import{m as h,D as k,f as S}from"./provenance-CRBV9cko.js";import{g as $}from"./packument-CtVAoNo7.js";import{H as d}from"./en-C26W78--.js";import{W as N}from"./build-scripts-CfAqHBlq.js";import{n as v}from"./license-t5KnNX6v.js";import{A as R,B as L,v as D}from"./index-2LCHaVNX.js";import{D as A}from"./package-version-TsxLc6w2.js";import"./public-api-WqUCiyIe.js";import{L as w}from"./dependency-scan-DZcSlSFp.js";const m={CRITICAL:0,HIGH:1,LOW:3,MODERATE:2,UNKNOWN:4},oe=(t,e)=>{const n=m[(t.vulnerability.severity??"UNKNOWN").toUpperCase()]??4,s=m[(e.vulnerability.severity??"UNKNOWN").toUpperCase()]??4;return n-s||t.packageName.localeCompare(e.packageName)||t.packageVersion.localeCompare(e.packageVersion)},P=(t,e)=>{const n=m[e.toUpperCase()]??2;return(m[t.toUpperCase()]??4)<=n},b=["firstSeen","installScripts","license","malware","publisherChange","score","unexpectedDeps","vulnerability"],g=6e4,W=(t,e,n)=>{for(const s of n)if(s===t||s===`${t}@${e}`||s.endsWith("*")&&t.startsWith(s.slice(0,-1)))return!0;return!1},x=async(t,e)=>{const n=e.security?.policies?.firstSeen;if(n?.minutes===void 0||n.minutes<=0)return[];const{minutes:s}=n,a=n.exclude??[],r=e.security?.acceptedRisks,c=s*g,i=Date.now();return(await h(t.packages,k,async o=>{if(W(o.name,o.version,a))return;const l=await $(o.name,{workspaceRoot:t.workspaceRoot});if(l===void 0)return;const p=l.time?.[o.version];if(p===void 0)return;const u=Date.parse(p);if(Number.isNaN(u))return;const f=i-u;if(f>=c)return;const y=Math.max(0,Math.floor(f/g));return{acceptedRisk:d(o.name,o.version,r,"firstSeen"),data:{ageMinutes:y,minimumMinutes:s,publishedAt:p},packageName:o.name,policy:"firstSeen",reason:`${o.name}@${o.version} was published ${String(y)} min ago — below the ${String(s)} min firstSeen cooldown.`,severity:"block",version:o.version}})).filter(o=>o!==void 0)},O=(t,e)=>{const n=e.security?.policies?.installScripts;if(!n)return[];const s=n.allow??{},a=n.strict===!0;if(!a&&Object.keys(s).length===0)return[];const r=N(t.workspaceRoot,s,{pinVersions:e.security?.pinVersions===!0});if(r.unapproved.length===0)return[];const c=e.security?.acceptedRisks,i=a?"block":"warn";return r.unapproved.map(o=>({acceptedRisk:d(o.name,o.version??"*",c,"installScripts"),data:{hooks:o.hooks},packageName:o.name,policy:"installScripts",reason:`${o.name}${o.version?`@${o.version}`:""} declares unapproved build script(s): ${o.hooks.join(", ")}`,severity:i,version:o.version??"*"}))},U=new Set(["AND","OR"]),E=t=>{const e=t.replaceAll("("," ").replaceAll(")"," ").split(/\s+/).map(a=>a.trim()).filter(a=>a.length>0),n=[];let s=!1;for(const a of e){const r=a.toUpperCase();if(s){s=!1;continue}if(r==="WITH"){s=!0;continue}if(U.has(r))continue;const c=a.endsWith("+"),i=c?a.slice(0,-1):a,o=v(i)??i;n.push(o),c&&n.push(`${o}-or-later`)}return n},F=t=>{if(typeof t.license=="string"){const e=t.license.trim();return e.length>0?e:void 0}if(t.license&&typeof t.license=="object"&&typeof t.license.type=="string"){const e=t.license.type.trim();if(e.length>0)return e}if(Array.isArray(t.licenses)&&t.licenses.length>0){const e=t.licenses.map(n=>n&&typeof n.type=="string"?n.type.trim():"").filter(n=>n.length>0);if(e.length>0)return e.length===1?e[0]:`(${e.join(" OR ")})`}},I=(t,e)=>{if(e.length===0)return;const n=new Set(e.map(s=>v(s)??s).map(s=>s.toLowerCase()));for(const s of t)if(n.has(s.toLowerCase()))return s},M=(t,e)=>{if(e.length===0)return;const n=new Set(e.map(s=>v(s)??s).map(s=>s.toLowerCase()));for(const s of t)if(!n.has(s.toLowerCase()))return s},V=(t,e)=>{const n=e.security?.policies?.license;if(!n)return[];const s=n.allow??[],a=n.deny??[];if(s.length===0&&a.length===0)return[];const r=e.security?.acceptedRisks,c=[];for(const i of t.packages){const o=t.manifestData?.get(`${i.name}@${i.version}`),l=o?F(o):void 0;if(!l){s.length>0&&c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{declaredLicense:null},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} declares no license; allow-list mode requires one of: ${s.join(", ")}`,severity:"block",version:i.version});continue}const p=E(l),u=I(p,a);if(u){c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{declaredLicense:l,deniedLicense:u},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} uses denied license '${u}' (declared: ${l})`,severity:"block",version:i.version});continue}const f=M(p,s);f&&c.push({acceptedRisk:d(i.name,i.version,r,"license"),data:{allowList:s,declaredLicense:l,unallowedLicense:f},packageName:i.name,policy:"license",reason:`${i.name}@${i.version} uses license '${f}' which is not on the allow-list (declared: ${l})`,severity:"block",version:i.version})}return c},j=6e4,_=(t,e,n)=>{for(const s of n)if(s===t||s===`${t}@${e}`||s.endsWith("*")&&t.startsWith(s.slice(0,-1)))return!0;return!1},H=async(t,e)=>{const n=e.security?.policies?.publisherChange;if(n?.mode!=="no-downgrade")return[];const s=n.exclude??[],a=typeof n.ignoreAfter=="number"?n.ignoreAfter*j:void 0,r=e.security?.acceptedRisks,c=Date.now();return(await h(t.packages,k,async i=>{if(_(i.name,i.version,s))return;const o=await $(i.name,{workspaceRoot:t.workspaceRoot});if(o===void 0)return;if(a!==void 0){const p=o.time?.[i.version],u=p===void 0?Number.NaN:Date.parse(p);if(!Number.isNaN(u)&&c-u>a)return}if(o.versions[i.version]?.dist?.attestations?.provenance!==void 0)return;const l=S(o,i.version);if(l!==void 0)return{acceptedRisk:d(i.name,i.version,r,"publisherChange"),data:{priorVersionWithProvenance:l},packageName:i.name,policy:"publisherChange",reason:`${i.name}@${i.version} dropped the provenance attestation that ${i.name}@${l} carried — publisher trust downgrade.`,severity:"block",version:i.version}})).filter(i=>i!==void 0)},T=t=>{for(const e of Object.values(w))for(const n of[e.file,...e.aliases??[]])if(t===n||t.endsWith(`/${n}`)||t.endsWith(`.${n}`))return e.type},K=(t,e,n)=>{const s=R(e)?e:L(t,e);let a;try{a=D(s)}catch{return}const r=T(s)??w[n]?.type;if(!r)return;const c=A(a,r);if(c.length===0)return;const i=new Set;for(const o of c)i.add(`${o.name}@${o.version}`);return i},z=(t,e)=>{for(const n of e)if(n===t||n.endsWith("*")&&t.startsWith(n.slice(0,-1)))return!0;return!1},Y=(t,e)=>{const n=e.security?.policies?.unexpectedDeps;if(!n)return[];const s=n.allow??[],a=n.baselineLockfile;if(s.length===0&&!a)return[];const r=a?K(t.workspaceRoot,a,t.packageManager):void 0,c=e.security?.acceptedRisks,i=[];for(const o of t.packages){const l=s.length===0||z(o.name,s),p=r?r.has(`${o.name}@${o.version}`):!0;if(l&&p)continue;const u=[],f={};l||(u.push(`not on allow-list (${s.length} entr${s.length===1?"y":"ies"})`),f.allowList=s),!p&&r&&(u.push(`not present in baseline lockfile (${a})`),f.baselineLockfile=a),i.push({acceptedRisk:d(o.name,o.version,c,"unexpectedDeps"),data:f,packageName:o.name,policy:"unexpectedDeps",reason:`${o.name}@${o.version} is unexpected: ${u.join("; ")}`,severity:"block",version:o.version})}return i},q=(t,e)=>{if(!t.osvFindings||t.osvFindings.size===0)return[];const n=e.security?.policies?.vulnerability?.failOn,s=e.security?.acceptedRisks,a=[];for(const r of t.packages){const c=t.osvFindings.get(r.name);if(!(!c||c.length===0))for(const i of c){const o=n?P(i.severity,n)?"block":"warn":"info";a.push({acceptedRisk:d(r.name,r.version,s,"vulnerability"),data:{advisoryId:i.id,aliases:i.aliases??[],cvssScore:i.cvssScore,fixedVersions:i.fixedVersions,severity:i.severity,summary:i.summary},packageName:r.name,policy:"vulnerability",reason:`${i.severity} ${i.id} affects ${r.name}@${r.version}: ${i.summary}`,severity:o,version:r.version})}}return a},C=[{evaluate:q,isConfigured:t=>t.security?.policies?.vulnerability!==void 0,name:"vulnerability",offlineSupported:!0,surfaces:["audit","doctor"]},{evaluate:V,isConfigured:t=>{const e=t.security?.policies?.license;return!!(e&&(e.allow&&e.allow.length>0||e.deny&&e.deny.length>0))},name:"license",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:O,isConfigured:t=>{const e=t.security?.policies?.installScripts;return!!(e&&(e.allow&&Object.keys(e.allow).length>0||e.strict===!0))},name:"installScripts",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:Y,isConfigured:t=>{const e=t.security?.policies?.unexpectedDeps;return!!(e&&(e.allow&&e.allow.length>0||typeof e.baselineLockfile=="string"))},name:"unexpectedDeps",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:x,isConfigured:t=>{const e=t.security?.policies?.firstSeen?.minutes;return typeof e=="number"&&e>0},name:"firstSeen",offlineSupported:!1,surfaces:["audit","doctor","install"]},{evaluate:H,isConfigured:t=>t.security?.policies?.publisherChange?.mode==="no-downgrade",name:"publisherChange",offlineSupported:!1,surfaces:["audit","doctor","install"]}],B=(t,e,n)=>C.filter(s=>s.surfaces.includes(t)?n!==void 0?n.has(s.name):s.isConfigured(e):!1),re=async(t,e,n)=>{const s=B(e,n.visConfig,n.enabledPolicies),a=[];for(const r of s){if(t.offline&&!r.offlineSupported){a.push({packageName:"*",policy:r.name,reason:`policy.${r.name} skipped: requires network (--offline)`,severity:"info",version:"*"});continue}try{const c=await r.evaluate(t,n.visConfig);a.push(...c)}catch(c){const i=c instanceof Error?c.message:String(c);a.push({packageName:"*",policy:r.name,reason:`policy.${r.name} failed: ${i}`,severity:"info",version:"*"})}}return a},G=(()=>{const t=new Map;for(const e of b)t.set(e.toLowerCase(),e);return t})(),ae=()=>C.map(t=>t.name),ce=(t,e)=>{if(t===void 0)return;const n=t.trim().toLowerCase();if(n===""||n==="none")return new Set;if(n==="all")return new Set(b);const s=new Set;for(const a of t.split(",").map(r=>r.trim()).filter(r=>r.length>0)){const r=a.replace(/^_+/,"").replaceAll(/_+([a-z])/g,(i,o)=>o.toUpperCase()),c=G.get(r.toLowerCase());c===void 0?e?.(a):s.add(c)}return s};export{oe as c,re as e,ae as g,ce as p,P as s};
@@ -1,4 +1,4 @@
1
- import{createRequire as Dt}from"node:module";import{t as fe,g as Tt,p as G,b as jt,i as Ae,a as Rt,h as Bt,c as Wt,u as Se}from"./package-version-DBJLduJL.js";const Ut=Dt(import.meta.url),ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vt=t=>{if(typeof ne<"u"&&ne.versions&&ne.versions.node){const[e,n]=ne.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return ne.getBuiltinModule(t)}return Ut(t)},{createRequire:Ce}=Vt("node:module"),zt=16,ge=32,Ft=64,j=128,he="positionals",qt=Ce(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gt=t=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[e,n]=ie.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return ie.getBuiltinModule(t)}return qt(t)},{createRequire:at}=Gt("node:module"),Ht=globalThis.process??Object.create(null),Me={versions:{}},ke=new Proxy(Ht,{get(t,e){if(e in t)return t[e];if(e in Me)return Me[e]}}),Jt=t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
1
+ import{createRequire as Dt}from"node:module";import{t as fe,g as Tt,p as G,b as jt,i as Ae,a as Rt,h as Bt,c as Wt,u as Se}from"./package-version-TsxLc6w2.js";const Ut=Dt(import.meta.url),ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vt=t=>{if(typeof ne<"u"&&ne.versions&&ne.versions.node){const[e,n]=ne.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return ne.getBuiltinModule(t)}return Ut(t)},{createRequire:Ce}=Vt("node:module"),zt=16,ge=32,Ft=64,j=128,he="positionals",qt=Ce(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gt=t=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[e,n]=ie.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return ie.getBuiltinModule(t)}return qt(t)},{createRequire:at}=Gt("node:module"),Ht=globalThis.process??Object.create(null),Me={versions:{}},ke=new Proxy(Ht,{get(t,e){if(e in t)return t[e];if(e in Me)return Me[e]}}),Jt=t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
2
  `),Kt=(t,e,n,i)=>{const s={column:0,line:-1,...t.start},o={...s,...t.end},c=s.line,a=s.column,u=o.line,r=o.column;let l=Math.max(c-(n+1),0),d=Math.min(e.length,u+i);c===-1&&(l=0),u===-1&&(d=e.length);const p=u-c,f={};if(p)for(let h=0;h<=p;h++){const g=h+c;if(!a)f[g]=!0;else if(h===0){const $=e[g-1]?.length;f[g]=[a,($??0)-a+1]}else if(h===p)f[g]=[0,r];else{const $=e[g-h]?.length;f[g]=[0,$]}}else a===r?f[c]=a?[a,0]:!0:f[c]=[a,(r??0)-(a??0)];return{end:d,markerLines:f,start:l}},Yt=ke.platform==="win32"&&!ke.env?.WT_SESSION?">":"❯",Xt=(t,e,n)=>{const i={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...n,color:{gutter:h=>h,marker:h=>h,message:h=>h,...n?.color}},s=typeof e.start.column=="number";let o=(t.includes("\r")?Jt(t):t).split(`
3
3
  `);typeof i.tabWidth=="number"&&t.includes(" ")&&(o=o.map(h=>h.replaceAll(" "," ".repeat(i.tabWidth))));const{end:c,markerLines:a,start:u}=Kt(e,o,i.linesAbove,i.linesBelow),r=String(c).length,{gutter:l,marker:d,message:p}=i.color;let f=o.slice(u,c).map((h,g)=>{const $=u+1+g,w=a[$],y=String($).padStart(r),x=!a[$+1],N=` ${y}${i.showGutter?" |":""}`;if(w){let E="";if(Array.isArray(w)){const I=h.replaceAll(/[^\t]/g," ").slice(0,Math.max(w[0]-1,0)),O=w[1]||1;E=[`
4
4
  `,i.prefix+l(N.replaceAll(/\d/g," "))," ",I,d("^").repeat(O)].join(""),x&&i.message&&(E+=` ${p(i.message)}`)}return[i.prefix+d(Yt),l(N),h.length>0?` ${h}`:"",E].join("")}return`${i.prefix} ${l(N)}${h.length>0?` ${h}`:""}`}).join(`
@@ -1,2 +1,2 @@
1
- import{createRequire as A}from"node:module";import{c as L,L as N,m as c,d as W,b as C}from"./index-D75r1yKp.js";import{e as U}from"./en-BRcjb70R.js";import{N as X}from"./readJsonSync-DuMMeB3s-wlhgSHes.js";import{withEnhancedPath as ot}from"@visulima/task-runner";const F=A(import.meta.url),d=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=t=>{if(typeof d<"u"&&d.versions&&d.versions.node){const[o,e]=d.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return d.getBuiltinModule(t)}return F(t)},{Socket:G}=l("node:net"),{randomBytes:V}=l("node:crypto"),{readdir:q,rm:k,unlink:v,open:B,readFile:Y,stat:z,writeFile:J,rename:K}=l("node:fs/promises"),{spawn:Q}=l("node:child_process"),{openSync:Z,closeSync:tt}=l("node:fs");async function $(t,o,e){const s=await L(t,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(s);const{beforeParse:r,color:n}={};return typeof r=="function"&&(i=r(i)),X(i,o,N(t),{color:n})}const et=3e4,E=100;class st extends Error{constructor(o,e){super(o),this.elapsedMs=e,this.name="ServiceReadinessError"}elapsedMs}const it=async t=>{const o=t.host??"127.0.0.1",{port:e}=t,s=t.timeoutMs??et,i=Date.now();for(;Date.now()-i<s;){if(await rt(o,e))return;await nt(E)}throw new st(`Timed out waiting for ${o}:${String(e)} to accept TCP connections (${String(s)}ms)`,Date.now()-i)},rt=(t,o)=>new Promise(e=>{const s=new G,i=r=>{s.removeAllListeners(),s.destroy(),e(r)};s.once("connect",()=>{i(!0)}),s.once("error",()=>{i(!1)}),s.setTimeout(E,()=>{i(!1)});try{s.connect(o,t)}catch{i(!1)}}),nt=t=>new Promise(o=>{setTimeout(o,t)}),at=async(t,o)=>{const e=t.readiness??(t.port===void 0?void 0:{tcp:{port:t.port}});e&&await it({host:e.tcp.host,port:e.tcp.port,timeoutMs:o?.timeoutMs??e.tcp.timeoutMs})},y=384,b=5e3,ct=50,ht=3e4,h=async t=>{const o=c(U(t),"services");try{await W(o)}catch(e){throw e.code==="ENOTDIR"?new Error(`Service registry path ${o} exists but is not a directory. Remove it or move the conflicting file before running \`vis service\`.`,{cause:e}):e}return o},_=t=>t.replaceAll("/","_").replaceAll(":","__"),g=(t,o)=>c(t,`${_(o)}.json`),dt=(t,o)=>c(t,`${_(o)}.lock`),u=async(t,o)=>{const e=await h(t),s=g(e,o);if(await C(s))try{return await $(s)}catch{return}},ft=async t=>{const o=await h(t);let e;try{e=await q(o)}catch{return[]}const s=[];for(const i of e)if(i.endsWith(".json"))try{const r=await $(c(o,i));s.push(r)}catch{}return s},lt=async(t,o)=>{const e=await h(t),s=g(e,o.id),i=c(e,`.${V(8).toString("hex")}.tmp`);await J(i,`${JSON.stringify(o,void 0,2)}
1
+ import{createRequire as A}from"node:module";import{c as L,L as N,m as c,d as W,b as C}from"./index-2LCHaVNX.js";import{e as U}from"./en-C26W78--.js";import{N as X}from"./readJsonSync-DuMMeB3s-B9cGBVbJ.js";import{withEnhancedPath as ot}from"@visulima/task-runner";const F=A(import.meta.url),d=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=t=>{if(typeof d<"u"&&d.versions&&d.versions.node){const[o,e]=d.versions.node.split(".").map(Number);if(o>22||o===22&&e>=3||o===20&&e>=16)return d.getBuiltinModule(t)}return F(t)},{Socket:G}=l("node:net"),{randomBytes:V}=l("node:crypto"),{readdir:q,rm:k,unlink:v,open:B,readFile:Y,stat:z,writeFile:J,rename:K}=l("node:fs/promises"),{spawn:Q}=l("node:child_process"),{openSync:Z,closeSync:tt}=l("node:fs");async function $(t,o,e){const s=await L(t,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(s);const{beforeParse:r,color:n}={};return typeof r=="function"&&(i=r(i)),X(i,o,N(t),{color:n})}const et=3e4,E=100;class st extends Error{constructor(o,e){super(o),this.elapsedMs=e,this.name="ServiceReadinessError"}elapsedMs}const it=async t=>{const o=t.host??"127.0.0.1",{port:e}=t,s=t.timeoutMs??et,i=Date.now();for(;Date.now()-i<s;){if(await rt(o,e))return;await nt(E)}throw new st(`Timed out waiting for ${o}:${String(e)} to accept TCP connections (${String(s)}ms)`,Date.now()-i)},rt=(t,o)=>new Promise(e=>{const s=new G,i=r=>{s.removeAllListeners(),s.destroy(),e(r)};s.once("connect",()=>{i(!0)}),s.once("error",()=>{i(!1)}),s.setTimeout(E,()=>{i(!1)});try{s.connect(o,t)}catch{i(!1)}}),nt=t=>new Promise(o=>{setTimeout(o,t)}),at=async(t,o)=>{const e=t.readiness??(t.port===void 0?void 0:{tcp:{port:t.port}});e&&await it({host:e.tcp.host,port:e.tcp.port,timeoutMs:o?.timeoutMs??e.tcp.timeoutMs})},y=384,b=5e3,ct=50,ht=3e4,h=async t=>{const o=c(U(t),"services");try{await W(o)}catch(e){throw e.code==="ENOTDIR"?new Error(`Service registry path ${o} exists but is not a directory. Remove it or move the conflicting file before running \`vis service\`.`,{cause:e}):e}return o},_=t=>t.replaceAll("/","_").replaceAll(":","__"),g=(t,o)=>c(t,`${_(o)}.json`),dt=(t,o)=>c(t,`${_(o)}.lock`),u=async(t,o)=>{const e=await h(t),s=g(e,o);if(await C(s))try{return await $(s)}catch{return}},ft=async t=>{const o=await h(t);let e;try{e=await q(o)}catch{return[]}const s=[];for(const i of e)if(i.endsWith(".json"))try{const r=await $(c(o,i));s.push(r)}catch{}return s},lt=async(t,o)=>{const e=await h(t),s=g(e,o.id),i=c(e,`.${V(8).toString("hex")}.tmp`);await J(i,`${JSON.stringify(o,void 0,2)}
2
2
  `,{mode:y});try{await kt(i,s)}catch(r){throw await k(i,{force:!0}).catch(()=>{}),r}},ut=new Set(["EACCES","EBUSY","EPERM"]),pt=8,wt=20,kt=async(t,o)=>{let e=0;for(;;)try{await K(t,o);return}catch(s){const{code:i}=s;if(!(i!==void 0&&ut.has(i))||e>=pt)throw s;const r=wt*2**e;await new Promise(n=>{setTimeout(n,r)}),e+=1}},f=async(t,o,e)=>{const s=await h(t),i=e??await u(t,o);await k(g(s,o),{force:!0}),i&&await k(i.logFile,{force:!0}).catch(()=>{})},a=t=>{try{return process.kill(t,0),!0}catch{return!1}},Dt=async t=>{const o=await ft(t),e=[],s=[];for(const i of o){if(a(i.pid)){s.push(i);continue}const r=await u(t,i.id);if(r&&r.pid!==i.pid){s.push(r);continue}await f(t,i.id,i).catch(()=>{}),e.push(i.id)}return{pruned:e,surviving:s}},mt=t=>new Promise(o=>{setTimeout(o,t)}),yt=async t=>{try{const o=await B(t,"wx",y);try{await o.writeFile(String(process.pid))}finally{await o.close().catch(()=>{})}return!0}catch(o){if(o.code==="EEXIST")return!1;throw o}},_t=async t=>{let o;try{const e=await Y(t,"utf8"),s=Number.parseInt(e.trim(),10);o=Number.isFinite(s)?s:void 0}catch{return!0}if(o!==void 0&&!a(o))return!0;try{const e=await z(t);return Date.now()-e.mtimeMs>ht}catch{return!0}},M=async(t,o,e)=>{const s=await h(t),i=dt(s,o),r=Date.now();for(;!await yt(i);){if(await _t(i)){await v(i).catch(()=>{});continue}if(Date.now()-r>=b)throw new Error(`Could not acquire service lock for ${o} within ${String(b)}ms — another \`vis service\` invocation appears to be holding it.`);await mt(ct)}try{return await e()}finally{await v(i).catch(()=>{})}};function m(t,o={},e){for(const s in t){const i=t[s],r=e?`${e}:${s}`:s;typeof i=="object"&&i!==null?m(i,o,r):typeof i=="function"&&(o[r]=i)}return o}const R=(()=>{if(console.createTask)return console.createTask;const t={run:o=>o()};return()=>t})();function T(t,o,e,s){for(let i=e;i<t.length;i+=1)try{const r=s?s.run(()=>t[i](...o)):t[i](...o);if(r&&typeof r.then=="function")return Promise.resolve(r).then(()=>T(t,o,i+1,s))}catch(r){return Promise.reject(r)}}function gt(t,o,e){if(t.length>0)return T(t,o,0,R(e))}function vt(t,o,e){if(t.length>0){const s=R(e);return Promise.all(t.map(i=>s.run(()=>i(...o))))}}function w(t,o){for(const e of[...t])e(o)}var bt=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,o,e={}){if(!t||typeof o!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!e.allowDeprecated){let r=i.message;r||(r=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(r)||(console.warn(r),this._deprecatedMessages.add(r))}if(!o.name)try{Object.defineProperty(o,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(o),()=>{o&&(this.removeHook(t,o),o=void 0)}}hookOnce(t,o){let e,s=(...i)=>(typeof e=="function"&&e(),e=void 0,s=void 0,o(...i));return e=this.hook(t,s),e}removeHook(t,o){const e=this._hooks[t];if(e){const s=e.indexOf(o);s!==-1&&e.splice(s,1),e.length===0&&(this._hooks[t]=void 0)}}clearHook(t){this._hooks[t]=void 0}deprecateHook(t,o){this._deprecatedHooks[t]=typeof o=="string"?{to:o}:o;const e=this._hooks[t]||[];this._hooks[t]=void 0;for(const s of e)this.hook(t,s)}deprecateHooks(t){for(const o in t)this.deprecateHook(o,t[o])}addHooks(t){const o=m(t),e=Object.keys(o).map(s=>this.hook(s,o[s]));return()=>{for(const s of e)s();e.length=0}}removeHooks(t){const o=m(t);for(const e in o)this.removeHook(e,o[e])}removeAllHooks(){this._hooks={}}callHook(t,...o){return this.callHookWith(gt,t,o)}callHookParallel(t,...o){return this.callHookWith(vt,t,o)}callHookWith(t,o,e){const s=this._before||this._after?{name:o,args:e,context:{}}:void 0;this._before&&w(this._before,s);const i=t(this._hooks[o]?[...this._hooks[o]]:[],e,o);return i instanceof Promise?i.finally(()=>{this._after&&s&&w(this._after,s)}):(this._after&&s&&w(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const o=this._before.indexOf(t);o!==-1&&this._before.splice(o,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const o=this._after.indexOf(t);o!==-1&&this._after.splice(o,1)}}}};function St(){return new bt}const xt=()=>St(),Ot=async(t,o)=>{if(!(!o||o.length===0))for(const e of o){if(e.hooks)for(const[s,i]of Object.entries(e.hooks)){const r=Array.isArray(i)?i:[i];for(const n of r)t.hook(s,n)}e.setup&&await e.setup(t)}};class jt{#e;#o;#s=new Map;constructor(o,e){this.#e=o,this.#o=e}startTasks(o){for(const e of o)this.#s.set(e.id,e),this.#t("task:before",e)}endTasks(o){for(const e of o)this.#s.delete(e.task.id),this.#t("task:after",e.task,e),e.status==="failure"?this.#t("task:failure",e.task,e):Ht(e.status)&&this.#t("task:cacheHit",e.task,e)}printCacheMiss(o,e){this.#t("task:cacheMiss",o,e)}onTaskStdout(o,e){this.#t("task:stdout",o,e)}onTaskStderr(o,e){this.#t("task:stderr",o,e)}#t(o,...e){Promise.resolve(this.#e.callHook(o,...e)).catch(s=>{if(this.#o)try{this.#o(o,s)}catch{}})}}const Ht=t=>t==="local-cache"||t==="local-cache-kept-existing"||t==="remote-cache",S=process.platform==="win32",$t=async t=>{const{command:o,cwd:e,env:s,logFile:i}=t,r=Z(i,"a",y);let n;const p=S?"cmd":"/bin/sh",x=S?["/d","/s","/c",o]:["-c",o];try{n=Q(p,x,{cwd:e,detached:!0,env:ot({...process.env,...s},e),stdio:["ignore",r,r],windowsHide:!0})}finally{tt(r)}if(n.pid===void 0&&await new Promise((O,j)=>{n.once("spawn",()=>{O()}),n.once("error",I=>{j(I)})}),n.pid===void 0)throw new Error(`Failed to spawn detached process for command: ${o}`);return n.unref(),{pid:n.pid}},P=5e3,It=async t=>M(t.workspaceRoot,t.id,async()=>{const o=await u(t.workspaceRoot,t.id);if(o&&a(o.pid))throw new Error(`Service ${t.id} is already running (pid ${String(o.pid)})`);o&&await f(t.workspaceRoot,t.id,o);const e=await h(t.workspaceRoot),s=_(t.id),i=c(e,`${s}.log`),{pid:r}=await $t({command:t.command,cwd:t.cwd,env:t.env,logFile:i}),n={command:t.command,config:t.config,cwd:t.cwd,env:t.config.env??{},id:t.id,logFile:i,pid:r,slug:s,startedAt:new Date().toISOString(),visVersion:process.env.VIS_VERSION??"0.0.0"};if(await lt(t.workspaceRoot,n),t.skipReadiness!==!0)try{await at(t.config,{timeoutMs:t.readinessTimeoutMs})}catch(p){throw await D(r,t.config.killGracePeriodMs??P).catch(()=>{}),await f(t.workspaceRoot,t.id,n).catch(()=>{}),p}return{entry:n}}),At=async t=>M(t.workspaceRoot,t.id,async()=>{const o=await u(t.workspaceRoot,t.id);if(!o)return{stopped:!1};if(!a(o.pid))return await f(t.workspaceRoot,t.id,o),{stopped:!1};const e=t.graceMs??o.config.killGracePeriodMs??P;return await D(o.pid,e),await f(t.workspaceRoot,t.id,o),{stopped:!0}}),D=async(t,o)=>{H(t,"SIGTERM");const e=Date.now();for(;Date.now()-e<o;){if(!a(t))return;await new Promise(s=>{setTimeout(s,100)})}a(t)&&H(t,"SIGKILL")},H=(t,o)=>{try{process.platform==="win32"?process.kill(t,o):process.kill(-t,o)}catch(e){if(e.code==="ESRCH")return;throw e}};export{jt as H,st as S,It as a,at as b,ft as c,xt as d,Ot as e,f,a as i,Dt as p,u as r,At as s};
@@ -1 +1 @@
1
- import{createRequire as f}from"node:module";import{m as c}from"./index-D75r1yKp.js";const p=f(import.meta.url),a=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=n=>{if(typeof a<"u"&&a.versions&&a.versions.node){const[t,e]=a.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return a.getBuiltinModule(n)}return p(n)},{statSync:m,existsSync:d}=k("node:fs"),g={aube:["aube-lock.yaml"],bun:["bun.lock","bun.lockb"],npm:["npm-shrinkwrap.json","package-lock.json"],pnpm:["pnpm-lock.yaml"],yarn:["yarn.lock"]},b={aube:["node_modules/.aube-state","node_modules/.modules.yaml"],bun:["node_modules/.bun-tag"],npm:["node_modules/.package-lock.json"],pnpm:["node_modules/.modules.yaml","node_modules/.pnpm/lock.yaml"],yarn:["node_modules/.yarn-integrity","node_modules/.yarn-state.yml",".yarn/install-state.gz"]},y={ci:{aube:"aube ci",bun:"bun install --frozen-lockfile",npm:"npm ci",pnpm:"pnpm install --frozen-lockfile",yarn:"yarn install --immutable"},tty:{aube:"aube install",bun:"bun install",npm:"npm install",pnpm:"pnpm install",yarn:"yarn install"}},h=1e3,_=n=>{for(const[t,e]of Object.entries(g))for(const s of e)if(d(c(n,s)))return{lockfileFile:s,manager:t}},M=(n,t)=>{let e;for(const s of b[t]){const o=c(n,s);if(!d(o))continue;const{mtimeMs:i}=m(o);(!e||i>e.mtimeMs)&&(e={mtimeMs:i,path:s})}return e},j=(n,t={})=>{const e=_(n);if(!e)return{checked:!1};const{lockfileFile:s,manager:o}=e,i=m(c(n,s)).mtimeMs,l=M(n,o),u=y[t.inCi?"ci":"tty"][o],r={installMarkerMtimeMs:l?.mtimeMs,lockfileMtimeMs:i,lockfilePath:s,marker:l?.path,packageManager:o};return l?i>l.mtimeMs+h?{checked:!0,detail:r,failure:"stale-install",message:`${s} is newer than node_modules (${l.path}) — run \`${u}\` to sync.`}:{checked:!0,detail:r}:{checked:!0,detail:r,failure:"missing-install",message:`lockfile detected but node_modules looks uninitialised — run \`${u}\` before \`vis run\`.`}},v=(n,t,e,s={})=>{if(s.skip)return{checked:!1,shouldContinue:!0};const o=j(n,{inCi:t});if(!o.failure)return{...o,shouldContinue:!0};const i=`preflight: ${o.message??"lockfile drift detected"}`;return t&&!s.ciAsWarning?{...o,formattedMessage:i,shouldContinue:!1}:(e.warn(i),{...o,formattedMessage:i,shouldContinue:!0})};export{_ as d,v as r};
1
+ import{createRequire as f}from"node:module";import{m as c}from"./index-2LCHaVNX.js";const p=f(import.meta.url),a=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=n=>{if(typeof a<"u"&&a.versions&&a.versions.node){const[t,e]=a.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return a.getBuiltinModule(n)}return p(n)},{statSync:m,existsSync:d}=k("node:fs"),g={aube:["aube-lock.yaml"],bun:["bun.lock","bun.lockb"],npm:["npm-shrinkwrap.json","package-lock.json"],pnpm:["pnpm-lock.yaml"],yarn:["yarn.lock"]},b={aube:["node_modules/.aube-state","node_modules/.modules.yaml"],bun:["node_modules/.bun-tag"],npm:["node_modules/.package-lock.json"],pnpm:["node_modules/.modules.yaml","node_modules/.pnpm/lock.yaml"],yarn:["node_modules/.yarn-integrity","node_modules/.yarn-state.yml",".yarn/install-state.gz"]},y={ci:{aube:"aube ci",bun:"bun install --frozen-lockfile",npm:"npm ci",pnpm:"pnpm install --frozen-lockfile",yarn:"yarn install --immutable"},tty:{aube:"aube install",bun:"bun install",npm:"npm install",pnpm:"pnpm install",yarn:"yarn install"}},h=1e3,_=n=>{for(const[t,e]of Object.entries(g))for(const s of e)if(d(c(n,s)))return{lockfileFile:s,manager:t}},M=(n,t)=>{let e;for(const s of b[t]){const o=c(n,s);if(!d(o))continue;const{mtimeMs:i}=m(o);(!e||i>e.mtimeMs)&&(e={mtimeMs:i,path:s})}return e},j=(n,t={})=>{const e=_(n);if(!e)return{checked:!1};const{lockfileFile:s,manager:o}=e,i=m(c(n,s)).mtimeMs,l=M(n,o),u=y[t.inCi?"ci":"tty"][o],r={installMarkerMtimeMs:l?.mtimeMs,lockfileMtimeMs:i,lockfilePath:s,marker:l?.path,packageManager:o};return l?i>l.mtimeMs+h?{checked:!0,detail:r,failure:"stale-install",message:`${s} is newer than node_modules (${l.path}) — run \`${u}\` to sync.`}:{checked:!0,detail:r}:{checked:!0,detail:r,failure:"missing-install",message:`lockfile detected but node_modules looks uninitialised — run \`${u}\` before \`vis run\`.`}},v=(n,t,e,s={})=>{if(s.skip)return{checked:!1,shouldContinue:!0};const o=j(n,{inCi:t});if(!o.failure)return{...o,shouldContinue:!0};const i=`preflight: ${o.message??"lockfile drift detected"}`;return t&&!s.ciAsWarning?{...o,formattedMessage:i,shouldContinue:!1}:(e.warn(i),{...o,formattedMessage:i,shouldContinue:!0})};export{_ as d,v as r};
@@ -1 +1 @@
1
- import{createRequire as j}from"node:module";import{m as d,f as y}from"./index-D75r1yKp.js";import{a as A}from"./readJsonSync-DuMMeB3s-wlhgSHes.js";const M=j(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,b=i=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[e,t]=l.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return l.getBuiltinModule(i)}return M(i)},{readdirSync:_,lstatSync:S}=b("node:fs"),$=/^([^<(]+?)?(?:<([^>]+)>)?\s*(?:\(([^)]+)\))?\s*$/u,q=i=>{const e=i.match($);if(!e)return;const t=e[1]?.trim(),n=e[2]?.trim(),o=e[3]?.trim();if(!(!t&&!n&&!o))return{email:n||void 0,name:t||void 0,url:o||void 0}},w=i=>{if(!Array.isArray(i)||i.length===0)return;const e=[];for(const t of i)if(typeof t=="string"){const n=q(t);n&&e.push(n)}else if(t&&typeof t=="object"){const n=t,o=typeof n.name=="string"?n.name:void 0,r=typeof n.email=="string"?n.email:void 0,f=typeof n.url=="string"?n.url:void 0;(o||r||f)&&e.push({email:r,name:o,url:f})}return e.length>0?e:void 0},D=i=>{const e=d(i,"node_modules");if(!y(e))return new Map;const t=new Map,n=new Set,o=(r,f="")=>{if(n.has(r))return;n.add(r);let v;try{v=_(r)}catch{return}for(const a of v){const c=d(r,a);let m;try{m=S(c)}catch{continue}if(m.isSymbolicLink())continue;if(a.startsWith("@")){m.isDirectory()&&o(c,`${a}/`);continue}if(a===".pnpm"&&f===""){let s;try{s=_(c)}catch{continue}for(const p of s){const u=d(c,p,"node_modules");y(u)&&o(u)}continue}if(a.startsWith(".")||!m.isDirectory())continue;const g=f+a,h=d(c,"package.json");try{if(!y(h))continue;const s=A(h);if(typeof s.version!="string")continue;const p=`${g}@${s.version}`;t.has(p)||t.set(p,{directory:c,license:s.license,licenses:Array.isArray(s.licenses)?s.licenses:void 0,maintainers:w(s.maintainers),name:g,scripts:s.scripts&&typeof s.scripts=="object"?s.scripts:void 0,version:s.version});const u=d(c,"node_modules");y(u)&&o(u)}catch{}}};return o(e),t};export{w as n,D as r};
1
+ import{createRequire as j}from"node:module";import{m as d,f as y}from"./index-2LCHaVNX.js";import{a as A}from"./readJsonSync-DuMMeB3s-B9cGBVbJ.js";const M=j(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,b=i=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[e,t]=l.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return l.getBuiltinModule(i)}return M(i)},{readdirSync:_,lstatSync:S}=b("node:fs"),$=/^([^<(]+?)?(?:<([^>]+)>)?\s*(?:\(([^)]+)\))?\s*$/u,q=i=>{const e=i.match($);if(!e)return;const t=e[1]?.trim(),n=e[2]?.trim(),o=e[3]?.trim();if(!(!t&&!n&&!o))return{email:n||void 0,name:t||void 0,url:o||void 0}},w=i=>{if(!Array.isArray(i)||i.length===0)return;const e=[];for(const t of i)if(typeof t=="string"){const n=q(t);n&&e.push(n)}else if(t&&typeof t=="object"){const n=t,o=typeof n.name=="string"?n.name:void 0,r=typeof n.email=="string"?n.email:void 0,f=typeof n.url=="string"?n.url:void 0;(o||r||f)&&e.push({email:r,name:o,url:f})}return e.length>0?e:void 0},D=i=>{const e=d(i,"node_modules");if(!y(e))return new Map;const t=new Map,n=new Set,o=(r,f="")=>{if(n.has(r))return;n.add(r);let v;try{v=_(r)}catch{return}for(const a of v){const c=d(r,a);let m;try{m=S(c)}catch{continue}if(m.isSymbolicLink())continue;if(a.startsWith("@")){m.isDirectory()&&o(c,`${a}/`);continue}if(a===".pnpm"&&f===""){let s;try{s=_(c)}catch{continue}for(const p of s){const u=d(c,p,"node_modules");y(u)&&o(u)}continue}if(a.startsWith(".")||!m.isDirectory())continue;const g=f+a,h=d(c,"package.json");try{if(!y(h))continue;const s=A(h);if(typeof s.version!="string")continue;const p=`${g}@${s.version}`;t.has(p)||t.set(p,{directory:c,license:s.license,licenses:Array.isArray(s.licenses)?s.licenses:void 0,maintainers:w(s.maintainers),name:g,scripts:s.scripts&&typeof s.scripts=="object"?s.scripts:void 0,version:s.version});const u=d(c,"node_modules");y(u)&&o(u)}catch{}}};return o(e),t};export{w as n,D as r};
@@ -1,4 +1,4 @@
1
- import{m as d,f as u,v as o,T as $}from"./index-D75r1yKp.js";import{a as k}from"../packem_chunks/cli-main.js";const E=(x,g,h,m=[])=>{const t=[];if(h===void 0)return t.push("minimumReleaseAge not set in vis.config; skipping native sync."),t;const l=Number.isFinite(h)?Math.max(0,Math.round(h)):0;switch(x){case"bun":{const n=d(g,"bunfig.toml");let e=u(n)?o(n):"";const a=l*60,i=`minimumReleaseAge = ${String(a)}`,s=m.length>0?`minimumReleaseAgeExcludes = [${m.map(p=>`"${p.replaceAll(String.raw`"`,String.raw`\"`)}"`).join(", ")}]`:void 0,c=/^\[install\][ \t]*\n/m.exec(e);if(c?.index===void 0){const p=s?`${i}
1
+ import{m as d,f as u,v as o,T as $}from"./index-2LCHaVNX.js";import{a as k}from"../packem_chunks/cli-main.js";const E=(x,g,h,m=[])=>{const t=[];if(h===void 0)return t.push("minimumReleaseAge not set in vis.config; skipping native sync."),t;const l=Number.isFinite(h)?Math.max(0,Math.round(h)):0;switch(x){case"bun":{const n=d(g,"bunfig.toml");let e=u(n)?o(n):"";const a=l*60,i=`minimumReleaseAge = ${String(a)}`,s=m.length>0?`minimumReleaseAgeExcludes = [${m.map(p=>`"${p.replaceAll(String.raw`"`,String.raw`\"`)}"`).join(", ")}]`:void 0,c=/^\[install\][ \t]*\n/m.exec(e);if(c?.index===void 0){const p=s?`${i}
2
2
  ${s}`:i;e=`${e.trimEnd()?`${e.trimEnd()}
3
3
 
4
4
  `:""}[install]
@@ -1 +1 @@
1
- import{f as a,m as h,B as l,I as f}from"./index-D75r1yKp.js";import{e as d,k as $}from"../packem_chunks/catalog.js";const k=/\/+$/,p=/node_modules/,u=/\.git/,g=/[$()+.?[\\\]^{|}]/g,S=/\/\*\*$|\/\*\/\*$/,W=(i,c)=>{const e=c.replace(k,"");if(e.startsWith("!"))return[];const n=[];if(e.endsWith("/*")){const s=e.slice(0,-2),t=l(i,s);if(!a(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path===t||r.name.startsWith(".")||n.push(h(s,r.name));return n}if(e.endsWith("/**")||e.endsWith("/*/*")){const s=e.replace(S,""),t=l(i,s);if(!a(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,skip:[p,u]})){if(r.path===t)continue;const m=r.path.slice(t.length+1);n.push(`${s}/${m}`)}return n}if(!e.includes("/")&&e.includes("*")){const s=e.replaceAll(g,String.raw`\$&`).replaceAll("*",".*"),t=new RegExp(`^${s}$`);for(const r of f(i,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path!==i&&t.test(r.name)&&n.push(r.name);return n}const o=l(i,e);return a(o)&&n.push(e),n},y=i=>{const c=d(i)??$(i)??[],e=new Set,n=[];for(const o of c)for(const s of W(i,o))s==="."||e.has(s)||(e.add(s),a(h(i,s,"package.json"))||n.push({packageDir:s}));return n};export{y as l};
1
+ import{f as a,m as h,B as l,I as f}from"./index-2LCHaVNX.js";import{E as d,j as $}from"../packem_chunks/catalog.js";const g=/\/+$/,p=/node_modules/,u=/\.git/,k=/[$()+.?[\\\]^{|}]/g,S=/\/\*\*$|\/\*\/\*$/,W=(i,c)=>{const e=c.replace(g,"");if(e.startsWith("!"))return[];const n=[];if(e.endsWith("/*")){const s=e.slice(0,-2),t=l(i,s);if(!a(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path===t||r.name.startsWith(".")||n.push(h(s,r.name));return n}if(e.endsWith("/**")||e.endsWith("/*/*")){const s=e.replace(S,""),t=l(i,s);if(!a(t))return[];for(const r of f(t,{includeFiles:!1,includeSymlinks:!1,skip:[p,u]})){if(r.path===t)continue;const m=r.path.slice(t.length+1);n.push(`${s}/${m}`)}return n}if(!e.includes("/")&&e.includes("*")){const s=e.replaceAll(k,String.raw`\$&`).replaceAll("*",".*"),t=new RegExp(`^${s}$`);for(const r of f(i,{includeFiles:!1,includeSymlinks:!1,maxDepth:1,skip:[p,u]}))r.path!==i&&t.test(r.name)&&n.push(r.name);return n}const o=l(i,e);return a(o)&&n.push(e),n},w=i=>{const c=d(i)??$(i)??[],e=new Set,n=[];for(const o of c)for(const s of W(i,o))s==="."||e.has(s)||(e.add(s),a(h(i,s,"package.json"))||n.push({packageDir:s}));return n};export{w as l};
@@ -1,4 +1,4 @@
1
- import{m as c,v as f,T as i,f as y,u as O}from"./index-D75r1yKp.js";import"./public-api-WqUCiyIe.js";import{n as C}from"../packem_chunks/cli-main.js";import{a as D}from"./readJsonSync-DuMMeB3s-wlhgSHes.js";const W=(E,a,o)=>{const s=[],$=Object.entries(o).filter(([,n])=>n).map(([n])=>n);switch(E){case"bun":{const n=c(a,"package.json");if(y(n))try{const e=D(n);e.trustedDependencies=$,i(n,`${JSON.stringify(e,null,2)}
1
+ import{m as c,v as f,T as i,f as y,u as O}from"./index-2LCHaVNX.js";import"./public-api-WqUCiyIe.js";import{n as C}from"../packem_chunks/cli-main.js";import{a as D}from"./readJsonSync-DuMMeB3s-B9cGBVbJ.js";const W=(E,a,o)=>{const s=[],$=Object.entries(o).filter(([,n])=>n).map(([n])=>n);switch(E){case"bun":{const n=c(a,"package.json");if(y(n))try{const e=D(n);e.trustedDependencies=$,i(n,`${JSON.stringify(e,null,2)}
2
2
  `),s.push(`Updated package.json trustedDependencies with ${$.length} packages`)}catch(e){s.push(`Failed to update package.json: ${e instanceof Error?e.message:String(e)}`)}break}case"npm":{const n=c(a,".npmrc");let e=y(n)?f(n):"";/^\s*ignore-scripts\s*=\s*true\s*$/m.test(e)?s.push(".npmrc already has ignore-scripts=true"):(e=`${e.trimEnd()}
3
3
  ignore-scripts=true
4
4
  `,i(n,e),s.push("Added ignore-scripts=true to .npmrc"));break}case"pnpm":{const n=c(a,"pnpm-workspace.yaml");if(!y(n)){s.push("pnpm-workspace.yaml not found. Cannot sync allowBuilds.");break}let e={},m=[];try{const t=O(n);e=t?.allowBuilds??{},m=Array.isArray(t?.onlyBuiltDependencies)?t.onlyBuiltDependencies:[]}catch{}const g={...e,...o},j=Object.keys(o).filter(t=>e[t]!==o[t]).length,d=$.toSorted((t,p)=>t.localeCompare(p)),k=[...new Set([...m,...d])].toSorted((t,p)=>t.localeCompare(p)),b=d.filter(t=>!m.includes(t)).length;if(j===0&&b===0)s.push(`All ${String(Object.keys(o).length)} allowBuilds entries already present in pnpm-workspace.yaml.`);else{const t=Object.keys(g).sort(),p=l=>l.startsWith("@")||l.includes("/")||/[:#\s]/.test(l),h=l=>p(l)?`'${l.replaceAll("'","''")}'`:l,u=`allowBuilds: