@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
3 lines (2 loc) • 3.18 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
;var g=Object.defineProperty;var i=(e,t)=>g(e,"name",{value:t,configurable:!0});var p=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var G=p((A,I)=>{"use strict";var E=i((e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e},"mimicFn");I.exports=E;I.exports.default=E});var w=p((j,x)=>{"use strict";var q=G(),f=new WeakMap,v=i((e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,o=0,P=e.displayName||e.name||"<anonymous>",u=i(function(...R){if(f.set(u,++o),o===1)r=e.apply(this,R),e=null;else if(t.throw===!0)throw new Error(`Function \`${P}\` can only be called once`);return r},"onetime");return q(u,e),f.set(u,o),u},"onetime");x.exports=v;x.exports.default=v;x.exports.callCount=e=>{if(!f.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return f.get(e)}});var T=p((D,m)=>{m.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&m.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&m.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var C=p((H,c)=>{var U=require("assert"),a=T(),F=/^win/i.test(process.platform),d=require("events");typeof d!="function"&&(d=d.EventEmitter);var s;process.__signal_exit_emitter__?s=process.__signal_exit_emitter__:(s=process.__signal_exit_emitter__=new d,s.count=0,s.emitted={});s.infinite||(s.setMaxListeners(1/0),s.infinite=!0);c.exports=function(e,t){U.equal(typeof e,"function","a callback must be provided for exit handler"),l===!1&&L();var r="exit";t&&t.alwaysLast&&(r="afterexit");var o=i(function(){s.removeListener(r,e),s.listeners("exit").length===0&&s.listeners("afterexit").length===0&&y()},"remove");return s.on(r,e),o};c.exports.unload=y;function y(){l&&(l=!1,a.forEach(function(e){try{process.removeListener(e,h[e])}catch{}}),process.emit=S,process.reallyExit=_,s.count-=1)}i(y,"unload");function n(e,t,r){s.emitted[e]||(s.emitted[e]=!0,s.emit(e,t,r))}i(n,"emit");var h={};a.forEach(function(e){h[e]=i(function(){var r=process.listeners(e);r.length===s.count&&(y(),n("exit",null,e),n("afterexit",null,e),F&&e==="SIGHUP"&&(e="SIGINT"),process.kill(process.pid,e))},"listener")});c.exports.signals=function(){return a};c.exports.load=L;var l=!1;function L(){l||(l=!0,s.count+=1,a=a.filter(function(e){try{return process.on(e,h[e]),!0}catch{return!1}}),process.emit=M,process.reallyExit=O)}i(L,"load");var _=process.reallyExit;function O(e){process.exitCode=e||0,n("exit",process.exitCode,null),n("afterexit",process.exitCode,null),_.call(process,process.exitCode)}i(O,"processReallyExit");var S=process.emit;function M(e,t){if(e==="exit"){t!==void 0&&(process.exitCode=t);var r=S.apply(this,arguments);return n("exit",process.exitCode,null),n("afterexit",process.exitCode,null),r}else return S.apply(this,arguments)}i(M,"processEmit")});var N=w(),b=C();module.exports=N(()=>{b(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})});