import{__exports as r}from"../../_virtual/ini.mjs";var e;function t(){if(e)return r;e=1,r.parse=r.decode=function(r){var e={},t=e,i=null,c=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return r.split(/[\r\n]+/g).forEach(function(r,n,o){if(r&&!r.match(/^\s*[;#]/)){var s=r.match(c);if(s){if(void 0!==s[1])return"__proto__"===(i=a(s[1]))?void(t={}):void(t=e[i]=e[i]||{});var f=a(s[2]);if("__proto__"!==f){var u=!s[3]||a(s[4]);switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(f.length>2&&"[]"===f.slice(-2)){if("__proto__"===(f=f.substring(0,f.length-2)))return;t[f]?Array.isArray(t[f])||(t[f]=[t[f]]):t[f]=[]}Array.isArray(t[f])?t[f].push(u):t[f]=u}}}}),Object.keys(e).filter(function(r,t,i){if(!e[r]||"object"!=typeof e[r]||Array.isArray(e[r]))return!1;var c=n(r),a=e,o=c.pop(),s=o.replace(/\\\./g,".");return c.forEach(function(r,e,t){"__proto__"!==r&&(a[r]&&"object"==typeof a[r]||(a[r]={}),a=a[r])}),(a!==e||s!==o)&&(a[s]=e[r],!0)}).forEach(function(r,t,n){delete e[r]}),e},r.stringify=r.encode=function r(e,i){var a=[],o="";"string"==typeof i?i={section:i,whitespace:!1}:(i=i||{}).whitespace=!0===i.whitespace;var s=i.whitespace?" = ":"=";Object.keys(e).forEach(function(r,n,i){var f=e[r];f&&Array.isArray(f)?f.forEach(function(e){o+=c(r+"[]")+s+c(e)+"\n"}):f&&"object"==typeof f?a.push(r):o+=c(r)+s+c(f)+t}),i.section&&o.length&&(o="["+c(i.section)+"]"+t+o);return a.forEach(function(c,a,s){var f=n(c).join("\\."),u=(i.section?i.section+".":"")+f,p=r(e[c],{section:u,whitespace:i.whitespace});o.length&&p.length&&(o+=t),o+=p}),o},r.safe=c,r.unsafe=a;var t="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function n(r){return r.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(r){return r.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function i(r){return'"'===r.charAt(0)&&'"'===r.slice(-1)||"'"===r.charAt(0)&&"'"===r.slice(-1)}function c(r){return"string"!=typeof r||r.match(/[=\r\n]/)||r.match(/^\[/)||r.length>1&&i(r)||r!==r.trim()?JSON.stringify(r):r.replace(/;/g,"\\;").replace(/#/g,"\\#")}function a(r,e){if(!i(r=(r||"").trim())){for(var t=!1,n="",c=0,a=r.length;c<a;c++){var o=r.charAt(c);if(t)-1!=="\\;#".indexOf(o)?n+=o:n+="\\"+o,t=!1;else{if(-1!==";#".indexOf(o))break;"\\"===o?t=!0:n+=o}}return t&&(n+="\\"),n.trim()}"'"===r.charAt(0)&&(r=r.substr(1,r.length-2));try{r=JSON.parse(r)}catch(r){}return r}return r}export{t as __require};