@visulima/vis 6.1.3 → 6.1.4

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 (193) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE.md +0 -29
  3. package/dashboard/dist/index.html +10 -10
  4. package/dist/bin.js +1 -1
  5. package/dist/binx.js +1 -1
  6. package/dist/config/index.d.ts +16 -10
  7. package/dist/generate/index.d.ts +25 -0
  8. package/dist/packem_chunks/CONFIG_FILES.js +6 -7
  9. package/dist/packem_chunks/bloom-status.js +1 -1
  10. package/dist/packem_chunks/bloom-sync.js +1 -1
  11. package/dist/packem_chunks/catalog2.js +7 -7
  12. package/dist/packem_chunks/cli-exec.js +1 -1
  13. package/dist/packem_chunks/cli-main.js +129 -129
  14. package/dist/packem_chunks/dispatch.js +1 -1
  15. package/dist/packem_chunks/fix.js +1 -1
  16. package/dist/packem_chunks/handler.js +1 -1
  17. package/dist/packem_chunks/handler10.js +5 -5
  18. package/dist/packem_chunks/handler11.js +1 -1
  19. package/dist/packem_chunks/handler12.js +1 -1
  20. package/dist/packem_chunks/handler13.js +1 -1
  21. package/dist/packem_chunks/handler14.js +1 -1
  22. package/dist/packem_chunks/handler15.js +1 -1
  23. package/dist/packem_chunks/handler16.js +1 -1
  24. package/dist/packem_chunks/handler17.js +1 -1
  25. package/dist/packem_chunks/handler18.js +1 -1
  26. package/dist/packem_chunks/handler19.js +1 -1
  27. package/dist/packem_chunks/handler2.js +1 -1
  28. package/dist/packem_chunks/handler20.js +1 -1
  29. package/dist/packem_chunks/handler21.js +1 -1
  30. package/dist/packem_chunks/handler22.js +1 -1
  31. package/dist/packem_chunks/handler23.js +1 -1
  32. package/dist/packem_chunks/handler24.js +1 -1
  33. package/dist/packem_chunks/handler25.js +1 -1
  34. package/dist/packem_chunks/handler26.js +1 -1
  35. package/dist/packem_chunks/handler27.js +1 -1
  36. package/dist/packem_chunks/handler28.js +1 -1
  37. package/dist/packem_chunks/handler29.js +1 -1
  38. package/dist/packem_chunks/handler3.js +2 -2
  39. package/dist/packem_chunks/handler30.js +1 -1
  40. package/dist/packem_chunks/handler4.js +1 -1
  41. package/dist/packem_chunks/handler40.js +1 -1
  42. package/dist/packem_chunks/handler5.js +1 -1
  43. package/dist/packem_chunks/handler50.js +2 -2
  44. package/dist/packem_chunks/handler51.js +1 -1
  45. package/dist/packem_chunks/handler52.js +1 -1
  46. package/dist/packem_chunks/handler53.js +1 -1
  47. package/dist/packem_chunks/handler54.js +2 -2
  48. package/dist/packem_chunks/handler55.js +1 -1
  49. package/dist/packem_chunks/handler56.js +1 -1
  50. package/dist/packem_chunks/handler58.js +1 -1
  51. package/dist/packem_chunks/handler59.js +1 -1
  52. package/dist/packem_chunks/handler6.js +1 -1
  53. package/dist/packem_chunks/handler60.js +4 -4
  54. package/dist/packem_chunks/handler61.js +2 -2
  55. package/dist/packem_chunks/handler62.js +1 -1
  56. package/dist/packem_chunks/handler63.js +2 -61
  57. package/dist/packem_chunks/handler64.js +61 -6
  58. package/dist/packem_chunks/handler65.js +6 -8
  59. package/dist/packem_chunks/handler66.js +8 -2
  60. package/dist/packem_chunks/handler67.js +2 -28
  61. package/dist/packem_chunks/handler68.js +28 -12
  62. package/dist/packem_chunks/handler69.js +12 -25
  63. package/dist/packem_chunks/handler7.js +1 -1
  64. package/dist/packem_chunks/handler70.js +25 -22
  65. package/dist/packem_chunks/handler71.js +22 -10
  66. package/dist/packem_chunks/handler72.js +10 -133
  67. package/dist/packem_chunks/handler73.js +133 -23
  68. package/dist/packem_chunks/handler74.js +23 -323
  69. package/dist/packem_chunks/handler75.js +274 -659
  70. package/dist/packem_chunks/handler76.js +13 -13
  71. package/dist/packem_chunks/handler77.js +12 -12
  72. package/dist/packem_chunks/handler78.js +1 -1
  73. package/dist/packem_chunks/handler79.js +69 -67
  74. package/dist/packem_chunks/handler8.js +1 -1
  75. package/dist/packem_chunks/handler9.js +1 -1
  76. package/dist/packem_chunks/heal-accept.js +1 -1
  77. package/dist/packem_chunks/heal.js +1 -1
  78. package/dist/packem_chunks/help-command.js +1 -1
  79. package/dist/packem_chunks/html.js +707 -0
  80. package/dist/packem_chunks/index4.js +1 -1
  81. package/dist/packem_chunks/index6.js +57 -51
  82. package/dist/packem_chunks/index7.js +2 -2
  83. package/dist/packem_chunks/keys-refresh.js +1 -1
  84. package/dist/packem_chunks/lean.js +1 -1
  85. package/dist/packem_chunks/list.js +1 -1
  86. package/dist/packem_chunks/loader.js +1 -1
  87. package/dist/packem_chunks/prune.js +1 -1
  88. package/dist/packem_chunks/run.js +1 -1
  89. package/dist/packem_chunks/status.js +1 -1
  90. package/dist/packem_chunks/sync.js +1 -1
  91. package/dist/packem_chunks/sync2.js +1 -1
  92. package/dist/packem_chunks/tripwire.js +1 -1
  93. package/dist/packem_chunks/ts-loader.js +1 -1
  94. package/dist/packem_chunks/verify-lockfile.js +1 -1
  95. package/dist/packem_shared/advisories-DHGJ6XhP.js +1 -0
  96. package/dist/packem_shared/affected-selection-DCT4CLex.js +1 -0
  97. package/dist/packem_shared/{affected-shas-B_kfSKss.js → affected-shas-CycHU3nr.js} +1 -1
  98. package/dist/packem_shared/{ai-analysis-qdksWsn1.js → ai-analysis-CO4rT3Nd.js} +1 -1
  99. package/dist/packem_shared/ai-cache-Dkb6me20.js +1 -0
  100. package/dist/packem_shared/{ai-fix-DEwd0QKC.js → ai-fix-C0OBhGDq.js} +1 -1
  101. package/dist/packem_shared/{augment-B9kSZuvW.js → augment-BSeqaai8.js} +1 -1
  102. package/dist/packem_shared/{bin-BND-N6AL.js → bin-DwACrJUJ.js} +1 -1
  103. package/dist/packem_shared/build-scripts-BeMIA-_q.js +1 -0
  104. package/dist/packem_shared/{command-runtime-HSsYGCQd.js → command-runtime-DG49t2MT.js} +1 -1
  105. package/dist/packem_shared/{dependency-scan-B1CU6P9M.js → dependency-scan-D8e370_h.js} +1 -1
  106. package/dist/packem_shared/detect-C-9o_BPB.js +1 -0
  107. package/dist/packem_shared/{docker-DXqV-07f.js → docker-vRDm2lHX.js} +1 -1
  108. package/dist/packem_shared/{ecosystem-gate-InIAzSPA.js → ecosystem-gate-DpO43yAS.js} +1 -1
  109. package/dist/packem_shared/env-BymuoTL8.js +4 -0
  110. package/dist/packem_shared/env-consistency-BDfAa56d.js +1 -0
  111. package/dist/packem_shared/{failure-log-DIsKBKaI.js → failure-log-BslhfaEO.js} +1 -1
  112. package/dist/packem_shared/glob-Cyk1H9ZL-6yDyaJwk.js +1 -0
  113. package/dist/packem_shared/{index-BzhrR_iC.js → index-0dnGN3GP.js} +1 -1
  114. package/dist/packem_shared/index-CIdjkZgt.js +1 -0
  115. package/dist/packem_shared/{index-BtVOr8mn.js → index-Cwxbl_pY.js} +1 -1
  116. package/dist/packem_shared/index-Doab17tq.js +1 -0
  117. package/dist/packem_shared/{isAccessibleSync-DYKTrrvc-C-_5cgwu.js → isAccessibleSync-DYKTrrvc-CBsMZhj-.js} +1 -1
  118. package/dist/packem_shared/{lifecycle-CQjeMPY0.js → lifecycle-Gy7mqMGg.js} +2 -2
  119. package/dist/packem_shared/{lockfile-CiUtEbnt.js → lockfile-DEWjBrlY.js} +1 -1
  120. package/dist/packem_shared/manifests-kE5OweNT.js +1 -0
  121. package/dist/packem_shared/{min-release-age-JViyQuBM.js → min-release-age-yvuPbJ8G.js} +1 -1
  122. package/dist/packem_shared/missing-package-json-CEEPXqYi.js +1 -0
  123. package/dist/packem_shared/{multi-eco-lockfiles-h_HBOpPX.js → multi-eco-lockfiles-D5tM7pkg.js} +1 -1
  124. package/dist/packem_shared/{native-config-sync-TdTWjVgI.js → native-config-sync-DDGt3vvd.js} +1 -1
  125. package/dist/packem_shared/{npmrc-CHsOyMvA.js → npmrc-CIvOb61L.js} +1 -1
  126. package/dist/packem_shared/{osv-BLj4LauP.js → osv-4kFhXIoW.js} +1 -1
  127. package/dist/packem_shared/osv-bloom-DU6avR2k.js +2 -0
  128. package/dist/packem_shared/package-version-x7sPg2TM.js +4 -0
  129. package/dist/packem_shared/packument-Dg8cIDYR.js +1 -0
  130. package/dist/packem_shared/{pm-runner-RM72mDZg.js → pm-runner-Dboj-wZG.js} +1 -1
  131. package/dist/packem_shared/{project-name-filter-C6ObyhZ4.js → project-name-filter-B3tKt-Pf.js} +1 -1
  132. package/dist/packem_shared/{provenance-SX1MxPUZ.js → provenance-BG5mu0H_.js} +1 -1
  133. package/dist/packem_shared/registry-CndByNx9.js +85 -0
  134. package/dist/packem_shared/registry-keys-CE-RZlp_.js +1 -0
  135. package/dist/packem_shared/{removeSync-g1D5kONg-LbjATA8v.js → removeSync-g1D5kONg-jOsRSIIv.js} +1 -1
  136. package/dist/packem_shared/{renderToString-DR0zDUjh-5WQEQBtg.js → renderToString-DR0zDUjh-DeiCwydO.js} +1 -1
  137. package/dist/packem_shared/{resolve-explicit-D9kdTNvl.js → resolve-explicit-Cge6eKPt.js} +1 -1
  138. package/dist/packem_shared/{resolve-runtime-DNukUjIr.js → resolve-runtime-D8rxuo3J.js} +1 -1
  139. package/dist/packem_shared/run-CKL4VGzQ.js +10 -0
  140. package/dist/packem_shared/{run-file-UBukWaha.js → run-file-D1mlOnd8.js} +1 -1
  141. package/dist/packem_shared/{run-summary-utils-CMeURYtS.js → run-summary-utils-DbyeUM6f.js} +1 -1
  142. package/dist/packem_shared/runtime-check-Dw0q3X67.js +1 -0
  143. package/dist/packem_shared/s1ngularity-BOl0c716.js +1 -0
  144. package/dist/packem_shared/{scaffold-files-02tUvEKC.js → scaffold-files-B8zMyMvq.js} +1 -1
  145. package/dist/packem_shared/{scan-progress-D_POj2sy.js → scan-progress-CY3XIDOY.js} +1 -1
  146. package/dist/packem_shared/selectors-BB0yaWyK.js +3 -0
  147. package/dist/packem_shared/{signatures-CeL0bOEo.js → signatures-r1SeDHLL.js} +1 -1
  148. package/dist/packem_shared/spinner-B_rRdoro.js +1 -0
  149. package/dist/packem_shared/{table-bf3rvDd-.js → table-bu4cV-it.js} +1 -1
  150. package/dist/packem_shared/{tabs-CvrVM8BU.js → tabs-A2EUpTHt.js} +1 -1
  151. package/dist/packem_shared/target-merge-ya19LiWB.js +1 -0
  152. package/dist/packem_shared/{target-options-DsHFmRZH.js → target-options-rIthWS4M.js} +1 -1
  153. package/dist/packem_shared/{task-env-C2lmxvzA.js → task-env-Cl4jNMCR.js} +1 -1
  154. package/dist/packem_shared/toolchain-Bt93i37e.js +5 -0
  155. package/dist/packem_shared/typosquats-BbebOgKM.js +1 -0
  156. package/dist/packem_shared/{use-measured-height-CQ-qYCmz.js → use-measured-height-CwhybDI9.js} +1 -1
  157. package/dist/packem_shared/{verify-B_MblU_Q.js → verify-3WE9U_Bv.js} +1 -1
  158. package/dist/packem_shared/{vis-update-app-a93HLRLX.js → vis-update-app-PjJWvxqF.js} +1 -1
  159. package/dist/packem_shared/{vis-user-error-Cpb0P6VA.js → vis-user-error-BivZDkQD.js} +2 -2
  160. package/dist/packem_shared/{watch-CcTketln.js → watch-C-9-PD2m.js} +1 -1
  161. package/dist/packem_shared/{watch-loop-CGPe21AK.js → watch-loop-dWYGUQwi.js} +1 -1
  162. package/dist/release/plugin-sdk.d.ts +32 -0
  163. package/dist/release/presets.d.ts +38 -0
  164. package/dist/runtime/preload.js +1 -1
  165. package/index.js +26 -26
  166. package/package.json +19 -15
  167. package/schemas/vis-config.schema.json +12 -0
  168. package/dist/packem_shared/advisories-BKsh48bi.js +0 -1
  169. package/dist/packem_shared/affected-selection-C7rvg_xC.js +0 -1
  170. package/dist/packem_shared/ai-cache-iSIyY3So.js +0 -1
  171. package/dist/packem_shared/build-scripts-CEDx_nJp.js +0 -1
  172. package/dist/packem_shared/detect-CbMRSXkM.js +0 -1
  173. package/dist/packem_shared/env-BSXG3QKH.js +0 -4
  174. package/dist/packem_shared/env-consistency-B4rU4MQb.js +0 -1
  175. package/dist/packem_shared/glob-Cyk1H9ZL-DlsGNNhY.js +0 -1
  176. package/dist/packem_shared/index-BS3mFsh-.js +0 -1
  177. package/dist/packem_shared/manifests-Du4yKlf_.js +0 -1
  178. package/dist/packem_shared/missing-package-json-DDVQ_scH.js +0 -1
  179. package/dist/packem_shared/osv-bloom-BCAX5ARR.js +0 -2
  180. package/dist/packem_shared/package-version-D0b8b41D.js +0 -4
  181. package/dist/packem_shared/packument-CbTmbHU4.js +0 -1
  182. package/dist/packem_shared/readJsonSync-CbryXYxN-EWl7_7KX.js +0 -1
  183. package/dist/packem_shared/registry-B6LWRK9T.js +0 -81
  184. package/dist/packem_shared/registry-keys-z038Ecb4.js +0 -1
  185. package/dist/packem_shared/run-DLvd3RIZ.js +0 -10
  186. package/dist/packem_shared/runtime-check-D3cRDuoi.js +0 -1
  187. package/dist/packem_shared/s1ngularity-BuU9Cxpy.js +0 -1
  188. package/dist/packem_shared/selectors-edwcgNl3.js +0 -3
  189. package/dist/packem_shared/spinner-8fJUI_wl.js +0 -1
  190. package/dist/packem_shared/target-merge-DVJl-7Qz.js +0 -4
  191. package/dist/packem_shared/toolchain-CP79HNVy.js +0 -5
  192. package/dist/packem_shared/typosquats-BFKus_aM.js +0 -1
  193. package/dist/packem_shared/writeFileSync-DJoHk3Ks-BPRoepNw.js +0 -1
@@ -55,4 +55,4 @@ ${s}`,i),this.line=n,this.column=a,this.codeblock=s}static x(l,i,n){throw new u(
55
55
  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
56
56
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57
57
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
- */let Z=/^(\d{4}-\d{2}-\d{2})?[Tt ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|z|[-+]\d{2}:\d{2})?$/i;class C extends Date{#i=!1;#l=!1;#e=null;constructor(l,i,n){let a=!0,s=!0,r="Z",f;if(typeof l=="string")if(i)e:{if(i<3){if(+l.slice(11,13)>23){l="";break e}i===2?(r=null,l+="Z"):(f=l.charCodeAt(l.length-1))!==90&&f!==122&&(r=l.slice(l.length-6)),n&&(l=l.slice(0,10)+"T"+l.slice(11))}else i===4&&(l=+l.slice(0,2)>23?"":`0000-01-01T${l}Z`);a=i!==4,s=i!==3}else{let t=l.match(Z);t?(t[1]||(a=!1,l=`0000-01-01T${l}`),s=!!t[2],s&&l[10]===" "&&(l=l.replace(" ","T")),t[2]&&+t[2]>23?l="":(r=t[3]||null,!r&&s&&(l+="Z"))):l=""}super(l),isNaN(this.getTime())||(this.#i=a,this.#l=s,this.#e=r)}isDateTime(){return this.#i&&this.#l}isLocal(){return!this.#i||!this.#l||!this.#e}isDate(){return this.#i&&!this.#l}isTime(){return this.#l&&!this.#i}isValid(){return this.#i||this.#l}toISOString(){let l=super.toISOString();if(this.isDate())return l.slice(0,10);if(this.isTime())return l.slice(11,23);if(this.#e===null)return l.slice(0,-1);if(this.#e==="Z"||this.#e==="z")return l;let i=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return i=this.#e[0]==="-"?i:-i,new Date(this.getTime()-i*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(l,i="Z"){let n=new C(l);return n.#e=i,n}static wrapAsLocalDateTime(l){let i=new C(l);return i.#e=null,i}static wrapAsLocalDate(l){let i=new C(l);return i.#l=!1,i.#e=null,i}static wrapAsLocalTime(l){let i=new C(l);return i.#i=!1,i.#e=null,i}}function h(e,l=10){return l===16?e>47&&e<58||e>64&&e<71||e>96&&e<103:e>47&&e<48+l}function k(e,l){return e===32||e===9||e===10||e===13||l&&(e===l||e===44)||e===35}function O(e,l){let i=e.p,n=e.s.charCodeAt(e.p);if(n===91||n===123){e.d--||u.x("document contains excessively nested structures. aborting.",e);let a=n===91?V(e):P(e);return e.d++,a}return n===34||n===39?I(e):n===116?((e.s.charCodeAt(++e.p)!==114||e.s.charCodeAt(++e.p)!==117||e.s.charCodeAt(++e.p)!==101)&&u.x("invalid value",e,i),e.p++,!0):n===102?((e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==108||e.s.charCodeAt(++e.p)!==115||e.s.charCodeAt(++e.p)!==101)&&u.x("invalid value",e,i),e.p++,!1):n===43||n===45?w(e,e.p,e.s.charCodeAt(++e.p),44-n,l):e.s.charCodeAt(e.p+4)===45&&e.s.charCodeAt(e.p+7)===45?E(e,n,l):e.s.charCodeAt(e.p+2)===58?N(e,n,l):w(e,e.p,n,0,l)}function w(e,l,i,n,a){let s=i,r=0,f=!1;if(s===105)return(e.s.charCodeAt(++e.p)!==110||e.s.charCodeAt(++e.p)!==102)&&u.x("invalid value",e,l),e.p++,(n||1)/0;if(s===110)return(e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==110)&&u.x("invalid value",e,l),e.p++,NaN;if(s===48){if(++e.p>=e.s.length||k(s=e.s.charCodeAt(e.p),a))return e.bi===!0?0n:0;if(!n){if(s===120)return v(e,l,16,a);if(s===98)return v(e,l,2,a);if(s===111)return v(e,l,8,a)}s===46?r=2:s===101||s===69?r=4:u.x("illegal leading zero",e,l)}else h(s)||u.x("invalid value",e,l);for(;++e.p<e.s.length&&(s=e.s.charCodeAt(e.p),!k(s,a));)r||(r=1),s===95?(r&1||u.x("illegal underscore",e),r+=11,f=!0):r===1&&s===46?r=2:(r===1||r===3)&&(s===101||s===69)?r=4:r===4&&(s===43||s===45)||(h(s)?r>9?r-=11:r&1||r++:u.x("illegal character in numeric literal",e));if(!r){let o=(i-48)*(n||1);return e.bi===!0?BigInt(o):o}r&1||u.x("unfinished numeric value",e,l);let t=e.s.slice(l,e.p);return f&&(t=t.replaceAll("_","")),r>1?parseFloat(t):S(e,t,10,l)}function v(e,l,i,n){let a,s=1;for(;++e.p<e.s.length&&(a=e.s.charCodeAt(e.p),!k(a,n));)a===95?(s&1&&u.x("illegal underscore",e),s=3):h(a,i)?s&1&&s--:u.x("illegal character in numeric literal",e);s&1&&u.x("unfinished numeric value",e);let r=e.s.slice(l+2,e.p);return s&&(r=r.replaceAll("_","")),S(e,r,i,l)}function S(e,l,i,n){if(e.bi!==!0)e:{let a=parseInt(l,i);if(!Number.isSafeInteger(a)){if(e.bi)break e;u.x("integer value cannot be represented losslessly",e,n)}return a}return BigInt(i===10?l:(i===2?"0b":i===8?"0o":"0x")+l)}function E(e,l,i){let n=e.p++,a;if(!h(l)||!h(e.s.charCodeAt(e.p++))||!h(e.s.charCodeAt(e.p++))||!h(e.s.charCodeAt(e.p++)))return w(e,e.p=n,l,0,i);if(e.p+=5,h(e.s.charCodeAt(e.p++))||u.x("invalid date-time: date part is malformed",e,n),e.p>=e.s.length||((l=e.s.charCodeAt(e.p))!==32||(a=!0,!h(e.s.charCodeAt(e.p+1))))&&l!==84&&l!==116){let r=e.s.slice(n,e.p);return b(e,r,3,!1,n)}if(e.s.charCodeAt(e.p+=3)!==58&&u.x("invalid date-time: time part is malformed",e,n),e.s.charCodeAt(e.p+=3)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;h(e.s.charCodeAt(++e.p)););if(l=e.s.charCodeAt(e.p)){if(l===90||l===122){let r=e.s.slice(n,++e.p);return b(e,r,1,a,n,"[+00:00]")}if(l===43||l===45){let r=e.s.slice(n,e.p+=6);return b(e,r,1,a,n,!e.ld&&"["+e.s.slice(e.p-6,e.p)+"]")}}let s=e.s.slice(n,e.p);return b(e,s,2,a,n)}function N(e,l,i){let n=e.p;if(!h(l)||!h(e.s.charCodeAt(++e.p)))return w(e,--e.p,l,0,i);if(e.s.charCodeAt(e.p+=4)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;h(e.s.charCodeAt(++e.p)););let a=e.s.slice(n,e.p);return b(e,a,4,!1,n)}function b(e,l,i,n,a,s){if(e.ld){let r=new C(l,i,n);return r.isValid()||u.x("invalid date",e,a),r}try{switch(s&&(l+=s),i){case 1:return Temporal.ZonedDateTime.from(l);case 2:return Temporal.PlainDateTime.from(l);case 3:return Temporal.PlainDate.from(l);case 4:return Temporal.PlainTime.from(l)}}catch(r){u.x(r instanceof Error?r.message:""+r,e,a)}}function _(e){for(;e.p<e.s.length;e.p++){let l=e.s.charCodeAt(e.p);if(l===10)break;if(l===13&&e.s.charCodeAt(e.p+1)===10){e.p++;break}(l<32&&l!==9||l===127)&&u.x("control characters are not allowed in comments",e)}}function g(e,l,i){let n;for(;e.p<e.s.length;){for(;e.p<e.s.length&&((n=e.s.charCodeAt(e.p))===32||n===9||!l&&(n===10||n===13&&e.s.charCodeAt(e.p+1)===10));)e.p++;if(i||n!==35)break;_(e)}}function T(e,l=61){let i,n=0,a=[],s,r=e.s.charCodeAt(i=e.p);do{if(r===l)return n||u.x("unexpected end of key",e),n===1&&a.push(e.s.slice(s,e.p)),e.p++,a;r===46?(n||u.x("illegal empty bare key",e),n===1&&a.push(e.s.slice(s,e.p)),n=0):!n&&(r===34||r===39)?(r===e.s.charCodeAt(e.p+1)&&r===e.s.charCodeAt(e.p+2)&&u.x("illegal quoted key: multiline strings are not allowed",e),a.push(I(e)),n=2,e.p--):r===32||r===9?n===1&&(a.push(e.s.slice(s,e.p)),n=2):n===2||r<48&&r!==45||r>57&&r<65||r>90&&r<97&&r!==95||r>122?u.x("illegal character in key",e):n||(n=1,s=e.p)}while(r=e.s.charCodeAt(++e.p));u.x("incomplete key-value: cannot find end of key",e,i)}function P(e){let l=e.p++,i=Object.create(null),n=new Set,a;for(;e.p<e.s.length;){if(g(e),(a=e.s.charCodeAt(e.p))===125)return e.p++,i;let s,r=i,f=!1,t=e.p,o=T(e);for(let d=0;d<o.length;d++){d&&(r=f?r[s]:r[s]=Object.create(null)),s=o[d],(f=Object.hasOwn(r,s))&&(typeof r[s]!="object"||n.has(r[s]))&&u.x("trying to redefine an already defined value",e,t);let m=s==="__proto__";if(e.uk&&(m||s==="constructor")){r=e.uk!==1&&u.x("document contains an unsafe property",e,t);break}!f&&m&&Object.defineProperty(r,s,{enumerable:!0,configurable:!0,writable:!0})}f&&u.x("trying to redefine an already defined value",e,t),g(e,!0,!0);let p=O(e,125);if(r&&typeof(r[s]=p)=="object"&&n.add(p),g(e),(a=e.s.charCodeAt(e.p++))===125)return i;a!==44&&u.x("expected comma or end of structure",e,e.p-1)}u.x("unfinished table",e,l)}function V(e){let l=e.p++,i=[],n;for(;e.p<e.s.length;){if(g(e),(n=e.s.charCodeAt(e.p))===93)return e.p++,i;if(i.push(O(e,93)),g(e),(n=e.s.charCodeAt(e.p++))===93)return i;n!==44&&u.x("expected comma or end of structure",e,e.p-1)}u.x("unfinished array",e,l)}function D(e,l,i,n,a){let s=i,r=n,f,t=!1,o;for(let p=0;p<l.length;p++){if(p){if(s=t?s[f]:s[f]=Object.create(null),r=(o=r[f]).c,a===0&&(o.t===1||o.t===2))return null;if(o.t===2){let d=s.length-1;s=s[d],r=r[d].c}}if(f=l[p],(t=Object.hasOwn(s,f))&&r[f]?.t===0&&r[f]?.d)return null;if(!t){let d=f==="__proto__";if(e.uk&&(d||f==="constructor"))return!1;d&&(Object.defineProperty(s,f,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(r,f,{enumerable:!0,configurable:!0,writable:!0})),r[f]={t:p<l.length-1&&a===2?3:a,d:!1,i:0,c:Object.create(null)}}}if(o=r[f],o.t!==a&&!(a===1&&o.t===3)||(a===2&&(o.d||(o.d=!0,s[f]=[]),s[f].push(s=Object.create(null)),o.c[o.i++]=o={t:1,d:!1,i:0,c:Object.create(null)}),o.d))return null;if(o.d=!0,a===1)s=t?s[f]:s[f]=Object.create(null);else if(a===0&&t)return null;return[f,s,o.c]}function j(e,l,i){(l===null||e.uk===2)&&u.x(l===null?"trying to redefine an already defined table or value":"document contains an unsafe property",e,i)}function $(e,l={}){let i={s:e,p:0,d:l.maxDepth??1e3,bi:l.integersAsBigInt??!1,ld:l.useLegacyDate??!0,uk:l.unsafeKeyBehaviour==="throw"?2:l.unsafeKeyBehaviour==="drop"?1:0},n=Object.create(null),a=Object.create(null),s,r=!1,f=n,t=a;for(e.charCodeAt(0)===65279&&i.p++,g(i);i.p<e.length;){if(e.charCodeAt(i.p)===91){let o=e.charCodeAt(++i.p)===91;s=i.p+=+o,r=!1;let p=T(i,93);o&&(e.charCodeAt(i.p)!==93&&u.x("expected end of table array declaration",i),i.p++);let d=D(i,p,n,a,o?2:1);d?(t=d[2],f=d[1]):(j(i,d,s),r=!0)}else{s=i.p;let o=T(i),p=D(i,o,f,t,0);!p&&!r&&j(i,p,s),g(i,!0,!0);let d=O(i,void 0);p&&!r&&(p[1][p[0]]=d)}g(i,!0),i.p<e.length&&(s=e.charCodeAt(i.p))!==10&&(s!==13||e.charCodeAt(i.p+1)!==10)&&u.x("each key-value declaration must be followed by an end-of-line",i),g(i)}return n}export{C as TomlDate,u as TomlError,$ as parse};
58
+ */let Z=/^(\d{4}-\d{2}-\d{2})?[Tt ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|z|[-+]\d{2}:\d{2})?$/i;class C extends Date{#i=!1;#l=!1;#e=null;constructor(l,i,n){let a=!0,s=!0,r="Z",f;if(typeof l=="string")if(i)e:{if(i<3){if(+l.slice(11,13)>23){l="";break e}i===2?(r=null,l+="Z"):(f=l.charCodeAt(l.length-1))!==90&&f!==122&&(r=l.slice(l.length-6)),n&&(l=l.slice(0,10)+"T"+l.slice(11))}else i===4&&(l=+l.slice(0,2)>23?"":`0000-01-01T${l}Z`);a=i!==4,s=i!==3}else{let t=l.match(Z);t?(t[1]||(a=!1,l=`0000-01-01T${l}`),s=!!t[2],s&&l[10]===" "&&(l=l.replace(" ","T")),t[2]&&+t[2]>23?l="":(r=t[3]||null,!r&&s&&(l+="Z"))):l=""}super(l),isNaN(this.getTime())||(this.#i=a,this.#l=s,this.#e=r)}isDateTime(){return this.#i&&this.#l}isLocal(){return!this.#i||!this.#l||!this.#e}isDate(){return this.#i&&!this.#l}isTime(){return this.#l&&!this.#i}isValid(){return this.#i||this.#l}toISOString(){let l=super.toISOString();if(this.isDate())return l.slice(0,10);if(this.isTime())return l.slice(11,23);if(this.#e===null)return l.slice(0,-1);if(this.#e==="Z"||this.#e==="z")return l;let i=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return i=this.#e[0]==="-"?i:-i,new Date(this.getTime()-i*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(l,i="Z"){let n=new C(l);return n.#e=i,n}static wrapAsLocalDateTime(l){let i=new C(l);return i.#e=null,i}static wrapAsLocalDate(l){let i=new C(l);return i.#l=!1,i.#e=null,i}static wrapAsLocalTime(l){let i=new C(l);return i.#i=!1,i.#e=null,i}}function h(e,l=10){return l===16?e>47&&e<58||e>64&&e<71||e>96&&e<103:e>47&&e<48+l}function k(e,l){return e===32||e===9||e===10||e===13||l&&(e===l||e===44)||e===35}function O(e,l){let i=e.p,n=e.s.charCodeAt(e.p);if(n===91||n===123){e.d--||u.x("document contains excessively nested structures. aborting.",e);let a=n===91?V(e):P(e);return e.d++,a}return n===34||n===39?I(e):n===116?((e.s.charCodeAt(++e.p)!==114||e.s.charCodeAt(++e.p)!==117||e.s.charCodeAt(++e.p)!==101)&&u.x("invalid value",e,i),e.p++,!0):n===102?((e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==108||e.s.charCodeAt(++e.p)!==115||e.s.charCodeAt(++e.p)!==101)&&u.x("invalid value",e,i),e.p++,!1):n===43||n===45?w(e,e.p,e.s.charCodeAt(++e.p),44-n,l):e.s.charCodeAt(e.p+4)===45&&e.s.charCodeAt(e.p+7)===45?E(e,n,l):e.s.charCodeAt(e.p+2)===58?N(e,n,l):w(e,e.p,n,0,l)}function w(e,l,i,n,a){let s=i,r=0,f=!1;if(s===105)return(e.s.charCodeAt(++e.p)!==110||e.s.charCodeAt(++e.p)!==102)&&u.x("invalid value",e,l),e.p++,(n||1)/0;if(s===110)return(e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==110)&&u.x("invalid value",e,l),e.p++,NaN;if(s===48){if(++e.p>=e.s.length||k(s=e.s.charCodeAt(e.p),a))return e.bi===!0?0n:0;if(!n){if(s===120)return v(e,l,16,a);if(s===98)return v(e,l,2,a);if(s===111)return v(e,l,8,a)}s===46?r=2:s===101||s===69?r=4:u.x("illegal leading zero",e,l)}else h(s)||u.x("invalid value",e,l);for(;++e.p<e.s.length&&(s=e.s.charCodeAt(e.p),!k(s,a));)r||(r=1),s===95?(r&1||u.x("illegal underscore",e),r+=11,f=!0):r===1&&s===46?r=2:(r===1||r===3)&&(s===101||s===69)?r=4:r===4&&(s===43||s===45)?r=6:h(s)?r>9?r-=11:r&1||r++:u.x("illegal character in numeric literal",e);if(!r){let o=(i-48)*(n||1);return e.bi===!0?BigInt(o):o}r&1||u.x("unfinished numeric value",e,l);let t=e.s.slice(l,e.p);return f&&(t=t.replaceAll("_","")),r>1?parseFloat(t):S(e,t,10,l)}function v(e,l,i,n){let a,s=1;for(;++e.p<e.s.length&&(a=e.s.charCodeAt(e.p),!k(a,n));)a===95?(s&1&&u.x("illegal underscore",e),s=3):h(a,i)?s&1&&s--:u.x("illegal character in numeric literal",e);s&1&&u.x("unfinished numeric value",e);let r=e.s.slice(l+2,e.p);return s&&(r=r.replaceAll("_","")),S(e,r,i,l)}function S(e,l,i,n){if(e.bi!==!0)e:{let a=parseInt(l,i);if(!Number.isSafeInteger(a)){if(e.bi)break e;u.x("integer value cannot be represented losslessly",e,n)}return a}return BigInt(i===10?l:(i===2?"0b":i===8?"0o":"0x")+l)}function E(e,l,i){let n=e.p++,a;if(!h(l)||!h(e.s.charCodeAt(e.p++))||!h(e.s.charCodeAt(e.p++))||!h(e.s.charCodeAt(e.p++)))return w(e,e.p=n,l,0,i);if(e.p+=5,h(e.s.charCodeAt(e.p++))||u.x("invalid date-time: date part is malformed",e,n),e.p>=e.s.length||((l=e.s.charCodeAt(e.p))!==32||(a=!0,!h(e.s.charCodeAt(e.p+1))))&&l!==84&&l!==116){let r=e.s.slice(n,e.p);return b(e,r,3,!1,n)}if(e.s.charCodeAt(e.p+=3)!==58&&u.x("invalid date-time: time part is malformed",e,n),e.s.charCodeAt(e.p+=3)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;h(e.s.charCodeAt(++e.p)););if(l=e.s.charCodeAt(e.p)){if(l===90||l===122){let r=e.s.slice(n,++e.p);return b(e,r,1,a,n,"[+00:00]")}if(l===43||l===45){let r=e.s.slice(n,e.p+=6);return b(e,r,1,a,n,!e.ld&&"["+e.s.slice(e.p-6,e.p)+"]")}}let s=e.s.slice(n,e.p);return b(e,s,2,a,n)}function N(e,l,i){let n=e.p;if(!h(l)||!h(e.s.charCodeAt(++e.p)))return w(e,--e.p,l,0,i);if(e.s.charCodeAt(e.p+=4)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;h(e.s.charCodeAt(++e.p)););let a=e.s.slice(n,e.p);return b(e,a,4,!1,n)}function b(e,l,i,n,a,s){if(e.ld){let r=new C(l,i,n);return r.isValid()||u.x("invalid date",e,a),r}try{switch(s&&(l+=s),i){case 1:return Temporal.ZonedDateTime.from(l);case 2:return Temporal.PlainDateTime.from(l);case 3:return Temporal.PlainDate.from(l);case 4:return Temporal.PlainTime.from(l)}}catch(r){u.x(r instanceof Error?r.message:""+r,e,a)}}function _(e){for(;e.p<e.s.length;e.p++){let l=e.s.charCodeAt(e.p);if(l===10)break;if(l===13&&e.s.charCodeAt(e.p+1)===10){e.p++;break}(l<32&&l!==9||l===127)&&u.x("control characters are not allowed in comments",e)}}function g(e,l,i){let n;for(;e.p<e.s.length;){for(;e.p<e.s.length&&((n=e.s.charCodeAt(e.p))===32||n===9||!l&&(n===10||n===13&&e.s.charCodeAt(e.p+1)===10));)e.p++;if(i||n!==35)break;_(e)}}function T(e,l=61){let i,n=0,a=[],s,r=e.s.charCodeAt(i=e.p);do{if(r===l)return n||u.x("unexpected end of key",e),n===1&&a.push(e.s.slice(s,e.p)),e.p++,a;r===46?(n||u.x("illegal empty bare key",e),n===1&&a.push(e.s.slice(s,e.p)),n=0):!n&&(r===34||r===39)?(r===e.s.charCodeAt(e.p+1)&&r===e.s.charCodeAt(e.p+2)&&u.x("illegal quoted key: multiline strings are not allowed",e),a.push(I(e)),n=2,e.p--):r===32||r===9?n===1&&(a.push(e.s.slice(s,e.p)),n=2):n===2||r<48&&r!==45||r>57&&r<65||r>90&&r<97&&r!==95||r>122?u.x("illegal character in key",e):n||(n=1,s=e.p)}while(r=e.s.charCodeAt(++e.p));u.x("incomplete key-value: cannot find end of key",e,i)}function P(e){let l=e.p++,i=Object.create(null),n=new Set,a;for(;e.p<e.s.length;){if(g(e),(a=e.s.charCodeAt(e.p))===125)return e.p++,i;let s,r=i,f=!1,t=e.p,o=T(e);for(let d=0;d<o.length;d++){d&&(r=f?r[s]:r[s]=Object.create(null)),s=o[d],(f=Object.hasOwn(r,s))&&(typeof r[s]!="object"||n.has(r[s]))&&u.x("trying to redefine an already defined value",e,t);let m=s==="__proto__";if(e.uk&&(m||s==="constructor")){r=e.uk!==1&&u.x("document contains an unsafe property",e,t);break}!f&&m&&Object.defineProperty(r,s,{enumerable:!0,configurable:!0,writable:!0})}f&&u.x("trying to redefine an already defined value",e,t),g(e,!0,!0);let p=O(e,125);if(r&&typeof(r[s]=p)=="object"&&n.add(p),g(e),(a=e.s.charCodeAt(e.p++))===125)return i;a!==44&&u.x("expected comma or end of structure",e,e.p-1)}u.x("unfinished table",e,l)}function V(e){let l=e.p++,i=[],n;for(;e.p<e.s.length;){if(g(e),(n=e.s.charCodeAt(e.p))===93)return e.p++,i;if(i.push(O(e,93)),g(e),(n=e.s.charCodeAt(e.p++))===93)return i;n!==44&&u.x("expected comma or end of structure",e,e.p-1)}u.x("unfinished array",e,l)}function D(e,l,i,n,a){let s=i,r=n,f,t=!1,o;for(let p=0;p<l.length;p++){if(p){if(s=t?s[f]:s[f]=Object.create(null),r=(o=r[f]).c,a===0&&(o.t===1||o.t===2))return null;if(o.t===2){let d=s.length-1;s=s[d],r=r[d].c}}if(f=l[p],(t=Object.hasOwn(s,f))&&r[f]?.t===0&&r[f]?.d)return null;if(!t){let d=f==="__proto__";if(e.uk&&(d||f==="constructor"))return!1;d&&(Object.defineProperty(s,f,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(r,f,{enumerable:!0,configurable:!0,writable:!0})),r[f]={t:p<l.length-1&&a===2?3:a,d:!1,i:0,c:Object.create(null)}}}if(o=r[f],o.t!==a&&!(a===1&&o.t===3)||(a===2&&(o.d||(o.d=!0,s[f]=[]),s[f].push(s=Object.create(null)),o.c[o.i++]=o={t:1,d:!1,i:0,c:Object.create(null)}),o.d))return null;if(o.d=!0,a===1)s=t?s[f]:s[f]=Object.create(null);else if(a===0&&t)return null;return[f,s,o.c]}function j(e,l,i){(l===null||e.uk===2)&&u.x(l===null?"trying to redefine an already defined table or value":"document contains an unsafe property",e,i)}function $(e,l={}){let i={s:e,p:0,d:l.maxDepth??1e3,bi:l.integersAsBigInt??!1,ld:l.useLegacyDate??!0,uk:l.unsafeKeyBehaviour==="throw"?2:l.unsafeKeyBehaviour==="drop"?1:0},n=Object.create(null),a=Object.create(null),s,r=!1,f=n,t=a;for(e.charCodeAt(0)===65279&&i.p++,g(i);i.p<e.length;){if(e.charCodeAt(i.p)===91){let o=e.charCodeAt(++i.p)===91;s=i.p+=+o,r=!1;let p=T(i,93);o&&(e.charCodeAt(i.p)!==93&&u.x("expected end of table array declaration",i),i.p++);let d=D(i,p,n,a,o?2:1);d?(t=d[2],f=d[1]):(j(i,d,s),r=!0)}else{s=i.p;let o=T(i),p=D(i,o,f,t,0);!p&&!r&&j(i,p,s),g(i,!0,!0);let d=O(i,void 0);p&&!r&&(p[1][p[0]]=d)}g(i,!0),i.p<e.length&&(s=e.charCodeAt(i.p))!==10&&(s!==13||e.charCodeAt(i.p+1)!==10)&&u.x("each key-value declaration must be followed by an end-of-line",i),g(i)}return n}export{C as TomlDate,u as TomlError,$ as parse};