mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-29 10:55:21 +01:00
2 lines
194 KiB
JavaScript
2 lines
194 KiB
JavaScript
|
!function(e,u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof define&&define.amd?define(u):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.meriyah=u())}(this,(function(){"use strict";var e=function(e,u){const t=new SyntaxError(e+" ("+u.start.line+":"+u.start.column+")");return t.loc=u,t};function u(e,u,t){return e(t={path:u,exports:{},require:function(e,u){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==u&&t.path)}},t.exports),t.exports}function t(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=Object.freeze({__proto__:null,default:{EOL:"\n",platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}});const o=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const u=e.match(/(?:\r?\n)/g)||[];if(0===u.length)return;const t=u.filter((e=>"\r\n"===e)).length;return t>u.length-t?"\r\n":"\n"};var r=o;r.graceful=e=>"string"==typeof e&&o(e)||"\n";var s=t(n),i=u((function(e,u){function t(){const e=s;return t=function(){return e},e}function n(){const e=(u=r)&&u.__esModule?u:{default:u};var u;return n=function(){return e},e}Object.defineProperty(u,"__esModule",{value:!0}),u.extract=function(e){const u=e.match(D);return u?u[0].trimLeft():""},u.strip=function(e){const u=e.match(D);return u&&u[0]?e.substring(u[0].length):e},u.parse=function(e){return E(e).pragmas},u.parseWithComments=E,u.print=function({comments:e="",pragmas:u={}}){const o=(0,n().default)(e)||t().EOL,r=" *",s=Object.keys(u),i=s.map((e=>A(e,u[e]))).reduce(((e,u)=>e.concat(u)),[]).map((e=>" * "+e+o)).join("");if(!e){if(0===s.length)return"";if(1===s.length&&!Array.isArray(u[s[0]])){const e=u[s[0]];return"".concat("/**"," ").concat(A(s[0],e)[0]).concat(" */")}}const D=e.split(o).map((e=>"".concat(r," ").concat(e))).join(o)+o;return"/**"+o+(e?D:"")+(e&&s.length?r+o:"")+i+" */"};const o=/\*\/$/,i=/^\/\*\*/,D=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,c=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,F=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,C=[];function E(e){const u=(0,n().default)(e)||t().EOL;e=e.replace(i,"").replace(o,"").replace(p,"$1");let r="";for(;r!==e;)r=e,e=e.replace(l,"".concat(u,"$1 $2").concat(u));e=e.replace(c,"").trimRight();const s=Object.create(null),D=e.replace(F,"").replace(c,"").trimRight();let E;for(;E=F.exec(e);){const e=E[2].replace(a,"");"string"==typeof s[E[1]]||Array.isArray(s[E[1]])?s[E[1]]=C.concat(s[E[1]],e):s[E[1]]=e}return{comments:D,pragmas:s}}function A(e,u){return C.concat(u).map((u=>"@".concat(e," ").concat(u).trim()))}})),D=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const u=["[\\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(u,e?void 0:"g")})(),""):e;const a=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var c=a,l=a;c.default=l;const F=e=>{if("string"!=typeof(e=e.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
|