mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-01 20:05:21 +01:00
2 lines
2.9 MiB
JavaScript
2 lines
2.9 MiB
JavaScript
|
var r=function(r,e){const t=new SyntaxError(r+" ("+e.start.line+":"+e.start.column+")");return t.loc=e,t};function e(r,e,t){return r(t={path:e,exports:{},require:function(r,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&t.path)}},t.exports),t.exports}function t(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var n=Object.freeze({__proto__:null,default:{EOL:"\n",platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}});const u=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const e=r.match(/(?:\r?\n)/g)||[];if(0===e.length)return;const t=e.filter((r=>"\r\n"===r)).length;return t>e.length-t?"\r\n":"\n"};var a=u;a.graceful=r=>"string"==typeof r&&u(r)||"\n";var i=t(n),c=e((function(r,e){function t(){const r=i;return t=function(){return r},r}function n(){const r=(e=a)&&e.__esModule?e:{default:e};var e;return n=function(){return r},r}Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(r){const e=r.match(f);return e?e[0].trimLeft():""},e.strip=function(r){const e=r.match(f);return e&&e[0]?r.substring(e[0].length):r},e.parse=function(r){return b(r).pragmas},e.parseWithComments=b,e.print=function({comments:r="",pragmas:e={}}){const u=(0,n().default)(r)||t().EOL,a=" *",i=Object.keys(e),c=i.map((r=>F(r,e[r]))).reduce(((r,e)=>r.concat(e)),[]).map((r=>" * "+r+u)).join("");if(!r){if(0===i.length)return"";if(1===i.length&&!Array.isArray(e[i[0]])){const r=e[i[0]];return"".concat("/**"," ").concat(F(i[0],r)[0]).concat(" */")}}const f=r.split(u).map((r=>"".concat(a," ").concat(r))).join(u)+u;return"/**"+u+(r?f:"")+(r&&i.length?a+u:"")+c+" */"};const u=/\*\/$/,c=/^\/\*\*/,f=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,s=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,v=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,D=/(\r?\n|^) *\* ?/g,p=[];function b(r){const e=(0,n().default)(r)||t().EOL;r=r.replace(c,"").replace(u,"").replace(D,"$1");let a="";for(;a!==r;)a=r,r=r.replace(l,"".concat(e,"$1 $2").concat(e));r=r.replace(s,"").trimRight();const i=Object.create(null),f=r.replace(v,"").replace(s,"").trimRight();let b;for(;b=v.exec(r);){const r=b[2].replace(o,"");"string"==typeof i[b[1]]||Array.isArray(i[b[1]])?i[b[1]]=p.concat(i[b[1]],r):i[b[1]]=r}return{comments:f,pragmas:i}}function F(r,e){return p.concat(e).map((e=>"@".concat(r," ").concat(e).trim()))}})),f=r=>"string"==typeof r?r.replace((({onlyFirst:r=!1}={})=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")})(),""):r;const o=r=>!Number.isNaN(r)&&(r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141));var s=o,l=o;s.default=l;const v=r=>{if("string"!=typeof(r=r.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uD
|