@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
14 lines (12 loc) • 17.1 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
var Te=Object.defineProperty;var u=(t,e)=>Te(t,"name",{value:e,configurable:!0});var a=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var Y=a(O=>{function Ne(t){return Array.isArray?Array.isArray(t):$(t)==="[object Array]"}u(Ne,"isArray");O.isArray=Ne;function Pe(t){return typeof t=="boolean"}u(Pe,"isBoolean");O.isBoolean=Pe;function ae(t){return t===null}u(ae,"isNull");O.isNull=ae;function Ie(t){return t==null}u(Ie,"isNullOrUndefined");O.isNullOrUndefined=Ie;function Ce(t){return typeof t=="number"}u(Ce,"isNumber");O.isNumber=Ce;function Ue(t){return typeof t=="string"}u(Ue,"isString");O.isString=Ue;function Me(t){return typeof t=="symbol"}u(Me,"isSymbol");O.isSymbol=Me;function je(t){return t===void 0}u(je,"isUndefined");O.isUndefined=je;function Be(t){return $(t)==="[object RegExp]"}u(Be,"isRegExp");O.isRegExp=Be;function ke(t){return typeof t=="object"&&t!==null}u(ke,"isObject");O.isObject=ke;function Ge(t){return $(t)==="[object Date]"}u(Ge,"isDate");O.isDate=Ge;function ye(t){return $(t)==="[object Error]"||t instanceof Error}u(ye,"isError");O.isError=ye;function De(t){return typeof t=="function"}u(De,"isFunction");O.isFunction=De;function Xe(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}u(Xe,"isPrimitive");O.isPrimitive=Xe;O.isBuffer=require("buffer").Buffer.isBuffer;function $(t){return Object.prototype.toString.call(t)}u($,"objectToString")});var Ct=a((cs,It)=>{var gt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],h,wt=u(t=>t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9,"log10");function Tt(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(t===0||e===0)return t<e?-1:1;if(t<0||e<0){if(e>=0)return-1;if(t>=0)return 1;t=-t,e=-e}let s=wt(t),l=wt(e),o=0;return s<l?(t*=gt[l-s-1],e/=10,o=-1):s>l&&(e*=gt[s-l-1],t/=10,o=1),t===e?o:t<e?-1:1}let n=String(t),r=String(e);return n===r?0:n<r?-1:1}u(Tt,"alphabeticalCompare");function xe(t){let e=0;for(;t>=32;)e|=t&1,t>>=1;return t+e}u(xe,"minRunLength");function Nt(t,e,n,r){let s=e+1;if(s===n)return 1;if(r(t[s++],t[e])<0){for(;s<n&&r(t[s],t[s-1])<0;)s++;Pt(t,e,s),Pt(h,e,s)}else for(;s<n&&r(t[s],t[s-1])>=0;)s++;return s-e}u(Nt,"makeAscendingRun");function Pt(t,e,n){for(n--;e<n;){let r=t[e];t[e++]=t[n],t[n--]=r}}u(Pt,"reverseRun");function at(t,e,n,r,s){for(r===e&&r++;r<n;r++){let l=t[r],o=h[r],c=e,f=r;for(;c<f;){let _=c+f>>>1;s(l,t[_])<0?f=_:c=_+1}let i=r-c;switch(i){case 3:t[c+3]=t[c+2],h[c+3]=h[c+2];case 2:t[c+2]=t[c+1],h[c+2]=h[c+1];case 1:t[c+1]=t[c],h[c+1]=h[c];break;default:for(;i>0;)t[c+i]=t[c+i-1],h[c+i]=h[c+i-1],i--}t[c]=l,h[c]=o}}u(at,"binaryInsertionSort");function W(t,e,n,r,s,l){let o=0,c=0,f=1;if(l(t,e[n+s])>0){for(c=r-s;f<c&&l(t,e[n+s+f])>0;)o=f,f=(f<<1)+1,f<=0&&(f=c);f>c&&(f=c),o+=s,f+=s}else{for(c=s+1;f<c&&l(t,e[n+s-f])<=0;)o=f,f=(f<<1)+1,f<=0&&(f=c);f>c&&(f=c);let i=o;o=s-f,f=s-i}for(o++;o<f;){let i=o+(f-o>>>1);l(t,e[n+i])>0?o=i+1:f=i}return f}u(W,"gallopLeft");function Q(t,e,n,r,s,l){let o=0,c=0,f=1;if(l(t,e[n+s])<0){for(c=s+1;f<c&&l(t,e[n+s-f])<0;)o=f,f=(f<<1)+1,f<=0&&(f=c);f>c&&(f=c);let i=o;o=s-f,f=s-i}else{for(c=r-s;f<c&&l(t,e[n+s+f])>=0;)o=f,f=(f<<1)+1,f<=0&&(f=c);f>c&&(f=c),o+=s,f+=s}for(o++;o<f;){let i=o+(f-o>>>1);l(t,e[n+i])<0?f=i:o=i+1}return f}u(Q,"gallopRight");var Z=class{static{u(this,"TimSort")}constructor(e,n){this.array=e,this.compare=n;let{length:r}=e;this.length=r,this.minGallop=7,this.tmpStorageLength=r<2*256?r>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=r<120?5:r<1542?10:r<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,n){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=n,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]<this.runLength[e+1]&&e--;else if(this.runLength[e]>this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]<this.runLength[e+1]&&e--,this.mergeAt(e)}}mergeAt(e){let{compare:n}=this,{array:r}=this,s=this.runStart[e],l=this.runLength[e],o=this.runStart[e+1],c=this.runLength[e+1];this.runLength[e]=l+c,e===this.stackSize-3&&(this.runStart[e+1]=this.runStart[e+2],this.runLength[e+1]=this.runLength[e+2]),this.stackSize--;let f=Q(r[o],r,s,l,0,n);s+=f,l-=f,l!==0&&(c=W(r[s+l-1],r,o,c,c-1,n),c!==0&&(l<=c?this.mergeLow(s,l,o,c):this.mergeHigh(s,l,o,c)))}mergeLow(e,n,r,s){let{compare:l}=this,{array:o}=this,{tmp:c}=this,{tmpIndex:f}=this,i=0;for(i=0;i<n;i++)c[i]=o[e+i],f[i]=h[e+i];let _=0,m=r,E=e;if(o[E]=o[m],h[E]=h[m],E++,m++,--s===0){for(i=0;i<n;i++)o[E+i]=c[_+i],h[E+i]=f[_+i];return}if(n===1){for(i=0;i<s;i++)o[E+i]=o[m+i],h[E+i]=h[m+i];o[E+s]=c[_],h[E+s]=f[_];return}let{minGallop:p}=this;for(;;){let L=0,A=0,R=!1;do if(l(o[m],c[_])<0){if(o[E]=o[m],h[E]=h[m],E++,m++,A++,L=0,--s===0){R=!0;break}}else if(o[E]=c[_],h[E]=f[_],E++,_++,L++,A=0,--n===1){R=!0;break}while((L|A)<p);if(R)break;do{if(L=Q(o[m],c,_,n,0,l),L!==0){for(i=0;i<L;i++)o[E+i]=c[_+i],h[E+i]=f[_+i];if(E+=L,_+=L,n-=L,n<=1){R=!0;break}}if(o[E]=o[m],h[E]=h[m],E++,m++,--s===0){R=!0;break}if(A=W(c[_],o,m,s,0,l),A!==0){for(i=0;i<A;i++)o[E+i]=o[m+i],h[E+i]=h[m+i];if(E+=A,m+=A,s-=A,s===0){R=!0;break}}if(o[E]=c[_],h[E]=f[_],E++,_++,--n===1){R=!0;break}p--}while(L>=7||A>=7);if(R)break;p<0&&(p=0),p+=2}if(this.minGallop=p,p<1&&(this.minGallop=1),n===1){for(i=0;i<s;i++)o[E+i]=o[m+i],h[E+i]=h[m+i];o[E+s]=c[_],h[E+s]=f[_]}else{if(n===0)throw new Error("mergeLow preconditions were not respected");for(i=0;i<n;i++)o[E+i]=c[_+i],h[E+i]=f[_+i]}}mergeHigh(e,n,r,s){let{compare:l}=this,{array:o}=this,{tmp:c}=this,{tmpIndex:f}=this,i=0;for(i=0;i<s;i++)c[i]=o[r+i],f[i]=h[r+i];let _=e+n-1,m=s-1,E=r+s-1,p=0,L=0;if(o[E]=o[_],h[E]=h[_],E--,_--,--n===0){for(p=E-(s-1),i=0;i<s;i++)o[p+i]=c[i],h[p+i]=f[i];return}if(s===1){for(E-=n,_-=n,L=E+1,p=_+1,i=n-1;i>=0;i--)o[L+i]=o[p+i],h[L+i]=h[p+i];o[E]=c[m],h[E]=f[m];return}let{minGallop:A}=this;for(;;){let R=0,g=0,P=!1;do if(l(c[m],o[_])<0){if(o[E]=o[_],h[E]=h[_],E--,_--,R++,g=0,--n===0){P=!0;break}}else if(o[E]=c[m],h[E]=f[m],E--,m--,g++,R=0,--s===1){P=!0;break}while((R|g)<A);if(P)break;do{if(R=n-Q(c[m],o,e,n,n-1,l),R!==0){for(E-=R,_-=R,n-=R,L=E+1,p=_+1,i=R-1;i>=0;i--)o[L+i]=o[p+i],h[L+i]=h[p+i];if(n===0){P=!0;break}}if(o[E]=c[m],h[E]=f[m],E--,m--,--s===1){P=!0;break}if(g=s-W(o[_],c,0,s,s-1,l),g!==0){for(E-=g,m-=g,s-=g,L=E+1,p=m+1,i=0;i<g;i++)o[L+i]=c[p+i],h[L+i]=f[p+i];if(s<=1){P=!0;break}}if(o[E]=o[_],h[E]=h[_],E--,_--,--n===0){P=!0;break}A--}while(R>=7||g>=7);if(P)break;A<0&&(A=0),A+=2}if(this.minGallop=A,A<1&&(this.minGallop=1),s===1){for(E-=n,_-=n,L=E+1,p=_+1,i=n-1;i>=0;i--)o[L+i]=o[p+i],h[L+i]=h[p+i];o[E]=c[m],h[E]=f[m]}else{if(s===0)throw new Error("mergeHigh preconditions were not respected");for(p=E-(s-1),i=0;i<s;i++)o[p+i]=c[i],h[p+i]=f[i]}}};function qe(t,e,n,r){if(!Array.isArray(t))throw new TypeError(`The "array" argument must be an array. Received ${t}`);h=[];let{length:s}=t,l=0;for(;l<s;)h[l]=l++;e?typeof e!="function"&&(r=n,n=e,e=Tt):e=Tt,n||(n=0),r||(r=s);let o=r-n;if(o<2)return h;let c=0;if(o<32)return c=Nt(t,n,r,e),at(t,n,r,n+c,e),h;let f=new Z(t,e),i=xe(o);do{if(c=Nt(t,n,r,e),c<i){let _=o;_>i&&(_=i),at(t,n,n+_,n+c,e),c=_}f.pushRun(n,c),f.mergeRuns(),o-=c,n+=c}while(o!==0);return f.forceMergeRuns(),h}u(qe,"sort");It.exports={sort:qe}});var Mt=a((us,Ut)=>{"use strict";var $e=Object.prototype.hasOwnProperty;Ut.exports=(t,e)=>$e.call(t,e)});var y=a((ls,Yt)=>{var nt=Mt(),{isObject:jt,isArray:Ye,isString:ze,isNumber:Ke}=Y(),st="before",kt="after-prop",Gt="after-colon",yt="after-value",Dt="after",Xt="before-all",xt="after-all",Je="[",He="]",Ve="{",ve="}",We=",",Qe="",Ze="-",rt=[st,kt,Gt,yt,Dt],tn=[st,Xt,xt].map(Symbol.for),qt=":",Bt=void 0,G=u((t,e)=>Symbol.for(t+qt+e),"symbol"),z=u((t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),"define"),et=u((t,e,n,r,s,l)=>{let o=G(s,r);if(!nt(e,o))return;let c=n===r?o:G(s,n);z(t,c,e[o]),l&&delete e[o]},"copy_comments_by_kind"),$t=u((t,e,n,r,s)=>{rt.forEach(l=>{et(t,e,n,r,l,s)})},"copy_comments"),en=u((t,e,n)=>{e!==n&&rt.forEach(r=>{let s=G(r,n);if(!nt(t,s)){et(t,t,n,e,r,!0);return}let l=t[s];delete t[s],et(t,t,n,e,r,!0),z(t,G(r,e),l)})},"swap_comments"),tt=u((t,e)=>{tn.forEach(n=>{let r=e[n];r&&z(t,n,r)})},"assign_non_prop_comments"),nn=u((t,e,n)=>(n.forEach(r=>{!ze(r)&&!Ke(r)||nt(e,r)&&(t[r]=e[r],$t(t,e,r,r))}),t),"assign");Yt.exports={SYMBOL_PREFIXES:rt,PREFIX_BEFORE:st,PREFIX_AFTER_PROP:kt,PREFIX_AFTER_COLON:Gt,PREFIX_AFTER_VALUE:yt,PREFIX_AFTER:Dt,PREFIX_BEFORE_ALL:Xt,PREFIX_AFTER_ALL:xt,BRACKET_OPEN:Je,BRACKET_CLOSE:He,CURLY_BRACKET_OPEN:Ve,CURLY_BRACKET_CLOSE:ve,COLON:qt,COMMA:We,MINUS:Ze,EMPTY:Qe,UNDEFINED:Bt,symbol:G,define:z,copy_comments:$t,swap_comments:en,assign_non_prop_comments:tt,assign(t,e,n){if(!jt(t))throw new TypeError("Cannot convert undefined or null to object");if(!jt(e))return t;if(n===Bt)n=Object.keys(e),tt(t,e);else if(Ye(n))n.length===0&&tt(t,e);else throw new TypeError("keys must be array or undefined");return nn(t,e,n)}}});var ot=a((hs,Vt)=>{var{isArray:sn}=Y(),{sort:rn}=Ct(),{SYMBOL_PREFIXES:on,UNDEFINED:zt,symbol:cn,copy_comments:fn,swap_comments:Ht}=y(),un=u(t=>{let{length:e}=t,n=0,r=e/2;for(;n<r;n++)Ht(t,n,e-n-1)},"reverse_comments"),Kt=u((t,e,n,r,s)=>{fn(t,e,n+r,n,s)},"move_comment"),B=u((t,e,n,r,s,l)=>{if(s>0){let c=r;for(;c-- >0;)Kt(t,e,n+c,s,l);return}let o=0;for(;o<r;){let c=o++;Kt(t,e,n+c,s,l)}},"move_comments"),Jt=u((t,e)=>{on.forEach(n=>{let r=cn(n,e);delete t[r]})},"remove_comments"),ln=u((t,e)=>{let n=e;for(;n in t;)n=t[n];return n},"get_mapped"),it=class t extends Array{static{u(this,"CommentArray")}splice(...e){let{length:n}=this,r=super.splice(...e),[s,l,...o]=e;s<0&&(s+=n),arguments.length===1?l=n-s:l=Math.min(n-s,l);let{length:c}=o,f=c-l,i=s+l,_=n-i;return B(this,this,i,_,f,!0),r}slice(...e){let{length:n}=this,r=super.slice(...e);if(!r.length)return new t;let[s,l]=e;return l===zt?l=n:l<0&&(l+=n),s<0?s+=n:s===zt&&(s=0),B(r,this,s,l-s,-s),r}unshift(...e){let{length:n}=this,r=super.unshift(...e),{length:s}=e;return s>0&&B(this,this,0,n,s,!0),r}shift(){let e=super.shift(),{length:n}=this;return Jt(this,0),B(this,this,1,n,-1,!0),e}reverse(){return super.reverse(),un(this),this}pop(){let e=super.pop();return Jt(this,this.length),e}concat(...e){let{length:n}=this,r=super.concat(...e);return e.length&&(B(r,this,0,this.length,0),e.forEach(s=>{let l=n;n+=sn(s)?s.length:1,s instanceof t&&B(r,s,0,s.length,l)})),r}sort(...e){let n=rn(this,...e.slice(0,1)),r=Object.create(null);return n.forEach((s,l)=>{if(s===l)return;let o=ln(r,s);o!==l&&(r[l]=o,Ht(this,l,o))}),this}};Vt.exports={CommentArray:it}});var he=a((ms,Ee)=>{var En=require("../../commonlibs/esprima/index.js"),{CommentArray:hn}=ot(),{PREFIX_BEFORE:J,PREFIX_AFTER_PROP:_n,PREFIX_AFTER_COLON:mn,PREFIX_AFTER_VALUE:Zt,PREFIX_AFTER:ft,PREFIX_BEFORE_ALL:pn,PREFIX_AFTER_ALL:Ln,BRACKET_OPEN:Rn,BRACKET_CLOSE:vt,CURLY_BRACKET_OPEN:An,CURLY_BRACKET_CLOSE:Wt,COLON:te,COMMA:ee,MINUS:Qt,EMPTY:On,UNDEFINED:v,define:ut,assign_non_prop_comments:bn}=y(),ne=u(t=>En.tokenize(t,{comment:!0,loc:!0}),"tokenize"),lt=[],C=null,w=null,Et=[],U,se=!1,re=!1,D=null,X=null,b=null,ie,H=null,oe=u(()=>{Et.length=lt.length=0,X=null,U=v},"clean"),dn=u(()=>{oe(),D.length=0,w=C=D=X=b=H=null},"free"),ht=u(t=>Symbol.for(U!==v?t+te+U:t),"symbolFor"),_t=u((t,e)=>H?H(t,e):e,"transform"),ce=u(()=>{let t=new SyntaxError(`Unexpected token ${b.value.slice(0,1)}`);throw Object.assign(t,b.loc.start),t},"unexpected"),fe=u(()=>{let t=new SyntaxError("Unexpected end of JSON input");throw Object.assign(t,X?X.loc.end:{line:1,column:0}),t},"unexpected_end"),S=u(()=>{let t=D[++ie];re=b&&t&&b.loc.end.line===t.loc.start.line||!1,X=b,b=t},"next"),ct=u(()=>(b||fe(),b.type==="Punctuator"?b.value:b.type),"type"),M=u(t=>ct()===t,"is"),K=u(t=>{M(t)||ce()},"expect"),mt=u(t=>{lt.push(C),C=t},"set_comments_host"),pt=u(()=>{C=lt.pop()},"restore_comments_host"),ue=u(()=>{if(!w)return;let t=[];for(let n of w)if(n.inline)t.push(n);else break;let{length:e}=t;e&&(e===w.length?w=null:w.splice(0,e),ut(C,ht(ft),t))},"assign_after_comments"),I=u(t=>{w&&(ut(C,ht(t),w),w=null)},"assign_comments"),T=u(t=>{let e=[];for(;b&&(M("LineComment")||M("BlockComment"));){let n={...b,inline:re};e.push(n),S()}if(!se&&e.length){if(t){ut(C,ht(t),e);return}w=e}},"parse_comments"),V=u((t,e)=>{e&&Et.push(U),U=t},"set_prop"),le=u(()=>{U=Et.pop()},"restore_prop"),Fn=u(()=>{let t={};mt(t),V(v,!0);let e=!1,n;for(T();!M(Wt)&&!(e&&(I(Zt),K(ee),S(),T(),ue(),M(Wt)));)e=!0,K("String"),n=JSON.parse(b.value),V(n),I(J),S(),T(_n),K(te),S(),T(mn),t[n]=_t(n,Lt()),T();return e&&I(ft),S(),U=void 0,e||I(J),pt(),le(),t},"parse_object"),Sn=u(()=>{let t=new hn;mt(t),V(v,!0);let e=!1,n=0;for(T();!M(vt)&&!(e&&(I(Zt),K(ee),S(),T(),ue(),M(vt)));)e=!0,V(n),I(J),t[n]=_t(n,Lt()),n++,T();return e&&I(ft),S(),U=void 0,e||I(J),pt(),le(),t},"parse_array");function Lt(){let t=ct();if(t===An)return S(),Fn();if(t===Rn)return S(),Sn();let e=On;t===Qt&&(S(),t=ct(),e=Qt);let n;switch(t){case"String":case"Boolean":case"Null":case"Numeric":return n=b.value,S(),JSON.parse(e+n);default:}}u(Lt,"walk");var gn=u(t=>Object(t)===t,"isObject"),wn=u((t,e,n)=>{oe(),D=ne(t),H=e,se=n,D.length||fe(),ie=-1,S(),mt({}),T(pn);let r=Lt();return T(Ln),b&&ce(),!n&&r!==null&&(gn(r)||(r=new Object(r)),bn(r,C)),pt(),r=_t("",r),dn(),r},"parse");Ee.exports={parse:wn,tokenize:ne}});var me=a((Ls,_e)=>{"use strict";var N="",Rt;_e.exports=Tn;function Tn(t,e){if(typeof t!="string")throw new TypeError("expected a string");if(e===1)return t;if(e===2)return t+t;var n=t.length*e;if(Rt!==t||typeof Rt>"u")Rt=t,N="";else if(N.length>=n)return N.substr(0,n);for(;n>N.length&&e>1;)e&1&&(N+=t),e>>=1,t+=t;return N+=t,N=N.substr(0,n),N}u(Tn,"repeat")});var we=a((As,ge)=>{var{isArray:bt,isObject:pe,isFunction:Ot,isNumber:Nn,isString:Pn}=Y(),an=me(),{PREFIX_BEFORE_ALL:In,PREFIX_BEFORE:Le,PREFIX_AFTER_PROP:Cn,PREFIX_AFTER_COLON:Un,PREFIX_AFTER_VALUE:Mn,PREFIX_AFTER:dt,PREFIX_AFTER_ALL:jn,BRACKET_OPEN:Bn,BRACKET_CLOSE:kn,CURLY_BRACKET_OPEN:Gn,CURLY_BRACKET_CLOSE:yn,COLON:Dn,COMMA:Re,EMPTY:F,UNDEFINED:Xn}=y(),At=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Ft=" ",j=`
`,Ae="null",Oe=u(t=>`${Le}:${t}`,"BEFORE"),xn=u(t=>`${Cn}:${t}`,"AFTER_PROP"),qn=u(t=>`${Un}:${t}`,"AFTER_COLON"),be=u(t=>`${Mn}:${t}`,"AFTER_VALUE"),de=u(t=>`${dt}:${t}`,"AFTER"),$n={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Yn=u(t=>(At.lastIndex=0,At.test(t)?t.replace(At,e=>{let n=$n[e];return typeof n=="string"?n:e}):t),"escape"),Fe=u(t=>`"${Yn(t)}"`,"quote"),zn=u((t,e)=>e?`//${t}`:`/*${t}*/`,"comment_stringify"),d=u((t,e,n,r)=>{let s=t[Symbol.for(e)];if(!s||!s.length)return F;let l=!1,o=s.reduce((c,{inline:f,type:i,value:_})=>{let m=f?Ft:j+n;return l=i==="LineComment",c+m+zn(_,l)},F);return r||l?o+j+n:o},"process_comments"),k=null,q=F,Kn=u(()=>{k=null,q=F},"clean"),x=u((t,e,n)=>t?e?t+e.trim()+j+n:t.trimRight()+j+n:e?e.trimRight()+j+n:F,"join"),Se=u((t,e,n)=>{let r=d(e,Le,n+q,!0);return x(r,t,n)},"join_content"),Jn=u((t,e)=>{let n=e+q,{length:r}=t,s=F,l=F;for(let o=0;o<r;o++){o!==0&&(s+=Re);let c=x(l,d(t,Oe(o),n),n);s+=c||j+n,s+=St(o,t,n)||Ae,s+=d(t,be(o),n),l=d(t,de(o),n)}return s+=x(l,d(t,dt,n),n),Bn+Se(s,t,e)+kn},"array_stringify"),Hn=u((t,e)=>{if(!t)return"null";let n=e+q,r=F,s=F,l=!0,o=bt(k)?k:Object.keys(t),c=u(f=>{let i=St(f,t,n);if(i===Xn)return;l||(r+=Re),l=!1;let _=x(s,d(t,Oe(f),n),n);r+=_||j+n,r+=Fe(f)+d(t,xn(f),n)+Dn+d(t,qn(f),n)+Ft+i+d(t,be(f),n),s=d(t,de(f),n)},"iteratee");return o.forEach(c),r+=x(s,d(t,dt,n),n),Gn+Se(r,t,e)+yn},"object_stringify");function St(t,e,n){let r=e[t];switch(pe(r)&&Ot(r.toJSON)&&(r=r.toJSON(t)),Ot(k)&&(r=k.call(e,t,r)),typeof r){case"string":return Fe(r);case"number":return Number.isFinite(r)?String(r):Ae;case"boolean":case"null":return String(r);case"object":return bt(r)?Jn(r,n):Hn(r,n);default:}}u(St,"stringify");var Vn=u(t=>Pn(t)?t:Nn(t)?an(Ft,t):F,"get_indent"),{toString:vn}=Object.prototype,Wn=["[object Number]","[object String]","[object Boolean]"],Qn=u(t=>{if(typeof t!="object")return!1;let e=vn.call(t);return Wn.includes(e)},"is_primitive_object");ge.exports=(t,e,n)=>{let r=Vn(n);if(!r)return JSON.stringify(t,e);!Ot(e)&&!bt(e)&&(e=null),k=e,q=r;let s=Qn(t)?JSON.stringify(t):St("",{"":t},F);return Kn(),pe(t)?d(t,In,F).trimLeft()+s+d(t,jn,F).trimRight():s}});var{parse:Zn,tokenize:ts}=he(),es=we(),{CommentArray:ns}=ot(),{assign:ss}=y();module.exports={parse:Zn,stringify:es,tokenize:ts,CommentArray:ns,assign:ss};
/*! Bundled license information:
repeat-string/index.js:
(*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*)
*/