sliccy 2.49.1 → 2.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ui/assets/{adobe-BVYRvXsL.js → adobe-DgFQQrOg.js} +1 -1
- package/dist/ui/assets/{adobe-DOst-H7r.js → adobe-Dreg1wVK.js} +2 -2
- package/dist/ui/assets/{agent-bridge-C4zvo9Uu.js → agent-bridge-DQExUBtZ.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-CMHJiLMB.js → agent-message-to-chat-CHszPkfe.js} +1 -1
- package/dist/ui/assets/anthropic-8dSWvEaO.js +39 -0
- package/dist/ui/assets/{anthropic-CmyipZgN.js → anthropic-CQXRZrKe.js} +2 -2
- package/dist/ui/assets/{azure-openai-CJM6ZwXQ.js → azure-openai-DljwQRpg.js} +1 -1
- package/dist/ui/assets/{azure-openai-CBaV-VSJ.js → azure-openai-Z75yrg_y.js} +1 -1
- package/dist/ui/assets/azure-openai-responses-B6VpI3fU.js +1 -0
- package/dist/ui/assets/azure-openai-responses-BruPNuxz.js +1 -0
- package/dist/ui/assets/backend-local-P05Hg6Af.js +9 -0
- package/dist/ui/assets/backend-local-mju0Ps5U.js +9 -0
- package/dist/ui/assets/bedrock-camp-9aDiXDk5.js +5 -0
- package/dist/ui/assets/bedrock-camp-CqXHYC67.js +4 -0
- package/dist/ui/assets/{cdp-C_HxLMY8.js → cdp-D-xyOaeF.js} +2 -2
- package/dist/ui/assets/cost-command-BOnG0NY3.js +1 -0
- package/dist/ui/assets/{dist-CxsgJFgV.js → dist-6maigE1F.js} +1 -1
- package/dist/ui/assets/{dist-BqCqxkrA.js → dist-8qo5XTx8.js} +1 -1
- package/dist/ui/assets/{dist-Sngeewv4.js → dist-DGI-KRHb.js} +1 -1
- package/dist/ui/assets/{dist-DPNMKo07.js → dist-DTOmXa93.js} +1 -1
- package/dist/ui/assets/{dist-USoe4ZIh.js → dist-Nvn9jT7s.js} +1 -1
- package/dist/ui/assets/env-api-keys-CH1OdZie.js +1 -0
- package/dist/ui/assets/env-api-keys-DxKb6C4Q.js +1 -0
- package/dist/ui/assets/{es-C_SsgQvK.js → es-DYpNCglL.js} +1 -1
- package/dist/ui/assets/{fs-CxBHreU_.js → fs-J4meBUCH.js} +3 -3
- package/dist/ui/assets/{fs-llf9MCzR.js → fs-_TOckX3i.js} +2 -2
- package/dist/ui/assets/{github-BPAh8jDL.js → github-Cyp5HOCt.js} +1 -1
- package/dist/ui/assets/github-DIojNo8-.js +2 -0
- package/dist/ui/assets/google-BszFYcuS.js +1 -0
- package/dist/ui/assets/google-CYM-5k2z.js +1 -0
- package/dist/ui/assets/{google-shared-b8limp-0.js → google-shared-D_QrelB6.js} +1 -1
- package/dist/ui/assets/{google-shared-CEbAcMay.js → google-shared-XoadLsBb.js} +1 -1
- package/dist/ui/assets/{google-vertex-nFbLM1jr.js → google-vertex-ByJZJUMR.js} +1 -1
- package/dist/ui/assets/{google-vertex-DhlxvV6o.js → google-vertex-qkuMo_cz.js} +1 -1
- package/dist/ui/assets/{index-DLPF7rO2.js → index-BqTqpjeH.js} +153 -163
- package/dist/ui/assets/json-parse-C5jSA6JB.js +3 -0
- package/dist/ui/assets/json-parse-Or9qhSeP.js +3 -0
- package/dist/ui/assets/{kernel-worker-CFHZVECk.js → kernel-worker-CQw5MMmq.js} +883 -893
- package/dist/ui/assets/{local-llm-DRYqjBeF.js → local-llm-CPVFxdug.js} +1 -1
- package/dist/ui/assets/{local-llm-DQmN1q4F.js → local-llm-g0wnxbDi.js} +1 -1
- package/dist/ui/assets/{magick-wasm-DwA3cs4T.js → magick-wasm-CTqVspRN.js} +1 -1
- package/dist/ui/assets/{magick-wasm-Doso8RzK.js → magick-wasm-VuSQ-PNC.js} +1 -1
- package/dist/ui/assets/{mistral-Don9WA_U.js → mistral-7vMFlwyv.js} +2 -2
- package/dist/ui/assets/{mistral-kdNDZsM0.js → mistral-BZdZwhYA.js} +2 -2
- package/dist/ui/assets/mount-B1Yosetn.js +2 -0
- package/dist/ui/assets/mount-rVcltyQp.js +1 -0
- package/dist/ui/assets/mount-table-store-BDnU4NqG.js +1 -0
- package/dist/ui/assets/{nuke-command-BwPFXzTo.js → nuke-command-6I6vn_OB.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-Cnoncizz.js → oauth-bootstrap-BhTDTASJ.js} +1 -1
- package/dist/ui/assets/{oauth-service-DTHr_ILl.js → oauth-service-BgJZh8oA.js} +1 -1
- package/dist/ui/assets/{oauth-service-B3UTYTa2.js → oauth-service-s6wxPNhT.js} +1 -1
- package/dist/ui/assets/{offscreen-client-DRUAUGTX.js → offscreen-client-D_yQhOLu.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-DauAN5MT.js → onboarding-orchestrator-0jBXpPO0.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-DchQe0cH.js → openai-codex-responses-BOuesx1c.js} +4 -4
- package/dist/ui/assets/{openai-codex-responses-DEFesGuE.js → openai-codex-responses-DW3ZYFcb.js} +3 -3
- package/dist/ui/assets/openai-completions-D5rB4vsV.js +5 -0
- package/dist/ui/assets/openai-completions-ytvpg3gQ.js +5 -0
- package/dist/ui/assets/openai-responses-8f3sjZ0n.js +1 -0
- package/dist/ui/assets/openai-responses-CF3yEStf.js +1 -0
- package/dist/ui/assets/openai-responses-shared-DJ_O7os_.js +12 -0
- package/dist/ui/assets/{openai-responses-shared-BemWgAjZ.js → openai-responses-shared-vokXRwgV.js} +1 -1
- package/dist/ui/assets/provider-settings-Ug5jEGjw.js +28 -0
- package/dist/ui/assets/provider-settings-rnwJD-hi.js +63 -0
- package/dist/ui/assets/{providers-ypr6l9lG.js → providers-CM4udL4d.js} +1 -1
- package/dist/ui/assets/{py-realm-worker-CiPbLFx2.js → py-realm-worker-Cg-6whKO.js} +1 -1
- package/dist/ui/assets/{pyodide-C2X7foBW.js → pyodide-DhfjhWo1.js} +1 -1
- package/dist/ui/assets/{pyodide-DM3gAwss.js → pyodide-DwCMl2Ja.js} +1 -1
- package/dist/ui/assets/{remote-terminal-view-B3w1XsI8.js → remote-terminal-view-BjoQOWNM.js} +3 -3
- package/dist/ui/assets/{slicc-editor-DAgxp34c.js → slicc-editor-DlLebxYv.js} +2 -2
- package/dist/ui/assets/{spawn-B_aoqz2m.js → spawn-C0I0kFhe.js} +1 -1
- package/dist/ui/assets/{sql-wasm-CqUynK8y.js → sql-wasm-eXBRXMXY.js} +1 -1
- package/dist/ui/assets/telemetry-B7l3TtVP.js +1 -0
- package/dist/ui/assets/tool-ui-B3Bihlxa.js +1 -0
- package/dist/ui/assets/tool-ui-D9h6SJkp.js +1 -0
- package/dist/ui/assets/{upgrade-detection-CyImEIEC.js → upgrade-detection-D1m3U6nl.js} +1 -1
- package/dist/ui/index.html +14 -10
- package/dist/ui/packages/webapp/index.html +14 -10
- package/package.json +3 -3
- package/dist/ui/assets/anthropic-CZqomz-1.js +0 -39
- package/dist/ui/assets/azure-openai-responses-CooQ5Awz.js +0 -1
- package/dist/ui/assets/azure-openai-responses-JpSdxXhY.js +0 -1
- package/dist/ui/assets/bedrock-camp-B0q-7yNy.js +0 -5
- package/dist/ui/assets/bedrock-camp-W_gIoKyb.js +0 -4
- package/dist/ui/assets/cost-command-9CbNoyAQ.js +0 -1
- package/dist/ui/assets/github-BuYYHwVD.js +0 -2
- package/dist/ui/assets/google-Cpy5Sd04.js +0 -1
- package/dist/ui/assets/google-_NgtAdE2.js +0 -1
- package/dist/ui/assets/mount-D22V7Wmv.js +0 -2
- package/dist/ui/assets/mount-cJ7Fh1ww.js +0 -1
- package/dist/ui/assets/openai-completions-Bt4QlIyn.js +0 -5
- package/dist/ui/assets/openai-completions-D49Ptr1B.js +0 -5
- package/dist/ui/assets/openai-responses-e0RQ8RFv.js +0 -1
- package/dist/ui/assets/openai-responses-r6y-rY24.js +0 -1
- package/dist/ui/assets/openai-responses-shared-B-T272Af.js +0 -12
- package/dist/ui/assets/provider-settings-CaxrG5yA.js +0 -28
- package/dist/ui/assets/provider-settings-DificpTl.js +0 -63
- /package/dist/ui/assets/{__vite-browser-external-BvI1wG2f.js → __vite-browser-external-ChUuVKj-.js} +0 -0
- /package/dist/ui/assets/{addon-fit-DYt1qsAX.js → addon-fit-BCjyTVK7.js} +0 -0
- /package/dist/ui/assets/{addon-fit-B0aHsvmX.js → addon-fit-CVV7fTw9.js} +0 -0
- /package/dist/ui/assets/{azure-ai-foundry-CaxHzIfg.js → azure-ai-foundry-BS3xCper.js} +0 -0
- /package/dist/ui/assets/{azure-ai-foundry-Bcv3AvZm.js → azure-ai-foundry-rmhg6ipI.js} +0 -0
- /package/dist/ui/assets/{bsh-watchdog-DEvn8Q9x.js → bsh-watchdog-D59Tbl5E.js} +0 -0
- /package/dist/ui/assets/{chat-fixture-5h_JuUYl.js → chat-fixture-CZVZdKyJ.js} +0 -0
- /package/dist/ui/assets/{diagnostics-5umns3WY.js → diagnostics-COTIkqqc.js} +0 -0
- /package/dist/ui/assets/{diagnostics-BowEoTPl.js → diagnostics-DEZCW87A.js} +0 -0
- /package/dist/ui/assets/{dist-Ct5XR8EU.js → dist-BzFg7Vf5.js} +0 -0
- /package/dist/ui/assets/{dist-zlAHCcD1.js → dist-DNQ3u_NS.js} +0 -0
- /package/dist/ui/assets/{git-config-BMEHAjvp.js → git-config-Bl-XsMb6.js} +0 -0
- /package/dist/ui/assets/{git-config-DZUguBxI.js → git-config-CxvDN7N3.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-C8KSO_i5.js → github-copilot-headers-B6Fvsk-Y.js} +0 -0
- /package/dist/ui/assets/{github-copilot-headers-DLK82thn.js → github-copilot-headers-DFUtSIuj.js} +0 -0
- /package/dist/ui/assets/{hash-B7CztTb_.js → hash-CQjDwcjR.js} +0 -0
- /package/dist/ui/assets/{hash-BwzabXYv.js → hash-CsofV07h.js} +0 -0
- /package/dist/ui/assets/{headers-CRXCny-K.js → headers-BCPSYYop.js} +0 -0
- /package/dist/ui/assets/{headers-CeeP1wvy.js → headers-DkHU-pcw.js} +0 -0
- /package/dist/ui/assets/{lick-manager-proxy-DwmV23nZ.js → lick-manager-proxy-B0RDZsAR.js} +0 -0
- /package/dist/ui/assets/{mime-types-CtECiBq5.js → mime-types-DVkB7Eq7.js} +0 -0
- /package/dist/ui/assets/{mount-id-BBl3dJu8.js → mount-id-Ccy4_G8i.js} +0 -0
- /package/dist/ui/assets/{mount-picker-popup-BLHoVG3y.js → mount-picker-popup-DJJfRF_c.js} +0 -0
- /package/dist/ui/assets/{openai-NzrumIkM.js → openai-CRGaNv9i.js} +0 -0
- /package/dist/ui/assets/{openai-Cya-48mD.js → openai-D6Fs9zDM.js} +0 -0
- /package/dist/ui/assets/{page-storage-sync-DEhI1xEB.js → page-storage-sync-BawH6Tr4.js} +0 -0
- /package/dist/ui/assets/{panel-rpc-g85bMVnq.js → panel-rpc-CgCAJfWO.js} +0 -0
- /package/dist/ui/assets/{panel-rpc-handlers-Cd0NeWGr.js → panel-rpc-handlers-DQC5qat8.js} +0 -0
- /package/dist/ui/assets/{path-utils-B73K5PBp.js → path-utils-CgbXfwyO.js} +0 -0
- /package/dist/ui/assets/{path-utils-CNNVZ3-O.js → path-utils-d3qOVZOu.js} +0 -0
- /package/dist/ui/assets/{pdfjs-BdNq0_-j.js → pdfjs-jzfXBGiL.js} +0 -0
- /package/dist/ui/assets/{remote-cache-BdYCICnT.js → remote-cache-DdfqyJ2A.js} +0 -0
- /package/dist/ui/assets/{rum-_zaGz-D7.js → rum-CMSkYNP8.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-DANurEy1.js → sanitize-unicode-BD2XKRoV.js} +0 -0
- /package/dist/ui/assets/{sanitize-unicode-MlE1hQqG.js → sanitize-unicode-ncMKN_SD.js} +0 -0
- /package/dist/ui/assets/{secret-env-DES2XPkD.js → secret-env-VITP8dzh.js} +0 -0
- /package/dist/ui/assets/{simple-options-B0cR4giT.js → simple-options-imi_RHvn.js} +0 -0
- /package/dist/ui/assets/{sprinkle-bridge-channel-DJuNr3kv.js → sprinkle-bridge-channel-C5ki0FNk.js} +0 -0
- /package/dist/ui/assets/{sprinkle-bridge-channel-DhKQ_srk.js → sprinkle-bridge-channel-CHgv5aYx.js} +0 -0
- /package/dist/ui/assets/{sprinkle-proxy-Ci8JPwa_.js → sprinkle-proxy-8PgiiiqE.js} +0 -0
- /package/dist/ui/assets/{src-oRxlT3fT.js → src-BcpYRmFj.js} +0 -0
- /package/dist/ui/assets/{transform-messages-DlZklr1h.js → transform-messages-uhk4b6os.js} +0 -0
- /package/dist/ui/assets/{tray-follower-status-DmK3Afse.js → tray-follower-status-Bjjx7UWt.js} +0 -0
- /package/dist/ui/assets/{xterm-CeGiW_7a.js → xterm-B7kAlFoJ.js} +0 -0
- /package/dist/ui/assets/{xterm-D5M9QCcR.js → xterm-ucbPh68r.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{t as e}from"./chunk-jRWAZmH_.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Allow=e.ALL=e.COLLECTION=e.ATOM=e.SPECIAL=e.INF=e._INFINITY=e.INFINITY=e.NAN=e.BOOL=e.NULL=e.OBJ=e.ARR=e.NUM=e.STR=void 0,e.STR=1,e.NUM=2,e.ARR=4,e.OBJ=8,e.NULL=16,e.BOOL=32,e.NAN=64,e.INFINITY=128,e._INFINITY=256,e.INF=e.INFINITY|e._INFINITY,e.SPECIAL=e.NULL|e.BOOL|e.INF|e.NAN,e.ATOM=e.STR|e.NUM|e.SPECIAL,e.COLLECTION=e.ARR|e.OBJ,e.ALL=e.ATOM|e.COLLECTION,e.Allow={STR:e.STR,NUM:e.NUM,ARR:e.ARR,OBJ:e.OBJ,NULL:e.NULL,BOOL:e.BOOL,NAN:e.NAN,INFINITY:e.INFINITY,_INFINITY:e._INFINITY,INF:e.INF,SPECIAL:e.SPECIAL,ATOM:e.ATOM,COLLECTION:e.COLLECTION,ALL:e.ALL},e.default=e.Allow})),n=e((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Allow=e.MalformedJSON=e.PartialJSON=e.parseJSON=e.parse=void 0;var i=t();Object.defineProperty(e,`Allow`,{enumerable:!0,get:function(){return i.Allow}}),r(t(),e);var a=class extends Error{};e.PartialJSON=a;var o=class extends Error{};e.MalformedJSON=o;function s(e,t=i.Allow.ALL){if(typeof e!=`string`)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return c(e.trim(),t)}e.parseJSON=s;var c=(e,t)=>{let n=e.length,r=0,s=e=>{throw new a(`${e} at position ${r}`)},c=e=>{throw new o(`${e} at position ${r}`)},l=()=>(m(),r>=n&&s(`Unexpected end of input`),e[r]===`"`?u():e[r]===`{`?d():e[r]===`[`?f():e.substring(r,r+4)===`null`||i.Allow.NULL&t&&n-r<4&&`null`.startsWith(e.substring(r))?(r+=4,null):e.substring(r,r+4)===`true`||i.Allow.BOOL&t&&n-r<4&&`true`.startsWith(e.substring(r))?(r+=4,!0):e.substring(r,r+5)===`false`||i.Allow.BOOL&t&&n-r<5&&`false`.startsWith(e.substring(r))?(r+=5,!1):e.substring(r,r+8)===`Infinity`||i.Allow.INFINITY&t&&n-r<8&&`Infinity`.startsWith(e.substring(r))?(r+=8,1/0):e.substring(r,r+9)===`-Infinity`||i.Allow._INFINITY&t&&1<n-r&&n-r<9&&`-Infinity`.startsWith(e.substring(r))?(r+=9,-1/0):e.substring(r,r+3)===`NaN`||i.Allow.NAN&t&&n-r<3&&`NaN`.startsWith(e.substring(r))?(r+=3,NaN):p()),u=()=>{let a=r,o=!1;for(r++;r<n&&(e[r]!==`"`||o&&e[r-1]===`\\`);)o=e[r]===`\\`?!o:!1,r++;if(e.charAt(r)==`"`)try{return JSON.parse(e.substring(a,++r-Number(o)))}catch(e){c(String(e))}else if(i.Allow.STR&t)try{return JSON.parse(e.substring(a,r-Number(o))+`"`)}catch{return JSON.parse(e.substring(a,e.lastIndexOf(`\\`))+`"`)}s(`Unterminated string literal`)},d=()=>{r++,m();let a={};try{for(;e[r]!==`}`;){if(m(),r>=n&&i.Allow.OBJ&t)return a;let o=u();m(),r++;try{a[o]=l()}catch(e){if(i.Allow.OBJ&t)return a;throw e}m(),e[r]===`,`&&r++}}catch{if(i.Allow.OBJ&t)return a;s(`Expected '}' at end of object`)}return r++,a},f=()=>{r++;let n=[];try{for(;e[r]!==`]`;)n.push(l()),m(),e[r]===`,`&&r++}catch{if(i.Allow.ARR&t)return n;s(`Expected ']' at end of array`)}return r++,n},p=()=>{if(r===0){e===`-`&&c(`Not sure what '-' is`);try{return JSON.parse(e)}catch(n){if(i.Allow.NUM&t)try{return JSON.parse(e.substring(0,e.lastIndexOf(`e`)))}catch{}c(String(n))}}let a=r;for(e[r]===`-`&&r++;e[r]&&`,]}`.indexOf(e[r])===-1;)r++;r==n&&!(i.Allow.NUM&t)&&s(`Unterminated number literal`);try{return JSON.parse(e.substring(a,r))}catch{e.substring(a,r)===`-`&&s(`Not sure what '-' is`);try{return JSON.parse(e.substring(a,e.lastIndexOf(`e`)))}catch(e){c(String(e))}}},m=()=>{for(;r<n&&`
|
|
2
|
+
\r `.includes(e[r]);)r++};return l()};e.parse=s}))(),r=new Set([`"`,`\\`,`/`,`b`,`f`,`n`,`r`,`t`,`u`]);function i(e){let t=e.codePointAt(0);return t!==void 0&&t>=0&&t<=31}function a(e){switch(e){case`\b`:return`\\b`;case`\f`:return`\\f`;case`
|
|
3
|
+
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;default:return`\\u${e.codePointAt(0)?.toString(16).padStart(4,`0`)??`0000`}`}}function o(e){let t=``,n=!1;for(let o=0;o<e.length;o++){let s=e[o];if(!n){t+=s,s===`"`&&(n=!0);continue}if(s===`"`){t+=s,n=!1;continue}if(s===`\\`){let n=e[o+1];if(n===void 0){t+=`\\\\`;continue}if(n===`u`){let n=e.slice(o+2,o+6);if(/^[0-9a-fA-F]{4}$/.test(n)){t+=`\\u${n}`,o+=5;continue}}if(r.has(n)){t+=`\\${n}`,o+=1;continue}t+=`\\\\`;continue}t+=i(s)?a(s):s}return t}function s(e){try{return JSON.parse(e)}catch(t){let n=o(e);if(n!==e)return JSON.parse(n);throw t}}function c(e){if(!e||e.trim()===``)return{};try{return s(e)}catch{try{return(0,n.parse)(e)??{}}catch{try{return(0,n.parse)(o(e))??{}}catch{return{}}}}}export{c as n,s as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{t as e}from"./chunk-jRWAZmH_.js";var t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Allow=e.ALL=e.COLLECTION=e.ATOM=e.SPECIAL=e.INF=e._INFINITY=e.INFINITY=e.NAN=e.BOOL=e.NULL=e.OBJ=e.ARR=e.NUM=e.STR=void 0,e.STR=1,e.NUM=2,e.ARR=4,e.OBJ=8,e.NULL=16,e.BOOL=32,e.NAN=64,e.INFINITY=128,e._INFINITY=256,e.INF=e.INFINITY|e._INFINITY,e.SPECIAL=e.NULL|e.BOOL|e.INF|e.NAN,e.ATOM=e.STR|e.NUM|e.SPECIAL,e.COLLECTION=e.ARR|e.OBJ,e.ALL=e.ATOM|e.COLLECTION,e.Allow={STR:e.STR,NUM:e.NUM,ARR:e.ARR,OBJ:e.OBJ,NULL:e.NULL,BOOL:e.BOOL,NAN:e.NAN,INFINITY:e.INFINITY,_INFINITY:e._INFINITY,INF:e.INF,SPECIAL:e.SPECIAL,ATOM:e.ATOM,COLLECTION:e.COLLECTION,ALL:e.ALL},e.default=e.Allow})),n=e((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.Allow=e.MalformedJSON=e.PartialJSON=e.parseJSON=e.parse=void 0;let i=t();Object.defineProperty(e,`Allow`,{enumerable:!0,get:function(){return i.Allow}}),r(t(),e);var a=class extends Error{};e.PartialJSON=a;var o=class extends Error{};e.MalformedJSON=o;function s(e,t=i.Allow.ALL){if(typeof e!=`string`)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return c(e.trim(),t)}e.parseJSON=s;let c=(e,t)=>{let n=e.length,r=0,s=e=>{throw new a(`${e} at position ${r}`)},c=e=>{throw new o(`${e} at position ${r}`)},l=()=>(m(),r>=n&&s(`Unexpected end of input`),e[r]===`"`?u():e[r]===`{`?d():e[r]===`[`?f():e.substring(r,r+4)===`null`||i.Allow.NULL&t&&n-r<4&&`null`.startsWith(e.substring(r))?(r+=4,null):e.substring(r,r+4)===`true`||i.Allow.BOOL&t&&n-r<4&&`true`.startsWith(e.substring(r))?(r+=4,!0):e.substring(r,r+5)===`false`||i.Allow.BOOL&t&&n-r<5&&`false`.startsWith(e.substring(r))?(r+=5,!1):e.substring(r,r+8)===`Infinity`||i.Allow.INFINITY&t&&n-r<8&&`Infinity`.startsWith(e.substring(r))?(r+=8,1/0):e.substring(r,r+9)===`-Infinity`||i.Allow._INFINITY&t&&1<n-r&&n-r<9&&`-Infinity`.startsWith(e.substring(r))?(r+=9,-1/0):e.substring(r,r+3)===`NaN`||i.Allow.NAN&t&&n-r<3&&`NaN`.startsWith(e.substring(r))?(r+=3,NaN):p()),u=()=>{let a=r,o=!1;for(r++;r<n&&(e[r]!==`"`||o&&e[r-1]===`\\`);)o=e[r]===`\\`?!o:!1,r++;if(e.charAt(r)==`"`)try{return JSON.parse(e.substring(a,++r-Number(o)))}catch(e){c(String(e))}else if(i.Allow.STR&t)try{return JSON.parse(e.substring(a,r-Number(o))+`"`)}catch{return JSON.parse(e.substring(a,e.lastIndexOf(`\\`))+`"`)}s(`Unterminated string literal`)},d=()=>{r++,m();let a={};try{for(;e[r]!==`}`;){if(m(),r>=n&&i.Allow.OBJ&t)return a;let o=u();m(),r++;try{a[o]=l()}catch(e){if(i.Allow.OBJ&t)return a;throw e}m(),e[r]===`,`&&r++}}catch{if(i.Allow.OBJ&t)return a;s(`Expected '}' at end of object`)}return r++,a},f=()=>{r++;let n=[];try{for(;e[r]!==`]`;)n.push(l()),m(),e[r]===`,`&&r++}catch{if(i.Allow.ARR&t)return n;s(`Expected ']' at end of array`)}return r++,n},p=()=>{if(r===0){e===`-`&&c(`Not sure what '-' is`);try{return JSON.parse(e)}catch(n){if(i.Allow.NUM&t)try{return JSON.parse(e.substring(0,e.lastIndexOf(`e`)))}catch{}c(String(n))}}let a=r;for(e[r]===`-`&&r++;e[r]&&`,]}`.indexOf(e[r])===-1;)r++;r==n&&!(i.Allow.NUM&t)&&s(`Unterminated number literal`);try{return JSON.parse(e.substring(a,r))}catch{e.substring(a,r)===`-`&&s(`Not sure what '-' is`);try{return JSON.parse(e.substring(a,e.lastIndexOf(`e`)))}catch(e){c(String(e))}}},m=()=>{for(;r<n&&`
|
|
2
|
+
\r `.includes(e[r]);)r++};return l()};e.parse=s}))();const r=new Set([`"`,`\\`,`/`,`b`,`f`,`n`,`r`,`t`,`u`]);function i(e){let t=e.codePointAt(0);return t!==void 0&&t>=0&&t<=31}function a(e){switch(e){case`\b`:return`\\b`;case`\f`:return`\\f`;case`
|
|
3
|
+
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;default:return`\\u${e.codePointAt(0)?.toString(16).padStart(4,`0`)??`0000`}`}}function o(e){let t=``,n=!1;for(let o=0;o<e.length;o++){let s=e[o];if(!n){t+=s,s===`"`&&(n=!0);continue}if(s===`"`){t+=s,n=!1;continue}if(s===`\\`){let n=e[o+1];if(n===void 0){t+=`\\\\`;continue}if(n===`u`){let n=e.slice(o+2,o+6);if(/^[0-9a-fA-F]{4}$/.test(n)){t+=`\\u${n}`,o+=5;continue}}if(r.has(n)){t+=`\\${n}`,o+=1;continue}t+=`\\\\`;continue}t+=i(s)?a(s):s}return t}function s(e){try{return JSON.parse(e)}catch(t){let n=o(e);if(n!==e)return JSON.parse(n);throw t}}function c(e){if(!e||e.trim()===``)return{};try{return s(e)}catch{try{return(0,n.parse)(e)??{}}catch{try{return(0,n.parse)(o(e))??{}}catch{return{}}}}}export{c as n,s as t};
|